| | |
| | | update1, |
| | | remove1, |
| | | } from "@/api/dispatch/dispatch"; |
| | | import { getDept } from "@/api/system/dept"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | // selection: true, |
| | | // column: column, |
| | | // }, |
| | | deptCategory: "", |
| | | deptId: "", |
| | | |
| | | loading1: true, //派遣记录 |
| | | selectionList1: [], |
| | |
| | | // this.obj0.name = " 未选择派遣单位"; |
| | | // } |
| | | }, |
| | | // onLoad(page, params = {}) { |
| | | // this.deptId = JSON.parse( |
| | | // window.localStorage.getItem("saber-userInfo") |
| | | // ).content.dept_id; |
| | | |
| | | // //获取当前用户部门信息,判断是否为公安,如果是公安,则只能查看公告信息 |
| | | // var that = this; |
| | | // getDept(this.deptId).then((res) => { |
| | | // var deptCategory = res.data.data.deptCategory; |
| | | // deptCategory == 1 |
| | | // ? (that.deptCategory = true) |
| | | // : (that.deptCategory = false); |
| | | |
| | | // if (that.deptCategory) { |
| | | // params["deptId"] = this.deptId; |
| | | // } |
| | | // let values = { |
| | | // ...params, |
| | | // }; |
| | | // }) |
| | | // } |
| | | }; |
| | | </script> |
| | | |