Browse Source

'改table展示'

魏志佳 4 years ago
parent
commit
8e5ca39991

+ 13 - 0
src/views/modules/BatchCreate/TouTiaoBatch.vue

@@ -164,6 +164,10 @@
                     <span slot="bid" slot-scope="text,record">
                        <editableCell :text="text" slotName='bid' @change="onCellChange(record.key, 'bid', $event)" />
                     </span>
+                    <span slot="cpaBid" slot-scope="text,record">
+                       <!-- <editableCell :text="text" slotName='cpaBid' @change="onCellChange(record.key, 'cpaBid', $event)" /> -->
+                       {{text}}
+                    </span>
 
                     <span slot="campaignStatus" slot-scope="text,record">
                         <a-spin :spinning="record.spin" size="small" >
@@ -448,6 +452,15 @@ const planColumns = [
     scopedSlots: { customRender: 'bid' }
   },
   {
+    title: '深度转化出价(元)',
+
+    dataIndex: 'cpaBid',
+    key: 'cpaBid',
+    align: 'center',
+    width:150,
+    scopedSlots: { customRender: 'cpaBid' }
+  },
+  {
     title: '投放方式',
     dataIndex: 'flowControlMode',
     key: 'flowControlMode',

+ 10 - 0
src/views/modules/BatchCreate/editableCell.vue

@@ -60,6 +60,16 @@
                 }else{
                   this.value='不限'
                 }   
+              }else if(this.slotName=='cpaBid'){
+                if(this.value*1){
+                  if(value*1 && value*1>0.1 &&value*1<10000){
+                    this.value = value;
+                  }else{
+                    this.$message.error('请输入0.1-10000的数')
+                  }
+                }else{
+                  this.value='不限'
+                }   
               }
               
             },