wente
2023-12-11 dfd3903f59e4d5d32ffa5be546b00458d3e76477
项目表
2个文件已修改
8 ■■■■ 已修改文件
web/packages/components/zt-table-column-handle/src/zt-table-column-handle.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/testCheckOrder/TestCheckOrder.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)
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>