| | |
| | | v-loading="loading" |
| | | :data="projectList" |
| | | ref="tableRef" |
| | | height="580" |
| | | border |
| | | > |
| | | <el-table-column |
| | |
| | | multiple: true, |
| | | showSearch: true, |
| | | total: 0, |
| | | treeId: ["532"], |
| | | treeId: [], |
| | | ListId: [], |
| | | noclick: false, |
| | | consumableList: [], |
| | |
| | | this.debounceFilter(val); |
| | | }, |
| | | treeId(newVal) { |
| | | console.log(newVal,8989) |
| | | if (newVal && newVal.length > 0) { |
| | | this.$nextTick(() => { |
| | | const lastId = newVal[newVal.length - 1] || "532"; |
| | |
| | | created() { |
| | | this.getConsumables(); |
| | | this.getDeptList(); |
| | | this.getDeptTree().then(() => { |
| | | this.precomputePinyin(); |
| | | }); |
| | | // this.getDeptTree().then(() => { |
| | | // this.precomputePinyin(); |
| | | // }); |
| | | }, |
| | | mounted() { |
| | | this.getDeptTree().then(() => { |
| | |
| | | traverse(this.deptOptions); |
| | | }, |
| | | filterNode(value, data) { |
| | | console.log(value, data, 2233); |
| | | if (!value) return true; |
| | | const cached = this.pinyinCache.get(data.id); |
| | | if (!cached) return false; |
| | |
| | | getDeptTree() { |
| | | return deptTree111().then((response) => { |
| | | this.deptOptions = response.data; |
| | | this.treeId.push(this.treeDate.id); |
| | | this.treeId = [] |
| | | if(this.treeDate.id){ |
| | | this.treeId.push( this.treeDate.id) |
| | | }else{ |
| | | this.treeId.push("532") |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | handleNodeClick(date) { |
| | | this.treeDate = date; |
| | | console.log(this.treeDate); |
| | | this.xiugaiList ={} |
| | | this.xiugais = date.qf === "0"; |
| | | let proId = date.id; |
| | | getInfoByProId(proId).then((response) => { |
| | |
| | | } |
| | | }, |
| | | handleUpdate1() { |
| | | this.form={} |
| | | this.form = this.xiugaiList; |
| | | this.form.proStatus = this.form.proStatus.toString(); |
| | | this.proParent = true; |
| | |
| | | this.precomputePinyin(); |
| | | }); |
| | | } |
| | | console.log(this.treeId) |
| | | }, |
| | | submit() { |
| | | this.ChangeList.forEach((item) => { |