|
@@ -47,6 +47,19 @@
|
|
|
>APS同步</el-button
|
|
|
>-->
|
|
|
</template>
|
|
|
+ <template #enable="scope">
|
|
|
+ <el-switch
|
|
|
+ active-value="1"
|
|
|
+ inactive-value="0"
|
|
|
+ inline-prompt
|
|
|
+ active-text="启用"
|
|
|
+ inactive-text="禁用"
|
|
|
+ v-model="scope.row.enable"
|
|
|
+ @click="changeItem(scope.row)"
|
|
|
+ class="ml-2"
|
|
|
+ style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
<template #menu="{ row, index, type }">
|
|
|
<el-button @click="binding(row)" text type="primary"
|
|
|
>设备
|
|
@@ -313,14 +326,14 @@ option.value = Object.assign(option.value, {
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- /* {
|
|
|
+ {
|
|
|
label: "启用状态",
|
|
|
slot: true,
|
|
|
headerAlign: "center",
|
|
|
prop: "enable",
|
|
|
width: 100,
|
|
|
display: false,
|
|
|
- },*/
|
|
|
+ },
|
|
|
{
|
|
|
label: "工位描述",
|
|
|
width: 90,
|