瀏覽代碼

复制的数据默认下架

DESKTOP-SVI9JE1\muzen 2 年之前
父節點
當前提交
50a416bfd6
共有 2 個文件被更改,包括 2 次插入7 次删除
  1. 1 0
      src/views/registration/lottery/detail.vue
  2. 1 7
      src/views/registration/lottery/index.vue

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

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

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

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