|
@@ -61,6 +61,13 @@
|
|
|
@change="handleLaunchData"
|
|
|
/>
|
|
|
</a-form-item>
|
|
|
+ <a-form-item label="状态">
|
|
|
+ <a-select v-model="configForm.searchStatus" style="width: 100px">
|
|
|
+ <a-select-option :value="2">不限</a-select-option>
|
|
|
+ <a-select-option :value="0">已删除</a-select-option>
|
|
|
+ <a-select-option :value="1">可投放</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
<a-form-item class="form-handle-btn">
|
|
|
<a-button type="default" class="reset-class" @click="handleResetList">重置</a-button>
|
|
|
<a-button type="primary" @click="handleQueryList">查询</a-button>
|
|
@@ -81,6 +88,11 @@
|
|
|
:pagination="false"
|
|
|
:scroll="{x: 1500}"
|
|
|
>
|
|
|
+ <span slot="currencyAction" slot-scope="text, record">
|
|
|
+ <a @click="handleCurrencyEdit(record)">编辑</a>
|
|
|
+ <a-divider type="vertical"/>
|
|
|
+ <a @click="handleCurrencyDelete(record)">删除</a>
|
|
|
+ </span>
|
|
|
</a-table>
|
|
|
<a-pagination
|
|
|
class="pagin-table-class"
|
|
@@ -105,6 +117,11 @@
|
|
|
:pagination="false"
|
|
|
:scroll="{x: 1500}"
|
|
|
>
|
|
|
+ <span slot="appointAction" slot-scope="text, record">
|
|
|
+ <a @click="handleAppointEdit(record)">编辑</a>
|
|
|
+ <a-divider type="vertical"/>
|
|
|
+ <a @click="handleAppointDelete(record)">删除</a>
|
|
|
+ </span>
|
|
|
</a-table>
|
|
|
<a-pagination
|
|
|
class="pagin-table-class"
|
|
@@ -333,7 +350,7 @@
|
|
|
import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
|
|
|
|
|
|
import moment from 'moment';
|
|
|
-import {getAction, postFileAction, postAction} from '@/api/manage';
|
|
|
+import {getAction, postFileAction, postAction, deleteAction} from '@/api/manage';
|
|
|
import {mapGetters} from 'vuex';
|
|
|
import {urlAcount} from './copy-library-server.js';
|
|
|
let COS = require('cos-js-sdk-v5');
|
|
@@ -416,7 +433,8 @@ export default {
|
|
|
acountId: '',
|
|
|
num: '',
|
|
|
adConvertId: undefined,
|
|
|
- launchDateRange: []
|
|
|
+ launchDateRange: [],
|
|
|
+ searchStatus: 2
|
|
|
},
|
|
|
currencyPag: {
|
|
|
page: 1,
|
|
@@ -432,6 +450,12 @@ export default {
|
|
|
dataIndex: 'textCopywriter'
|
|
|
},
|
|
|
{
|
|
|
+ title: '状态',
|
|
|
+ align: 'center',
|
|
|
+ width: 150,
|
|
|
+ dataIndex: 'status'
|
|
|
+ },
|
|
|
+ {
|
|
|
title: '相关创意',
|
|
|
align: 'center',
|
|
|
width: 150,
|
|
@@ -499,6 +523,14 @@ export default {
|
|
|
align: 'center',
|
|
|
width: 150,
|
|
|
sorter: (a, b) => a.costConvert - b.costConvert
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'currencyAction',
|
|
|
+ align: 'center',
|
|
|
+ width: 150,
|
|
|
+ fixed: 'right',
|
|
|
+ scopedSlots: {customRender: 'currencyAction'}
|
|
|
}
|
|
|
],
|
|
|
appointColumns: [
|
|
@@ -509,6 +541,12 @@ export default {
|
|
|
dataIndex: 'slogan'
|
|
|
},
|
|
|
{
|
|
|
+ title: '状态',
|
|
|
+ align: 'center',
|
|
|
+ width: 150,
|
|
|
+ dataIndex: 'status'
|
|
|
+ },
|
|
|
+ {
|
|
|
title: '相关创意',
|
|
|
align: 'center',
|
|
|
width: 150,
|
|
@@ -576,6 +614,14 @@ export default {
|
|
|
align: 'center',
|
|
|
width: 150,
|
|
|
sorter: (a, b) => a.costConvert - b.costConvert
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'appointAction',
|
|
|
+ align: 'center',
|
|
|
+ width: 150,
|
|
|
+ fixed: 'right',
|
|
|
+ scopedSlots: {customRender: 'appointAction'}
|
|
|
}
|
|
|
],
|
|
|
appointData: [],
|
|
@@ -587,7 +633,7 @@ export default {
|
|
|
masterPag: {
|
|
|
page: 1,
|
|
|
size: 10
|
|
|
- },
|
|
|
+ },
|
|
|
defaultFormList: [],
|
|
|
titleFiledResult: 0,
|
|
|
examinForm: this.$form.createForm(this),
|
|
@@ -623,6 +669,49 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
+ handleGetCurrencyEditData() {
|
|
|
+
|
|
|
+ },
|
|
|
+ handleCurrencyDelete(data) {
|
|
|
+ let that = this;
|
|
|
+ this.$confirm({
|
|
|
+ title: '删除提示',
|
|
|
+ content: '是否删除该条数据',
|
|
|
+ onOk() {
|
|
|
+ deleteAction(urlAcount + '/bytedance-api/advertiser/bytedanceGeneralCopywriter/delete', {id: data.id}).then(result => {
|
|
|
+ if (result.code === 0) {
|
|
|
+ that.handleGetCurrencyList();
|
|
|
+ that.$message.success('删除成功');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ that.$message.error(result.message);
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ console.log(error, 'eeee');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleAppointDelete(data) {
|
|
|
+ let that = this;
|
|
|
+ this.$confirm({
|
|
|
+ title: '删除提示',
|
|
|
+ content: '是否删除该条数据',
|
|
|
+ onOk() {
|
|
|
+ deleteAction(urlAcount + '/bytedance-api/ctop/bytedanceVideoSlogenInfo/delete', {id: data.id}).then(result => {
|
|
|
+ if (result.code === 0) {
|
|
|
+ that.handleGetAppointList();
|
|
|
+ that.$message.success('删除成功');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ that.$message.error(result.message);
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ console.log(error, 'eeee');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
disabledDate(current) {
|
|
|
return current > moment().subtract(1, 'day');
|
|
|
},
|
|
@@ -684,7 +773,8 @@ export default {
|
|
|
acountId: '',
|
|
|
num: '',
|
|
|
adConvertId: undefined,
|
|
|
- launchDateRange: []
|
|
|
+ launchDateRange: [],
|
|
|
+ searchStatus: 2
|
|
|
};
|
|
|
if (e === '1') {
|
|
|
this.handleGetCurrencyList();
|
|
@@ -700,12 +790,16 @@ export default {
|
|
|
userId: this.userInfo().id,
|
|
|
startTime: this.configForm.launchDateRange[0],
|
|
|
endTime: this.configForm.launchDateRange[0],
|
|
|
+ status: this.configForm.searchStatus === 2 ? '' : this.configForm.searchStatus,
|
|
|
pageNo: this.currencyPag.page,
|
|
|
pageSize: this.currencyPag.size
|
|
|
};
|
|
|
getAction(urlAcount + '/bytedance-api/advertiser/bytedanceGeneralCopywriter/queryPageListByText', paramsData).then(result => {
|
|
|
if (result.code === 0) {
|
|
|
- this.currencyData = result.result.list;
|
|
|
+ this.currencyData = result.result.list ? result.result.list.map(item => {
|
|
|
+ item.status = item.status === 0 ? '已删除' : '可投放';
|
|
|
+ return item;
|
|
|
+ }) : [];
|
|
|
this.currencyTotalAll = result.result.total || 0;
|
|
|
}
|
|
|
else {
|
|
@@ -724,12 +818,16 @@ export default {
|
|
|
keyWord: this.configForm.num,
|
|
|
startTime: this.configForm.launchDateRange[0],
|
|
|
endTime: this.configForm.launchDateRange[0],
|
|
|
+ status: this.configForm.searchStatus === 2 ? '' : this.configForm.searchStatus,
|
|
|
pageNo: this.appointPag.page,
|
|
|
pageSize: this.appointPag.size
|
|
|
};
|
|
|
getAction(urlAcount + '/bytedance-api/ctop/bytedanceVideoSlogenInfo/queryPageListByText', paramsData).then(result => {
|
|
|
if (result.code === 0) {
|
|
|
- this.appointData = result.result.list;
|
|
|
+ this.appointData = result.result.list ? result.result.list.map(item => {
|
|
|
+ item.status = item.status === 0 ? '已删除' : '可投放';
|
|
|
+ return item;
|
|
|
+ }) : [];
|
|
|
this.appointTotalAll = result.result.total || 0;
|
|
|
}
|
|
|
else {
|
|
@@ -1190,7 +1288,8 @@ export default {
|
|
|
acountId: '',
|
|
|
num: '',
|
|
|
adConvertId: undefined,
|
|
|
- launchDateRange: []
|
|
|
+ launchDateRange: [],
|
|
|
+ searchStatus: 2
|
|
|
};
|
|
|
const page = {
|
|
|
page: 1,
|