Эх сурвалжийг харах

开项管理 - “问题处理状态”前端样式优化

wangggziwen 8 сар өмнө
parent
commit
0913cd045d

+ 16 - 2
ruoyi-ui/src/views/rc/openitem/index.vue

@@ -196,9 +196,23 @@
         </template>
       </el-table-column>
       <el-table-column label="备注" align="center" prop="remarks" width="200"/>
-      <el-table-column label="问题处理状态" align="center" prop="status" width="100" fixed="right">
+      <el-table-column label="问题处理状态" align="center" prop="status" width="120" fixed="right">
         <template slot-scope="scope">
-          <dict-tag :options="dict.type.t_open_item_status" :value="scope.row.status"/>
+          <span v-if="scope.row.status == 1">
+            <svg-icon icon-class="roundGrey" style="font-size: 10px; margin: 0px 4px;"></svg-icon>
+          </span>
+          <span v-if="scope.row.status == 2">
+            <svg-icon icon-class="roundYellow" style="font-size: 10px; margin: 0px 4px;"></svg-icon>
+          </span>
+          <span v-if="scope.row.status == 3">
+            <svg-icon icon-class="roundRed" style="font-size: 10px; margin: 0px 4px;"></svg-icon>
+          </span>
+          <span v-if="scope.row.status == 4">
+            <svg-icon icon-class="roundGreen" style="font-size: 10px; margin: 0px 4px;"></svg-icon>
+          </span>
+          <span>
+            <dict-tag :options="dict.type.t_open_item_status" :value="scope.row.status" style="display: inline;"/>
+          </span>
         </template>
       </el-table-column>
       <el-table-column label="审计文档" align="center" width="100" fixed="right">