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'