| | |
| | | remove, |
| | | } from "@/api/securityUnit/securityUnit"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getJurisdictionTree } from "@/api/jurisdiction/jurisdiction"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | labelWidth: 145, |
| | | type: "tree", |
| | | dicUrl: "/api/jurisdiction/lazy-trees", |
| | | // dicData:[], |
| | | // nodeKey: "id", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | |
| | | column.editDisabled = false; |
| | | column.addDisabled = false; |
| | | } |
| | | // this.getJurisdictionTree(); |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | //获取辖区数据 |
| | | getJurisdictionTree() { |
| | | getJurisdictionTree().then((res) => { |
| | | const column = this.findObject(this.option.column, "jurisdiction"); |
| | | column.dicData = res.data.data; |
| | | column.defaultExpandedKeys = []; |
| | | res.data.data.forEach((item) => { |
| | | column.defaultExpandedKeys.push(item.id); |
| | | }); |
| | | }); |
| | | }, |
| | | rowClickSelf(val) { |
| | | this.$router.push({ |
| | | path: "/securityGuardOnce/index", |