| | |
| | | import { queryTreeListByDepart } from "@/api/Tree" |
| | | import { SYS_DEPART } from "@/store/mutation-types" |
| | | import { getAction } from '@/api/manage' |
| | | |
| | | const Depart = { |
| | | const Departs = { |
| | | state: { |
| | | |
| | | token: '', |
| | | //部门树 |
| | | DepartTree:[] |
| | |
| | | QueryDepart({ commit }) { |
| | | return new Promise((resolve, reject) => { |
| | | getAction("/mdc/mdcEquipment/queryTreeListByDepart").then(response => { |
| | | console.log("----部门树--------",response); |
| | | if(response.success){ |
| | | const result = response.result |
| | | Vue.ls.set(SYS_DEPART, result) |
| | |
| | | } |
| | | } |
| | | |
| | | export default Depart |
| | | export default Departs |