| | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :editRow="editRow" :treeRadio="treeRadio"></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> |
| | | <!-- 导入 --> |
| | |
| | | this.$refs.formDialog.getTreeList(); |
| | | } else { |
| | | this.$refs.tableDialog.visible = true; |
| | | this.$refs.tableDialog.getDbList(); |
| | | this.$refs.tableDialog.getSearchSelectList(); |
| | | this.$refs.tableDialog.getDbList(); // 双击操作下拉接口 |
| | | this.$refs.tableDialog.getSearchSelectList(); // 选择表单下拉接口 |
| | | this.$refs.tableDialog.getFormSelect(); // 查询模板下拉接口 |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | // 左侧树点击 |
| | | nodeClick(row) { |
| | | console.log(row); |
| | | this.tableRadio = null; |
| | | this.nodeRow = row; |
| | | this.getRightPortalVIDatas(row); |
| | |
| | | |
| | | // 编辑按钮 |
| | | editBtnClick(row) { |
| | | console.log('row', row); |
| | | // 表格 |
| | | if (row.viType === 0) { |
| | | const params = { |
| | |
| | | // 更新表单 |
| | | this.$refs.tableDialog.form = { |
| | | ...prmItem, |
| | | itemFieldWidthList: prmItem.itemFieldWidthList.map(item => { |
| | | return { |
| | | ...item, |
| | | $cellEdit: true, |
| | | } |
| | | }), |
| | | viName: res.data.obj.viName, |
| | | itemQtName: res.data.obj.prm.formQtName, |
| | | editNodeId: row.id, |
| | | itemOutFieldList: (prmItem.itemOutFieldList || []).map(item => ({id: item})), |
| | | itemOutFieldList: (prmItem.itemOutFieldList || []), |
| | | itemSearchFieldList: (prmItem.itemSearchFieldList || []).map(item => ({id: item})), |
| | | itemKeyFieldList: (prmItem.itemKeyFieldList || []).map(item => ({id: item})), |
| | | searchLabel: prmItem.itemSeniorQueryCols || '', |
| | | searchNumber: prmItem.itemSeniorQueryColsCounts || '1', |
| | | searchSql: prmItem.itemQuerySql || '', |
| | | itemKeyFieldList: (prmItem.itemKeyFieldList || []), |
| | | searchNumber: '1', |
| | | itemFileWidthSelect: (prmItem.itemFieldWidthList && prmItem.itemFieldWidthList.length > 0) ? prmItem.itemFieldWidthList[0].key : '', |
| | | itemWidth: (prmItem.itemFieldWidthList && prmItem.itemFieldWidthList.length > 0) ? prmItem.itemFieldWidthList[0].value : '250' |
| | | }; |
| | |
| | | const [width = '0', height = '0'] = (prmItem.itemImgWH || '0,0').split(','); |
| | | this.$refs.tableDialog.itemImgWidth = width; |
| | | this.$refs.tableDialog.itemImgHeight = height; |
| | | |
| | | // 双击操作获取数据方法 |
| | | this.$refs.tableDialog.getDbList(); |
| | | |
| | | // 显示对话框 |
| | | this.$refs.tableDialog.visible = true; |
| | |
| | | this.$refs.formDialog.formList = updatedData; |
| | | this.$refs.formDialog.getTreeList(); |
| | | this.$refs.formDialog.topForm.viName = res.data.obj.viName; |
| | | 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: [ |
| | | { |