feat : 修复项目归档的附件的全部附件加个类型筛选

This commit is contained in:
2024-10-30 21:13:16 +08:00
parent f3fbb8d76b
commit 960d294870
2 changed files with 22 additions and 4 deletions

View File

@@ -4,6 +4,16 @@
<el-form-item label="名称" prop="fileName">
<el-input v-model="attachment.fileName" placeholder="请输入文件名查询" clearable filterable style="width: 300px"/>
</el-form-item>
<el-form-item label="类型" prop="targetState" v-if="allFile">
<el-select v-model="attachment.targetState" placeholder="请选择类型" clearable filterable style="width: 300px">
<el-option
v-for="item in cacheStore.getDict('archive_file_type')"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="标签" prop="tag" v-if="type==='30'">
<el-select v-model="attachment.tag" placeholder="请选择标签" clearable filterable style="width: 300px">
<el-option
@@ -39,8 +49,10 @@ import {ElNotification} from "element-plus";
import {getTags} from "@/api/project-manage";
import {computed, ref} from "vue";
import {useCacheStore} from '@/stores/cache.js'
const route = useRoute()
const router = useRouter()
const cacheStore = useCacheStore()
const attachment = reactive({})
const emit = defineEmits(['search','update:modelValue'])
const props = defineProps({
@@ -154,11 +166,11 @@ const getTagsOption = () => {
})
}
const handleSearch = () => {
// console.info("🚀 ~method:'attachment' -----", attachment)
emit('search', attachment)
}
const handleReset=()=>{
attachment.fileName=''
attachment.targetState=''
attachment.tag=null
emit('search', {})
}