refactor(views/components): 优化首页通知公告展示和项目附件搜索功能
- 首页通知公告:调整公告列表的序号显示逻辑 - 项目附件:改进附件搜索功能,支持按全部文件搜索 - 搜索组件:更新搜索界面文本,根据搜索范围动态显示标签或项目阶段
This commit is contained in:
@@ -241,7 +241,11 @@ const handleTabClick = (item) => {
|
||||
isEdit.value = false
|
||||
}
|
||||
if (item.props.name != 'plus') {
|
||||
changeFileList(getTagName(item.props.name))
|
||||
if(item.props.name == 'all'){
|
||||
changeFileList('all')
|
||||
}else{
|
||||
changeFileList(getTagName(item.props.name))
|
||||
}
|
||||
// if (item.props.name == 'all') {
|
||||
// otherAttachmentList.value = allFiles.value
|
||||
// } else {
|
||||
@@ -300,12 +304,21 @@ const clickToPreview = (row) => {
|
||||
})
|
||||
}
|
||||
const changeFileList=(tag)=>{
|
||||
showAttachmentTable.value = false
|
||||
let params = {
|
||||
targetId: route.query.projectId,
|
||||
targetState: "30",
|
||||
tag:tag
|
||||
let params = {}
|
||||
if(tag=='all'){
|
||||
params = {
|
||||
targetId: route.query.projectId,
|
||||
targetState: "30",
|
||||
}
|
||||
}else{
|
||||
params = {
|
||||
targetId: route.query.projectId,
|
||||
targetState: "30",
|
||||
tag:tag
|
||||
}
|
||||
}
|
||||
showAttachmentTable.value = false
|
||||
|
||||
searchImplementationFileList(params).then(res => {
|
||||
if (res.code === 1000) {
|
||||
otherAttachmentList.value = res.data.fileList
|
||||
|
||||
Reference in New Issue
Block a user