|
@@ -394,6 +394,7 @@
|
|
|
>
|
|
|
一键同步
|
|
|
</a-button>
|
|
|
+ <a-button v-if="checkArr.length" type="primary" @click="handleFodderWind">素材下线</a-button>
|
|
|
</div>
|
|
|
<a-tabs @change="callbackTwo" v-model="active" type="card" id="material-card">
|
|
|
<a-tab-pane :tab="item.tab" v-for="item of examinelList" :key="item.value">
|
|
@@ -1521,6 +1522,7 @@ import uploadFile from '@/components/uploadFile.vue';
|
|
|
import {closeAllVideoFun, stopOtherVideo} from '@/utils/videoControl';
|
|
|
import accountCheck from '@/views/modules/material/accountCheck';
|
|
|
import accountCheckBytedance from '@/views/modules/material/accountCheckBytedance';
|
|
|
+import {urlAcount} from '../account-config/account-config-server.js';
|
|
|
|
|
|
import qs from 'qs';
|
|
|
import {mapGetters} from 'vuex';
|
|
@@ -1861,6 +1863,35 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
+ handleFodderWind() {
|
|
|
+ if (this.checkArr.length > 8) {
|
|
|
+ this.$message.error('最多可以支持同时选择8个视频');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const paramsData = {
|
|
|
+ offlineFlag: 1,
|
|
|
+ id: this.checkArr.join(',')
|
|
|
+ };
|
|
|
+ let that = this;
|
|
|
+ this.$confirm({
|
|
|
+ title: '下线提示',
|
|
|
+ content: '是否下线选中视频',
|
|
|
+ onOk() {
|
|
|
+ getAction(urlAcount + '/bytedance-api/advertiser/materialInfoController/updMaterialOfflineById', paramsData).then(result => {
|
|
|
+ if (result.code === 0) {
|
|
|
+ that.searchQuery();
|
|
|
+ that.checkArr = [];
|
|
|
+ that.$message.success(result.message);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ that.$message.error(result.message);
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ console.log(error, 'eeee');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
compareToFirstPassword(rule, value, callback) {
|
|
|
if (value && value.length > 30 || value.length < 5) {
|
|
|
callback('创意标题5-30个字');
|
|
@@ -2443,6 +2474,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onChangeCheck(checkedList) {
|
|
|
+ console.log(checkedList, 'checkedList--checkedList--bbbbb');
|
|
|
+ console.log(this.checkArr, 'checkArr--checkArr--checkArr');
|
|
|
if (checkedList.length === 0) {
|
|
|
this.checkAll = false;
|
|
|
}
|