|
@@ -129,6 +129,8 @@ import { addMessage, updateMessage } from "@/api/system/message";
|
|
|
import { useCommonStoreHook } from "@/store";
|
|
|
import { getUserList } from "@/api/system/user";
|
|
|
import { queryDictDataByType } from "@/api/system/dict";
|
|
|
+import { useDictionaryStore } from "@/store";
|
|
|
+const { dicts } = useDictionaryStore();
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
const userFormRef = ref(ElForm); // 用户表单
|
|
|
const message = ref({
|
|
@@ -279,10 +281,9 @@ option.value = Object.assign(option.value, {
|
|
|
overHidden: true,
|
|
|
type: "select",
|
|
|
width: 150,
|
|
|
- dicData: [
|
|
|
- { label: "系统消息", value: "0" },
|
|
|
- { label: "用户消息", value: "1" },
|
|
|
- ],
|
|
|
+ search: true,
|
|
|
+ dicData: dicts.system_message_type,
|
|
|
+ props: { label: "dictLabel", value: "dictValue" },
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -291,13 +292,6 @@ option.value = Object.assign(option.value, {
|
|
|
},
|
|
|
],
|
|
|
html: true,
|
|
|
- formatter: (val) => {
|
|
|
- if (val.type === "0") {
|
|
|
- return '<b class="el-tag el-tag--danger el-tag--light">系统消息</b>';
|
|
|
- } else if (val.type === "1") {
|
|
|
- return '<b class="el-tag el-tag--success el-tag--light">用户消息</b>';
|
|
|
- }
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
label: "状态",
|