Parcourir la source

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

zhangjie il y a 4 ans
Parent
commit
e7636dd195
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  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"
               @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>