| | |
| | | return basicColumn; |
| | | } else if (this.type === 'table' || this.type === 'TreeTable') { |
| | | const top = basicColumn.filter(item => { |
| | | if (item.paramVOS && item.paramVOS.webUiButtonLocation && item.paramVOS.webUiButtonLocation !== 'menu') { |
| | | if (item.paramVOS && item.paramVOS.showLocation && item.paramVOS.showLocation !== 'menu') { |
| | | return true; |
| | | } else if (item.id != "edit" && item.id != "del" && item.id != "delete" && item.id != "refresh") { |
| | | return true; |
| | |
| | | return false |
| | | }); |
| | | const menu = basicColumn.filter(item => { |
| | | if (item.paramVOS && item.paramVOS.webUiButtonLocation && item.paramVOS.webUiButtonLocation === 'menu') { |
| | | if (item.paramVOS && item.paramVOS.showLocation && item.paramVOS.showLocation === 'menu') { |
| | | return true |
| | | } else if (item.id == "edit" || item.id == "del" || item.id == "delete"){ |
| | | return true; |
| | |
| | | //paramVOS.customBtn //弹窗默认有保存按钮,customBtn为true时内容展示自定义按钮 |
| | | doAction(buttonitem, { |
| | | paramVOS: paramVOS, |
| | | dataStore: rowData || this.dataStore || [], |
| | | dataStore: rowData?[rowData] :(this.dataStore || []), |
| | | sourceData: this.sourceData || {} |
| | | }, function (actionType,data) { |
| | | that.$emit("afterMethod",actionType,data); |