| | |
| | | adddata, |
| | | update, |
| | | remove, |
| | | getdata1, |
| | | adddata1, |
| | | update1, |
| | | remove1, |
| | | } from "@/api/dispatch/dispatch"; |
| | | import { mapGetters } from "vuex"; |
| | | import { mapState } from "vuex"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | data() { |
| | | var phones = (rule, value, callback) => { |
| | |
| | | label: "派遣单位类型", |
| | | prop: "district", |
| | | type: "select", |
| | | search: true, |
| | | search: false, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=dispatcherUnitType", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | if (this.data[k].num == -1) { |
| | | this.data[k].num = null; |
| | | } |
| | | if (this.data[k].district == -1) { |
| | | this.data[k].district = null; |
| | | } |
| | | } |
| | | window.localStorage.setItem("paqiandataS", JSON.stringify(this.data)); |
| | | this.loading = false; |
| | |
| | | }, |
| | | |
| | | handleTemplate() { |
| | | window.open(`/api/dispatcherUnit/export-template`); |
| | | window.open(`/api/dispatcherUnit/export-template?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` |
| | | ); |
| | | }, |
| | | handleImport() { |
| | | this.excelBox = true; |