linwenxin 1 anno fa
parent
commit
bf3259645c
1 ha cambiato i file con 18 aggiunte e 6 eliminazioni
  1. 18 6
      src/views/workOrder/workOrderPool/index.vue

+ 18 - 6
src/views/workOrder/workOrderPool/index.vue

@@ -43,6 +43,8 @@ import Detail from './detail'
 import Reassignment from "./components/reassignment/index.vue"
 import Reschedule from "./components/reschedule/index.vue"
 import { commonTemplateDownload } from '@/api/common.js'
+import ywgdjs from "@/assets/ywgdjs.png"
+import yjs from "@/assets/yjs.png"
 export default {
   components: {
     TemplatePage,
@@ -306,13 +308,23 @@ export default {
       if (item.jname === 'orderFlags') {
         defaultData.render = (h, { row, index, column }) => {
           return (
-            <div style="padding:0 6px;cursor: pointer;">
+            <div style="padding:0 6px;display:flex;align-items:center;">
               {(row[column.columnAttributes.prop] || []).map(item => {
-                return (
-                  <div style="display: inline-block;border:1px solid #409EFF; color:#409EFF;padding:0 2px;border-radius: 4px;margin:2px 2px 0 0;">
-                    {item.tagName}
-                  </div>
-                )
+                if (item.tagName == "已完工") {
+                  return (
+                    <img src={ywgdjs} style="width:22px;height:22px;" />
+                  )
+                } else if (item.tagName == "已结算") {
+                  return (
+                    <img src={yjs} style="width:22px;height:22px;" />
+                  )
+                } else {
+                  return (
+                    <div style="display: inline-block;border:1px solid #409EFF; color:#409EFF;padding:0 2px;border-radius: 4px;margin:2px 2px 0 0;">
+                      {item.tagName}
+                    </div>
+                  )
+                }
               })}
             </div>
           )