fix: bug#18766

This commit is contained in:
leiqiaochu 2023-10-07 14:03:21 +08:00
parent 06f128bd0b
commit 189c88aa92
2 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,8 @@ const form: any = ref({
name: '', name: '',
value: '', value: '',
text: '', text: '',
ordinal: 0 ordinal: 0,
searchCode:''
}) })
const lastValue = ref() const lastValue = ref()
const loading = ref(false) const loading = ref(false)
@ -113,6 +114,7 @@ const rules = {
const submitData = () => { const submitData = () => {
formRef.value.validate().then(async () => { formRef.value.validate().then(async () => {
loading.value = true loading.value = true
form.value.searchCode = form.value.name + ':' + form.value.value + ':' + form.value.text
const res = await saveDicItem(form.value) const res = await saveDicItem(form.value)
if (res.status === 200) { if (res.status === 200) {
onlyMessage('操作成功!') onlyMessage('操作成功!')

View File

@ -68,7 +68,7 @@ const columns = [
}, },
{ {
title: '检索码', title: '检索码',
dataIndex: '', dataIndex: 'searchCode',
hideInTable: true, hideInTable: true,
search: { search: {
type: 'string' type: 'string'