From dfd3903f59e4d5d32ffa5be546b00458d3e76477 Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期一, 11 十二月 2023 14:26:44 +0800
Subject: [PATCH] 项目表
---
web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue | 6 +++++-
web/src/views/modules/testCheckOrder/TestCheckOrder.vue | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue b/web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue
index 6f9cfc3..37ef19a 100644
--- a/web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue
+++ b/web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue
@@ -41,7 +41,11 @@
return typeof this.hasView === 'boolean' ? this.hasView : this.hasView(row)
},
isCanEidt(row) {
- return typeof this.hasEdit === 'boolean' ? this.hasEdit : this.hasEdit(row)
+ if(row.stepMarker && row.stepMarker.includes('wc')){
+ return false
+ }else {
+ return typeof this.hasEdit === 'boolean' ? this.hasEdit : this.hasEdit(row)
+ }
},
isCanDelete(row) {
return typeof this.hasDelete === 'boolean' ? this.hasDelete : this.hasDelete(row)
diff --git a/web/src/views/modules/testCheckOrder/TestCheckOrder.vue b/web/src/views/modules/testCheckOrder/TestCheckOrder.vue
index 43fd251..5ab6c0d 100644
--- a/web/src/views/modules/testCheckOrder/TestCheckOrder.vue
+++ b/web/src/views/modules/testCheckOrder/TestCheckOrder.vue
@@ -25,7 +25,7 @@
<zt-table-column-handle :table="table" :hasEdit='false' edit-perm="testCheckOrder:update"
delete-perm="testCheckOrder::delete">
<template v-slot="{row}">
- <zt-table-button type="primary" @click="openEditWin(row)">淇敼</zt-table-button>
+ <zt-table-button type="primary" v-if="(row.stepMarker && row.stepMarker.includes('wc'))" @click="openEditWin(row)">淇敼</zt-table-button>
</template>
</zt-table-column-handle>
--
Gitblit v1.9.1