| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | compileToFunctions |
| | | } from 'vue-template-compiler' |
| | | import ValueTable from '../tool/value-table.vue' |
| | | export default { |
| | | components: { |
| | |
| | | }) |
| | | }, |
| | | opeaAdd() { |
| | | console.log(this.addOb.fatherId,this.selectTree) |
| | | if (!this.addOb.fatherId || this.selectTree == '' || this.selectTree == '全部') { |
| | | this.$message.error('请选择一个组织') |
| | | return |
| | |
| | | }, |
| | | getNodeParent(val) { |
| | | if (val.parent != null) { |
| | | this.selectTree += ' - ' + val.label |
| | | this.selectTree += ' - ' + val.data.name |
| | | this.getNodeParent(val.parent) |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | nodeClick2(ob, node, el) { |
| | | this.getNodeParent(node) |
| | | this.getNodeParent0(node) |
| | | if (ob.id !== 'SC21') { |
| | | this.personLoad = true |
| | | this.$axios.post(this.$api.companies.selectSimpleList, { |
| | |
| | | }) |
| | | } |
| | | }, |
| | | getNodeParent(val){ |
| | | getNodeParent0(val){ |
| | | this.currentCompaniesList[val.level-1] = val.data.id |
| | | if(val.parent!=null){ |
| | | this.getNodeParent(val.parent) |
| | | this.getNodeParent0(val.parent) |
| | | } |
| | | }, |
| | | handleSelectionChange(val) { |