|
@@ -313,7 +313,7 @@
|
|
|
<a-form layout="inline" :selfUpdate="true">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="8" :sm="8">
|
|
|
- <selectTable :projectId.sync="queryParam.productId"></selectTable>
|
|
|
+ <selectTable :projectId.sync="queryParam.productId" ref="selectTable"></selectTable>
|
|
|
</a-col>
|
|
|
<a-col :md="8" :sm="8">
|
|
|
<a-form-item label="素材名称">
|
|
@@ -368,7 +368,7 @@
|
|
|
<a-button
|
|
|
@click="onCheckAllChange"
|
|
|
v-if="
|
|
|
- queryParam.projectId &&
|
|
|
+ queryParam.productId &&
|
|
|
active == '1' &&
|
|
|
(role.roleCode == 'operator' ||
|
|
|
role.roleCode == 'kuaishouOperationManager' ||
|
|
@@ -381,7 +381,7 @@
|
|
|
</a-button>
|
|
|
<a-button
|
|
|
v-if="
|
|
|
- queryParam.projectId &&
|
|
|
+ queryParam.productId &&
|
|
|
active == '1' &&
|
|
|
(role.roleCode == 'operator' ||
|
|
|
role.roleCode == 'kuaishouOperationManager' ||
|
|
@@ -390,9 +390,24 @@
|
|
|
role.roleCode == 'touTiaoOperationManager')
|
|
|
"
|
|
|
:disabled="checkArr.length == 0"
|
|
|
- @click="tongbu"
|
|
|
+ @click="tongbu('1')"
|
|
|
>
|
|
|
- 一键同步
|
|
|
+ 一键同步头条
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="
|
|
|
+ queryParam.productId &&
|
|
|
+ active == '1' &&
|
|
|
+ (role.roleCode == 'operator' ||
|
|
|
+ role.roleCode == 'kuaishouOperationManager' ||
|
|
|
+ role.roleCode == 'admin' ||
|
|
|
+ role.roleCode == 'operationAssistant' ||
|
|
|
+ role.roleCode == 'touTiaoOperationManager')
|
|
|
+ "
|
|
|
+ :disabled="checkArr.length == 0"
|
|
|
+ @click="tongbu('3')"
|
|
|
+ >
|
|
|
+ 一键同步头条内广
|
|
|
</a-button>
|
|
|
<!-- && -->
|
|
|
<a-button v-if="checkArr.length && active !== '0'" type="primary" @click="handleFodderWind">素材下线</a-button>
|
|
@@ -1891,7 +1906,7 @@ export default {
|
|
|
this.loadData();
|
|
|
}
|
|
|
},
|
|
|
- 'queryParam.projectId'(n, o) {
|
|
|
+ 'queryParam.productId'(n, o) {
|
|
|
if (n !== '') {
|
|
|
this.getList(n);
|
|
|
}
|
|
@@ -2500,23 +2515,29 @@ export default {
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
|
},
|
|
|
moment,
|
|
|
- tongbu() {
|
|
|
- getAction('/ctop/project/queryById', {id: this.queryParam.projectId}).then(res => {
|
|
|
- if (res.success) {
|
|
|
- if (res.result.mediaId === '1' || res.result.mediaId === '3') {
|
|
|
- this.$refs.check.getData('/ctop/userAllocation/getAccountListByProjectId', {
|
|
|
- userId: this.userInfo().id,
|
|
|
- projectId: this.queryParam.projectId
|
|
|
- });
|
|
|
- }
|
|
|
- else if (res.result.mediaId === '2' || res.result.mediaId === '4') {
|
|
|
- this.$refs.accountCheckBytedance.getParticipateList(this.queryParam.projectId);
|
|
|
- }
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error('网络波动,请稍后再试');
|
|
|
- }
|
|
|
- });
|
|
|
+ tongbu(value) {
|
|
|
+ // getAction('/ctop/project/queryById', {id: this.queryParam.projectId}).then(res => {
|
|
|
+ // if (res.success) {
|
|
|
+ // if (res.result.mediaId === '1' || res.result.mediaId === '3') {
|
|
|
+ // this.$refs.check.getData('/ctop/userAllocation/getAccountListByProjectId', {
|
|
|
+ // userId: this.userInfo().id,
|
|
|
+ // projectId: this.queryParam.projectId
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // else if (res.result.mediaId === '2' || res.result.mediaId === '4') {
|
|
|
+ // this.$refs.accountCheckBytedance.getParticipateList(this.queryParam.projectId);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // this.$message.error('网络波动,请稍后再试');
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ this.mediaId = value
|
|
|
+ this.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
|
|
|
+ userId: this.userInfo().id,
|
|
|
+ productId: this.queryParam.productId,
|
|
|
+ mediaId: value,
|
|
|
+ })
|
|
|
},
|
|
|
implement(data) {
|
|
|
let params = {};
|
|
@@ -2599,22 +2620,25 @@ export default {
|
|
|
this.queryParam = {
|
|
|
type: 'VIDEO',
|
|
|
userId: this.userInfo().id,
|
|
|
- status: this.active
|
|
|
- };
|
|
|
+ status: this.active,
|
|
|
+ productId: ''
|
|
|
+ }
|
|
|
+ this.$refs.selectTable.keyValue = "";
|
|
|
+ this.$refs.selectTable.getData()
|
|
|
this.labelValue = [];
|
|
|
this.loadData(1);
|
|
|
},
|
|
|
getList(value) {
|
|
|
- if (value) {
|
|
|
- getAction('/ctop/projectMember/participateListV2', {
|
|
|
- userId: this.userInfo().id,
|
|
|
- projectId: value
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.mediaId = res.result.records[0].mediaId;
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (value) {
|
|
|
+ // getAction('/ctop/projectMember/participateListV2', {
|
|
|
+ // userId: this.userInfo().id,
|
|
|
+ // projectId: value
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.code === 0) {
|
|
|
+ // this.mediaId = res.result.records[0].mediaId;
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ // }
|
|
|
this.loadData();
|
|
|
},
|
|
|
onChangeCheckImage(checkedList) {
|
|
@@ -3111,7 +3135,7 @@ export default {
|
|
|
type: 'VIDEO',
|
|
|
userId: this.userInfo().id,
|
|
|
status: key,
|
|
|
- projectId: this.queryParam.projectId
|
|
|
+ productId: this.queryParam.productId
|
|
|
}
|
|
|
if (this.labelValue.length >= 1) {
|
|
|
this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1];
|
|
@@ -3119,7 +3143,7 @@ export default {
|
|
|
else {
|
|
|
this.queryParam.tagCode = '';
|
|
|
}
|
|
|
- if (this.form.getFieldValue('projectId')) {
|
|
|
+ if (this.form.getFieldValue('productId')) {
|
|
|
this.form.setFieldsValue({
|
|
|
projectId: ''
|
|
|
});
|