This commit is contained in:
2023-05-31 21:22:52 +08:00
parent 54f3b261f7
commit 719669c666
3 changed files with 17 additions and 14 deletions

View File

@ -116,6 +116,20 @@ export const dynamicRoutes = [
},
],
},
{
path: '/system/dict-data',
component: Layout,
hidden: true,
permissions: ['system:dict:list'],
children: [
{
path: 'index/:dictId(\\d+)',
component: () => import('@/views/system/dict/data'),
name: 'Data',
meta: { title: '字典数据', activeMenu: '/system/dict' }
}
]
},
];
const router = createRouter({

View File

@ -1,16 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
<el-form-item label="字典名称" prop="dictType">
<el-select v-model="queryParams.dictType" style="width: 200px">
<el-option
v-for="item in typeOptions"
:key="item.dictId"
:label="item.dictName"
:value="item.dictType"
/>
</el-select>
</el-form-item>
<el-form-item label="字典标签" prop="dictLabel">
<el-input
v-model="queryParams.dictLabel"
@ -179,9 +169,9 @@
import useDictStore from '@/store/modules/dict'
import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type";
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
import { sys_normal_disable } from "@/constant/dict";
const { proxy } = getCurrentInstance();
const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
const dataList = ref([]);
const open = ref(false);
@ -261,7 +251,7 @@ function reset() {
cssClass: undefined,
listClass: "default",
dictSort: 0,
status: "0",
status: "1",
remark: undefined
};
proxy.resetForm("dataRef");
@ -279,7 +269,6 @@ function handleClose() {
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
queryParams.value.dictType = defaultDictType;
handleQuery();
}
/** 新增按钮操作 */

View File

@ -217,7 +217,7 @@ function reset() {
dictId: undefined,
dictName: undefined,
dictType: undefined,
status: "0",
status: "1",
remark: undefined
};
proxy.resetForm("dictRef");