diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 44105613..57e2fc66 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -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 {this.keyProductClick(rowData,rowIndex)}} style={{color:"#2B66F2"}} >编辑 + } }} />