Преглед изворни кода

小小训练营,删除和修改

liushengqiang пре 2 година
родитељ
комит
bc6518aa0c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/littleArtistCamp/index.vue

+ 2 - 2
src/views/littleArtistCamp/index.vue

@@ -161,7 +161,7 @@
                   <el-button
                     type="text"
                     @click="resetCamp(scope.row)"
-                    v-if="scope.row.state != 'ING' && scope.row.state != 'END'"
+                    v-if="['NOT_START', 'APPLY', 'READY'].includes(scope.row.state)"
                     >修改</el-button
                   >
                 </auth>
@@ -176,7 +176,7 @@
                 </auth>
                 <auth
                   auths="tempLittleArtistTrainingCamp/delete"
-                  v-if="scope.row.state == 'READY' || scope.row.state == 'NOT_START'"
+                  v-if="['NOT_START', 'APPLY'].includes(scope.row.state)"
                 >
                   <el-button type="text" @click="deleteCamp(scope.row)"
                     >删除</el-button