|
@@ -84,7 +84,8 @@ class ArticleManage extends React.Component {
|
|
|
setTimeout(this.setEditorContentAsync, 500)
|
|
|
// 获取栏目选择数据
|
|
|
request({
|
|
|
- url: config.WXMpAPI + "/wx/content/column/queryAllidColumns",
|
|
|
+ // url: config.WXMpAPI + "/wx/content/column/queryAllColumns",
|
|
|
+ url: WXMpAPI + "/wx/content/column/queryAllColumns",
|
|
|
method: "post",
|
|
|
data: {
|
|
|
pageIndex: 1,
|
|
@@ -438,7 +439,7 @@ class ArticleManage extends React.Component {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.state.outputHTML)
|
|
|
+ console.log(values)
|
|
|
let hicColumn = {} // 栏目ID
|
|
|
hicColumn.columnId = this.state.tagId
|
|
|
let hicDepa = this.state.selectDepartment // 科室ID
|
|
@@ -446,7 +447,7 @@ class ArticleManage extends React.Component {
|
|
|
parame.articleTitle = values.title;
|
|
|
parame.articleId = this.state.articleId,
|
|
|
parame.articleStatus = index; // 文章状态(0为保存,1为保存并发布,-1下架)
|
|
|
- // parame.articleAuthorId = 4; // 作者ID
|
|
|
+ parame.articleAuthor = values.author; // 作者ID
|
|
|
parame.articleSummary = values.content
|
|
|
parame.articlePhotoaddress = this.state.handImgPath
|
|
|
parame.articleCardinalnumber = Number(values.read)
|
|
@@ -469,15 +470,15 @@ class ArticleManage extends React.Component {
|
|
|
url: {
|
|
|
read: WXMpAPI + '/wx/content/classification/queryAllClassifications',
|
|
|
},
|
|
|
- primaryKey: "classification_column_id",
|
|
|
- filterRules: [
|
|
|
- {
|
|
|
- // field: "column_id",
|
|
|
- field: "classification_column_id",
|
|
|
- operate: "equal",
|
|
|
- value: that.state.tagId
|
|
|
- }
|
|
|
- ],
|
|
|
+ // primaryKey: "classification_column_id",
|
|
|
+ // filterRules: [
|
|
|
+ // {
|
|
|
+ // // field: "column_id",
|
|
|
+ // field: "classification_column_id",
|
|
|
+ // operate: "equal",
|
|
|
+ // value: that.state.tagId
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
customRules: [
|
|
|
{
|
|
|
field: "classification_column_id",
|
|
@@ -513,7 +514,7 @@ class ArticleManage extends React.Component {
|
|
|
columns: [
|
|
|
// classificationId
|
|
|
{ title: "分类ID", data: "classificationId", type: "text", query: false },
|
|
|
- // { title: "关键词", data: "column_id", type: "text", editor: {}, query: true, hide: true },
|
|
|
+ { title: "关键词", data: "column_id", type: "text", editor: {}, query: true, hide: true },
|
|
|
{ title: "分类名称", data: "classificationName", type: "text", query: false },
|
|
|
// { title: "分类名称", data: "classificationDescription", type: "text", query: false },
|
|
|
],
|
|
@@ -702,7 +703,7 @@ class ArticleManage extends React.Component {
|
|
|
{ title: "标题", data: "article_title", type: "text", query: true, hide: true },
|
|
|
|
|
|
{ title: "标题", data: "articleTitle", type: "text", query: false },
|
|
|
- { title: "作者", data: "articleAuthorId", type: "text", query: false },
|
|
|
+ { title: "作者", data: "articleAuthor", type: "text", query: false },
|
|
|
{ title: "创建时间", data: "articleCreateDate", type: "text", query: false },
|
|
|
{ title: "真实浏览量", data: "articleRealpageviews", type: "text", query: false },
|
|
|
{
|