|
@@ -394,7 +394,7 @@ export default {
|
|
this.learnDate = learnDate ? formateStringDate(learnDate) : null;
|
|
this.learnDate = learnDate ? formateStringDate(learnDate) : null;
|
|
console.log("编辑初始化时间为YYYY-MM-DD", this.learnDate, learnDate);
|
|
console.log("编辑初始化时间为YYYY-MM-DD", this.learnDate, learnDate);
|
|
// 推荐
|
|
// 推荐
|
|
- this.recommand = item.recommand;
|
|
|
|
|
|
+ this.recommand = item.recommand + "";
|
|
console.log("--推荐--" + item.recommand);
|
|
console.log("--推荐--" + item.recommand);
|
|
// 文章内容
|
|
// 文章内容
|
|
this.content = item.contents;
|
|
this.content = item.contents;
|
|
@@ -475,7 +475,7 @@ export default {
|
|
tags: tag ? [tag] : [],
|
|
tags: tag ? [tag] : [],
|
|
engineerTypes: [that.engineerType.id],
|
|
engineerTypes: [that.engineerType.id],
|
|
links: links,
|
|
links: links,
|
|
- recommand: that.recommand
|
|
|
|
|
|
+ recommand: eval(that.recommand.toLowerCase())
|
|
};
|
|
};
|
|
that.$_http
|
|
that.$_http
|
|
.post(that.$_API.INTERFACE_POST_ADMIN_MATERIALS, bodyParams, {
|
|
.post(that.$_API.INTERFACE_POST_ADMIN_MATERIALS, bodyParams, {
|
|
@@ -521,7 +521,8 @@ export default {
|
|
contents: JSON.stringify(contentObj),
|
|
contents: JSON.stringify(contentObj),
|
|
tags: tag ? [tag] : [],
|
|
tags: tag ? [tag] : [],
|
|
engineerTypes: [that.engineerType.id],
|
|
engineerTypes: [that.engineerType.id],
|
|
- links: links
|
|
|
|
|
|
+ links: links,
|
|
|
|
+ recommand: eval(that.recommand.toLowerCase())
|
|
};
|
|
};
|
|
console.log(
|
|
console.log(
|
|
"保存修改日期格式为YYYYMMDD",
|
|
"保存修改日期格式为YYYYMMDD",
|