Browse Source

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

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

6
src/components/SearchHigh/src/SearchHigh.vue

@ -153,7 +153,7 @@ const moreListOptions = ref({
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
@ -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
}
})

Loading…
Cancel
Save