|
@@ -204,7 +204,6 @@ 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(","),
|
|
@@ -346,25 +345,15 @@ 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];
|
|
|
+ this.selectedLableList = this.detailDataForm.IndustryTags || [];
|
|
|
+ this.companySelectedLable = this.detailDataForm.CompanyTags || [];
|
|
|
setTimeout(() => {
|
|
|
+ this.industryCompanyLable = [...this.selectedLableList, ...this.companySelectedLable];
|
|
|
this.editorCtx.setContents({
|
|
|
html: this.detailDataForm.Content, //this.EditGoodsDetail.content为赋值内容。
|
|
|
});
|
|
|
}, 200);
|
|
|
-
|
|
|
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);
|
|
|
- // }
|
|
|
- // });
|
|
|
}
|
|
|
},
|
|
|
editorFocus() {
|