|
@@ -13,7 +13,12 @@ import {
|
|
|
deleteSystemOperlog,
|
|
deleteSystemOperlog,
|
|
|
getSystemOperlogList
|
|
getSystemOperlogList
|
|
|
} from "@/api/system/operlog";
|
|
} from "@/api/system/operlog";
|
|
|
-import { useDict, useDictValue, useDictClass } from "@/utils/dict";
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ useDict,
|
|
|
|
|
+ useDictValue,
|
|
|
|
|
+ useDictClass,
|
|
|
|
|
+ useDictClassAsync
|
|
|
|
|
+} from "@/utils/dict";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { cloneDeep } from "lodash";
|
|
import { cloneDeep } from "lodash";
|
|
|
|
|
|
|
@@ -68,10 +73,10 @@ const tableConfig: PlusColumn[] = [
|
|
|
label: "操作类型",
|
|
label: "操作类型",
|
|
|
prop: "businessType",
|
|
prop: "businessType",
|
|
|
valueType: "tag",
|
|
valueType: "tag",
|
|
|
- options: computed(() => sys_oper_type.value),
|
|
|
|
|
- fieldProps: value => {
|
|
|
|
|
|
|
+ // options: computed(() => sys_oper_type.value),
|
|
|
|
|
+ fieldProps: async (value: string) => {
|
|
|
return {
|
|
return {
|
|
|
- type: useDictClass("sys_oper_type", value + "")
|
|
|
|
|
|
|
+ type: await useDictClassAsync("sys_oper_type", value)
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
formatter: value => useDictValue("sys_oper_type", value),
|
|
formatter: value => useDictValue("sys_oper_type", value),
|
|
@@ -79,7 +84,7 @@ const tableConfig: PlusColumn[] = [
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "操作类型",
|
|
label: "操作类型",
|
|
|
- prop: "bussinessType",
|
|
|
|
|
|
|
+ prop: "businessType",
|
|
|
valueType: "select",
|
|
valueType: "select",
|
|
|
options: computed(() => sys_oper_type.value),
|
|
options: computed(() => sys_oper_type.value),
|
|
|
hideInTable: true
|
|
hideInTable: true
|