|
@@ -313,7 +313,7 @@
|
|
|
<a-form layout="inline" :selfUpdate="true">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="8" :sm="8">
|
|
|
- <selectTable :projectId.sync="queryParam.projectId"></selectTable>
|
|
|
+ <selectTable :projectId.sync="queryParam.projectId" :type="taobaoSpecialOfferTitle"></selectTable>
|
|
|
</a-col>
|
|
|
<a-col :md="8" :sm="8">
|
|
|
<a-form-item label="素材名称">
|
|
@@ -1183,7 +1183,7 @@
|
|
|
驳回原因:
|
|
|
<a-textarea
|
|
|
placeholder="请输入原因"
|
|
|
- v-model="refuseReasonImage"
|
|
|
+ v-model="refuseReasonImage"
|
|
|
:autosize="{ minRows: 3, maxRows: 10 }"
|
|
|
/>
|
|
|
</div>
|
|
@@ -1194,7 +1194,7 @@
|
|
|
</div>
|
|
|
</a-form>
|
|
|
<div class="solgan-whole-content">
|
|
|
- <span class="solgan-title-header">广告语</span>
|
|
|
+ <span class="solgan-title-header">广告语:</span>
|
|
|
<a-form v-if="slogansDetail.length" :form="solganForm" class="solgan-form-class">
|
|
|
<a-form-item
|
|
|
v-for="item in slogansDetail"
|
|
@@ -1233,7 +1233,7 @@
|
|
|
<a-icon class="examin-form-icon icon-delete" type="delete" @click="handleDelSolgan(item)"/>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
|
- <span v-else class="solgan-title-header">暂无广告语</span>
|
|
|
+ <span v-else class="solgan-title-header">暂无</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1464,7 +1464,7 @@
|
|
|
<div>
|
|
|
<div class="acount-title">
|
|
|
<div class="acount-title-left">素材名称</div>
|
|
|
- <div class="acount-title-right">蓝牙耳机-立即领取</div>
|
|
|
+ <div class="acount-title-right">{{ currentPageOnlyList.materialName }}</div>
|
|
|
</div>
|
|
|
<div class="acount-title push-plate">
|
|
|
<div class="acount-title-left">创意标题</div>
|
|
@@ -1490,10 +1490,8 @@
|
|
|
v-decorator="[
|
|
|
item.name,
|
|
|
{ rules: [
|
|
|
- { required: true, message: '请输入'},
|
|
|
- {
|
|
|
- validator: compareToFirstPassword
|
|
|
- }
|
|
|
+ {required: true, message: '请输入创意标题'},
|
|
|
+ {min: 5, max: 30, message: '创意标题5-30个字'}
|
|
|
]}
|
|
|
]"
|
|
|
class="examin-form-input"
|
|
@@ -1541,6 +1539,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ taobaoSpecialOfferTitle: 'taobao',
|
|
|
defaultSolganStatus: 'input',
|
|
|
defaultSolganTitle: 'test',
|
|
|
slogansDetail: [],
|
|
@@ -1555,23 +1554,7 @@ export default {
|
|
|
wrapperCol: {span: 14},
|
|
|
solganForm: this.$form.createForm(this),
|
|
|
examinForm: this.$form.createForm(this),
|
|
|
- defaultFormList: [
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- name: 'username1',
|
|
|
- value: ''
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- name: 'username2',
|
|
|
- value: ''
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
- name: 'username3',
|
|
|
- value: ''
|
|
|
- }
|
|
|
- ],
|
|
|
+ defaultFormList: [],
|
|
|
causeVisible: false,
|
|
|
causeConfirmLoading: false,
|
|
|
labelValue: [],
|
|
@@ -1853,7 +1836,9 @@ export default {
|
|
|
this.defaultFormList = n;
|
|
|
this.$nextTick(() => {
|
|
|
this.defaultFormList.forEach(item => {
|
|
|
- result.push(item.value);
|
|
|
+ if (item.value) {
|
|
|
+ result.push(item.value);
|
|
|
+ }
|
|
|
this.examinForm.setFieldsValue({[item.name]: item.value});
|
|
|
});
|
|
|
this.titleFiledResult = result;
|
|
@@ -1876,7 +1861,7 @@ export default {
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
compareToFirstPassword(rule, value, callback) {
|
|
|
if (value && value.length > 30 || value.length < 5) {
|
|
|
- callback('内容长度必须在5-30之间!');
|
|
|
+ callback('创意标题5-30个字');
|
|
|
}
|
|
|
else {
|
|
|
callback();
|
|
@@ -2002,6 +1987,7 @@ export default {
|
|
|
},
|
|
|
handleRecommendSure() {
|
|
|
this.recommendVisible = false;
|
|
|
+ this.keyWordRec = '';
|
|
|
let formData = this.defaultFormList;
|
|
|
this.defaultFormList = formData.filter(item => item.value !== '');
|
|
|
this.applyTypeOption.forEach(item => {
|
|
@@ -2016,6 +2002,7 @@ export default {
|
|
|
},
|
|
|
handleRecommendCancel() {
|
|
|
this.recommendVisible = false;
|
|
|
+ this.keyWordRec = '';
|
|
|
},
|
|
|
handleSelectTitle() {
|
|
|
this.recommendVisible = true;
|
|
@@ -2033,28 +2020,20 @@ export default {
|
|
|
this.defaultFormList = formData.filter(item => list.id !== item.id);
|
|
|
},
|
|
|
handleExamin(data) {
|
|
|
+ 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: ''
|
|
|
+ });
|
|
|
+ }
|
|
|
this.currentPageOnlyList = data;
|
|
|
this.causeVisible = true;
|
|
|
},
|
|
|
handleCauseCancel() {
|
|
|
this.causeVisible = false;
|
|
|
- this.defaultFormList = [
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- name: 'username1',
|
|
|
- value: ''
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- name: 'username2',
|
|
|
- value: ''
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
- name: 'username3',
|
|
|
- value: ''
|
|
|
- }
|
|
|
- ];
|
|
|
+ this.defaultFormList = [];
|
|
|
},
|
|
|
handleCauseSure() {
|
|
|
if (this.defaultFormList && this.defaultFormList.length < 3) {
|
|
@@ -2070,26 +2049,14 @@ export default {
|
|
|
this.examinForm.validateFields(err => {
|
|
|
if (!err) {
|
|
|
fileEditUpdate(params).then(res => {
|
|
|
- this.refuseReason = '';
|
|
|
- this.causeVisible = false;
|
|
|
- this.defaultFormList = [
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- name: 'username1',
|
|
|
- value: ''
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- name: 'username2',
|
|
|
- value: ''
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
- name: 'username3',
|
|
|
- value: ''
|
|
|
- }
|
|
|
- ];
|
|
|
- this.loadData();
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.refuseReason = '';
|
|
|
+ this.causeVisible = false;
|
|
|
+ this.defaultFormList = [];
|
|
|
+ this.$message.error('创建成功');
|
|
|
+ this.loadData();
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -2512,13 +2479,10 @@ export default {
|
|
|
this.showUrlWater = res.result.watermarkUrl;
|
|
|
this.name = res.result.watermarkCode;
|
|
|
this.materialName = res.result.materialName;
|
|
|
- // this.slogansDetail = res.result.slogans;0317淘特除螨仪.mp4
|
|
|
- console.log(res.result.slogans, 'res.result.slogans');
|
|
|
res.result.slogans.forEach(item => {
|
|
|
item.name = 'username' + item.id;
|
|
|
});
|
|
|
this.slogansDetail = res.result.slogans;
|
|
|
- console.log(this.slogansDetail, 'this.slogansDetail');
|
|
|
this.$nextTick(() => {
|
|
|
this.slogansDetail.forEach(item => {
|
|
|
this.solganForm.setFieldsValue({[item.name]: item.slogan});
|
|
@@ -3037,7 +3001,13 @@ export default {
|
|
|
projectName: value,
|
|
|
}).then(res => {
|
|
|
if (res.code == 0) {
|
|
|
- this.dataElse = res.result.records;
|
|
|
+ let defaultData = res.result.records;
|
|
|
+ if (this.taobaoSpecialOfferTitle === 'taobao') {
|
|
|
+ this.dataElse = defaultData.filter(item => item.productId === 1410280);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.dataElse = defaultData;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|