ysy 2 سال پیش
والد
کامیت
577fff5d94
2فایلهای تغییر یافته به همراه12 افزوده شده و 7 حذف شده
  1. 0 0
      src/views/technology/production/components/sampleParam.vue
  2. 12 7
      src/views/technology/production/index.vue

+ 0 - 0
src/views/technology/production/components/sampleParam.vue


+ 12 - 7
src/views/technology/production/index.vue

@@ -15,10 +15,11 @@
           </el-button>
         </template>
 
-        <template v-slot:roleList="{ row }">
-          <el-tag v-for="item in row.roleList" :key="item.id" size="mini" type="primary" :disable-transitions="true">
-            {{ item.name }}
-          </el-tag>
+        <template v-slot:name="{ row }">
+          <el-link v-if="row.type == 2" type="primary" :underline="false" @click="sampleParam">
+            {{ row.name }}
+          </el-link>
+          <span v-else> {{ row.name }}</span>
         </template>
         <!-- 状态列 -->
 
@@ -86,7 +87,7 @@ export default {
           minWidth: 110
         },
         {
-          prop: 'name',
+          slot: 'name',
           label: '工序名称',
           showOverflowTooltip: true,
           align: 'center',
@@ -161,7 +162,7 @@ export default {
   methods: {
 
     typeLabel(type) {
-       return this.typeList.find(m =>m.value == type) && this.typeList.find(m =>m.value == type).label
+      return this.typeList.find(m => m.value == type) && this.typeList.find(m => m.value == type).label
     },
 
     /*配置工艺参数 */
@@ -242,7 +243,11 @@ export default {
             });
         })
         .catch(() => { });
-    }
+    },
+
+    sampleParam() {
+      
+    },
   }
 };
 </script>