|
@@ -313,7 +313,7 @@
|
|
<a-form layout="inline" :selfUpdate="true">
|
|
<a-form layout="inline" :selfUpdate="true">
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
<a-col :md="8" :sm="8">
|
|
<a-col :md="8" :sm="8">
|
|
- <selectTable :projectId.sync="queryParam.projectId"></selectTable>
|
|
|
|
|
|
+ <selectTable :projectId.sync="queryParam.productId" ref="selectTable"></selectTable>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="8" :sm="8">
|
|
<a-col :md="8" :sm="8">
|
|
<a-form-item label="素材名称">
|
|
<a-form-item label="素材名称">
|
|
@@ -346,7 +346,7 @@
|
|
</a-col>
|
|
</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="searchQuery" icon="search">查询</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="handleSubmit" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="searchRe" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
<a-button type="primary" @click="searchRe" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
</span>
|
|
</span>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -368,7 +368,7 @@
|
|
<a-button
|
|
<a-button
|
|
@click="onCheckAllChange"
|
|
@click="onCheckAllChange"
|
|
v-if="
|
|
v-if="
|
|
- queryParam.projectId &&
|
|
|
|
|
|
+ queryParam.productId &&
|
|
active == '1' &&
|
|
active == '1' &&
|
|
(role.roleCode == 'operator' ||
|
|
(role.roleCode == 'operator' ||
|
|
role.roleCode == 'kuaishouOperationManager' ||
|
|
role.roleCode == 'kuaishouOperationManager' ||
|
|
@@ -381,7 +381,7 @@
|
|
</a-button>
|
|
</a-button>
|
|
<a-button
|
|
<a-button
|
|
v-if="
|
|
v-if="
|
|
- queryParam.projectId &&
|
|
|
|
|
|
+ queryParam.productId &&
|
|
active == '1' &&
|
|
active == '1' &&
|
|
(role.roleCode == 'operator' ||
|
|
(role.roleCode == 'operator' ||
|
|
role.roleCode == 'kuaishouOperationManager' ||
|
|
role.roleCode == 'kuaishouOperationManager' ||
|
|
@@ -390,16 +390,34 @@
|
|
role.roleCode == 'touTiaoOperationManager')
|
|
role.roleCode == 'touTiaoOperationManager')
|
|
"
|
|
"
|
|
:disabled="checkArr.length == 0"
|
|
:disabled="checkArr.length == 0"
|
|
- @click="tongbu"
|
|
|
|
|
|
+ @click="tongbu('1')"
|
|
>
|
|
>
|
|
- 一键同步
|
|
|
|
|
|
+ 一键同步头条
|
|
</a-button>
|
|
</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>
|
|
|
|
+ <a-button v-if="checkArr.length && active === '0'" type="primary" @click="handleApprovedClick">通过审核</a-button>
|
|
</div>
|
|
</div>
|
|
<a-tabs @change="callbackTwo" v-model="active" type="card" id="material-card">
|
|
<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">
|
|
<a-tab-pane :tab="item.tab" v-for="item of examinelList" :key="item.value">
|
|
<a-spin :spinning="spinning">
|
|
<a-spin :spinning="spinning">
|
|
<div v-if="dataSource.length > 0">
|
|
<div v-if="dataSource.length > 0">
|
|
- <a-checkbox-group @change="onChangeCheck" v-model="checkArr" class="home-card">
|
|
|
|
|
|
+ <a-checkbox-group @change="onChangeCheck($event, item)" v-model="checkArr" class="home-card">
|
|
<div class="home-item" v-for="(items, index) in dataSource" :key="index" @click="showDetail(items)">
|
|
<div class="home-item" v-for="(items, index) in dataSource" :key="index" @click="showDetail(items)">
|
|
<span v-if="items.excellent == 0"></span>
|
|
<span v-if="items.excellent == 0"></span>
|
|
<span
|
|
<span
|
|
@@ -600,7 +618,7 @@
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
</a-menu>
|
|
</a-menu>
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
- <a-checkbox :value="items.id" style="float: right" v-show="active == '1'"></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox :value="items.id" style="float: right" v-show="active == '0' || active == '1'"></a-checkbox>
|
|
<br />
|
|
<br />
|
|
{{ items.createTime | getDate }}
|
|
{{ items.createTime | getDate }}
|
|
</span>
|
|
</span>
|
|
@@ -1465,14 +1483,100 @@
|
|
<div>
|
|
<div>
|
|
<div class="acount-title">
|
|
<div class="acount-title">
|
|
<div class="acount-title-left">素材名称</div>
|
|
<div class="acount-title-left">素材名称</div>
|
|
- <div class="acount-title-right">{{ currentPageOnlyList.materialName }}</div>
|
|
|
|
|
|
+ <div class="acount-title-right">
|
|
|
|
+ <div class="only-title-mater">{{ currentPageOnlyList.materialName }}</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="acount-title push-plate">
|
|
<div class="acount-title push-plate">
|
|
<div class="acount-title-left">创意标题</div>
|
|
<div class="acount-title-left">创意标题</div>
|
|
<div class="acount-title-right">
|
|
<div class="acount-title-right">
|
|
<a-button type="primary" @click="handleAddOrigin"><a-icon type="plus" />创意标题</a-button>
|
|
<a-button type="primary" @click="handleAddOrigin"><a-icon type="plus" />创意标题</a-button>
|
|
- <a-button class="examin-select-title" @click="handleSelectTitle">选标题</a-button>
|
|
|
|
- <span>已填:{{ titleFiledResult.length || 0 }}</span>
|
|
|
|
|
|
+ <!-- TODO 暂时功能隐藏 -->
|
|
|
|
+ <!-- <a-button class="examin-select-title" @click="handleSelectTitle">选标题</a-button> -->
|
|
|
|
+ <span style="margin-left: 20px;">已填:{{ titleFiledResult.length || 0 }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="acount-title">
|
|
|
|
+ <div class="acount-title-left"></div>
|
|
|
|
+ <div class="acount-title-right">
|
|
|
|
+ <a-form :form="examinForm">
|
|
|
|
+ <a-form-item
|
|
|
|
+ v-for="item in defaultFormList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ class="examin-form-model"
|
|
|
|
+ :label-col="labelCol"
|
|
|
|
+ :wrapper-col="wrapperCol"
|
|
|
|
+ label=""
|
|
|
|
+ >
|
|
|
|
+ <a-input
|
|
|
|
+ v-decorator="[
|
|
|
|
+ item.name,
|
|
|
|
+ {rules: [
|
|
|
|
+ {validator: validatePass, trigger: 'blur'}
|
|
|
|
+ ]}
|
|
|
|
+ ]"
|
|
|
|
+ class="examin-form-input"
|
|
|
|
+ :id="item.name"
|
|
|
|
+ placeholder="请输入"
|
|
|
|
+ @change="handleFormInputChang($event, item.name, item.id)"
|
|
|
|
+ />
|
|
|
|
+ <span class="examin-form-num">{{ item.lenSize }}/30</span>
|
|
|
|
+ <a-icon class="examin-form-icon" type="delete" @click="handleDelOrigin(item)"/>
|
|
|
|
+ <div class="ad-name-tags-class">
|
|
|
|
+ <div v-if="item.tabStatus === 'alone'" class="name-tags-left">
|
|
|
|
+ <a-tag
|
|
|
|
+ v-for="val in item.updateTagsList"
|
|
|
|
+ :key="val.id"
|
|
|
|
+ color="#1890ff"
|
|
|
|
+ @click="handleGetChangeAll(val.name, item.name, item.id)"
|
|
|
|
+ >
|
|
|
|
+ + {{ val.name }}
|
|
|
|
+ </a-tag>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.tabStatus === 'all'" class="name-tags-left">
|
|
|
|
+ <a-tag
|
|
|
|
+ v-for="val in item.defaultTagsList"
|
|
|
|
+ :key="val.id"
|
|
|
|
+ color="#1890ff"
|
|
|
|
+ @click="handleGetChangeAll(val.name, item.name, item.id)"
|
|
|
|
+ >
|
|
|
|
+ + {{ val.name }}
|
|
|
|
+ </a-tag>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.tabStatus === 'alone'"><a @click="handleMoreTagsShow(item.id, 'more')">更多</a></div>
|
|
|
|
+ <div v-if="item.tabStatus === 'all'"><a @click="handleMoreTagsShow(item.id, 'little')">收起</a></div>
|
|
|
|
+ </div>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-form>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </a-modal>
|
|
|
|
+ <a-modal
|
|
|
|
+ v-if="batchVisible"
|
|
|
|
+ title="审核通过"
|
|
|
|
+ dialog-class="examin-modal"
|
|
|
|
+ :visible="batchVisible"
|
|
|
|
+ @ok="handleBatchSure"
|
|
|
|
+ @cancel="handleBatchCancel"
|
|
|
|
+ >
|
|
|
|
+ <div>
|
|
|
|
+ <div class="acount-title">
|
|
|
|
+ <div class="acount-title-left">素材名称</div>
|
|
|
|
+ <div class="acount-title-right" :style="accountMaster">
|
|
|
|
+ <div class="only-title-mater" v-for="item in modalShowBatchList" :key="item.id">
|
|
|
|
+ {{ item.materialName }}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <a-icon :type="materTitltStatus ? 'up' : 'down'" style="margin-top: 5px;margin-left: 15px;" @click="handleMaterTitleClick"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="acount-title push-plate">
|
|
|
|
+ <div class="acount-title-left">创意标题</div>
|
|
|
|
+ <div class="acount-title-right">
|
|
|
|
+ <a-button type="primary" @click="handleAddOrigin"><a-icon type="plus" />创意标题</a-button>
|
|
|
|
+ <!-- TODO 暂时功能隐藏 -->
|
|
|
|
+ <!-- <a-button class="examin-select-title" @click="handleSelectTitle">选标题</a-button> -->
|
|
|
|
+ <span style="margin-left: 20px;">已填:{{ titleFiledResult.length || 0 }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="acount-title">
|
|
<div class="acount-title">
|
|
@@ -1491,22 +1595,45 @@
|
|
v-decorator="[
|
|
v-decorator="[
|
|
item.name,
|
|
item.name,
|
|
{ rules: [
|
|
{ rules: [
|
|
- {required: true, message: '请输入创意标题'},
|
|
|
|
- {min: 5, max: 30, message: '创意标题5-30个字'}
|
|
|
|
|
|
+ {validator: validatePass, trigger: 'blur'}
|
|
]}
|
|
]}
|
|
]"
|
|
]"
|
|
class="examin-form-input"
|
|
class="examin-form-input"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
- @change="handleFormInputChang($event, item)"
|
|
|
|
|
|
+ @change="handleFormInputChang($event, item.name, item.id)"
|
|
/>
|
|
/>
|
|
- <span class="examin-form-num">{{ handleFilterName(item.name) }}/30</span>
|
|
|
|
|
|
+ <span class="examin-form-num">{{ item.lenSize }}/30</span>
|
|
<a-icon class="examin-form-icon" type="delete" @click="handleDelOrigin(item)"/>
|
|
<a-icon class="examin-form-icon" type="delete" @click="handleDelOrigin(item)"/>
|
|
|
|
+ <div class="ad-name-tags-class">
|
|
|
|
+ <div v-if="item.tabStatus === 'alone'" class="name-tags-left">
|
|
|
|
+ <a-tag
|
|
|
|
+ v-for="val in item.updateTagsList"
|
|
|
|
+ :key="val.id"
|
|
|
|
+ color="#1890ff"
|
|
|
|
+ @click="handleGetChangeAll(val.name, item.name, item.id)"
|
|
|
|
+ >
|
|
|
|
+ + {{ val.name }}
|
|
|
|
+ </a-tag>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.tabStatus === 'all'" class="name-tags-left">
|
|
|
|
+ <a-tag
|
|
|
|
+ v-for="val in item.defaultTagsList"
|
|
|
|
+ :key="val.id"
|
|
|
|
+ color="#1890ff"
|
|
|
|
+ @click="handleGetChangeAll(val.name, item.name, item.id)"
|
|
|
|
+ >
|
|
|
|
+ + {{ val.name }}
|
|
|
|
+ </a-tag>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.tabStatus === 'alone'"><a @click="handleMoreTagsShow(item.id, 'more')">更多</a></div>
|
|
|
|
+ <div v-if="item.tabStatus === 'all'"><a @click="handleMoreTagsShow(item.id, 'little')">收起</a></div>
|
|
|
|
+ </div>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </a-modal>
|
|
|
|
|
|
+ </a-modal>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -1514,13 +1641,14 @@ import PermissionModal from '@/views/modules/material/modules/DepartModal';
|
|
import {JeecgListMixin} from '@/mixins/JeecgListMixin';
|
|
import {JeecgListMixin} from '@/mixins/JeecgListMixin';
|
|
import JEllipsis from '@/components/jeecg/JEllipsis';
|
|
import JEllipsis from '@/components/jeecg/JEllipsis';
|
|
import UploadToAli from '@femessage/upload-to-ali';
|
|
import UploadToAli from '@femessage/upload-to-ali';
|
|
-import selectTable from '@/views/modules/Statistics/components/selectPagination.vue';
|
|
|
|
-import {fileCheck, fileEdit, fileEditAll, fileInsertV2, fileEditUpdate} from '@/api/actor';
|
|
|
|
|
|
+import selectTable from '@/views/modules/material/comment/selectTable.vue';
|
|
|
|
+import {fileCheck, fileEdit, fileEditAll, fileInsertV2, fileEditUpdate, fileEditUpdateBatch} from '@/api/actor';
|
|
import {deleteAction, getAction, postAction, putAction} from '@/api/manage';
|
|
import {deleteAction, getAction, postAction, putAction} from '@/api/manage';
|
|
import uploadFile from '@/components/uploadFile.vue';
|
|
import uploadFile from '@/components/uploadFile.vue';
|
|
import {closeAllVideoFun, stopOtherVideo} from '@/utils/videoControl';
|
|
import {closeAllVideoFun, stopOtherVideo} from '@/utils/videoControl';
|
|
import accountCheck from '@/views/modules/material/accountCheck';
|
|
import accountCheck from '@/views/modules/material/accountCheck';
|
|
import accountCheckBytedance from '@/views/modules/material/accountCheckBytedance';
|
|
import accountCheckBytedance from '@/views/modules/material/accountCheckBytedance';
|
|
|
|
+import {urlAcount} from '../account-config/account-config-server.js';
|
|
|
|
|
|
import qs from 'qs';
|
|
import qs from 'qs';
|
|
import {mapGetters} from 'vuex';
|
|
import {mapGetters} from 'vuex';
|
|
@@ -1540,6 +1668,14 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ adNameTags: [],
|
|
|
|
+ materTitltStatus: false,
|
|
|
|
+ accountMaster: {
|
|
|
|
+ height: '35px',
|
|
|
|
+ overflow: 'hidden'
|
|
|
|
+ },
|
|
|
|
+ batchVisible: false,
|
|
|
|
+ showTabsTitle: '',
|
|
taobaoSpecialOfferTitle: 'taobao',
|
|
taobaoSpecialOfferTitle: 'taobao',
|
|
defaultSolganStatus: 'input',
|
|
defaultSolganStatus: 'input',
|
|
defaultSolganTitle: 'test',
|
|
defaultSolganTitle: 'test',
|
|
@@ -1722,7 +1858,8 @@ export default {
|
|
bohuiShow: false,
|
|
bohuiShow: false,
|
|
waterLoading: false,
|
|
waterLoading: false,
|
|
videoTag: [],
|
|
videoTag: [],
|
|
- videoVisibleChange: ''
|
|
|
|
|
|
+ videoVisibleChange: '',
|
|
|
|
+ modalShowBatchList: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -1809,6 +1946,7 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.getHangye();
|
|
this.getHangye();
|
|
|
|
+ this.handleGetCreativeWord();
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
$route(n, o) {
|
|
$route(n, o) {
|
|
@@ -1819,7 +1957,7 @@ export default {
|
|
this.loadData();
|
|
this.loadData();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- 'queryParam.projectId'(n, o) {
|
|
|
|
|
|
+ 'queryParam.productId'(n, o) {
|
|
if (n !== '') {
|
|
if (n !== '') {
|
|
this.getList(n);
|
|
this.getList(n);
|
|
}
|
|
}
|
|
@@ -1861,6 +1999,246 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
|
+ handleSubmit() {
|
|
|
|
+ this.searchQuery();
|
|
|
|
+ this.checkArr = [];
|
|
|
|
+ },
|
|
|
|
+ handleMoreTagsShow(val, type) {
|
|
|
|
+ if (type === 'more') {
|
|
|
|
+ this.defaultFormList.forEach(item => {
|
|
|
|
+ if (item.id === val) {
|
|
|
|
+ item.tabStatus = 'all';
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ else if (type === 'little') {
|
|
|
|
+ this.defaultFormList.forEach(item => {
|
|
|
|
+ if (item.id === val) {
|
|
|
|
+ item.tabStatus = 'alone';
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleGetCreativeWord() {
|
|
|
|
+ getAction('/ctop/ByteDanceCreativeWordPackage/list').then(result => {
|
|
|
|
+ if (result.code === 0) {
|
|
|
|
+ this.adNameTags = result.result.records;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.$message.error(result.message);
|
|
|
|
+ }
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ console.log(error, 'eeee');
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ validatePass(rule, value, callback) {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ let finallyLenList = this.handleJudgeExec(value);
|
|
|
|
+ console.log(finallyLenList, 'finallyLenList---finallyLenList--finallyLenList');
|
|
|
|
+ let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
|
|
|
|
+ console.log(updateFinallyResult, '000000000000');
|
|
|
|
+ let resultSelectSize = 0;
|
|
|
|
+ if (finallyLenList.length) {
|
|
|
|
+ const inputDefaultLen = value.length;
|
|
|
|
+ let tagsLen = finallyLenList.length * 4;
|
|
|
|
+ let tagsSureLen = 0;
|
|
|
|
+ this.adNameTags.forEach(item => {
|
|
|
|
+ finallyLenList.forEach(val => {
|
|
|
|
+ if (item.name === val) {
|
|
|
|
+ tagsSureLen += item.maxWordLen;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ finallyLenList.forEach(item => {
|
|
|
|
+ tagsLen += item.length;
|
|
|
|
+ });
|
|
|
|
+ resultSelectSize = inputDefaultLen - tagsLen + tagsSureLen;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ resultSelectSize = value.length;
|
|
|
|
+ }
|
|
|
|
+ if (resultSelectSize === 0) {
|
|
|
|
+ callback(new Error('请输入'));
|
|
|
|
+ }
|
|
|
|
+ else if (resultSelectSize > 30 || resultSelectSize < 5) {
|
|
|
|
+ callback(new Error('创意标题5-30个字'));
|
|
|
|
+ }
|
|
|
|
+ else if (updateFinallyResult.length > 2) {
|
|
|
|
+ callback(new Error('最多选择两个词包'));
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ callback();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleJudgeExec(item) {
|
|
|
|
+ let re = /\{\{(.+?)\}\}/g;
|
|
|
|
+ let array = [];
|
|
|
|
+ let temp;
|
|
|
|
+ while ((temp = re.exec(item))) {
|
|
|
|
+ array.push(temp[1]);
|
|
|
|
+ };
|
|
|
|
+ return array;
|
|
|
|
+ },
|
|
|
|
+ // 点击获取光标位置进行字段插入
|
|
|
|
+ handleGetChangeAll(item, field, formId) {
|
|
|
|
+ let node = document.getElementById(field);
|
|
|
|
+ let startPos = node.selectionStart; // input 第0个字符到选中的字符
|
|
|
|
+ let endPos = node.selectionEnd; // 选中的字符到最后的字符
|
|
|
|
+ let txt = node.value;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ let finallyLenList = this.handleJudgeExec(txt);
|
|
|
|
+ let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
|
|
|
|
+ if (updateFinallyResult.length >= 2) {
|
|
|
|
+ this.$message.error('最多选择两个词包');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (startPos === 0 || endPos === 0) {
|
|
|
|
+ txt += '{{' + item + '}}';
|
|
|
|
+ this.examinForm.setFieldsValue({[field]: txt});
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.examinForm.setFieldsValue({[field]: txt.substring(0, startPos) + '{{' + item + '}}' + txt.substring(endPos)});
|
|
|
|
+ node.selectionStart = startPos + item.length + 6;
|
|
|
|
+ node.selectionEnd = startPos + item.length + 6;
|
|
|
|
+ }
|
|
|
|
+ node.focus();
|
|
|
|
+ node.blur();
|
|
|
|
+ });
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ const dynamicWordPackIds = [];
|
|
|
|
+ let changeData = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
|
|
|
|
+ let updateChangeData = this.adNameTags.filter(item => changeData.includes(item.name)).map(val => val.name);
|
|
|
|
+ const inputDefaultLen = this.examinForm.getFieldsValue()[field].length;
|
|
|
|
+ let tagsLen = updateChangeData.length * 4;
|
|
|
|
+ let tagsSureLen = 0;
|
|
|
|
+ let resultSelectSize = 0;
|
|
|
|
+ this.adNameTags.forEach(item => {
|
|
|
|
+ updateChangeData.forEach(val => {
|
|
|
|
+ if (item.name === val) {
|
|
|
|
+ tagsSureLen += item.maxWordLen;
|
|
|
|
+ dynamicWordPackIds.push(item.creativeWordId);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ updateChangeData.forEach(item => {
|
|
|
|
+ tagsLen += item.length;
|
|
|
|
+ });
|
|
|
|
+ resultSelectSize = inputDefaultLen - tagsLen + tagsSureLen;
|
|
|
|
+ this.defaultFormList.forEach(item => {
|
|
|
|
+ if (item.id === formId) {
|
|
|
|
+ item.lenSize = resultSelectSize;
|
|
|
|
+ item.value = this.examinForm.getFieldsValue()[field];
|
|
|
|
+ item.wordPackId = dynamicWordPackIds;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleMaterTitleClick() {
|
|
|
|
+ this.materTitltStatus = !this.materTitltStatus;
|
|
|
|
+ if (this.materTitltStatus) {
|
|
|
|
+ this.accountMaster = {
|
|
|
|
+ height: 'auto'
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.accountMaster = {
|
|
|
|
+ height: '35px',
|
|
|
|
+ overflow: 'hidden'
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleApprovedClick() {
|
|
|
|
+ const batchList = [];
|
|
|
|
+ this.defaultFormList = [];
|
|
|
|
+ this.dataSource.forEach(item => {
|
|
|
|
+ if (this.checkArr.includes(item.id)) {
|
|
|
|
+ batchList.push(item);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.modalShowBatchList = batchList;
|
|
|
|
+ this.batchVisible = true;
|
|
|
|
+ this.materTitltStatus = false;
|
|
|
|
+ this.accountMaster = {
|
|
|
|
+ height: '35px',
|
|
|
|
+ overflow: 'hidden'
|
|
|
|
+ };
|
|
|
|
+ for (let i = 0; i < 3; i++) {
|
|
|
|
+ const randomNum = new Date().getTime() + Math.ceil(Math.random() * 1000);
|
|
|
|
+ this.defaultFormList.push({
|
|
|
|
+ id: randomNum,
|
|
|
|
+ name: 'username' + randomNum,
|
|
|
|
+ value: '',
|
|
|
|
+ lenSize: 0,
|
|
|
|
+ tabStatus: 'alone',
|
|
|
|
+ defaultTagsList: this.adNameTags,
|
|
|
|
+ updateTagsList: this.adNameTags.slice(0, 4)
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleBatchSure() {
|
|
|
|
+ if (this.defaultFormList && this.defaultFormList.length < 3) {
|
|
|
|
+ this.$message.error('请至少输入3条标题');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ let changeSlogan = this.defaultFormList;
|
|
|
|
+ changeSlogan.forEach(item => {
|
|
|
|
+ item.title = item.value;
|
|
|
|
+ item.creative_word_ids = item.wordPackId;
|
|
|
|
+ });
|
|
|
|
+ let params = {
|
|
|
|
+ ids: this.modalShowBatchList.map(item => item.id) || [],
|
|
|
|
+ auditorId: this.userInfo().id,
|
|
|
|
+ status: 1,
|
|
|
|
+ slogans: changeSlogan
|
|
|
|
+ };
|
|
|
|
+ this.examinForm.validateFields(err => {
|
|
|
|
+ if (!err) {
|
|
|
|
+ fileEditUpdateBatch(params).then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.refuseReason = '';
|
|
|
|
+ this.batchVisible = false;
|
|
|
|
+ this.defaultFormList = [];
|
|
|
|
+ this.$message.success('审核成功');
|
|
|
|
+ this.loadData();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleBatchCancel() {
|
|
|
|
+ this.batchVisible = false;
|
|
|
|
+ },
|
|
|
|
+ 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) {
|
|
compareToFirstPassword(rule, value, callback) {
|
|
if (value && value.length > 30 || value.length < 5) {
|
|
if (value && value.length > 30 || value.length < 5) {
|
|
callback('创意标题5-30个字');
|
|
callback('创意标题5-30个字');
|
|
@@ -1877,7 +2255,6 @@ export default {
|
|
this.showUrlWater = res.result.watermarkUrl;
|
|
this.showUrlWater = res.result.watermarkUrl;
|
|
this.name = res.result.watermarkCode;
|
|
this.name = res.result.watermarkCode;
|
|
this.materialName = res.result.materialName;
|
|
this.materialName = res.result.materialName;
|
|
- // 0317淘特除螨仪.mp4 0317幸福里 没钱 高清版.mp4 0316幸福里来北京五年 高清 大妈和美女2高清.mp4 WIFIAQZS2004JYL.mp4
|
|
|
|
res.result.slogans.forEach(item => {
|
|
res.result.slogans.forEach(item => {
|
|
item.name = 'username' + item.id;
|
|
item.name = 'username' + item.id;
|
|
});
|
|
});
|
|
@@ -1937,10 +2314,10 @@ export default {
|
|
this.solganForm.setFieldsValue({[data.name]: data.slogan});
|
|
this.solganForm.setFieldsValue({[data.name]: data.slogan});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- handleFormInputChang(e, data) {
|
|
|
|
|
|
+ handleFormInputChang(e, field, formId) {
|
|
const changeFiled = [];
|
|
const changeFiled = [];
|
|
this.defaultFormList.forEach(item => {
|
|
this.defaultFormList.forEach(item => {
|
|
- if (item.id === data.id) {
|
|
|
|
|
|
+ if (item.id === formId) {
|
|
item.value = e.target.value;
|
|
item.value = e.target.value;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1949,7 +2326,34 @@ export default {
|
|
changeFiled.push(item.value);
|
|
changeFiled.push(item.value);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- this.titleFiledResult = changeFiled;
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ const dynamicWordPackIds = [];
|
|
|
|
+ let finallyLenList = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
|
|
|
|
+ let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
|
|
|
|
+ const inputDefaultLen = this.defaultFormList.filter(item => item.id === formId)[0].value.length;
|
|
|
|
+ let tagsLen = updateFinallyResult.length * 4;
|
|
|
|
+ let tagsSureLen = 0;
|
|
|
|
+ let resultSelectSize = 0;
|
|
|
|
+ this.adNameTags.forEach(item => {
|
|
|
|
+ updateFinallyResult.forEach(val => {
|
|
|
|
+ if (item.name === val) {
|
|
|
|
+ tagsSureLen += item.maxWordLen;
|
|
|
|
+ dynamicWordPackIds.push(item.creativeWordId);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ updateFinallyResult.forEach(item => {
|
|
|
|
+ tagsLen += item.length;
|
|
|
|
+ });
|
|
|
|
+ resultSelectSize = inputDefaultLen - tagsLen + tagsSureLen;
|
|
|
|
+ this.defaultFormList.forEach(item => {
|
|
|
|
+ if (item.id === formId) {
|
|
|
|
+ item.lenSize = resultSelectSize;
|
|
|
|
+ item.wordPackId = dynamicWordPackIds;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.titleFiledResult = changeFiled;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
handleCheckBoxChang(data) {
|
|
handleCheckBoxChang(data) {
|
|
this.applyTypeOption = data;
|
|
this.applyTypeOption = data;
|
|
@@ -2007,7 +2411,10 @@ export default {
|
|
this.defaultFormList.push({
|
|
this.defaultFormList.push({
|
|
id: dateTime,
|
|
id: dateTime,
|
|
name: name,
|
|
name: name,
|
|
- value: item
|
|
|
|
|
|
+ value: item,
|
|
|
|
+ tabStatus: 'alone',
|
|
|
|
+ defaultTagsList: this.adNameTags,
|
|
|
|
+ updateTagsList: this.adNameTags.slice(0, 4)
|
|
});
|
|
});
|
|
});
|
|
});
|
|
this.titleResult = [];
|
|
this.titleResult = [];
|
|
@@ -2030,7 +2437,11 @@ export default {
|
|
this.defaultFormList.push({
|
|
this.defaultFormList.push({
|
|
id: randomNum,
|
|
id: randomNum,
|
|
name: 'username' + randomNum,
|
|
name: 'username' + randomNum,
|
|
- value: ''
|
|
|
|
|
|
+ value: '',
|
|
|
|
+ lenSize: 0,
|
|
|
|
+ tabStatus: 'alone',
|
|
|
|
+ defaultTagsList: this.adNameTags,
|
|
|
|
+ updateTagsList: this.adNameTags.slice(0, 4)
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleDelOrigin(list) {
|
|
handleDelOrigin(list) {
|
|
@@ -2038,21 +2449,47 @@ export default {
|
|
this.defaultFormList = formData.filter(item => list.id !== item.id);
|
|
this.defaultFormList = formData.filter(item => list.id !== item.id);
|
|
},
|
|
},
|
|
handleExamin(data) {
|
|
handleExamin(data) {
|
|
|
|
+ this.defaultFormList = [];
|
|
getAction('/ctop/materialInfo/queryById', {
|
|
getAction('/ctop/materialInfo/queryById', {
|
|
id: data.id
|
|
id: data.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
if (res.result.slogans.length) {
|
|
if (res.result.slogans.length) {
|
|
res.result.slogans.forEach(item => {
|
|
res.result.slogans.forEach(item => {
|
|
|
|
+ let finallyLenList = this.handleJudgeExec(item.slogan);
|
|
|
|
+ let resultSelectSize = 0;
|
|
|
|
+ if (finallyLenList.length) {
|
|
|
|
+ const inputDefaultLen = item.slogan.length;
|
|
|
|
+ let tagsLen = finallyLenList.length * 4;
|
|
|
|
+ let tagsSureLen = 0;
|
|
|
|
+ this.adNameTags.forEach(item => {
|
|
|
|
+ finallyLenList.forEach(val => {
|
|
|
|
+ if (item.name === val) {
|
|
|
|
+ tagsSureLen += item.maxWordLen;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ finallyLenList.forEach(item => {
|
|
|
|
+ tagsLen += item.length;
|
|
|
|
+ });
|
|
|
|
+ resultSelectSize = inputDefaultLen - tagsLen + tagsSureLen;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ resultSelectSize = item.slogan.length;
|
|
|
|
+ }
|
|
item.name = 'username' + item.id;
|
|
item.name = 'username' + item.id;
|
|
item.value = item.slogan;
|
|
item.value = item.slogan;
|
|
|
|
+ item.lenSize = resultSelectSize;
|
|
|
|
+ item.tabStatus = 'alone';
|
|
|
|
+ item.defaultTagsList = this.adNameTags;
|
|
|
|
+ item.updateTagsList = this.adNameTags.slice(0, 4);
|
|
});
|
|
});
|
|
this.defaultFormList = res.result.slogans;
|
|
this.defaultFormList = res.result.slogans;
|
|
- this.$nextTick(() => {
|
|
|
|
- this.defaultFormList.forEach(item => {
|
|
|
|
- this.defaultFormList.setFieldsValue({[item.name]: item.slogan});
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
+ // this.defaultFormList.forEach(item => {
|
|
|
|
+ // this.defaultFormList.setFieldsValue({[item.name]: item.slogan});
|
|
|
|
+ // });
|
|
|
|
+ // });
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
for (let i = 0; i < 3; i++) {
|
|
for (let i = 0; i < 3; i++) {
|
|
@@ -2060,7 +2497,11 @@ export default {
|
|
this.defaultFormList.push({
|
|
this.defaultFormList.push({
|
|
id: randomNum,
|
|
id: randomNum,
|
|
name: 'username' + randomNum,
|
|
name: 'username' + randomNum,
|
|
- value: ''
|
|
|
|
|
|
+ value: '',
|
|
|
|
+ lenSize: 0,
|
|
|
|
+ tabStatus: 'alone',
|
|
|
|
+ defaultTagsList: this.adNameTags,
|
|
|
|
+ updateTagsList: this.adNameTags.slice(0, 4)
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2074,6 +2515,7 @@ export default {
|
|
this.causeVisible = true;
|
|
this.causeVisible = true;
|
|
this.recommendVisible = false;
|
|
this.recommendVisible = false;
|
|
this.titleResult = [];
|
|
this.titleResult = [];
|
|
|
|
+ this.checkArr = [];
|
|
},
|
|
},
|
|
handleCauseCancel() {
|
|
handleCauseCancel() {
|
|
this.causeVisible = false;
|
|
this.causeVisible = false;
|
|
@@ -2084,11 +2526,16 @@ export default {
|
|
this.$message.error('请至少输入3条标题');
|
|
this.$message.error('请至少输入3条标题');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ let changeSlogan = this.defaultFormList;
|
|
|
|
+ changeSlogan.forEach(item => {
|
|
|
|
+ item.title = item.value;
|
|
|
|
+ item.creative_word_ids = item.wordPackId;
|
|
|
|
+ });
|
|
let params = {
|
|
let params = {
|
|
id: this.currentPageOnlyList.id,
|
|
id: this.currentPageOnlyList.id,
|
|
auditorId: this.userInfo().id,
|
|
auditorId: this.userInfo().id,
|
|
status: 1,
|
|
status: 1,
|
|
- slogans: this.defaultFormList.map(item => item.value) || []
|
|
|
|
|
|
+ slogans: changeSlogan
|
|
};
|
|
};
|
|
this.examinForm.validateFields(err => {
|
|
this.examinForm.validateFields(err => {
|
|
if (!err) {
|
|
if (!err) {
|
|
@@ -2320,23 +2767,29 @@ export default {
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
},
|
|
},
|
|
moment,
|
|
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) {
|
|
implement(data) {
|
|
let params = {};
|
|
let params = {};
|
|
@@ -2419,22 +2872,26 @@ export default {
|
|
this.queryParam = {
|
|
this.queryParam = {
|
|
type: 'VIDEO',
|
|
type: 'VIDEO',
|
|
userId: this.userInfo().id,
|
|
userId: this.userInfo().id,
|
|
- status: this.active
|
|
|
|
- };
|
|
|
|
|
|
+ status: this.active,
|
|
|
|
+ productId: ''
|
|
|
|
+ }
|
|
|
|
+ this.$refs.selectTable.keyValue = "";
|
|
|
|
+ this.$refs.selectTable.getData()
|
|
this.labelValue = [];
|
|
this.labelValue = [];
|
|
this.loadData(1);
|
|
this.loadData(1);
|
|
|
|
+ this.checkArr = [];
|
|
},
|
|
},
|
|
getList(value) {
|
|
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();
|
|
this.loadData();
|
|
},
|
|
},
|
|
onChangeCheckImage(checkedList) {
|
|
onChangeCheckImage(checkedList) {
|
|
@@ -2442,7 +2899,10 @@ export default {
|
|
this.checkAllImage = false;
|
|
this.checkAllImage = false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onChangeCheck(checkedList) {
|
|
|
|
|
|
+ onChangeCheck(checkedList, data) {
|
|
|
|
+ if (data.value === '0') {
|
|
|
|
+ this.showTabsTitle = '0';
|
|
|
|
+ }
|
|
if (checkedList.length === 0) {
|
|
if (checkedList.length === 0) {
|
|
this.checkAll = false;
|
|
this.checkAll = false;
|
|
}
|
|
}
|
|
@@ -2650,7 +3110,8 @@ export default {
|
|
this.visibleDetail = false;
|
|
this.visibleDetail = false;
|
|
closeAllVideoFun();
|
|
closeAllVideoFun();
|
|
});
|
|
});
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
fileEdit({
|
|
fileEdit({
|
|
id: this.id,
|
|
id: this.id,
|
|
status: editStatus,
|
|
status: editStatus,
|
|
@@ -2926,7 +3387,7 @@ export default {
|
|
type: 'VIDEO',
|
|
type: 'VIDEO',
|
|
userId: this.userInfo().id,
|
|
userId: this.userInfo().id,
|
|
status: key,
|
|
status: key,
|
|
- projectId: this.queryParam.projectId
|
|
|
|
|
|
+ productId: this.queryParam.productId
|
|
}
|
|
}
|
|
if (this.labelValue.length >= 1) {
|
|
if (this.labelValue.length >= 1) {
|
|
this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1];
|
|
this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1];
|
|
@@ -2934,7 +3395,7 @@ export default {
|
|
else {
|
|
else {
|
|
this.queryParam.tagCode = '';
|
|
this.queryParam.tagCode = '';
|
|
}
|
|
}
|
|
- if (this.form.getFieldValue('projectId')) {
|
|
|
|
|
|
+ if (this.form.getFieldValue('productId')) {
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
projectId: ''
|
|
projectId: ''
|
|
});
|
|
});
|