Browse Source

HL-5424 更新人和操作人筛选调整为下拉框

hella_online_20240819
TengXF 3 months ago
parent
commit
647f857a5d
  1. 20
      src/components/SearchHigh/src/SearchHigh.vue

20
src/components/SearchHigh/src/SearchHigh.vue

@ -150,10 +150,10 @@ const moreListOptions = ref({
// //
const getInputType = (val) => { const getInputType = (val) => {
const type = searchOption_high.value.find(item => (item.field == val)) const type = searchOption_high.value.find(item => (item.field == val))
let data = 'input' let data = 'input'
if (type?.dictType || type?.field == 'creator') { if (type?.dictType || type?.field == 'creator'||type?.field == 'updater' ||type?.field == 'worker') {
data = 'select' data = 'select'
} else if (type?.form?.component == 'InputNumber') { } else if (type?.form?.component == 'InputNumber') {
data = 'inputNumber' data = 'inputNumber'
@ -170,7 +170,7 @@ const moreListOptions = ref({
const getFilterable = (val) => { const getFilterable = (val) => {
const type = searchOption_high.value.find(item => (item.field == 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 return false
}else{ }else{
return true return true
@ -182,7 +182,7 @@ const getFilterable = (val) => {
let precision = 6 let precision = 6
if (type?.form?.component == 'InputNumber') { if (type?.form?.component == 'InputNumber') {
precision = type?.form?.componentProps?.precision || type?.form?.componentProps?.precision == 0 ? type.form.componentProps.precision : 6 precision = type?.form?.componentProps?.precision || type?.form?.componentProps?.precision == 0 ? type.form.componentProps.precision : 6
} }
return precision return precision
} }
// ==,!=,>,<,>=,<=,like,in,notIn,betweeen,isNull,isNotNull // ==,!=,>,<,>=,<=,like,in,notIn,betweeen,isNull,isNotNull
@ -204,7 +204,7 @@ const moreListDelete = (val,item,$event) => {
} else { } else {
message.confirm(t('ts.您确定删除吗, 是否继续?')).then(() => { message.confirm(t('ts.您确定删除吗, 是否继续?')).then(() => {
moreListData.value.filters.splice(val, 1) moreListData.value.filters.splice(val, 1)
}) })
} }
} }
@ -243,7 +243,7 @@ const actionSelect = (val)=>{
val.value1 =[] val.value1 =[]
val.value = '' val.value = ''
}) })
} }
// //
@ -265,11 +265,11 @@ const buttonBaseClick = (val) => {
value:item.value, value:item.value,
} }
} }
data.push(obj) data.push(obj)
}) })
if (props.masterId){ if (props.masterId){
data.push({ data.push({
column: 'masterId', column: 'masterId',
action: "==", action: "==",
value: props.masterId, value: props.masterId,
@ -298,7 +298,7 @@ const getDictOptions = ()=>{
// allDictOptions.value[item.field] = getStrDictOptions(item.dictType) // allDictOptions.value[item.field] = getStrDictOptions(item.dictType)
if (item.dictType) { if (item.dictType) {
allDictOptions.value[item.field] = getStrDictOptions(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 allDictOptions.value[item.field] = userListAll.value
} }
}) })
@ -387,4 +387,4 @@ defineExpose({
} }
} }
// } // }
</style> </style>

Loading…
Cancel
Save