Эх сурвалжийг харах

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

zhangjie 4 жил өмнө
parent
commit
e7636dd195

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

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