fix(components): 优化多个组件的显示逻辑
- 在 ApprovalDetail组件中,改进了多个字段的显示逻辑,增加了对 0值的处理 - 在 AttachmentUpload 组件中,调整了必填项的显示逻辑 - 在 ProjectApply 组件中,修改了前置流程字段的显示条件 - 在 upload 组件中,优化了文件列表的处理逻辑
This commit is contained in:
@@ -458,7 +458,6 @@ const getOldFileList = (tag,flag) => {
|
||||
fileList.value.push(item)
|
||||
})
|
||||
}else{
|
||||
console.log("🚀 ~ file:'res.data.fileList ",res.data.fileList )
|
||||
res.data.fileList?.forEach(item=>{
|
||||
item.oldType=true
|
||||
if(getTagName(activeName.value)==item.tag){
|
||||
@@ -517,6 +516,7 @@ const tabRemove = async (val) => {
|
||||
}
|
||||
|
||||
const handleTabClick = (item) => {
|
||||
activeName.value = item.props.name
|
||||
const defaultArray=tagsOption.value.filter(item1=>item1.tagId==item.props.name)
|
||||
if(defaultArray&&defaultArray.length>0){
|
||||
isDefault.value=defaultArray[0].isDefault==1
|
||||
|
||||
Reference in New Issue
Block a user