Commit bead0c7c authored by zhengke's avatar zhengke

修改

parent dfb3736c
......@@ -3,7 +3,7 @@
<template v-if="ArticleIsShowAdd">
<div class="head-title">
文章列表
<el-button @click="ArticleIsShowAdd=false" style="float:right;margin-top: -5px;" size="small" type="primary">
<el-button @click="ArticleIsShowAdd=false,clearMsg()" style="float:right;margin-top: -5px;" size="small" type="primary">
添加文章
</el-button>
</div>
......@@ -51,8 +51,8 @@
<div class="content">
<div class="Article_condiv">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px" style="padding:0 20px;">
<el-form-item label="标题" prop="title">
<el-input v-model="addMsg.Title" size="small" placeholder="请输入名称" maxlength="100" />
<el-form-item label="标题" prop="Title">
<el-input v-model="addMsg.Title" size="small" placeholder="请输入名称" maxlength="50" />
</el-form-item>
<el-form-item label="排序">
<el-input type="text" v-model="addMsg.SortNum" @keyup.native="checkInteger(addMsg,'SortNum')" size="small"
......@@ -156,6 +156,9 @@
},
//保存
saveMsg() {
if(this.addMsg.SortNum==''){
this.addMsg.SortNum=0;
}
this.apipost("/api/MContent/SetArticle", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.ArticleIsShowAdd = true;
......@@ -169,6 +172,7 @@
},
//修改
EditArticle(item) {
this.ArticleIsShowAdd=false;
this.apipost("/api/MContent/GetArticle", {
Id: item.Id
}, res => {
......
......@@ -3,7 +3,7 @@
<template v-if="projectClassIsShowAdd">
<div class="head-title">
专题分类
<el-button @click="projectClassIsShowAdd=false" style="float:right;margin-top: -5px;" size="small"
<el-button @click="projectClassIsShowAdd=false,clearMsg()" style="float:right;margin-top: -5px;" size="small"
type="primary">
添加分类
</el-button>
......@@ -53,9 +53,9 @@
</div>
<div class="content">
<div class="projectClass_condiv">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px" style="padding:0 20px;">
<el-form-item label="专题分类名称" prop="title">
<el-input v-model="addMsg.TopicName" size="small" placeholder="请输入名称" maxlength="20" />
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="120px" style="padding:0 20px;">
<el-form-item label="专题分类名称" prop="TopicName">
<el-input v-model="addMsg.TopicName" size="small" placeholder="请输入名称" maxlength="50" />
</el-form-item>
<el-form-item label="排序">
<el-input type="text" v-model="addMsg.SortNum" size="small" @keyup.native="checkInteger(addMsg,'SortNum')"
......@@ -139,6 +139,9 @@
},
//保存
saveMsg() {
if(this.addMsg.SortNum==''){
this.addMsg.SortNum=0;
}
this.apipost("/api/MContent/SetTopicType", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.projectClassIsShowAdd = true;
......
......@@ -322,10 +322,15 @@
this.addMsg.TopicTypeId = 0;
this.addMsg.ReadNum = 0;
this.addMsg.SortNum = 0;
this.activeName='first';
this.addMsg.ComponentDataList = [];
this.pluginData=[];
},
//修改
EditRole(item) {
console.log(item,'itemmm');
this.speciaIsShowAdd=false;
this.activeName='first';
this.apipost("/api/MContent/GetTopic", {
Id: item.Id
}, res => {
......@@ -346,7 +351,6 @@
this.addMsg.ComponentDataList = jsonData.ComponentDataList;
this.pluginData = jsonData.ComponentDataList;
}
this.speciaIsShowAdd = false;
} else {
this.Info(res.data.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment