ソースを参照

项目列表编辑头条无法保存问题

liubei@c-top.com.cn 3 年 前
コミット
587be094d4
1 ファイル変更19 行追加2 行削除
  1. 19 2
      src/views/modules/advertiser/modules/projectListModal.vue

+ 19 - 2
src/views/modules/advertiser/modules/projectListModal.vue

@@ -463,9 +463,11 @@
           });
 
           this.showDian = true
+          this.maxBidShow = false;
         } else {
           var { ocpxActionType, bidType, ...params } = record
           this.showDian = false
+          this.maxBidShow = true;
         }
         this.form.resetFields()
         this.model = Object.assign({}, params)
@@ -536,13 +538,28 @@
       },
       handleOk() {
         const that = this
+        var isEvery = '';
+        var deepIsEvery = '';
         // 触发表单验证
-        let isEvery = this.ocpxActionTypeArray.every((item, i) => {
+        if (this.model.mediaId == 2 || this.model.mediaId == 4) {
+           isEvery = this.ocpxActionTypeArray.every((item, i) => {
           return "maxValue" in item && item.maxValue != "" && item.maxValue * 1000 >= 0 && item.maxValue * 1000 <= 999999 * 1000
         })
-        let deepIsEvery = this.depthArray.every((event, i) => {
+         deepIsEvery = this.depthArray.every((event, i) => {
           return "deepValue" in event && event.deepValue != "" && event.deepValue * 1000 >= 0 && event.deepValue * 1000 <= 999999 * 1000
         })
+        }else{
+        isEvery = true;
+        deepIsEvery = true;
+        this.ocpxActionTypeArray = [];
+        this.depthArray = [];
+        }
+        // let isEvery = this.ocpxActionTypeArray.every((item, i) => {
+        //   return "maxValue" in item && item.maxValue != "" && item.maxValue * 1000 >= 0 && item.maxValue * 1000 <= 999999 * 1000
+        // })
+        // let deepIsEvery = this.depthArray.every((event, i) => {
+        //   return "deepValue" in event && event.deepValue != "" && event.deepValue * 1000 >= 0 && event.deepValue * 1000 <= 999999 * 1000
+        // })
         if (!isEvery || !deepIsEvery) {
           this.$message.warning('请输入0~999999之间的最高价')
         } else {