From 189c88aa920349718d65a5a83a6c172a42325475 Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Sat, 7 Oct 2023 14:03:21 +0800 Subject: [PATCH] fix: bug#18766 --- src/views/system/Dictionary/components/Right/Save/index.vue | 4 +++- src/views/system/Dictionary/components/Right/index.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/system/Dictionary/components/Right/Save/index.vue b/src/views/system/Dictionary/components/Right/Save/index.vue index a435c258..bce5b628 100644 --- a/src/views/system/Dictionary/components/Right/Save/index.vue +++ b/src/views/system/Dictionary/components/Right/Save/index.vue @@ -45,7 +45,8 @@ const form: any = ref({ name: '', value: '', text: '', - ordinal: 0 + ordinal: 0, + searchCode:'' }) const lastValue = ref() const loading = ref(false) @@ -113,6 +114,7 @@ const rules = { const submitData = () => { formRef.value.validate().then(async () => { loading.value = true + form.value.searchCode = form.value.name + ':' + form.value.value + ':' + form.value.text const res = await saveDicItem(form.value) if (res.status === 200) { onlyMessage('操作成功!') diff --git a/src/views/system/Dictionary/components/Right/index.vue b/src/views/system/Dictionary/components/Right/index.vue index f2f41042..6b3bc8e1 100644 --- a/src/views/system/Dictionary/components/Right/index.vue +++ b/src/views/system/Dictionary/components/Right/index.vue @@ -68,7 +68,7 @@ const columns = [ }, { title: '检索码', - dataIndex: '', + dataIndex: 'searchCode', hideInTable: true, search: { type: 'string'