| | |
| | | this.tableList = null; |
| | | this.tableList = [this.tableLists[0]] |
| | | this.currentTable = this.tableLists[0].templateId; |
| | | console.log(111,this.currentTable); |
| | | if(this.tableLists.find(m=>m.templateId==this.currentTable)&&this.tableLists.find(m=>m.templateId==this.currentTable).templateName.includes('电路试验')&&this.currentTableState!=0&&this.currentTableState!=1){ |
| | | this.versionDialogVisible = true |
| | | } |
| | |
| | | }) |
| | | }).catch(e => {}) |
| | | }, |
| | | selectTreeList() { |
| | | selectTreeList(e) { |
| | | this.treeLoad = true |
| | | this.$axios.get(this.$api.department.selectDepartment).then(res => { |
| | | this.list = res.data |
| | | this.treeLoad = false |
| | | this.componentData.entity.roleId = this.list[0].id; |
| | | if(!e){ |
| | | this.componentData.entity.roleId = this.list[0].id; |
| | | } |
| | | this.refreshTable() |
| | | }) |
| | | }, |
| | |
| | | } |
| | | this.$message.success('添加成功') |
| | | this.addDia = false |
| | | this.selectTreeList() |
| | | this.selectTreeList(true) |
| | | this.addLoad = false |
| | | this.addOb.name = '' |
| | | }).catch(e => { |
| | |
| | | this.$refs.personTable.clearSelection() |
| | | this.addLoad = false |
| | | this.userSearch2 = '' |
| | | this.selectTreeList() |
| | | this.selectTreeList(true) |
| | | }).catch(e => { |
| | | this.addLoad = false |
| | | }) |