linwenxin 4 miesięcy temu
rodzic
commit
28e06c2147
1 zmienionych plików z 23 dodań i 0 usunięć
  1. 23 0
      src/mixin/orderListColumn.js

+ 23 - 0
src/mixin/orderListColumn.js

@@ -55,6 +55,29 @@ export default {
           )
         }
       }
+      if (item.jname === 'id' && this.$route.name === 'workOrderPool') {
+        defaultData.render = (h, { row, index, column }) => {
+          return (
+            <div style="padding:0 6px;cursor: pointer;">
+              <el-button
+                type="text"
+                onClick={() => {
+                  this.$router.push({
+                    name: 'workOrderPool',
+                    params: {
+                      pageName: row[column.columnAttributes.prop],
+                      pageType: 'detail',
+                      pageCode: row[column.columnAttributes.prop]
+                    }
+                  })
+                }}
+              >
+                {row[column.columnAttributes.prop]}
+              </el-button>
+            </div>
+          )
+        }
+      }
       if (item.jname === 'appointmentTime') {
         defaultData.render = (h, { row, index, column }) => {
           return (