|
@@ -39,7 +39,7 @@
|
|
|
<template slot-scope="scope" style="text-align: center;">
|
|
|
<!-- 缺陷等级 -->
|
|
|
<div v-if="columnItem.type === 'level'">
|
|
|
- <div class="div_priority" :style="{background: priorityColors[scope.row[columnItem.key][1]] || '#BDBDBD'}">
|
|
|
+ <div class="priorityTag" :style="{background: priorityColors[scope.row[columnItem.key][1]] || '#BDBDBD'}">
|
|
|
{{ scope.row[columnItem.key] }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -148,4 +148,12 @@ export default {
|
|
|
background: rgba(121, 132, 150, 0.8);
|
|
|
color: #FFF;
|
|
|
}
|
|
|
+.priorityTag {
|
|
|
+ display: inline-block;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 2px 10px;
|
|
|
+}
|
|
|
</style>
|