朱鑫波 3 年 前
コミット
fd78da4cd0

+ 166 - 74
src/views/modules/earlyWarningRules/accountClear/createClear.vue

@@ -228,19 +228,19 @@ li.chouzhen.first:before {
                                 <a-col :span="16">
                                     <a-form-item label="清理时间范围">
                                         <a-select
-                                            allowClear
+                                            :disabled="$route.query.preview == 'true'"
                                             v-decorator="[
                                                 'cleanTime',
                                                 {
                                                     rules: [{ required: true, message: '清理时间范围必选' }],
-                                                    initialValue: 1
+                                                    initialValue: '1'
                                                 }
                                             ]"
                                         >
-                                            <a-select-option :value="1">最近一天</a-select-option>
-                                            <a-select-option :value="3">最近三天</a-select-option>
-                                            <a-select-option :value="7">最近七天</a-select-option>
-                                            <a-select-option :value="15">最近十五天</a-select-option>
+                                            <a-select-option value="1">最近一天</a-select-option>
+                                            <a-select-option value="3">最近三天</a-select-option>
+                                            <a-select-option value="7">最近七天</a-select-option>
+                                            <a-select-option value="15">最近十五天</a-select-option>
                                         </a-select>
                                     </a-form-item>
                                 </a-col>
@@ -249,6 +249,7 @@ li.chouzhen.first:before {
                                 <a-col :span="16">
                                     <a-form-item label="优化目标">
                                         <a-select
+                                            :disabled="$route.query.preview == 'true'"
                                             showSearch
                                             allowClear
                                             mode="multiple"
@@ -256,7 +257,7 @@ li.chouzhen.first:before {
                                                 'optimizationObjective',
                                                 {
                                                     rules: [{ required: true, message: '优化目标必选' }],
-                                                    initialValue: 'activation'
+                                                    initialValue: ['activation']
                                                 }
                                             ]"
                                         >
@@ -279,95 +280,116 @@ li.chouzhen.first:before {
                             </a-row>
                             <a-row :gutter="16">
                                 <a-col :span="16">
-                                    <a-form-item label="计费方式">
-                                        <a-radio-group default-value="10" button-style="solid">
-                                            <a-radio-button value="10">
-                                                按展示付费(oCPM)
-                                            </a-radio-button>
-                                        </a-radio-group>
+                                    <a-form-item label="累计消耗">
+                                        <span style="width: 20%;display: inline-block;">花费小于等于</span>
+                                        <a-input-number
+                                            :disabled="$route.query.preview == 'true'"
+                                            v-decorator="[
+                                                'charge',
+                                                {
+                                                    rules: [
+                                                        {
+                                                            required: true,
+                                                            message: '累计消耗必填'
+                                                        }
+                                                    ],
+                                                    initialValue: 100
+                                                }
+                                            ]"
+                                            :min="0"
+                                            :precision="0"
+                                            style="width: 60%"
+                                        />
+                                        元
                                     </a-form-item>
                                 </a-col>
                             </a-row>
                             <a-row :gutter="16">
                                 <a-col :span="16">
-                                    <a-form-item label="深度转化目标">
+                                    <a-form-item label="累计转化数">
+                                        <span style="width: 20%;display: inline-block;">小于等于</span>
+
+                                        <a-input-number
+                                            :disabled="$route.query.preview == 'true'"
+                                            v-decorator="[
+                                                'conversion',
+                                                {
+                                                    rules: [
+                                                        {
+                                                            required: true,
+                                                            message: '累计转化数必填'
+                                                        }
+                                                    ],
+                                                    initialValue: 2
+                                                }
+                                            ]"
+                                            :min="0"
+                                            :precision="0"
+                                            style="width: 60%"
+                                        />
+                                        个
+                                    </a-form-item>
+                                </a-col>
+                            </a-row>
+                            <a-row :gutter="16">
+                                <a-col :span="16">
+                                    <a-form-item label="推广组状态">
                                         <a-select
-                                            style="width:300px"
-                                            size="default"
-                                            allowClear
-                                            v-decorator="['deepConversionType']"
+                                            :disabled="$route.query.preview == 'true'"
+                                            v-decorator="[
+                                                'promotionGroupStatus',
+                                                {
+                                                    rules: [{ required: true, message: '推广组状态必选' }],
+                                                    initialValue: '1'
+                                                }
+                                            ]"
+                                            @change="checkStatus"
                                         >
-                                            <a-select-option :value="3">
-                                                付费
-                                            </a-select-option>
-                                            <a-select-option :value="7">
-                                                次日留存
-                                            </a-select-option>
-                                            <a-select-option :value="10">
-                                                完件
-                                            </a-select-option>
-                                            <a-select-option :value="11">
-                                                授信
-                                            </a-select-option>
-                                            <a-select-option :value="13">
-                                                添加购物车
-                                            </a-select-option>
-                                            <a-select-option :value="14">
-                                                提交订单
-                                            </a-select-option>
-                                            <a-select-option :value="15">
-                                                购买
-                                            </a-select-option>
-                                            <a-select-option :value="44">
-                                                有效线索
-                                            </a-select-option>
-                                            <a-select-option :value="92">
-                                                付费roi
-                                            </a-select-option>
+                                            <a-select-option value="1">投放中</a-select-option>
+                                            <a-select-option value="2">已暂停</a-select-option>
+                                            <a-select-option value="3">不限</a-select-option>
                                         </a-select>
                                     </a-form-item>
                                 </a-col>
                             </a-row>
+                            <!-- { rules: [{ validator: deepBidValid }] } -->
                             <a-row :gutter="16">
                                 <a-col :span="16">
-                                    <a-form-item label="转化目标出价">
-                                        <a-input
-                                            style="width:300px"
+                                    <a-form-item label="执行操作类型">
+                                        <a-radio-group
+                                            :disabled="$route.query.preview == 'true'"
+                                            button-style="solid"
                                             v-decorator="[
-                                                'cpaBid',
+                                                'performOperations',
                                                 {
-                                                    rules: [
-                                                        { required: true, message: ' ' },
-                                                        { validator: cpaBidValid }
-                                                    ]
+                                                    rules: [{ required: true, message: '执行操作类型必选' }],
+                                                    initialValue: '3'
                                                 }
                                             ]"
                                         >
-                                        </a-input>
-                                        <br />
-                                        <span style="color:red"
-                                            >单出价请输入单数字,阶梯出价请用/隔开 例如10/12,区间出价请用-链接
-                                            例如20-25</span
-                                        >
+                                            <a-radio-button value="3">删除</a-radio-button>
+                                            <a-radio-button
+                                                value="2"
+                                                :disabled="getFormData('formOptimize', 'promotionGroupStatus') != '1'"
+                                                >暂停</a-radio-button
+                                            >
+                                        </a-radio-group>
                                     </a-form-item>
                                 </a-col>
                             </a-row>
-                            <!-- { rules: [{ validator: deepBidValid }] } -->
                             <a-row :gutter="16">
                                 <a-col :span="16">
-                                    <a-form-item label="深度转化出价">
-                                        <a-input style="width:300px" v-decorator="['deepConversionBid']"> </a-input>
-                                        <br />
-                                        <span style="color:red"
-                                            >单出价请输入单数字,阶梯出价请用/隔开 例如10/12,区间出价请用-链接
-                                            例如20-25</span
-                                        >
+                                    <a-form-item label="执行操作时间">
+                                        每天上午10点以后执行
                                     </a-form-item>
                                 </a-col>
                             </a-row>
                         </a-form>
                     </a-card>
-                    <div style="display: flex; justify-content: flex-end; margin-bottom: 100px">
+                    <div
+                        style="display: flex; justify-content: flex-end; margin-bottom: 100px"
+                        v-if="$route.query.preview != 'true'"
+                    >
                         <div>
                             <a-button
                                 type="primary"
@@ -400,6 +422,7 @@ import checkBoxGroup from '@/components/formComponents/checkBoxGroup'
 import uploadFile from '@/components/uploadFileMd5Push.vue'
 import { stopOtherVideo, closeAllVideoFun } from '@/utils/videoControl' // 停止除当前外的其他视频播放,及停止所有视频播放的方法
 import selectTable from '@/views/modules/Statistics/components/selectPagination.vue'
+import { mapGetters } from 'vuex'
 // import lookPreviewVue from './lookPreview.vue'
 function tqFun(qcArr1) {
     var tempArr = []
@@ -416,10 +439,6 @@ function tqFun(qcArr1) {
     return bbFun(qcArr1)
 }
 
-let optionsAppActive = []
-let businessOptions = []
-let fansStarOptions = []
-let interestVideoOptions = []
 export default {
     name: 'GlobalHeader',
     components: {
@@ -474,11 +493,84 @@ export default {
     computed: {},
     watch: {},
     mounted() {
-        this.$nextTick(function() {})
+        this.$nextTick(function() {
+            if (this.$route.query.id) {
+                this.getAction('/accountClean/previewTemplate', { templateId: this.$route.query.id }).then(res => {
+                    if (res.success) {
+                        let data = res.result
+                        data.optimizationObjective = data.optimizationObjective.split(',')
+                        this.formOptimize.setFieldsValue(
+                            pick(
+                                data,
+                                'templateName',
+                                'cleanTime',
+                                'optimizationObjective',
+                                'charge',
+                                'conversion',
+                                'promotionGroupStatus',
+                                'performOperations'
+                            )
+                        )
+                    }
+                })
+            } else {
+                this.formOptimize.setFieldsValue({
+                    promotionGroupStatus: '1'
+                })
+            }
+        })
     },
     filters: {},
     methods: {
-        moment
+        moment,
+        ...mapGetters(['userInfo']),
+        getFormData(form, className) {
+            return this[form].getFieldValue(className)
+        },
+        handleSubmit() {
+            // /accountClean/createTemplate
+            this.formOptimize.validateFields((err, values) => {
+                if (!err) {
+                    this.sumbitLoading = true
+                    let params = { ...values }
+                    params.optimizationObjective = params.optimizationObjective.join()
+                    params.createId = this.userInfo().id
+                    params.createUser = this.userInfo().username
+                    console.log(this.userInfo())
+                    if (this.$route.query.id) {
+                        params.id = this.$route.query.id
+                        this.postDataAction('/accountClean/updateTemplate', params).then(res => {
+                            this.sumbitLoading = false
+                            if (res.success) {
+                                this.$router.replace('/earlyWarningRules/accountClear')
+                                this.$bus.$emit('remove', `/earlyWarningRules/createClear?id=${this.$route.query.id}`)
+                            } else {
+                                this.$message.error(res.message)
+                            }
+                        })
+                    } else {
+                        this.postDataAction('/accountClean/createTemplate', params).then(res => {
+                            this.sumbitLoading = false
+                            if (res.success) {
+                                this.$router.replace('/earlyWarningRules/accountClear')
+                                this.$bus.$emit('remove', '/earlyWarningRules/createClear')
+                            } else {
+                                this.$message.error(res.message)
+                            }
+                        })
+                    }
+                } else {
+                }
+            })
+        },
+        checkStatus(e) {
+            if (e != 1) {
+                this.formOptimize.setFieldsValue({
+                    performOperations: 3
+                })
+            }
+        },
+        clearAllData() {}
     }
 }
 </script>

+ 172 - 333
src/views/modules/earlyWarningRules/accountClear/index.vue

@@ -171,9 +171,9 @@
             <a-tabs v-model="tabKey" @change="tabChange">
                 <a-tab-pane :key="1" tab="清理模板列表"> </a-tab-pane>
                 <a-tab-pane :key="2" tab="我的清理模板"> </a-tab-pane>
-                <a-button slot="tabBarExtraContent" type="primary" @click="newCreat(null)">
-                    新建清理模板
-                </a-button>
+                <!-- <a-button slot="tabBarExtraContent" type="primary" @click="getHistroy(null)">
+                    历史记录查询
+                </a-button> -->
             </a-tabs>
         </div>
         <a-card>
@@ -206,15 +206,13 @@
                                 <a-button type="primary" @click="handleResetForm" icon="reload" class="middle-button"
                                     >重置</a-button
                                 >
+                                <a-button type="primary" @click="newCreat(null)">
+                                    新建清理模板
+                                </a-button>
                             </span>
                         </a-col>
                     </a-row>
                     <a-row :gutter="24" v-else>
-                        <!-- <a-col :span="24" style="margin-bottom:15px" v-if="projectId">
-                            <a-tag color="blue" closable @close="getAccountNoProject" v-if="projectId">
-                                {{ projectId.name }}
-                            </a-tag>
-                        </a-col> -->
                         <a-col :md="8" :sm="8" :xxl="6">
                             <a-form-item label="账户名称">
                                 <Treeselect
@@ -261,14 +259,16 @@
                         ref="accountTable"
                     >
                         <span slot="action" slot-scope="text, record">
-                            <a @click="editPrice(record)">预览</a>
+                            <a @click="newCreat(record.id, 'preview')">预览</a>
                             <a-divider type="vertical" />
-                            <a @click="newCreat(record.id)">推送</a>
+                            <a @click="matchingAccount(record)">推送</a>
                             <a-divider type="vertical" />
-                            <a @click="matchingAccount(record)">编辑</a>
+                            <a @click="newCreat(record.id, 'edit')">编辑</a>
                         </span>
                         <span slot="actionTwo" slot-scope="text, record">
-                            <a @click="matchingAccount(record)">删除清理模板</a>
+                            <a @click="removeTemplate(record)">删除清理模板</a>
+                            <a-divider type="vertical" />
+                            <a @click="getHistroy(record)">历史记录查询</a>
                         </span>
                         <span slot="status" slot-scope="text, record">
                             <a-switch
@@ -293,87 +293,44 @@
                 </div>
             </a-col>
         </a-row>
-        <!-- 修改出价 -->
+
         <a-modal
-            title="修改出价"
-            v-if="modifyPriceVisible"
-            :visible="modifyPriceVisible"
-            :confirm-loading="modifyPriceLoading"
+            title="推送账户选择"
+            :width="800"
+            v-if="accountVisible"
+            :visible="accountVisible"
+            @cancel="
+                accountVisible = false
+                accountIdPush = ''
+            "
             dialog-class="push-modal"
             @ok="handleOkPrice"
-            @cancel="handleCancelPrice"
+            :confirm-loading="modifyPriceLoading"
         >
-            <a-form
-                :form="priceForm"
-                :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
-                :wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }"
-                v-if="modifyPriceDetail"
-            >
-                <a-form-item label="目标项目"> {{ modifyPriceDetail.projectName }} </a-form-item>
-                <a-form-item label="优化目标">
-                    <a-button type="primary">{{ modifyPriceDetail.bidType | bidType }}</a-button></a-form-item
-                >
-                <a-form-item label="转化目标"> {{ modifyPriceDetail.ocpxActionType | ocpxActionType }}</a-form-item>
-                <a-form-item label="计费方式">
-                    <a-button type="primary">{{
-                        modifyPriceDetail.bidType === 2 ? '点击计费(CPC)' : '按展示付费(oCPM)'
-                    }}</a-button>
-                </a-form-item>
-                <a-form-item label="转化目标出价">
-                    <a-input
-                        style="width:200px;ime-mode:disabled"
-                        v-decorator="['cpaBid', { rules: [{ required: true, validator: cpaBidValid }] }]"
-                    >
-                    </a-input>
-                    <br />
-                    <span style="color:red"
-                        >单出价请输入单数字,阶梯出价请用/隔开 例如10/12,区间出价请用-链接 例如20-25</span
-                    >
-                </a-form-item>
-                <a-form-item
-                    label="深度转化出价"
-                    v-if="modifyPriceDetail.deepConversionBid && modifyPriceDetail.deepConversionBid != ''"
-                    ><a-input
-                        style="width:200px;ime-mode:disabled"
-                        v-decorator="['deepConversionBid', { rules: [{ required: true, validator: cpaBidValid }] }]"
-                    >
-                    </a-input>
-                    <br />
-                    <span style="color:red"
-                        >单出价请输入单数字,阶梯出价请用/隔开 例如10/12,区间出价请用-链接 例如20-25</span
-                    >
-                </a-form-item>
-            </a-form>
+            <div v-if="accountProjectDetail" style="display:flex">
+                <span>请选择账户:</span>
+                <Treeselect
+                    :appId.sync="accountIdPush"
+                    :multiple="false"
+                    request="2,4"
+                    ref="treeSelect"
+                    style="width:80%;position: relative;top: -5px;"
+                />
+            </div>
         </a-modal>
-
         <a-modal
-            title="账户匹配情况"
+            title="推送组清理记录"
             :width="800"
-            v-if="accountVisible"
-            :visible="accountVisible"
-            @cancel="accountVisible = false"
+            v-if="unitVisible"
+            :visible="unitVisible"
+            @cancel="unitVisible = false"
             dialog-class="push-modal"
             :footer="null"
         >
-            <div v-if="accountProjectDetail" style="font-size:16px;font-weight:700;margin-bottom:15px">
-                <span>项目:</span>
-                <span>{{ accountProjectDetail.projectName }}</span>
-            </div>
-            <a-button
-                type="primary"
-                @click="againAccount"
-                :loading="againLoading"
-                style="float: right;
-                    position: absolute;
-                    top: 75px;
-                    right: 25px;
-                    z-index: 100;"
-                >重新匹配</a-button
-            >
             <a-table
-                :columns="accountProjectColumns"
-                :dataSource="accountProjectList"
-                :pagination="false"
+                :columns="historyColumns"
+                :dataSource="historyList"
+                :pagination="ipaginationHistory"
                 bordered
                 size="middle"
                 style="word-break: break-all;font-size:16px;font-weight:600"
@@ -466,14 +423,6 @@ let KScolumns = [
         align: 'center',
         key: 'appliedMedia'
     },
-
-    // {
-    //     title: '运营名称',
-    //     dataIndex: 'userName',
-    //     scopedSlots: { customRender: 'userName' },
-    //     align: 'center',
-    //     key: 'userName'
-    // },
     {
         title: '账户名称',
         dataIndex: 'accountName',
@@ -528,25 +477,13 @@ export default {
     data() {
         return {
             indexAll: 0,
+            accountIdPush: '',
             spinning: false,
             form: this.$form.createForm(this),
             priceForm: this.$form.createForm(this),
             exportloading: false,
             accountId: null,
-            planId: '',
-            shotId: '',
-            clipId: '',
-            dateRange: [moment().subtract(1, 'weeks'), moment()],
             noImg: require('@/assets/noImg.png'),
-            validationRules: {
-                bid: [
-                    {
-                        required: true,
-                        message: '出价信息必须填写'
-                        // validator: this.validateBid,
-                    }
-                ]
-            },
             ipagination: {
                 current: 1,
                 pageSize: 10,
@@ -565,12 +502,70 @@ export default {
                     this.ipagination.pageSize = pageSize
                 }
             },
-            value: 'valid',
-            KSaccountList: [],
-            TTaccountList: [],
+            ipaginationHistory: {
+                current: 1,
+                pageSize: 10,
+                //   pageSizeOptions: ['10', '20', '30'],
+                showTotal: (total, range) => {
+                    return range[0] + '-' + range[1] + ' 共' + total + '条'
+                },
+                showQuickJumper: true,
+                showSizeChanger: true,
+                pageSizeOptions: ['10', '30', '50'],
+                total: 0,
+                onChange: (current, pageSize) => {
+                    // 切换分页时的回调,
+                    // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
+                    this.ipaginationHistory.current = current
+                    this.ipaginationHistory.pageSize = pageSize
+                    this.getHistroy({ userName: this.userName, accountId: this.accountIdSearch })
+                }
+            },
+            historyColumns: [
+                {
+                    title: '账户id',
+                    dataIndex: 'accountId',
+                    scopedSlots: { customRender: 'accountId' },
+                    align: 'center',
+                    key: 'accountId'
+                },
+                {
+                    title: '运营名称',
+                    dataIndex: 'userName',
+                    scopedSlots: { customRender: 'userName' },
+                    align: 'center',
+                    key: 'userName'
+                },
+                {
+                    title: '操作类型',
+                    dataIndex: 'operationType',
+                    customRender(t) {
+                        if (t == 1) {
+                            return '删除'
+                        } else {
+                            return '暂停'
+                        }
+                    },
+                    align: 'center',
+                    key: 'operationType'
+                },
 
-            KSdesignList: [],
-            TTdesignList: [],
+                {
+                    title: '操作时间',
+                    dataIndex: 'createTime',
+                    scopedSlots: { customRender: 'createTime' },
+                    align: 'center',
+                    key: 'createTime'
+                },
+                {
+                    title: '执行信息',
+                    dataIndex: 'executiveInformation',
+                    scopedSlots: { customRender: 'executiveInformation' },
+                    align: 'center',
+                    key: 'executiveInformation'
+                }
+            ],
+            value: 'valid',
 
             operateDisabled: false,
             duration: 1000,
@@ -579,10 +574,8 @@ export default {
             treeData: [],
 
             type: 3,
-            dateValue: [moment().subtract(7, 'days'), moment()],
 
             operate: '',
-            designList: [],
 
             tabKey: 1,
 
@@ -599,10 +592,6 @@ export default {
 
             openOptions: false,
 
-            target: 'createTime',
-            order: 'descend',
-            projectId: undefined,
-            projectIdAll: undefined,
             dataLoading: false,
             url: '/accountClean/getTemplateList',
             modifyPriceVisible: false,
@@ -611,46 +600,66 @@ export default {
             accountVisible: false,
             againLoading: false,
             accountProjectDetail: null,
-            accountProjectList: [],
-            accountProjectColumns: [
-                {
-                    title: '账户名称',
-                    dataIndex: 'authName',
-                    scopedSlots: { customRender: 'authName' },
-                    align: 'center',
-                    key: 'authName'
-                },
-                {
-                    title: '账户状态',
-                    dataIndex: 'authStatus',
-                    scopedSlots: { customRender: 'authStatus' },
-                    align: 'center',
-                    key: 'authStatus'
-                },
-                {
-                    title: '失败原因',
-                    dataIndex: 'resultText',
-                    customRender(t) {
-                        if (t === 'success') {
-                            return '-'
-                        } else {
-                            return t
-                        }
-                    },
-                    align: 'center',
-                    key: 'resultText'
-                }
-            ]
+            userName: null,
+            accountIdSearch: null,
+            historyList: [],
+            unitVisible: false
         }
     },
     methods: {
         moment,
         ...mapGetters(['userInfo']),
-        newCreat(id) {
+        getHistroy(item) {
+            this.unitVisible = true
+            this.userName = item.userName
+            this.accountIdSearch = item.accountId
+            let params = {}
+            params.userName = item.userName
+            params.accountId = item.accountId
+            params.pageNum = this.ipaginationHistory.current
+            params.pageSize = this.ipaginationHistory.pageSize
+
+            this.getAction('/accountClean/getCleanUpLog', params).then(res => {
+                if (res.success) {
+                    this.historyList = res.result.list
+                    this.ipaginationHistory.total = res.result.total
+                }
+            })
+        },
+        removeTemplate(item) {
+            let that = this
+            this.$confirm({
+                title: '删除提示',
+                content: '当前删除会解除此账户绑定模板,确定删除吗?',
+                onOk() {
+                    getAction('/accountClean/removeBinding', { templateId: item.id, accountId: item.accountId })
+                        .then(result => {
+                            if (result.success) {
+                                const paramsData = that.form.getFieldsValue()
+                                that.handleGetTableList(paramsData)
+
+                                that.$message.success('删除成功')
+                            } else {
+                                that.$message.error(result.message)
+                            }
+                        })
+                        .catch(error => {
+                            console.log(error, 'eeee')
+                        })
+                }
+            })
+        },
+        newCreat(id, type) {
             if (id) {
-                this.$router.push({
-                    path: '/earlyWarningRules/createClear?id=' + id
-                })
+                if (type == 'edit') {
+                    this.$router.push({
+                        path: '/earlyWarningRules/createClear?id=' + id
+                    })
+                } else {
+                    this.$router.push({
+                        path: '/earlyWarningRules/createClear?preview=true&&id=' + id
+                    })
+                }
             } else {
                 // window.open('/creat-material-test', '_blank')
                 this.$router.push({
@@ -711,78 +720,25 @@ export default {
             })
         },
         handleOkPrice() {
-            this.priceForm.validateFields((err, values) => {
-                //console.log(values)
-                if (!err) {
-                    this.modifyPriceLoading = true
-                    if (values.cpaBid) {
-                        if ((values.cpaBid + '').includes('/')) {
-                            let bidArr = values.cpaBid.split('/')
-                            for (let index = 0; index < bidArr.length; index++) {
-                                bidArr[index] = bidArr[index] * 1000
-                            }
-                            values.cpaBid = bidArr.join('/')
-                        } else if ((values.cpaBid + '').includes('-')) {
-                            let bidArr = values.cpaBid.split('-')
-                            for (let index = 0; index < bidArr.length; index++) {
-                                bidArr[index] = bidArr[index] * 1000
-                            }
-                            values.cpaBid = bidArr.join('-')
-                        } else {
-                            values.cpaBid = values.cpaBid * 1000
-                        }
-                    } else {
-                        values.cpaBid = 0
-                    }
-                    if (values.deepConversionBid) {
-                        if ((values.deepConversionBid + '').includes('/')) {
-                            let bidArr = values.deepConversionBid.split('/')
-                            for (let index = 0; index < bidArr.length; index++) {
-                                bidArr[index] = bidArr[index] * 1000
-                            }
-                            values.deepConversionBid = bidArr.join('/')
-                        } else if ((values.deepConversionBid + '').includes('-')) {
-                            let bidArr = values.deepConversionBid.split('-')
-                            for (let index = 0; index < bidArr.length; index++) {
-                                bidArr[index] = bidArr[index] * 1000
-                            }
-                            values.deepConversionBid = bidArr.join('-')
-                        } else {
-                            values.deepConversionBid = values.deepConversionBid * 1000
-                        }
-                    } else {
-                        values.deepConversionBid = 0
-                    }
-                    // this.modifyPriceDetail
-                    let params = {}
-                    if (this.modifyPriceDetail.bidType === 2) {
-                        params.bid = values.cpaBid
-                        if (values.deepConversionBid) {
-                            params.deepConversionBid = values.deepConversionBid
-                        }
+            this.modifyPriceLoading = true
+            let params = {}
+            params.templateId = this.accountProjectDetail.id
+            params.accountId = this.accountIdPush
+            this.getAction('/accountClean/pushTemplate', params).then(res => {
+                this.modifyPriceLoading = false
+                if (res.success) {
+                    this.accountVisible = false
+                    this.accountIdPush = ''
+
+                    if (res.message != '推送成功') {
+                        this.$message.error(res.message)
                     } else {
-                        params = { ...values }
+                        this.$message.success(res.message)
                     }
-                    postAction('/kuaishouProjectStrategy/updateProjectStrategy', {
-                        ...params,
-                        id: this.modifyPriceDetail.id
-                    }).then(res => {
-                        this.modifyPriceLoading = false
-                        if (res.success) {
-                            this.handleCancelPrice()
-                        } else {
-                            this.$message.error(res.message)
-                        }
-                    })
                 } else {
-                    this.$message.error('请正确填写必填项目')
                 }
             })
         },
-        handleCancelPrice() {
-            this.priceForm.resetFields()
-            this.modifyPriceVisible = false
-        },
         cpaBidValid(rule, value, callback) {
             let z = /-/g
             let a = /\//g
@@ -814,30 +770,9 @@ export default {
         getData(className) {
             return this.priceForm.getFieldValue(className)
         },
-        againAccount() {
-            this.againLoading = true
-            this.getAction('/ai/projectCreate/projectAutomaticCreates', {
-                id: this.accountProjectDetail.id,
-                operationType: 1
-            }).then(res => {
-                this.againLoading = false
-                if (res.success) {
-                    this.$message.success('重新匹配成功')
-                } else {
-                    this.$message.error(res.message)
-                }
-            })
-        },
         matchingAccount(item) {
             this.accountVisible = true
-            this.accountProjectDetail = { id: item.id, projectName: item.projectName }
-            getAction('/kuaishouProjectStrategy/queryMatchResult', { projectId: item.projectId, pageSize: 100 }).then(
-                res => {
-                    if (res.success) {
-                        this.accountProjectList = res.result.list
-                    }
-                }
-            )
+            this.accountProjectDetail = { id: item.id }
         },
         getDataSource(current, pageSize) {
             // 切换分页时的回调,
@@ -901,29 +836,10 @@ export default {
                     console.log(error, 'eeee')
                 })
         },
-        getAccountNoProject() {
-            this.projectId = undefined
-            const paramsData = this.form.getFieldsValue()
-            this.handleGetTableList(paramsData)
-        },
-        toAccountDetail(item) {
-            this.tabKey = 2
-            this.projectId = { id: item.projectId, name: item.projectName }
-            this.url = this.tabKey == 1 ? '/accountClean/getTemplateList' : '/accountClean/getMyselfTemplateList'
-            this.$nextTick(() => {
-                this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
-                this.target = this.tabKey == 1 ? 'createTime' : 'statDate'
-                const paramsData = this.form.getFieldsValue()
-                this.handleGetTableList(paramsData)
-            })
-        },
         disabledDate(current) {
             // Can not select days before today and today
             return current && current > moment().endOf('day')
         },
-        dateChange(date, dateString) {
-            // console.log(date,dateString)
-        },
 
         filterOption(input, option) {
             // console.log(input, option)
@@ -954,85 +870,9 @@ export default {
                     order: sorter.order ? sorter.order : 'descend'
                 })
             }
-        },
-
-        // table区域的tab切换
-        tableTabChange(key) {
-            if (key == 1) {
-                this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
-                this.target = 'new'
-            } else {
-                this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
-                this.target = 'valid'
-            }
-            // this.getNewPlan()
-        },
-
-        // 获取所有运营
-        getAllOperator(key) {
-            let url = '/sys/user/getAllUserListV1'
-            this.designList = []
-
-            getAction(url, {}).then(res => {
-                if (res.success) {
-                    this.designList = res.result
-                }
-            })
-        },
-
-        // 获取展示数据
-        getNewPlan() {
-            let url = ''
-            if (this.tabKey == 1) {
-                // 头条
-                url = '/ctop/bytedanceVideoEtlInfo/list'
-            } else {
-                // 快手
-
-                url = '/ctop/kuaishouVideoEtlInfo/list'
-            }
-
-            this.loading = true
-
-            getAction(url, {
-                type: this.value,
-                clipId: this.clipId == '' ? null : this.clipId,
-                shotId: this.shotId == '' ? null : this.shotId,
-                planId: this.planId == '' ? null : this.planId,
-                startDate: this.dateRange[0].format('YYYY-MM-DD'),
-                endDate: this.dateRange[1].format('YYYY-MM-DD'),
-                pageSize: this.ipagination.pageSize,
-                pageNo: this.ipagination.current
-            }).then(res => {
-                console.log(res)
-                this.loading = false
-
-                if (res.success) {
-                    if (res.result) {
-                        this.dataSource = res.result.records
-                        this.ipagination.total = res.result.total
-                    }
-                }
-            })
-        },
-
-        // 查询按钮
-        search() {
-            // if(this.accountId || this.operate){
-            //     this.echartSpinning=true;
-            //     this.getNewPlan()
-            // }else{
-            //     this.$message.error('请选择具体账户或者运营')
-            // }
-            this.ipagination.current = 1
-            this.getNewPlan()
-        }
-    },
-    watch: {
-        dateValue(newName, oldName) {
-            this.search()
         }
     },
+    watch: {},
     computed: {
         newDate() {
             var myDate = new Date()
@@ -1047,7 +887,6 @@ export default {
     mounted() {
         const paramsData = this.form.getFieldsValue()
         this.handleGetTableList(paramsData)
-        this.getAllOperator()
     },
     activated: function() {},