| | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :editRow="editRow" :treeRadio="treeRadio" @updataTable="getRightPortalVIDatas"></form-dialog> |
| | | <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :editRow="editRow" :treeRadio="treeRadio" |
| | | @updataTable="getRightPortalVIDatas"></form-dialog> |
| | | <table-dialog ref="tableDialog" :TreeNodeRow="this.nodeRow" :treeRadio="treeRadio" |
| | | @updataTable="getRightPortalVIDatas"></table-dialog> |
| | | <!-- 导入 --> |
| | |
| | | |
| | | // 编辑按钮 |
| | | editBtnClick(row) { |
| | | console.log('row', row); |
| | | // 表格 |
| | | if (row.viType === 0) { |
| | | const params = { |
| | |
| | | // 更新表单 |
| | | this.$refs.tableDialog.form = { |
| | | ...prmItem, |
| | | itemFieldWidthList:prmItem.itemFieldWidthList.map(item => { |
| | | return{ |
| | | itemFieldWidthList: prmItem.itemFieldWidthList.map(item => { |
| | | return { |
| | | ...item, |
| | | $cellEdit: true, |
| | | } |
| | | }), |
| | | viName: res.data.obj.viName, |
| | | itemQtName:res.data.obj.prm.formQtName, |
| | | itemQtName: res.data.obj.prm.formQtName, |
| | | editNodeId: row.id, |
| | | itemOutFieldList: (prmItem.itemOutFieldList || []), |
| | | itemSearchFieldList: (prmItem.itemSearchFieldList || []).map(item => ({id: item})), |
| | |
| | | this.$refs.formDialog.topForm.itemQtName = res.data.obj.prm.formQtName; |
| | | this.$refs.formDialog.topForm.columnNumber = this.getValueBasedOnInput(res.data.obj.prm.showCols); |
| | | this.$refs.formDialog.topForm.showColumn = res.data.obj.prm.showCols; |
| | | |
| | | this.$refs.formDialog.visible = true; |
| | | } |
| | | }) |
| | |
| | | |
| | | // 克隆树点击 |
| | | cloneTreeNodeClick(row) { |
| | | console.log(row); |
| | | this.cloneTreeNode = row; |
| | | }, |
| | | |
| | |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | }).then(({value}) => { |
| | | console.log(obj); |
| | | const params = { |
| | | clonePortalVIDTOList: [ |
| | | { |