Переглянути джерело

复制的数据默认下架

DESKTOP-SVI9JE1\muzen 2 роки тому
батько
коміт
50a416bfd6

+ 1 - 0
src/views/registration/lottery/detail.vue

@@ -153,6 +153,7 @@ export default {
           this.date = [res.data.startTime, res.data.endTime]
           if (this.$route.query.copyId) {
             delete this.form.id
+            this.form.status = 1
           }
         }
       })

+ 1 - 7
src/views/registration/lottery/index.vue

@@ -38,7 +38,7 @@
 </template>
 
 <script>
-import { list, change, remove, copy } from '@/api/registration/lottery'
+import { list, change, remove } from '@/api/registration/lottery'
 import { disabledMixin, currentMixin } from '@/mixin/index'
 export default {
   mixins: [disabledMixin, currentMixin],
@@ -126,12 +126,6 @@ export default {
           copyId: id
         }
       })
-      // copy(id).then(res => {
-      //   if (res.code === 0) {
-      //     this.$message.success(`复制成功!`)
-      //     this.getList()
-      //   }
-      // })
     },
 
     // 字典翻译