瀏覽代碼

印刷计划只有在新建状态才能修改删除

zhangjie 4 年之前
父節點
當前提交
e7636dd195
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/modules/print/views/PrintPlanManage.vue

+ 6 - 2
src/modules/print/views/PrintPlanManage.vue

@@ -112,7 +112,9 @@
               icon="icon icon-edit"
               icon="icon icon-edit"
               @click="toEdit(scope.row)"
               @click="toEdit(scope.row)"
               title="修改"
               title="修改"
-              v-if="scope.row.createId === curUserId"
+              v-if="
+                scope.row.createId === curUserId && scope.row.status === 'NEW'
+              "
             ></el-button>
             ></el-button>
             <el-button
             <el-button
               class="btn-table-icon"
               class="btn-table-icon"
@@ -120,7 +122,9 @@
               icon="icon icon-delete"
               icon="icon icon-delete"
               @click="toDelete(scope.row)"
               @click="toDelete(scope.row)"
               title="删除"
               title="删除"
-              v-if="scope.row.createId === curUserId"
+              v-if="
+                scope.row.createId === curUserId && scope.row.status === 'NEW'
+              "
             ></el-button>
             ></el-button>
           </template>
           </template>
         </el-table-column>
         </el-table-column>