From cdf29a8f6fb9990f82ccc1d3f47bfba48cfaf4fc Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期三, 10 一月 2024 17:24:53 +0800 Subject: [PATCH] 修改 --- web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 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 37ef19a..8891ea7 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 @@ -2,7 +2,7 @@ <el-table-column fixed="right" :label="$t('handle')" header-align="center" align="center" :width="width" v-slot="{ row }"> <slot :row="row"></slot> <zt-table-button v-if="isCanView(row)" type="default" @click="table.viewHandle(row)">{{ $t('view') }}</zt-table-button> - <zt-table-button v-if="isCanEidt(row) && $hasPermission(editPerm)" type="primary" @click="table.editHandle(row)">{{ $t('update') }}</zt-table-button> + <zt-table-button v-if="isCanEidt(row) && $hasPermission(editPerm) " type="primary" @click="table.editHandle(row)">{{ $t('update') }}</zt-table-button> <zt-table-button v-if="isCanDelete(row) && $hasPermission(deletePerm)" type="danger" @click="table.deleteHandle(row)">{{ $t('delete') }}</zt-table-button> </el-table-column> </template> @@ -41,14 +41,18 @@ return typeof this.hasView === 'boolean' ? this.hasView : this.hasView(row) }, isCanEidt(row) { - if(row.stepMarker && row.stepMarker.includes('wc')){ + if(row.flowInfo && row.flowInfo.bizId){ 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) + if(row.flowInfo && row.flowInfo.bizId){ + return false + }else { + return typeof this.hasDelete === 'boolean' ? this.hasDelete : this.hasDelete(row) + } } } } -- Gitblit v1.9.1