| | |
| | | initTreeData() { |
| | | getTree().then((res) => { |
| | | const content = res || []; |
| | | // this.treeDataList.splice(0, this.treeDataList.length) |
| | | this.treeDataList = content; |
| | | // if (content.length > 0) { |
| | | // this.importSetting.fileSettings.data = {pid: content[0].id} |
| | | // } |
| | | }); |
| | | }, |
| | | updState(row) { |
| | |
| | | }) |
| | | .then((res) => { |
| | | this.$message.success('删除成功!'); |
| | | this.search(); |
| | | this.refreshData(); |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | showAdd() { |
| | | // if (!this.editSetting.orgId) { |
| | | // this.$message.warning('请先选择左侧机构') |
| | | // } else { |
| | | if (this.p && this.p) { |
| | | this.editSetting.pid = this.p.id; |
| | | } |
| | |
| | | this.editSetting.info = null; |
| | | this.editSetting.title = '新增'; |
| | | this.editSetting.show = true; |
| | | // } |
| | | }, |
| | | showAudit(row) { |
| | | this.editSetting.id = row.id; |