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