|
@@ -171,9 +171,9 @@
|
|
<a-tabs v-model="tabKey" @change="tabChange">
|
|
<a-tabs v-model="tabKey" @change="tabChange">
|
|
<a-tab-pane :key="1" tab="清理模板列表"> </a-tab-pane>
|
|
<a-tab-pane :key="1" tab="清理模板列表"> </a-tab-pane>
|
|
<a-tab-pane :key="2" 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>
|
|
</a-tabs>
|
|
</div>
|
|
</div>
|
|
<a-card>
|
|
<a-card>
|
|
@@ -206,15 +206,13 @@
|
|
<a-button type="primary" @click="handleResetForm" icon="reload" class="middle-button"
|
|
<a-button type="primary" @click="handleResetForm" icon="reload" class="middle-button"
|
|
>重置</a-button
|
|
>重置</a-button
|
|
>
|
|
>
|
|
|
|
+ <a-button type="primary" @click="newCreat(null)">
|
|
|
|
+ 新建清理模板
|
|
|
|
+ </a-button>
|
|
</span>
|
|
</span>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
<a-row :gutter="24" v-else>
|
|
<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-col :md="8" :sm="8" :xxl="6">
|
|
<a-form-item label="账户名称">
|
|
<a-form-item label="账户名称">
|
|
<Treeselect
|
|
<Treeselect
|
|
@@ -261,14 +259,16 @@
|
|
ref="accountTable"
|
|
ref="accountTable"
|
|
>
|
|
>
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
- <a @click="editPrice(record)">预览</a>
|
|
|
|
|
|
+ <a @click="newCreat(record.id, 'preview')">预览</a>
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
- <a @click="newCreat(record.id)">推送</a>
|
|
|
|
|
|
+ <a @click="matchingAccount(record)">推送</a>
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
- <a @click="matchingAccount(record)">编辑</a>
|
|
|
|
|
|
+ <a @click="newCreat(record.id, 'edit')">编辑</a>
|
|
</span>
|
|
</span>
|
|
<span slot="actionTwo" slot-scope="text, record">
|
|
<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>
|
|
<span slot="status" slot-scope="text, record">
|
|
<span slot="status" slot-scope="text, record">
|
|
<a-switch
|
|
<a-switch
|
|
@@ -293,87 +293,44 @@
|
|
</div>
|
|
</div>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
- <!-- 修改出价 -->
|
|
|
|
|
|
+
|
|
<a-modal
|
|
<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"
|
|
dialog-class="push-modal"
|
|
@ok="handleOkPrice"
|
|
@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>
|
|
-
|
|
|
|
<a-modal
|
|
<a-modal
|
|
- title="账户匹配情况"
|
|
|
|
|
|
+ title="推送组清理记录"
|
|
:width="800"
|
|
:width="800"
|
|
- v-if="accountVisible"
|
|
|
|
- :visible="accountVisible"
|
|
|
|
- @cancel="accountVisible = false"
|
|
|
|
|
|
+ v-if="unitVisible"
|
|
|
|
+ :visible="unitVisible"
|
|
|
|
+ @cancel="unitVisible = false"
|
|
dialog-class="push-modal"
|
|
dialog-class="push-modal"
|
|
:footer="null"
|
|
: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
|
|
<a-table
|
|
- :columns="accountProjectColumns"
|
|
|
|
- :dataSource="accountProjectList"
|
|
|
|
- :pagination="false"
|
|
|
|
|
|
+ :columns="historyColumns"
|
|
|
|
+ :dataSource="historyList"
|
|
|
|
+ :pagination="ipaginationHistory"
|
|
bordered
|
|
bordered
|
|
size="middle"
|
|
size="middle"
|
|
style="word-break: break-all;font-size:16px;font-weight:600"
|
|
style="word-break: break-all;font-size:16px;font-weight:600"
|
|
@@ -466,14 +423,6 @@ let KScolumns = [
|
|
align: 'center',
|
|
align: 'center',
|
|
key: 'appliedMedia'
|
|
key: 'appliedMedia'
|
|
},
|
|
},
|
|
-
|
|
|
|
- // {
|
|
|
|
- // title: '运营名称',
|
|
|
|
- // dataIndex: 'userName',
|
|
|
|
- // scopedSlots: { customRender: 'userName' },
|
|
|
|
- // align: 'center',
|
|
|
|
- // key: 'userName'
|
|
|
|
- // },
|
|
|
|
{
|
|
{
|
|
title: '账户名称',
|
|
title: '账户名称',
|
|
dataIndex: 'accountName',
|
|
dataIndex: 'accountName',
|
|
@@ -528,25 +477,13 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
indexAll: 0,
|
|
indexAll: 0,
|
|
|
|
+ accountIdPush: '',
|
|
spinning: false,
|
|
spinning: false,
|
|
form: this.$form.createForm(this),
|
|
form: this.$form.createForm(this),
|
|
priceForm: this.$form.createForm(this),
|
|
priceForm: this.$form.createForm(this),
|
|
exportloading: false,
|
|
exportloading: false,
|
|
accountId: null,
|
|
accountId: null,
|
|
- planId: '',
|
|
|
|
- shotId: '',
|
|
|
|
- clipId: '',
|
|
|
|
- dateRange: [moment().subtract(1, 'weeks'), moment()],
|
|
|
|
noImg: require('@/assets/noImg.png'),
|
|
noImg: require('@/assets/noImg.png'),
|
|
- validationRules: {
|
|
|
|
- bid: [
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: '出价信息必须填写'
|
|
|
|
- // validator: this.validateBid,
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
ipagination: {
|
|
ipagination: {
|
|
current: 1,
|
|
current: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -565,12 +502,70 @@ export default {
|
|
this.ipagination.pageSize = pageSize
|
|
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,
|
|
operateDisabled: false,
|
|
duration: 1000,
|
|
duration: 1000,
|
|
@@ -579,10 +574,8 @@ export default {
|
|
treeData: [],
|
|
treeData: [],
|
|
|
|
|
|
type: 3,
|
|
type: 3,
|
|
- dateValue: [moment().subtract(7, 'days'), moment()],
|
|
|
|
|
|
|
|
operate: '',
|
|
operate: '',
|
|
- designList: [],
|
|
|
|
|
|
|
|
tabKey: 1,
|
|
tabKey: 1,
|
|
|
|
|
|
@@ -599,10 +592,6 @@ export default {
|
|
|
|
|
|
openOptions: false,
|
|
openOptions: false,
|
|
|
|
|
|
- target: 'createTime',
|
|
|
|
- order: 'descend',
|
|
|
|
- projectId: undefined,
|
|
|
|
- projectIdAll: undefined,
|
|
|
|
dataLoading: false,
|
|
dataLoading: false,
|
|
url: '/accountClean/getTemplateList',
|
|
url: '/accountClean/getTemplateList',
|
|
modifyPriceVisible: false,
|
|
modifyPriceVisible: false,
|
|
@@ -611,46 +600,66 @@ export default {
|
|
accountVisible: false,
|
|
accountVisible: false,
|
|
againLoading: false,
|
|
againLoading: false,
|
|
accountProjectDetail: null,
|
|
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: {
|
|
methods: {
|
|
moment,
|
|
moment,
|
|
...mapGetters(['userInfo']),
|
|
...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) {
|
|
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 {
|
|
} else {
|
|
// window.open('/creat-material-test', '_blank')
|
|
// window.open('/creat-material-test', '_blank')
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -711,78 +720,25 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleOkPrice() {
|
|
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 {
|
|
} 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 {
|
|
} else {
|
|
- this.$message.error('请正确填写必填项目')
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleCancelPrice() {
|
|
|
|
- this.priceForm.resetFields()
|
|
|
|
- this.modifyPriceVisible = false
|
|
|
|
- },
|
|
|
|
cpaBidValid(rule, value, callback) {
|
|
cpaBidValid(rule, value, callback) {
|
|
let z = /-/g
|
|
let z = /-/g
|
|
let a = /\//g
|
|
let a = /\//g
|
|
@@ -814,30 +770,9 @@ export default {
|
|
getData(className) {
|
|
getData(className) {
|
|
return this.priceForm.getFieldValue(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) {
|
|
matchingAccount(item) {
|
|
this.accountVisible = true
|
|
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) {
|
|
getDataSource(current, pageSize) {
|
|
// 切换分页时的回调,
|
|
// 切换分页时的回调,
|
|
@@ -901,29 +836,10 @@ export default {
|
|
console.log(error, 'eeee')
|
|
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) {
|
|
disabledDate(current) {
|
|
// Can not select days before today and today
|
|
// Can not select days before today and today
|
|
return current && current > moment().endOf('day')
|
|
return current && current > moment().endOf('day')
|
|
},
|
|
},
|
|
- dateChange(date, dateString) {
|
|
|
|
- // console.log(date,dateString)
|
|
|
|
- },
|
|
|
|
|
|
|
|
filterOption(input, option) {
|
|
filterOption(input, option) {
|
|
// console.log(input, option)
|
|
// console.log(input, option)
|
|
@@ -954,85 +870,9 @@ export default {
|
|
order: sorter.order ? sorter.order : 'descend'
|
|
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: {
|
|
computed: {
|
|
newDate() {
|
|
newDate() {
|
|
var myDate = new Date()
|
|
var myDate = new Date()
|
|
@@ -1047,7 +887,6 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
const paramsData = this.form.getFieldsValue()
|
|
const paramsData = this.form.getFieldsValue()
|
|
this.handleGetTableList(paramsData)
|
|
this.handleGetTableList(paramsData)
|
|
- this.getAllOperator()
|
|
|
|
},
|
|
},
|
|
activated: function() {},
|
|
activated: function() {},
|
|
|
|
|