|
@@ -154,7 +154,7 @@ export default {
|
|
|
// 创建标签公司Lable
|
|
|
addCompanyLableHandler() {
|
|
|
if (!this.columnName) return;
|
|
|
- if (this.companySelectedLable.includes(this.columnName.replace(/\s+/g, ""))) return;
|
|
|
+ if (this.companySelectedLable.includes(this.columnName.replace(/\s+/g, ""))) return this.$util.toast("标签已存在");
|
|
|
this.companySelectedLable.push(this.columnName.replace(/\s+/g, ""));
|
|
|
},
|
|
|
// 行业公司标签的点击事件
|
|
@@ -204,7 +204,9 @@ export default {
|
|
|
Content: this.advice_content,
|
|
|
Title: this.articleTitle,
|
|
|
Type: this.topLableActive,
|
|
|
- Tags: this.industryCompanyLable.join(","),
|
|
|
+ // Tags: this.industryCompanyLable.join(","),
|
|
|
+ IndustryTags: this.selectedLableList.join(","),
|
|
|
+ CompanyTags: this.companySelectedLable.join(","),
|
|
|
ImgUrl: this.fileList.join(","),
|
|
|
DoType: 1,
|
|
|
Id: this.detailId,
|
|
@@ -238,7 +240,8 @@ export default {
|
|
|
Content: this.advice_content,
|
|
|
Title: this.articleTitle,
|
|
|
Type: this.topLableActive,
|
|
|
- Tags: this.industryCompanyLable.join(","),
|
|
|
+ TIndustryTags: this.selectedLableList.join(","),
|
|
|
+ CompanyTags: this.companySelectedLable.join(","),
|
|
|
ImgUrl: this.fileList.join(","),
|
|
|
DoType: 2,
|
|
|
Id: this.detailId,
|
|
@@ -278,7 +281,8 @@ export default {
|
|
|
Content: this.advice_content,
|
|
|
Title: this.articleTitle,
|
|
|
Type: this.topLableActive,
|
|
|
- Tags: this.industryCompanyLable.join(","),
|
|
|
+ IndustryTags: this.selectedLableList.join(","),
|
|
|
+ CompanyTags: this.companySelectedLable.join(","),
|
|
|
ImgUrl: this.fileList.join(","),
|
|
|
DoType: 1,
|
|
|
Id: this.detailId,
|
|
@@ -342,7 +346,9 @@ export default {
|
|
|
this.detailDataForm = res.Data;
|
|
|
this.articleTitle = this.detailDataForm.Title;
|
|
|
this.advice_content = this.detailDataForm.Content;
|
|
|
-
|
|
|
+ this.selectedLableList = this.detailDataForm.IndustryTags;
|
|
|
+ this.companySelectedLable = this.detailDataForm.CompanyTags;
|
|
|
+ this.industryCompanyLable = [...this.selectedLableList, ...this.companySelectedLable];
|
|
|
setTimeout(() => {
|
|
|
this.editorCtx.setContents({
|
|
|
html: this.detailDataForm.Content, //this.EditGoodsDetail.content为赋值内容。
|
|
@@ -351,14 +357,14 @@ export default {
|
|
|
|
|
|
this.fileList = this.detailDataForm.ImgUrl ? this.detailDataForm.ImgUrl.split(",") : [];
|
|
|
|
|
|
- this.industryCompanyLable = this.detailDataForm.Tags ? this.detailDataForm.Tags.split(",") : [];
|
|
|
- this.industryCompanyLable.forEach((item) => {
|
|
|
- if (this.industryLabel.includes(item)) {
|
|
|
- this.selectedLableList.push(item);
|
|
|
- } else {
|
|
|
- this.companySelectedLable.push(item);
|
|
|
- }
|
|
|
- });
|
|
|
+ // this.industryCompanyLable = this.detailDataForm.Tags ? this.detailDataForm.Tags.split(",") : [];
|
|
|
+ // this.industryCompanyLable.forEach((item) => {
|
|
|
+ // if (this.industryLabel.includes(item)) {
|
|
|
+ // this.selectedLableList.push(item);
|
|
|
+ // } else {
|
|
|
+ // this.companySelectedLable.push(item);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
}
|
|
|
},
|
|
|
editorFocus() {
|