|
|
@@ -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>
|