|
@@ -44,7 +44,7 @@
|
|
|
<el-tag v-if="row.dataStatus === 2" type="success" effect="dark">已引用</el-tag>
|
|
|
<el-tag v-else type="info" effect="dark">未引用</el-tag>
|
|
|
</template>
|
|
|
- <template #key24="{ row }">
|
|
|
+ <template #action="{ row }">
|
|
|
<el-link v-if="row.id == dataId" type="warning" @click="rowCancel(row)">取消选择</el-link>
|
|
|
<el-link v-else type="primary" @click="rowSelect(row)">选择</el-link>
|
|
|
<!-- el-link v-if="row.key24 === 2" type="info">选择</el-link -->
|
|
@@ -155,6 +155,7 @@ const menuSelect = (parent, item) => {
|
|
|
},
|
|
|
{ key: 'dataQualified', name: '试验结果是否合格', width: 100, align: 'center' },
|
|
|
{ key: 'dataStatus', name: '数据状态', width: 100, align: 'center' },
|
|
|
+ { key: 'action', name: '操作', width: 100, align: 'center', fixed: 'right' },
|
|
|
]
|
|
|
} else if (parent.dictKey === '2') {
|
|
|
//万能机
|
|
@@ -235,6 +236,7 @@ const menuSelect = (parent, item) => {
|
|
|
],
|
|
|
},
|
|
|
{ key: 'dataStatus', name: '数据状态', width: 100, align: 'center' },
|
|
|
+ { key: 'action', name: '操作', width: 100, align: 'center', fixed: 'right' },
|
|
|
]
|
|
|
}
|
|
|
//获取表格数据
|
|
@@ -284,7 +286,7 @@ const tableColumn = ref([
|
|
|
},
|
|
|
{ key: 'dataQualified', name: '试验结果是否合格', width: 100, align: 'center' },
|
|
|
{ key: 'dataStatus', name: '数据状态', width: 100, align: 'center' },
|
|
|
- { key: 'key24', name: '操作', width: 100, align: 'center' },
|
|
|
+ { key: 'action', name: '操作', width: 100, align: 'center', fixed: 'right' },
|
|
|
])
|
|
|
const tableData = ref([])
|
|
|
|