From 647f857a5de2e534890ddb174cf2c5f3f38d0cee Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Mon, 19 Aug 2024 10:12:13 +0800 Subject: [PATCH] =?UTF-8?q?HL-5424=20=E6=9B=B4=E6=96=B0=E4=BA=BA=E5=92=8C?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=BA=BA=E7=AD=9B=E9=80=89=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=BA=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchHigh/src/SearchHigh.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue index 02dc5690c..728fbd500 100644 --- a/src/components/SearchHigh/src/SearchHigh.vue +++ b/src/components/SearchHigh/src/SearchHigh.vue @@ -150,10 +150,10 @@ const moreListOptions = ref({ // 判断输入框类型 const getInputType = (val) => { - + const type = searchOption_high.value.find(item => (item.field == val)) let data = 'input' - if (type?.dictType || type?.field == 'creator') { + if (type?.dictType || type?.field == 'creator'||type?.field == 'updater' ||type?.field == 'worker') { data = 'select' } else if (type?.form?.component == 'InputNumber') { data = 'inputNumber' @@ -170,7 +170,7 @@ const moreListOptions = ref({ const getFilterable = (val) => { const type = searchOption_high.value.find(item => (item.field == val)) // 下拉列表过长,去掉筛选功能 - if (type?.field == 'creator') { + if (type?.field == 'creator' || type?.field == 'updater' || type?.field == 'worker') { return false }else{ return true @@ -182,7 +182,7 @@ const getFilterable = (val) => { let precision = 6 if (type?.form?.component == 'InputNumber') { precision = type?.form?.componentProps?.precision || type?.form?.componentProps?.precision == 0 ? type.form.componentProps.precision : 6 - } + } return precision } // 根据数据内容约束条件选项 ==,!=,>,<,>=,<=,like,in,notIn,betweeen,isNull,isNotNull @@ -204,7 +204,7 @@ const moreListDelete = (val,item,$event) => { } else { message.confirm(t('ts.您确定删除吗, 是否继续?')).then(() => { moreListData.value.filters.splice(val, 1) - }) + }) } } @@ -243,7 +243,7 @@ const actionSelect = (val)=>{ val.value1 =[] val.value = '' }) - + } // 查询 重置按钮事件 @@ -265,11 +265,11 @@ const buttonBaseClick = (val) => { value:item.value, } } - + data.push(obj) }) if (props.masterId){ - data.push({ + data.push({ column: 'masterId', action: "==", value: props.masterId, @@ -298,7 +298,7 @@ const getDictOptions = ()=>{ // allDictOptions.value[item.field] = getStrDictOptions(item.dictType) if (item.dictType) { allDictOptions.value[item.field] = getStrDictOptions(item.dictType) - } else if(item.field == 'creator'){ + } else if(item.field == 'creator'||item.field == 'updater' ||item.field == 'worker'){ allDictOptions.value[item.field] = userListAll.value } }) @@ -387,4 +387,4 @@ defineExpose({ } } // } - \ No newline at end of file +