master
xy 3 years ago
parent f1c9b20f10
commit aec5777cea

@ -40,6 +40,7 @@
import {getList as getProductType} from '@/api/productType' import {getList as getProductType} from '@/api/productType'
import {getList, destroy} from '@/api/worker' import {getList, destroy} from '@/api/worker'
import {getparameter} from '@/api/system/dictionary' import {getparameter} from '@/api/system/dictionary'
import { getAuthAreas,getAuthTypes } from "@/utils/auth"
import addWorker from "@/views/worker/component/addWorker"; import addWorker from "@/views/worker/component/addWorker";
@ -155,15 +156,10 @@ export default {
}, },
methods: { methods: {
async getServeArea() { async getServeArea() {
const res = await getparameter({number: 'serveArea'}) this.serveArea = getAuthAreas(this)
this.serveArea = res.detail
}, },
async getProductType() { async getProductType() {
const res = await getProductType({ this.productType = getAuthTypes(this)
page_size: 9999,
page: 1
})
this.productType = res.data
}, },
async getWorkers() { async getWorkers() {

Loading…
Cancel
Save