|
@@ -383,6 +383,7 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+
|
|
<a-col :md="8" :sm="8">
|
|
<a-col :md="8" :sm="8">
|
|
<a-form-item label="编导">
|
|
<a-form-item label="编导">
|
|
<a-select
|
|
<a-select
|
|
@@ -401,6 +402,33 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :md="8" :sm="8" v-if="active == '1'">
|
|
|
|
+ <a-form-item label="状态">
|
|
|
|
+ <a-select v-model="queryParam.videoStatus">
|
|
|
|
+ <a-select-option :value="0">
|
|
|
|
+ 不限
|
|
|
|
+ </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-option :value="4">
|
|
|
|
+ 推送到快手
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option :value="5">
|
|
|
|
+ 推送到头条
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option :value="6">
|
|
|
|
+ 已推送到快手&头条
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :md="8" :sm="8">
|
|
<a-col :md="8" :sm="8">
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
<a-button type="primary" @click="handleSubmit" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="handleSubmit" icon="search">查询</a-button>
|
|
@@ -535,7 +563,7 @@
|
|
</template>
|
|
</template>
|
|
<img
|
|
<img
|
|
style="width: 30px; height: 30px"
|
|
style="width: 30px; height: 30px"
|
|
- v-if="items.kuaishouVideoIsUp == 1"
|
|
|
|
|
|
+ v-if="items.syncKuaishou == 2"
|
|
:style="{ filter: items.kuaishouEffiType == 1 ? 'grayscale(0%)' : 'grayscale(100%)' }"
|
|
:style="{ filter: items.kuaishouEffiType == 1 ? 'grayscale(0%)' : 'grayscale(100%)' }"
|
|
src="@/views/modules/material/kuaishou.jpg"
|
|
src="@/views/modules/material/kuaishou.jpg"
|
|
/>
|
|
/>
|
|
@@ -545,13 +573,13 @@
|
|
<span>{{ items.toutiaoEffiType == 1 ? '抖音有效视频' : '已经同步到抖音平台' }}</span>
|
|
<span>{{ items.toutiaoEffiType == 1 ? '抖音有效视频' : '已经同步到抖音平台' }}</span>
|
|
</template>
|
|
</template>
|
|
<img
|
|
<img
|
|
- v-if="items.toutiaoVideoIsUp == 1 && items.toutiaoEffiType == 1"
|
|
|
|
|
|
+ v-if="items.syncBytedance == 2 && items.toutiaoEffiType == 1"
|
|
style="width: 30px; height: 30px; margin-left: 5px"
|
|
style="width: 30px; height: 30px; margin-left: 5px"
|
|
src="@/views/modules/material/douyin.jpg"
|
|
src="@/views/modules/material/douyin.jpg"
|
|
alt
|
|
alt
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
- v-else-if="items.toutiaoVideoIsUp == 1 && items.toutiaoEffiType == 0"
|
|
|
|
|
|
+ v-else-if="items.syncBytedance == 2 && items.toutiaoEffiType == 0"
|
|
style="width: 30px; height: 30px; margin-left: 5px"
|
|
style="width: 30px; height: 30px; margin-left: 5px"
|
|
src="@/views/modules/material/douyinhui.jpg"
|
|
src="@/views/modules/material/douyinhui.jpg"
|
|
alt
|
|
alt
|
|
@@ -678,6 +706,7 @@
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
</a-menu>
|
|
</a-menu>
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
|
|
+ <a v-show="active === '1'" style="margin-right: 20px" @click="handleRecord(items)">同步记录</a>
|
|
<a-checkbox :value="items.id" style="float: right" v-show="active == '0' || active == '1'"></a-checkbox>
|
|
<a-checkbox :value="items.id" style="float: right" v-show="active == '0' || active == '1'"></a-checkbox>
|
|
<br />
|
|
<br />
|
|
{{ items.createTime }}
|
|
{{ items.createTime }}
|
|
@@ -1714,6 +1743,42 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
+ <a-modal v-model="showDataListVisible" title="信息" :footer="null">
|
|
|
|
+ <div v-if="showDataList">
|
|
|
|
+ <p v-for="(item, index) in showDataList" :key="index">
|
|
|
|
+ 素材:{{item.materialName}},{{item.message}};
|
|
|
|
+ <br/>
|
|
|
|
+ 同步账户:{{item.ids.join()}}
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </a-modal>
|
|
|
|
+ <a-modal
|
|
|
|
+ v-if="recordDetailVisible"
|
|
|
|
+ title="素材同步记录"
|
|
|
|
+ :width="750"
|
|
|
|
+ :visible="recordDetailVisible"
|
|
|
|
+ dialog-class="usage-details-modal change-face-modal change-list-modal-show"
|
|
|
|
+ :footer="null"
|
|
|
|
+ @cancel="handleRecordCancel"
|
|
|
|
+ >
|
|
|
|
+ <div style="overflow: hidden;">
|
|
|
|
+ <a-table
|
|
|
|
+ class="face-right-table"
|
|
|
|
+ ref="table"
|
|
|
|
+ size="middle"
|
|
|
|
+ bordered
|
|
|
|
+ :columns="recordColumns"
|
|
|
|
+ :dataSource="recordData"
|
|
|
|
+ :pagination="recordIpagination"
|
|
|
|
+ :loading="toutiaoMateriaLoading"
|
|
|
|
+ >
|
|
|
|
+ <span slot="createTime" slot-scope="text">
|
|
|
|
+ {{text}}
|
|
|
|
+ </span>
|
|
|
|
+ </a-table>
|
|
|
|
+ </div>
|
|
|
|
+ </a-modal>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -1912,6 +1977,8 @@ export default {
|
|
checkArr: [],
|
|
checkArr: [],
|
|
checkAll: false,
|
|
checkAll: false,
|
|
checkArrImage: [],
|
|
checkArrImage: [],
|
|
|
|
+ showDataList:[],
|
|
|
|
+ showDataListVisible: false,
|
|
checkAllImage: false,
|
|
checkAllImage: false,
|
|
showUrl: '',
|
|
showUrl: '',
|
|
showUrlWater: '',
|
|
showUrlWater: '',
|
|
@@ -1942,7 +2009,81 @@ export default {
|
|
waterLoading: false,
|
|
waterLoading: false,
|
|
videoTag: [],
|
|
videoTag: [],
|
|
videoVisibleChange: '',
|
|
videoVisibleChange: '',
|
|
- modalShowBatchList: []
|
|
|
|
|
|
+ modalShowBatchList: [],
|
|
|
|
+ recordDetailVisible:false,
|
|
|
|
+ recordSignature: null,
|
|
|
|
+ toutiaoMateriaLoading:false,
|
|
|
|
+ recordColumns:[
|
|
|
|
+ {
|
|
|
|
+ title: '项目',
|
|
|
|
+ align: 'center',
|
|
|
|
+ dataIndex: 'projectName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '账户Id',
|
|
|
|
+ align: 'center',
|
|
|
|
+ dataIndex: 'userId',
|
|
|
|
+ customRender: function (text, records) {
|
|
|
|
+ if(records.mediaId == '1' || records.mediaId == '3') {
|
|
|
|
+ return records.accountId
|
|
|
|
+ }else if(records.mediaId == '2' || records.mediaId == '4') {
|
|
|
|
+ return records.userId
|
|
|
|
+ }else {
|
|
|
|
+ return text
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '媒体',
|
|
|
|
+ align: 'center',
|
|
|
|
+ dataIndex: 'mediaId',
|
|
|
|
+ customRender: function (text) {
|
|
|
|
+ if (text == '1' || text == '3') {
|
|
|
|
+ return '头条'
|
|
|
|
+ } else if (text == '2' || text == '4') {
|
|
|
|
+ return '快手'
|
|
|
|
+ } else {
|
|
|
|
+ return text
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步人',
|
|
|
|
+ align: 'center',
|
|
|
|
+ dataIndex: 'userName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步时间',
|
|
|
|
+ align: 'center',
|
|
|
|
+ dataIndex: 'createTime',
|
|
|
|
+ scopedSlots: { customRender: 'createTime' },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '结果',
|
|
|
|
+ align: 'center',
|
|
|
|
+ dataIndex: 'remarks'
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ recordData:[],
|
|
|
|
+ recordIpagination: {
|
|
|
|
+ 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.recordIpagination.current = current;
|
|
|
|
+ this.recordIpagination.pageSize= pageSize;
|
|
|
|
+ this.handleGetRecordDetail(this.recordSignature)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -2086,6 +2227,39 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
|
+ handleRecordCancel(){
|
|
|
|
+ this.recordDetailVisible = false;
|
|
|
|
+ },
|
|
|
|
+ handleRecord(data){
|
|
|
|
+ this.handleGetRecordDetail(data.code);
|
|
|
|
+ this.recordSignature = data.code;
|
|
|
|
+ this.recordDetailVisible = true;
|
|
|
|
+ this.toutiaoMateriaLoading = true;
|
|
|
|
+ this.kuaishouMateriaLoading = true;
|
|
|
|
+ },
|
|
|
|
+ handleGetRecordDetail(id) {
|
|
|
|
+ // 测试code '7b676546bfb50f1b992d44bd479a1536'
|
|
|
|
+ var params = {}
|
|
|
|
+ params.signature = id
|
|
|
|
+ params.pageNo = this.recordIpagination.current
|
|
|
|
+ params.pageSize = this.recordIpagination.pageSize
|
|
|
|
+ getAction('/ctop/materialUpload/uploadDetail', params).then(result => {
|
|
|
|
+ if (result.success) {
|
|
|
|
+
|
|
|
|
+ // 头条处理数据
|
|
|
|
+ this.recordData = result.result.list || []
|
|
|
|
+ this.recordIpagination.total = result.result.total || 0
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.$message.error(result.message);
|
|
|
|
+ }
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ console.log(error, 'eeee');
|
|
|
|
+ }).finally(() => {
|
|
|
|
+ this.toutiaoMateriaLoading = false;
|
|
|
|
+ this.kuaishouMateriaLoading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
handleBudgetCancel() {
|
|
handleBudgetCancel() {
|
|
this.defaultSolganTitle = 'test';
|
|
this.defaultSolganTitle = 'test';
|
|
this.defaultSolganStatus = 'input';
|
|
this.defaultSolganStatus = 'input';
|
|
@@ -3085,10 +3259,18 @@ export default {
|
|
params.mediaId = this.mediaId;
|
|
params.mediaId = this.mediaId;
|
|
params.materialArray = JSON.stringify(this.checkArr);
|
|
params.materialArray = JSON.stringify(this.checkArr);
|
|
params.accountArray = JSON.stringify(data);
|
|
params.accountArray = JSON.stringify(data);
|
|
|
|
+ params.loginId = this.userInfo().id
|
|
|
|
+ params.userName = this.userInfo().realname
|
|
postAction('/ctop/materialUpload/uploadAccount', params).then(res => {
|
|
postAction('/ctop/materialUpload/uploadAccount', params).then(res => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.checkArr = [];
|
|
this.checkArr = [];
|
|
this.checkAll = false;
|
|
this.checkAll = false;
|
|
|
|
+ if(res.data){
|
|
|
|
+ this.showDataList = res.data
|
|
|
|
+ this.showDataListVisible = true
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.success(res.message)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|