|
|
@ -12,7 +12,7 @@ import {
|
|
|
|
unref,
|
|
|
|
unref,
|
|
|
|
watch,
|
|
|
|
watch,
|
|
|
|
} from 'vue'
|
|
|
|
} from 'vue'
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
import CustomFieldModalVue from '../modal/CustomFieldModal.vue'
|
|
|
|
import CustomFieldModalVue from '../modal/CustomFieldModal.vue'
|
|
|
|
import WorkSheetList from './WorkSheetList.vue'
|
|
|
|
import WorkSheetList from './WorkSheetList.vue'
|
|
|
|
import { getAllfieldList, getfieldList } from '@/api/home/filter'
|
|
|
|
import { getAllfieldList, getfieldList } from '@/api/home/filter'
|
|
|
@ -24,6 +24,7 @@ import { getViewportOffset } from '@/utils/domUtils'
|
|
|
|
defineOptions({ name: 'AsideContent' })
|
|
|
|
defineOptions({ name: 'AsideContent' })
|
|
|
|
const emit = defineEmits(['ApprovalOver'])
|
|
|
|
const emit = defineEmits(['ApprovalOver'])
|
|
|
|
const route = useRoute()
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
const searchContent = route.query.searchContent
|
|
|
|
const searchContent = route.query.searchContent
|
|
|
|
console.log(searchContent)
|
|
|
|
console.log(searchContent)
|
|
|
|
const collapse = ref(false)
|
|
|
|
const collapse = ref(false)
|
|
|
@ -106,6 +107,7 @@ async function getshowFieldList() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
showFieldList.value.push(item)
|
|
|
|
showFieldList.value.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return v
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
@ -120,6 +122,7 @@ async function getshowFieldList() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
showFieldList.value.push(item)
|
|
|
|
showFieldList.value.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return v
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -160,6 +163,9 @@ function setShowSearch(value: boolean) {
|
|
|
|
if (value === false) {
|
|
|
|
if (value === false) {
|
|
|
|
(packageListRef.value as any).search('')
|
|
|
|
(packageListRef.value as any).search('')
|
|
|
|
searchKeyword.value = ''
|
|
|
|
searchKeyword.value = ''
|
|
|
|
|
|
|
|
if (!searchContent)
|
|
|
|
|
|
|
|
return router.replace(route.path)
|
|
|
|
|
|
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
nextTick(() => {
|
|
|
|
searchInputRef.value?.focus()
|
|
|
|
searchInputRef.value?.focus()
|
|
|
|
})
|
|
|
|
})
|
|
|
|