ADD: 检测计划添加导入标识字段以及逻辑
This commit is contained in:
@@ -65,14 +65,25 @@
|
||||
<!-- 表格操作 -->
|
||||
<template #operation="scope">
|
||||
<el-button
|
||||
v-if="scope.row.importFlag == 0"
|
||||
type="primary"
|
||||
v-auth.plan="'edit'"
|
||||
link
|
||||
:icon="EditPen"
|
||||
icon="EditPen"
|
||||
@click="openDialog('edit', scope.row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.importFlag == 1"
|
||||
type="primary"
|
||||
v-auth.plan="'edit'"
|
||||
link
|
||||
icon="View"
|
||||
@click="openDialog('edit', scope.row)"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
<el-button type="primary" v-auth.plan="'delete'" link :icon="Delete" @click="handleDelete(scope.row)">
|
||||
删除
|
||||
</el-button>
|
||||
@@ -89,12 +100,12 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
icon="View"
|
||||
icon="Cpu"
|
||||
@click="openChildrenPlan(scope.row)"
|
||||
v-if="modeStore.currentMode == '比对式' && scope.row.fatherPlanId == 0"
|
||||
v-if="modeStore.currentMode == '比对式' && scope.row.importFlag == 1"
|
||||
v-auth.plan="'import_subplan'"
|
||||
>
|
||||
查看
|
||||
被检设备
|
||||
</el-button>
|
||||
<!-- <el-button type='primary' link :icon='List' @click='showDeviceOpen(scope.row)'>设备绑定</el-button> -->
|
||||
<el-button
|
||||
@@ -146,7 +157,7 @@
|
||||
<script setup lang="tsx" name="useProTable">
|
||||
import ProTable from '@/components/ProTable/index.vue'
|
||||
import type { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
||||
import { CirclePlus, Delete, Download, EditPen, List, Upload } from '@element-plus/icons-vue'
|
||||
import { CirclePlus, Delete, Download, List, Upload } from '@element-plus/icons-vue'
|
||||
import {
|
||||
deletePlan,
|
||||
downloadTemplate,
|
||||
|
||||
Reference in New Issue
Block a user