|
|
@@ -15,10 +15,21 @@
|
|
|
:key="index"
|
|
|
:disable-transitions="true"
|
|
|
type="success" effect="light" size="small"
|
|
|
- class="status_tag">
|
|
|
+ class="status_tag wait">
|
|
|
{{ tag }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
+
|
|
|
+ <template v-if="item?.statusTag?.length > 0">
|
|
|
+ <el-tag v-for="(tag,index) in item.statusTag"
|
|
|
+ :key="index"
|
|
|
+ :disable-transitions="true"
|
|
|
+ type="success" effect="light" size="small"
|
|
|
+ :class="['status_tag',tag.className]">
|
|
|
+ {{ tag.name }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
<span v-if="item.taskType" class="task_type">{{item.taskType}}</span>
|
|
|
<span v-if="item.productType" class="product_type">{{item.productType}}</span>
|
|
|
</div>
|
|
|
@@ -47,6 +58,7 @@ interface AuditItm {
|
|
|
id:string | number,
|
|
|
headerTitleList:Array<string>,
|
|
|
headerTags:Array<string>,
|
|
|
+ statusTag:Array<{name:string,className:string}>, // 不同颜色的tag展示
|
|
|
taskType:string,
|
|
|
productType:string,
|
|
|
middleDesc:Array<string>,
|
|
|
@@ -97,10 +109,25 @@ const props = defineProps({
|
|
|
padding:0 8px;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
- background: rgba(46,100,250,0.1);
|
|
|
border-radius: 4px;
|
|
|
- color: #2E64FA;
|
|
|
+
|
|
|
+ &.success{
|
|
|
+ background: rgba(43, 198, 68,0.1);
|
|
|
+ color: #2BC644;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.reject{
|
|
|
+ background: rgba(245, 108, 108,0.1);
|
|
|
+ color: #F56C6C;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.wait{
|
|
|
+ background: rgba(46,100,250,0.1);
|
|
|
+ color: #2E64FA;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
.task_type{
|
|
|
font-size: 12px;
|
|
|
font-weight: 400;
|