chore: 🔨 移除注释
This commit is contained in:
@@ -55,7 +55,6 @@ const getLabelAndTagByValue = async (dictCode: string, value: any) => {
|
|||||||
|
|
||||||
// 等待请求完成并获取数据
|
// 等待请求完成并获取数据
|
||||||
dictData = await requestCache.get(dictCode);
|
dictData = await requestCache.get(dictCode);
|
||||||
console.log(`Received data for ${dictCode}:`, dictData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查找对应的字典项
|
// 查找对应的字典项
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
<!-- 字典数据 -->
|
<!-- 字典数据 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-alert
|
|
||||||
:title="`字典:${dictName}【${dictCode}】`"
|
|
||||||
type="success"
|
|
||||||
:closable="false"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="search-container mt-5">
|
<div class="search-container mt-5">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
@@ -187,7 +181,6 @@ import DictDataAPI, {
|
|||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const dictCode = ref(route.query.dictCode as string);
|
const dictCode = ref(route.query.dictCode as string);
|
||||||
const dictName = ref(route.query.dictName as string);
|
|
||||||
|
|
||||||
const queryFormRef = ref(ElForm);
|
const queryFormRef = ref(ElForm);
|
||||||
const dataFormRef = ref(ElForm);
|
const dataFormRef = ref(ElForm);
|
||||||
@@ -213,12 +206,10 @@ const formData = reactive<DictDataForm>({});
|
|||||||
|
|
||||||
// 监听路由参数变化,更新字典数据
|
// 监听路由参数变化,更新字典数据
|
||||||
watch(
|
watch(
|
||||||
() => [route.query.dictCode, route.query.dictName],
|
() => [route.query.dictCode],
|
||||||
([newDictCode, newDictName]) => {
|
([newDictCode]) => {
|
||||||
queryParams.dictCode = newDictCode as string;
|
queryParams.dictCode = newDictCode as string;
|
||||||
dictCode.value = newDictCode as string;
|
dictCode.value = newDictCode as string;
|
||||||
dictName.value = newDictName as string;
|
|
||||||
|
|
||||||
handleQuery();
|
handleQuery();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -316,9 +316,14 @@ function handleDelete(id?: number) {
|
|||||||
// 打开字典数据
|
// 打开字典数据
|
||||||
function handleOpenDictData(row: DictPageVO) {
|
function handleOpenDictData(row: DictPageVO) {
|
||||||
router.push({
|
router.push({
|
||||||
name: "DictData",
|
path: "/system/dict-data",
|
||||||
query: { dictCode: row.dictCode, dictName: row.name },
|
query: { dictCode: row.dictCode, title: "【" + row.name + "】字典数据" },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* router.push({
|
||||||
|
name: "DictData",
|
||||||
|
params: { dictCode: row.dictCode, title: "【" + row.name + "】字典数据" },
|
||||||
|
}); */
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user