Selaa lähdekoodia

修改必填项

朱鑫波 4 vuotta sitten
vanhempi
commit
060b92439c

+ 3 - 3
src/views/modules/Statistics/materialReport/marterialList.vue

@@ -236,9 +236,6 @@ const columnsFixd = [
     width: 100,
     fixed: 'left',
   },
-]
-
-const initVariableColimns = [
   {
     title: '消耗(元)',
     dataIndex: 'cost',
@@ -248,6 +245,9 @@ const initVariableColimns = [
     scopedSlots: { customRender: 'cost' },
     sorter: () => {},
   },
+]
+
+const initVariableColimns = [
   // {
   //     title: '折后消耗(元)',
   //     dataIndex: 'discountCost',

+ 3 - 3
src/views/modules/Statistics/materialReport/marterialTtList.vue

@@ -229,9 +229,6 @@ const columnsFixd = [
     width: 100,
     fixed: 'left',
   },
-]
-
-const initVariableColimns = [
   {
     title: '消耗(元)',
     dataIndex: 'cost',
@@ -239,6 +236,9 @@ const initVariableColimns = [
     align: 'center',
     sorter: (a, b) => {},
   },
+]
+
+const initVariableColimns = [
   {
     title: '点击数',
     dataIndex: 'clickMaterial',

+ 2 - 2
src/views/modules/Statistics/materialReport/materialReport.vue

@@ -55,7 +55,7 @@
             大盘
           </span>
         </a-tab-pane>
-        <a-tab-pane key="2" disabled>
+        <!-- <a-tab-pane key="2" disabled>
           <span slot="tab">
             <a-icon type="apple" />
             快手
@@ -66,7 +66,7 @@
             <a-icon type="apple" />
             头条
           </span>
-        </a-tab-pane>
+        </a-tab-pane> -->
       </a-tabs>
       <div class="option" style="justify-content: space-between">
         <div class="option" style="padding: 0">

+ 14 - 4
src/views/modules/advertiser/modules/ProjectModal.vue

@@ -79,7 +79,7 @@
         <div v-if="model.mediaId == '2' || model.mediaId == '4'">
           <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优化目标">
             <a-select
-              v-decorator="['bidType', { rules: [{ required: true, message: '请输入表单名称' }], initialValue: 2 }]"
+              v-decorator="['bidType', { rules: [{ required: true, message: '请选择优化目标' }], initialValue: 2 }]"
               mode="multiple"
             >
               <a-select-option :value="2">点击数</a-select-option>
@@ -92,13 +92,20 @@
               label="转化目标"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
-              v-show="
+              v-if="
                 getFormFieldValue('bidType').findIndex((item) => item == 10) > -1 ||
                 getFormFieldValue('bidType').findIndex((item) => item == 6) > -1
               "
             >
-              <a-select v-model="model.ocpxActionType" mode="multiple">
-                <a-select-option :value="2">行为数</a-select-option>
+              <!-- v-model="model.ocpxActionType" -->
+              <a-select
+                v-decorator="[
+                  'ocpxActionType',
+                  { rules: [{ required: true, message: '请选择转化目标' }], initialValue: 2 },
+                ]"
+                mode="multiple"
+              >
+                <!-- <a-select-option :value="2">行为数</a-select-option> -->
                 <a-select-option :value="item.ocpxActionType" v-for="(item, index) in ocpxList" :key="index">{{
                   item.ocpxActionName
                 }}</a-select-option>
@@ -378,6 +385,9 @@ export default {
           }
         })
         //时间格式化
+        setTimeout(() => {
+          this.form.setFieldsValue(pick(this.model, 'ocpxActionType'))
+        })
       })
     },
     close() {

+ 2 - 2
vue.config.js

@@ -75,12 +75,12 @@ module.exports = {
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目