Update edit.js

This commit is contained in:
姜棚 2022-01-14 16:00:50 +08:00
parent d4dcce4ad9
commit 9ff0fb6e08
1 changed files with 13 additions and 11 deletions

View File

@ -831,6 +831,12 @@ export default class acclist extends React.Component{
this.setState({paytype:e.target.value})
}
keyProductClick(row,index){
this.setState({drawerVisible2:true})
}
render(){
const Column = [
@ -933,16 +939,9 @@ export default class acclist extends React.Component{
width:'auto'
},
{
title: '商品展示',
prop: 'show_url',
name: 'show_url',
type: "slot",
width:'auto',
},
{
title: '商品描述',
prop: 'describe_url',
name: 'describe_url',
title: '操作',
prop: 'edit',
name: 'edit',
type: "slot",
width:'auto',
},
@ -1253,7 +1252,10 @@ export default class acclist extends React.Component{
value={rowData.describe_url}
/>
}
if(com == "edit")
{
return <span onClick={(e)=>{this.keyProductClick(rowData,rowIndex)}} style={{color:"#2B66F2"}} >编辑</span>
}
}}
/>