新增global,缓存职位信息

This commit is contained in:
huangdeliang
2021-02-23 15:09:17 +08:00
parent 6b50ddcfdd
commit df52ea8f2d
20 changed files with 2333 additions and 1812 deletions

View File

@ -1,4 +1,4 @@
import { getOptions } from "@/api/custom/order";
import { getOptions } from "@/api/custom/global";
const oriState = {
nutritionistIdOptions: [],
@ -8,7 +8,7 @@ const oriState = {
plannerIdOptions: [],
plannerAssisIdOptions: [],
operatorIdOptions: [],
operatorAssisIdOptions: [],
operatorAssisIdOptions: []
};
const mutations = {
@ -28,9 +28,7 @@ const actions = {
const { data: optionsData } = await getOptions();
const options = optionsData.reduce((opts, cur) => {
if (!opts[cur.postCode]) {
opts[cur.postCode] = [
// { dictValue: null, dictLabel: "全部", remark: null }
];
opts[cur.postCode] = [{ dictValue: 0, dictLabel: "无", remark: null }];
}
opts[cur.postCode].push({
dictValue: cur.userId,