Browse Source

动态词包 整体修改

jiayufei 4 years ago
parent
commit
a03563b22e

+ 2 - 2
src/views/modules/account-config/account-config-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  * @author jiayufei
  */
  */
 
 
-export const urlAcount = 'http://118.24.244.213:8080'; // 线上
+// export const urlAcount = 'http://118.24.244.213:8080'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://192.168.1.43:8080'; // 子安
 // export const urlAcount = 'http://192.168.1.43:8080'; // 子安
 // export const urlAcount = 'http://139.186.165.84:8080'; // 测试
 // export const urlAcount = 'http://139.186.165.84:8080'; // 测试
-// export const urlAcount = 'http://192.168.1.8:8080'; // 学超
+export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 2 - 2
src/views/modules/copy-library/copy-library-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  * @author jiayufei
  */
  */
 
 
-export const urlAcount = 'http://118.24.244.213:8080'; // 线上
+// export const urlAcount = 'http://118.24.244.213:8080'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://192.168.1.43:8080'; // 子安
 // export const urlAcount = 'http://192.168.1.43:8080'; // 子安
 // export const urlAcount = 'http://139.186.165.84:8080'; // 测试
 // export const urlAcount = 'http://139.186.165.84:8080'; // 测试
-// export const urlAcount = 'http://192.168.1.8:8080'; // 学超
+export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 50 - 18
src/views/modules/copy-library/copy-library.vue

@@ -878,16 +878,24 @@ export default {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 const dynamicWordPackIds = [];
                 const dynamicWordPackIds = [];
                 let finallyLenList = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
                 let finallyLenList = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = newOptionList.map(val => val.name);
                 const inputDefaultLen = this.handleExportRules(this.defaultFormList.filter(item => item.id === formId)[0].value);
                 const inputDefaultLen = this.handleExportRules(this.defaultFormList.filter(item => item.id === formId)[0].value);
                 let tagsLen = updateFinallyResult.length * 2;
                 let tagsLen = updateFinallyResult.length * 2;
                 let tagsSureLen = 0;
                 let tagsSureLen = 0;
                 let resultSelectSize = 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 => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            tagsSureLen += val.maxWordLen;
+                            dynamicWordPackIds.push(val.creativeWordId);
                         }
                         }
                     });
                     });
                 });
                 });
@@ -921,7 +929,15 @@ export default {
             let txt = node.value;
             let txt = node.value;
             this.$nextTick(() => {
             this.$nextTick(() => {
                 let finallyLenList = this.handleJudgeExec(txt);
                 let finallyLenList = this.handleJudgeExec(txt);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let arr = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            arr.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = arr.map(val => val.name);
                 if (updateFinallyResult.length >= 2) {
                 if (updateFinallyResult.length >= 2) {
                     this.$message.error('最多选择两个词包');
                     this.$message.error('最多选择两个词包');
                     return;
                     return;
@@ -941,16 +957,24 @@ export default {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 const dynamicWordPackIds = [];
                 const dynamicWordPackIds = [];
                 let changeData = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
                 let changeData = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
-                let updateChangeData = this.adNameTags.filter(item => changeData.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                changeData.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateChangeData = newOptionList.map(val => val.name);
                 const inputDefaultLen = this.handleExportRules(this.examinForm.getFieldsValue()[field]);
                 const inputDefaultLen = this.handleExportRules(this.examinForm.getFieldsValue()[field]);
                 let tagsLen = updateChangeData.length * 2;
                 let tagsLen = updateChangeData.length * 2;
                 let tagsSureLen = 0;
                 let tagsSureLen = 0;
                 let resultSelectSize = 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 => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            tagsSureLen += val.maxWordLen;
+                            dynamicWordPackIds.push(val.creativeWordId);
                         }
                         }
                     });
                     });
                 });
                 });
@@ -970,16 +994,24 @@ export default {
         validatePass(rule, value, callback) {
         validatePass(rule, value, callback) {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 let finallyLenList = this.handleJudgeExec(value);
                 let finallyLenList = this.handleJudgeExec(value);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = newOptionList.map(val => val.name);
                 let resultSelectSize = 0;
                 let resultSelectSize = 0;
                 if (updateFinallyResult.length) {
                 if (updateFinallyResult.length) {
                     const inputDefaultLen = this.handleExportRules(value);
                     const inputDefaultLen = this.handleExportRules(value);
                     let tagsLen = updateFinallyResult.length * 2;
                     let tagsLen = updateFinallyResult.length * 2;
                     let tagsSureLen = 0;
                     let tagsSureLen = 0;
-                    this.adNameTags.forEach(item => {
-                        updateFinallyResult.forEach(val => {
-                            if (item.name === val) {
-                                tagsSureLen += item.maxWordLen;
+                    updateFinallyResult.forEach(item => {
+                        this.adNameTags.forEach(val => {
+                            if (item === val.name) {
+                                tagsSureLen += val.maxWordLen;
                             }
                             }
                         });
                         });
                     });
                     });

+ 121 - 57
src/views/modules/creative-copywrit/creative-copywrit.vue

@@ -2155,16 +2155,24 @@ export default {
         validatePass(rule, value, callback) {
         validatePass(rule, value, callback) {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 let finallyLenList = this.handleJudgeExec(value);
                 let finallyLenList = this.handleJudgeExec(value);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = newOptionList.map(val => val.name);
                 let resultSelectSize = 0;
                 let resultSelectSize = 0;
                 if (updateFinallyResult.length) {
                 if (updateFinallyResult.length) {
                     const inputDefaultLen = this.handleExportRules(value);
                     const inputDefaultLen = this.handleExportRules(value);
                     let tagsLen = updateFinallyResult.length * 2;
                     let tagsLen = updateFinallyResult.length * 2;
                     let tagsSureLen = 0;
                     let tagsSureLen = 0;
-                    this.adNameTags.forEach(item => {
-                        updateFinallyResult.forEach(val => {
-                            if (item.name === val) {
-                                tagsSureLen += item.maxWordLen;
+                    updateFinallyResult.forEach(item => {
+                        this.adNameTags.forEach(val => {
+                            if (item === val.name) {
+                                tagsSureLen += val.maxWordLen;
                             }
                             }
                         });
                         });
                     });
                     });
@@ -2179,17 +2187,17 @@ export default {
                 if (resultSelectSize === 0) {
                 if (resultSelectSize === 0) {
                     callback(new Error('请输入'));
                     callback(new Error('请输入'));
                 }
                 }
-                else if (resultSelectSize > 30 || resultSelectSize < 5) {
-                    callback(new Error('创意标题5-30个字'));
-                }
+                else if (resultSelectSize > 30 || resultSelectSize < 5) {
+                    callback(new Error('创意标题5-30个字'));
+                }
                 else if (updateFinallyResult.length > 2) {
                 else if (updateFinallyResult.length > 2) {
                     callback(new Error('最多选择两个词包'));
                     callback(new Error('最多选择两个词包'));
                 }
                 }
                 else {
                 else {
-                    callback();
-                }
+                    callback();
+                }
             });
             });
-        },
+        },
         handleJudgeExec(item) {
         handleJudgeExec(item) {
             let re = /\{(.+?)\}/g;
             let re = /\{(.+?)\}/g;
             let array = [];
             let array = [];
@@ -2226,16 +2234,24 @@ export default {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 const dynamicWordPackIds = [];
                 const dynamicWordPackIds = [];
                 let changeData = this.handleJudgeExec(this.solganForm.getFieldsValue()[field]);
                 let changeData = this.handleJudgeExec(this.solganForm.getFieldsValue()[field]);
-                let updateChangeData = this.adNameTags.filter(item => changeData.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                changeData.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateChangeData = newOptionList.map(val => val.name);
                 const inputDefaultLen = this.handleExportRules(this.solganForm.getFieldsValue()[field]);
                 const inputDefaultLen = this.handleExportRules(this.solganForm.getFieldsValue()[field]);
                 let tagsLen = updateChangeData.length * 2;
                 let tagsLen = updateChangeData.length * 2;
                 let tagsSureLen = 0;
                 let tagsSureLen = 0;
                 let resultSelectSize = 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 => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            tagsSureLen += val.maxWordLen;
+                            dynamicWordPackIds.push(val.creativeWordId);
                         }
                         }
                     });
                     });
                 });
                 });
@@ -2260,7 +2276,15 @@ export default {
             let txt = node.value;
             let txt = node.value;
             this.$nextTick(() => {
             this.$nextTick(() => {
                 let finallyLenList = this.handleJudgeExec(txt);
                 let finallyLenList = this.handleJudgeExec(txt);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let arr = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            arr.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = arr.map(val => val.name);
                 if (updateFinallyResult.length >= 2) {
                 if (updateFinallyResult.length >= 2) {
                     this.$message.error('最多选择两个词包');
                     this.$message.error('最多选择两个词包');
                     return;
                     return;
@@ -2280,16 +2304,24 @@ export default {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 const dynamicWordPackIds = [];
                 const dynamicWordPackIds = [];
                 let changeData = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
                 let changeData = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
-                let updateChangeData = this.adNameTags.filter(item => changeData.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                changeData.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateChangeData = newOptionList.map(val => val.name);
                 const inputDefaultLen = this.handleExportRules(this.examinForm.getFieldsValue()[field]);
                 const inputDefaultLen = this.handleExportRules(this.examinForm.getFieldsValue()[field]);
                 let tagsLen = updateChangeData.length * 2;
                 let tagsLen = updateChangeData.length * 2;
                 let tagsSureLen = 0;
                 let tagsSureLen = 0;
                 let resultSelectSize = 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 => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            tagsSureLen += val.maxWordLen;
+                            dynamicWordPackIds.push(val.creativeWordId);
                         }
                         }
                     });
                     });
                 });
                 });
@@ -2367,14 +2399,16 @@ export default {
             this.examinForm.validateFields(err => {
             this.examinForm.validateFields(err => {
                 if (!err) {
                 if (!err) {
                     fileEditUpdateBatch(params).then(res => {
                     fileEditUpdateBatch(params).then(res => {
-                        if (res.code === 200) {
+                        if (res.code === 0) {
                             this.refuseReason = '';
                             this.refuseReason = '';
                             this.batchVisible = false;
                             this.batchVisible = false;
                             this.defaultFormList = [];
                             this.defaultFormList = [];
                             this.$message.success('审核成功');
                             this.$message.success('审核成功');
                             this.loadData();
                             this.loadData();
                         }
                         }
-                        
+                        else {
+                            this.$message.error(res.message);
+                        }
                     });
                     });
                 }
                 }
             });
             });
@@ -2448,10 +2482,10 @@ export default {
                             const inputDefaultLen = this.handleExportRules(item.slogan);
                             const inputDefaultLen = this.handleExportRules(item.slogan);
                             let tagsLen = finallyLenList.length * 2;
                             let tagsLen = finallyLenList.length * 2;
                             let tagsSureLen = 0;
                             let tagsSureLen = 0;
-                            this.adNameTags.forEach(item => {
-                                finallyLenList.forEach(val => {
-                                    if (item.name === val) {
-                                        tagsSureLen += item.maxWordLen;
+                            finallyLenList.forEach(item => {
+                                this.adNameTags.forEach(val => {
+                                    if (item === val.name) {
+                                        tagsSureLen += val.maxWordLen;
                                     }
                                     }
                                 });
                                 });
                             });
                             });
@@ -2503,17 +2537,20 @@ export default {
             });
             });
             this.solganForm.validateFields(err => {
             this.solganForm.validateFields(err => {
                 if (!err) {
                 if (!err) {
-                    this.defaultSolganStatus = 'input';
-                    this.defaultSolganTitle = 'test';
                     postAction('/ctop/bytedanceVideoSlogenInfo/edit', {
                     postAction('/ctop/bytedanceVideoSlogenInfo/edit', {
                         id: data.id,
                         id: data.id,
                         slogan: changeSlogan.filter(item => item.id === data.id)[0].title,
                         slogan: changeSlogan.filter(item => item.id === data.id)[0].title,
                         creativeWordIds: JSON.stringify(changeSlogan.filter(item => item.id === data.id)[0].creative_word_ids)
                         creativeWordIds: JSON.stringify(changeSlogan.filter(item => item.id === data.id)[0].creative_word_ids)
                     }).then(res => {
                     }).then(res => {
-                        if (res.success) {
+                        if (res.code === 0) {
+                            this.defaultSolganStatus = 'input';
+                            this.defaultSolganTitle = 'test';
                             this.$message.success('修改成功');
                             this.$message.success('修改成功');
                             this.handleGetQueryById();
                             this.handleGetQueryById();
                         }
                         }
+                        else {
+                            this.$message.error(res.message);
+                        }
                     });
                     });
                 }
                 }
             });
             });
@@ -2533,16 +2570,24 @@ export default {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 const dynamicWordPackIds = [];
                 const dynamicWordPackIds = [];
                 let finallyLenList = this.handleJudgeExec(e.target.value);
                 let finallyLenList = this.handleJudgeExec(e.target.value);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = newOptionList.map(val => val.name);
                 const inputDefaultLen = this.handleExportRules(e.target.value);
                 const inputDefaultLen = this.handleExportRules(e.target.value);
                 let tagsLen = updateFinallyResult.length * 2;
                 let tagsLen = updateFinallyResult.length * 2;
                 let tagsSureLen = 0;
                 let tagsSureLen = 0;
                 let resultSelectSize = 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 => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            tagsSureLen += val.maxWordLen;
+                            dynamicWordPackIds.push(val.creativeWordId);
                         }
                         }
                     });
                     });
                 });
                 });
@@ -2574,16 +2619,24 @@ export default {
             this.$nextTick(() => {
             this.$nextTick(() => {
                 const dynamicWordPackIds = [];
                 const dynamicWordPackIds = [];
                 let finallyLenList = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
                 let finallyLenList = this.handleJudgeExec(this.examinForm.getFieldsValue()[field]);
-                let updateFinallyResult = this.adNameTags.filter(item => finallyLenList.includes(item.name)).map(val => val.name);
+                let newOptionList = [];
+                finallyLenList.forEach(item => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            newOptionList.push(val);
+                        }
+                    });
+                });
+                let updateFinallyResult = newOptionList.map(val => val.name);
                 const inputDefaultLen = this.handleExportRules(this.defaultFormList.filter(item => item.id === formId)[0].value);
                 const inputDefaultLen = this.handleExportRules(this.defaultFormList.filter(item => item.id === formId)[0].value);
                 let tagsLen = updateFinallyResult.length * 2;
                 let tagsLen = updateFinallyResult.length * 2;
                 let tagsSureLen = 0;
                 let tagsSureLen = 0;
                 let resultSelectSize = 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 => {
+                    this.adNameTags.forEach(val => {
+                        if (item === val.name) {
+                            tagsSureLen += val.maxWordLen;
+                            dynamicWordPackIds.push(val.creativeWordId);
                         }
                         }
                     });
                     });
                 });
                 });
@@ -2702,15 +2755,23 @@ export default {
                     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 finallyLenList = this.handleJudgeExec(item.slogan);
+                            let newOptionList = [];
+                            finallyLenList.forEach(item => {
+                                this.adNameTags.forEach(val => {
+                                    if (item === val.name) {
+                                        newOptionList.push(val);
+                                    }
+                                });
+                            });
                             let resultSelectSize = 0;
                             let resultSelectSize = 0;
-                            if (finallyLenList.length) {
+                            if (newOptionList.length) {
                                 const inputDefaultLen = this.handleExportRules(item.slogan);
                                 const inputDefaultLen = this.handleExportRules(item.slogan);
-                                let tagsLen = finallyLenList.length * 2;
+                                let tagsLen = newOptionList.length * 2;
                                 let tagsSureLen = 0;
                                 let tagsSureLen = 0;
-                                this.adNameTags.forEach(item => {
-                                    finallyLenList.forEach(val => {
-                                        if (item.name === val) {
-                                            tagsSureLen += item.maxWordLen;
+                                newOptionList.forEach(item => {
+                                    this.adNameTags.forEach(val => {
+                                        if (item === val.name) {
+                                            tagsSureLen += val.maxWordLen;
                                         }
                                         }
                                     });
                                     });
                                 });
                                 });
@@ -2728,6 +2789,7 @@ export default {
                             item.tabStatus = 'alone';
                             item.tabStatus = 'alone';
                             item.defaultTagsList = this.adNameTags;
                             item.defaultTagsList = this.adNameTags;
                             item.updateTagsList = this.adNameTags.slice(0, 4);
                             item.updateTagsList = this.adNameTags.slice(0, 4);
+                            item.wordPackId = item.creativeWordIds && JSON.parse(item.creativeWordIds);
                         });
                         });
                         this.defaultFormList = res.result.slogans;
                         this.defaultFormList = res.result.slogans;
                     }
                     }
@@ -2780,14 +2842,16 @@ export default {
             this.examinForm.validateFields(err => {
             this.examinForm.validateFields(err => {
                 if (!err) {
                 if (!err) {
                     fileEditUpdate(params).then(res => {
                     fileEditUpdate(params).then(res => {
-                        if (res.code === 200) {
+                        if (res.code === 0) {
                             this.refuseReason = '';
                             this.refuseReason = '';
                             this.causeVisible = false;
                             this.causeVisible = false;
                             this.defaultFormList = [];
                             this.defaultFormList = [];
                             this.$message.success('审核成功');
                             this.$message.success('审核成功');
                             this.loadData();
                             this.loadData();
                         }
                         }
-                        
+                        else {
+                            this.$message.error(res.message);
+                        }
                     });
                     });
                 }
                 }
             });
             });
@@ -3206,10 +3270,10 @@ export default {
                             const inputDefaultLen = this.handleExportRules(item.slogan);
                             const inputDefaultLen = this.handleExportRules(item.slogan);
                             let tagsLen = finallyLenList.length * 2;
                             let tagsLen = finallyLenList.length * 2;
                             let tagsSureLen = 0;
                             let tagsSureLen = 0;
-                            this.adNameTags.forEach(item => {
-                                finallyLenList.forEach(val => {
-                                    if (item.name === val) {
-                                        tagsSureLen += item.maxWordLen;
+                            finallyLenList.forEach(item => {
+                                this.adNameTags.forEach(val => {
+                                    if (item === val.name) {
+                                        tagsSureLen += val.maxWordLen;
                                     }
                                     }
                                 });
                                 });
                             });
                             });

+ 2 - 2
vue.config.js

@@ -87,8 +87,8 @@ module.exports = {
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
         // target:'http://118.24.244.213:8804',
         // target:'http://118.24.244.213:8804',
         // target: 'http://192.168.1.43:8806', // 子安
         // target: 'http://192.168.1.43:8806', // 子安
-        // target: 'http://192.168.1.8:8806', // 学超
-       target:'http://139.186.165.84:8806', //测试
+        target: 'http://192.168.1.8:8806', // 学超
+      //  target:'http://139.186.165.84:8806', //测试
         // target:'http://apipre.tjyourong.com.cn', //预生产
         // target:'http://apipre.tjyourong.com.cn', //预生产
 
 
         ws: false,
         ws: false,