许成详 6 years ago
parent
commit
355296fd36
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/pages/system/marketingActivities/snapUpList/edit.vue

+ 3
- 1
src/pages/system/marketingActivities/snapUpList/edit.vue View File

257
       'editFlashbuy',
257
       'editFlashbuy',
258
     ]),
258
     ]),
259
     submitFlashbuy () { // 提交抢购数据
259
     submitFlashbuy () { // 提交抢购数据
260
+      if (this.postData.CaseId === '' && this.defaultCaseId !== '') {
261
+        this.postData.CaseId = this.defaultCaseId
262
+      }
260
       if (!this.checkData()) {
263
       if (!this.checkData()) {
261
         return false
264
         return false
262
       }
265
       }
281
       }
284
       }
282
     },
285
     },
283
     checkData () { // 校验数据格式
286
     checkData () { // 校验数据格式
284
-      this.postData.CaseId === '' ? this.postData.CaseId = this.CaseId : this.postData.CaseId = ''
285
       if (this.postData.CaseId === '') {
287
       if (this.postData.CaseId === '') {
286
         this.$message({
288
         this.$message({
287
           type: 'error',
289
           type: 'error',