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 +