fix 文件为空时的颜色调整

This commit is contained in:
赵霄
2024-01-16 16:33:39 +08:00
parent f64de19ed7
commit bfaf5a6a2f
4 changed files with 14 additions and 7 deletions
+7 -2
View File
@@ -146,7 +146,8 @@
line-height: 100%; line-height: 100%;
vertical-align: middle; vertical-align: middle;
} }
span::before{
span::before {
content: '*'; content: '*';
display: inline-block; display: inline-block;
height: 100%; height: 100%;
@@ -159,7 +160,11 @@
} }
/deep/ .van-field { /deep/ .van-field {
.van-field__control[readonly]{ .van-field__control[readonly] {
color: #969799; color: #969799;
} }
} }
.readonly-file-display-empty {
color: rgba(150, 151, 153, 0.6);
}
@@ -42,9 +42,11 @@
:border="false"> :border="false">
<template slot="input"> <template slot="input">
<template v-if="standardList && standardList.length > 0"> <template v-if="standardList && standardList.length > 0">
<div v-for="item in standardList" :key="item.id">{{ item.standardNumber }} {{ item.standardName }}</div> <div v-for="item in standardList" :key="item.id" class="readonly-file-display-empty">{{ item.standardNumber }}
{{ item.standardName }}
</div>
</template> </template>
<div v-else>{{ global.emptyLine }}</div> <div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template> </template>
</van-field> </van-field>
<!--流程说明--> <!--流程说明-->
@@ -70,7 +70,7 @@
:border="false"> :border="false">
<template v-slot:input> <template v-slot:input>
<file-display v-if="basicInfo.standardTextFileId" :file-ids="basicInfo.standardTextFileId" /> <file-display v-if="basicInfo.standardTextFileId" :file-ids="basicInfo.standardTextFileId" />
<div v-else>{{ global.emptyLine }}</div> <div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template> </template>
</van-field> </van-field>
<!--相关文件--> <!--相关文件-->
@@ -84,7 +84,7 @@
:border="false"> :border="false">
<template v-slot:input> <template v-slot:input>
<file-display v-if="basicInfo.relatedFile" :file-ids="basicInfo.relatedFile" /> <file-display v-if="basicInfo.relatedFile" :file-ids="basicInfo.relatedFile" />
<div v-else>{{ global.emptyLine }}</div> <div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template> </template>
</van-field> </van-field>
<!--征求意见结束日期--> <!--征求意见结束日期-->
@@ -75,7 +75,7 @@
:border="false"> :border="false">
<template v-slot:input v-if="fileField.includes(formItem.dbFieldName)"> <template v-slot:input v-if="fileField.includes(formItem.dbFieldName)">
<file-display :file-ids="formInline[formItem.dbFieldName]" v-if="!!formInline[formItem.dbFieldName]" /> <file-display :file-ids="formInline[formItem.dbFieldName]" v-if="!!formInline[formItem.dbFieldName]" />
<div v-else>{{ global.emptyLine }}</div> <div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template> </template>
</van-field> </van-field>
</van-form> </van-form>