From aec5777ceafe4255a56c17fce403fef227ca0e6f Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 10 Mar 2023 13:32:17 +0800 Subject: [PATCH] 2023-3-10 --- src/views/worker/worker.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/views/worker/worker.vue b/src/views/worker/worker.vue index cf3da89..02c8ede 100644 --- a/src/views/worker/worker.vue +++ b/src/views/worker/worker.vue @@ -40,6 +40,7 @@ import {getList as getProductType} from '@/api/productType' import {getList, destroy} from '@/api/worker' import {getparameter} from '@/api/system/dictionary' +import { getAuthAreas,getAuthTypes } from "@/utils/auth" import addWorker from "@/views/worker/component/addWorker"; @@ -155,15 +156,10 @@ export default { }, methods: { async getServeArea() { - const res = await getparameter({number: 'serveArea'}) - this.serveArea = res.detail + this.serveArea = getAuthAreas(this) }, async getProductType() { - const res = await getProductType({ - page_size: 9999, - page: 1 - }) - this.productType = res.data + this.productType = getAuthTypes(this) }, async getWorkers() {