Commit 175c8d55 authored by 铭飞's avatar 铭飞 Committed by Gitee

!203 问号标签提示

Merge pull request !203 from 小伍/5.0.0
parents 95e0ee01 f8a59a5e
UPDATE cms_content
SET content_img = concat( '[{"path":"', content_img, '"}]' )
WHERE
content_img IS NOT NULL
AND trim( content_img ) != ''
\ No newline at end of file
INSERT INTO cms_content (
cms_content.id,
cms_content.app_id,
cms_content.content_url,
cms_content.content_details,
cms_content.content_keyword,
cms_content.content_description,
cms_content.content_img,
cms_content.content_sort,
cms_content.content_datetime,
cms_content.content_source,
cms_content.content_author,
cms_content.content_display,
cms_content.content_type,
cms_content.content_category_id,
cms_content.content_title,
cms_content.content_hit
)
SELECT
basic.basic_id,
cms_article.article_webid,
cms_article.article_url,
cms_article.article_content,
cms_article.article_keyword,
basic.basic_description,
basic.basic_thumbnails,
basic.basic_sort,
basic.basic_datetime,
cms_article.article_source,
cms_article.article_author,
basic.basic_display,
cms_article.article_type,
basic.basic_categoryid,
basic.basic_title,
basic.basic_hit
FROM
basic
INNER JOIN cms_article ON cms_article.article_basicid = basic.basic_id
INSERT INTO cms_category (
cms_category.id,
cms_category.category_title,
cms_category.category_sort,
cms_category.category_parent_id,
cms_category.category_path,
cms_category.category_flag,
cms_category.dict_id,
cms_category.app_id,
cms_category.category_manager_id,
cms_category.category_datetime,
cms_category.mdiy_model_id,
cms_category.category_diy_url,
cms_category.category_img,
cms_category.category_descrip,
cms_category.category_keyword,
cms_category.category_url,
cms_category.category_list_url,
cms_category.category_type,
cms_category.category_id
) SELECT
category.category_id,
category.category_title,
category.category_sort,
category.category_parent_id,
basic_column.column_path,
basic_column.column_flag,
category.category_dict_id,
category.category_appid,
category.category_managerid,
category.category_datetime,
basic_column.column_cm_id,
basic_column.column_diy_url,
category.category_smallimg,
basic_column.column_descrip,
basic_column.column_keyword,
basic_column.column_url,
basic_column.column_listurl,
basic_column.column_type,
category.category_categoryid
FROM
basic_column
INNER JOIN category ON basic_column.column_category_id = category.category_id
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
<#include "../../include/head-file.ftl"> <#include "../../include/head-file.ftl">
</head> </head>
<body> <body>
<div id="form" v-cloak> <div id="form" v-cloak>
<el-header class="ms-header ms-tr" height="50px"> <el-header class="ms-header ms-tr" height="50px">
<el-button type="primary" icon="iconfont icon-baocun" size="mini" @click="save()" :loading="saveDisabled">保存</el-button> <el-button type="primary" icon="iconfont icon-baocun" size="mini" @click="save()" :loading="saveDisabled">保存
</el-button>
<el-button size="mini" icon="iconfont icon-fanhui" plain onclick="javascript:history.go(-1)">返回</el-button> <el-button size="mini" icon="iconfont icon-fanhui" plain onclick="javascript:history.go(-1)">返回</el-button>
</el-header> </el-header>
<el-main class="ms-container"> <el-main class="ms-container">
...@@ -19,9 +20,11 @@ ...@@ -19,9 +20,11 @@
<el-col span="12"> <el-col span="12">
<el-form-item label="栏目管理名称" prop="categoryTitle"> <el-form-item label="栏目管理名称" prop="categoryTitle">
<template slot='label'>栏目管理名称 <template slot='label'>栏目管理名称
<el-popover slot="label" placement="top-start" title="提示" trigger="hover" > <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.typetitle/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html"
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typetitle/]</a> target="_blank">{ms:field.typetitle/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typetitle/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -47,7 +50,7 @@ ...@@ -47,7 +50,7 @@
<el-col span="12"> <el-col span="12">
<el-form-item prop="categoryType"> <el-form-item prop="categoryType">
<template slot='label'>栏目类型 <template slot='label'>栏目类型
<el-popover slot="label" placement="top-start" title="提示" trigger="hover" > <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
列表:常用于带列表、详情的业务,例如:新闻列表、图片列表<br>封面:常用单篇文章显示,例如:关于我们、公司介绍<br>修改栏目时如果该栏目存在文章则不能修改栏目类型 列表:常用于带列表、详情的业务,例如:新闻列表、图片列表<br>封面:常用单篇文章显示,例如:关于我们、公司介绍<br>修改栏目时如果该栏目存在文章则不能修改栏目类型
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
...@@ -91,7 +94,8 @@ ...@@ -91,7 +94,8 @@
<el-col span="12"> <el-col span="12">
<el-form-item prop="mdiyModelId"> <el-form-item prop="mdiyModelId">
<template slot='label'>自定义模型 <template slot='label'>自定义模型
<el-popover slot="label" placement="top-start" title="提示" width="400" trigger="hover" content="如果发布时候文章字段信息不够,可以采用铭飞代码生成器生成自定义模型,再通过“自定义管理->自定义模型->导入”功能导入模型,注意类型是cms"> <el-popover slot="label" placement="top-start" title="提示" width="400" trigger="hover"
content="如果发布时候文章字段信息不够,可以采用铭飞代码生成器生成自定义模型,再通过“自定义管理->自定义模型->导入”功能导入模型,注意类型是cms">
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -113,7 +117,8 @@ ...@@ -113,7 +117,8 @@
<el-col span="12"> <el-col span="12">
<el-form-item prop="categoryListUrl" v-if="form.categoryType == '1'"> <el-form-item prop="categoryListUrl" v-if="form.categoryType == '1'">
<template slot='label'>列表模板 <template slot='label'>列表模板
<el-popover slot="label" placement="top-start" title="提示" trigger="hover" content="当栏目类型为列表时有效"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover"
content="当栏目类型为列表时有效">
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -131,16 +136,15 @@ ...@@ -131,16 +136,15 @@
</el-row> </el-row>
<el-form-item label="栏目管理关键字" prop="categoryKeyword"> <el-form-item label="栏目管理关键字" prop="categoryKeyword">
<template slot='label'>栏目关键字 <template slot='label'>栏目关键字
<el-popover slot="label" placement="top-start" title="提示" trigger="hover" > <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.typekeyword/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typekeyword/]</a> target="_blank">[field.typekeyword/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
v-model="form.categoryKeyword" v-model="form.categoryKeyword"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="栏目管理关键字,有助于搜索"> placeholder="栏目管理关键字,有助于搜索">
...@@ -148,16 +152,15 @@ ...@@ -148,16 +152,15 @@
</el-form-item> </el-form-item>
<el-form-item label="栏目管理描述" prop="categoryDescrip"> <el-form-item label="栏目管理描述" prop="categoryDescrip">
<template slot='label'>栏目描述 <template slot='label'>栏目描述
<el-popover slot="label" placement="top-start" title="提示" trigger="hover" > <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.typedescrip/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typedescrip/]</a> target="_blank">[field.typedescrip/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
v-model="form.categoryDescrip" v-model="form.categoryDescrip"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="栏目管理描述,对栏目管理关键字的扩展"> placeholder="栏目管理描述,对栏目管理关键字的扩展">
...@@ -165,7 +168,11 @@ ...@@ -165,7 +168,11 @@
</el-form-item> </el-form-item>
<el-form-item label="" prop="categoryImg"> <el-form-item label="" prop="categoryImg">
<template slot='label'>缩略图 <template slot='label'>缩略图
<el-popover slot="label" placement="top-start" title="提示" width="200" trigger="hover" content="提示:栏目缩略图,最多可上传1张"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html"
target="_blank">{ms:field.typelitpic/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typelitpic/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -187,14 +194,14 @@ ...@@ -187,14 +194,14 @@
</el-form-item> </el-form-item>
<el-form-item prop="categoryDiyUrl"> <el-form-item prop="categoryDiyUrl">
<template slot='label'>自定义链接 <template slot='label'>自定义链接
<el-popover slot="label" placement="top-start" title="提示" trigger="hover" > <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typeurl/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typeurl/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
<el-input <el-input
:disabled="false" :disabled="false"
v-model="form.categoryDiyUrl" v-model="form.categoryDiyUrl"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="请输入自定义链接"> placeholder="请输入自定义链接">
...@@ -203,61 +210,64 @@ ...@@ -203,61 +210,64 @@
</el-form> </el-form>
</el-scrollbar> </el-scrollbar>
</el-main> </el-main>
</div> </div>
</body> </body>
</html> </html>
<script> <script>
var form = new Vue({ var form = new Vue({
el: '#form', el: '#form',
data() { data() {
return { return {
treeList:[{ treeList: [{
id:'0', id: '0',
categoryTitle:'顶级栏目', categoryTitle: '顶级栏目',
children:[], children: [],
}], }],
categoryList:[], categoryList: [],
saveDisabled: false, saveDisabled: false,
categoryTypeDisabled:true, categoryTypeDisabled: true,
//表单数据 //表单数据
form: { form: {
// 栏目管理名称 // 栏目管理名称
categoryTitle:'', categoryTitle: '',
// 所属栏目 // 所属栏目
categoryId:'', categoryId: '',
// 栏目管理属性 // 栏目管理属性
categoryType:'1', categoryType: '1',
// 自定义顺序 // 自定义顺序
categorySort:0, categorySort: 0,
// 列表模板 // 列表模板
categoryListUrl:'', categoryListUrl: '',
// 内容模板 // 内容模板
categoryUrl:'', categoryUrl: '',
// 栏目管理关键字 // 栏目管理关键字
categoryKeyword:'', categoryKeyword: '',
// 栏目管理描述 // 栏目管理描述
categoryDescrip:'', categoryDescrip: '',
// 缩略图 // 缩略图
categoryImg: [], categoryImg: [],
// 自定义链接 // 自定义链接
categoryDiyUrl:'', categoryDiyUrl: '',
// 栏目管理的内容模型id // 栏目管理的内容模型id
mdiyModelId:'', mdiyModelId: '',
}, },
categoryTypeOptions:[{"value":"1","label":"列表"},{"value":"2","label":"封面"}], categoryTypeOptions: [{"value": "1", "label": "列表"}, {"value": "2", "label": "封面"}],
categoryListUrlOptions:[], categoryListUrlOptions: [],
categoryUrlOptions:[], categoryUrlOptions: [],
mdiyModelIdOptions:[], mdiyModelIdOptions: [],
rules:{ rules: {
// 栏目管理名称 // 栏目管理名称
categoryTitle: [{"required":true,"message":"请选择栏目管理名称"},{"pattern":/^[^[!@#$%^&*()_+-/~?!@#¥%…&*()——+—?》《:“‘’]+$/,"message":"栏目管理名称格式不匹配"}], categoryTitle: [{
"required": true,
"message": "请选择栏目管理名称"
}, {"pattern": /^[^[!@#$%^&*()_+-/~?!@#¥%…&*()——+—?》《:“‘’]+$/, "message": "栏目管理名称格式不匹配"}],
}, },
} }
}, },
watch:{ watch: {
'form.categoryId':function (n, o) { 'form.categoryId': function (n, o) {
if(n == this.form.id){ if (n == this.form.id) {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '所属栏目不能为自身', message: '所属栏目不能为自身',
...@@ -265,9 +275,9 @@ ...@@ -265,9 +275,9 @@
}); });
return; return;
} }
this.categoryList.forEach(item=>{ this.categoryList.forEach(item => {
if(item.categoryParentId !=null && item.categoryParentId !="" && item.categoryParentId.indexOf(this.form.id) != -1){ if (item.categoryParentId != null && item.categoryParentId != "" && item.categoryParentId.indexOf(this.form.id) != -1) {
if(item.id == n){ if (item.id == n) {
this.form.categoryId = null; this.form.categoryId = null;
this.$refs.tree.clearHandle(); this.$refs.tree.clearHandle();
this.$notify({ this.$notify({
...@@ -280,18 +290,17 @@ ...@@ -280,18 +290,17 @@
}); });
} }
}, },
computed:{ computed: {},
},
methods: { methods: {
getTree(){ getTree() {
var that = this; var that = this;
ms.http.get(ms.manager+"/cms/category/list.do",{pageSize:9999}).then(function(res){ ms.http.get(ms.manager + "/cms/category/list.do", {pageSize: 9999}).then(function (res) {
if(res.result){ if (res.result) {
//res.data.rows.push({id:0,categoryId: null,categoryTitle:'顶级栏目管理'}); //res.data.rows.push({id:0,categoryId: null,categoryTitle:'顶级栏目管理'});
that.categoryList = res.data.rows; that.categoryList = res.data.rows;
that.treeList[0].children = ms.util.treeData(res.data.rows,'id','categoryId','children'); that.treeList[0].children = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children');
} }
}).catch(function(err){ }).catch(function (err) {
console.log(err); console.log(err);
}); });
}, },
...@@ -305,12 +314,12 @@ ...@@ -305,12 +314,12 @@
if (valid) { if (valid) {
//栏目属性为封面则不需要列表模板 //栏目属性为封面则不需要列表模板
if(that.form.categoryType == '2'){ if (that.form.categoryType == '2') {
that.form.categoryListUrl = ''; that.form.categoryListUrl = '';
} }
that.saveDisabled = true; that.saveDisabled = true;
var data = JSON.parse(JSON.stringify(that.form)); var data = JSON.parse(JSON.stringify(that.form));
if(data.id&&data.id==data.categoryId){ if (data.id && data.id == data.categoryId) {
that.$notify({ that.$notify({
title: '提示', title: '提示',
message: '所属栏目不能为自身', message: '所属栏目不能为自身',
...@@ -319,7 +328,7 @@ ...@@ -319,7 +328,7 @@
that.saveDisabled = false; that.saveDisabled = false;
return return
} }
if(data.categoryId == '0'){ if (data.categoryId == '0') {
data.categoryId = ''; data.categoryId = '';
} }
data.categoryImg = JSON.stringify(data.categoryImg); data.categoryImg = JSON.stringify(data.categoryImg);
...@@ -348,7 +357,7 @@ ...@@ -348,7 +357,7 @@
//获取分类内容模型 //获取分类内容模型
getColumnContentModelId: function () { getColumnContentModelId: function () {
var that = this; var that = this;
ms.http.get(ms.manager + "/mdiy/model/list.do",{modelType:'zdymx_wz'}).then( ms.http.get(ms.manager + "/mdiy/model/list.do", {modelType: 'zdymx_wz'}).then(
function (data) { function (data) {
that.mdiyModelIdOptions = data.data.rows; that.mdiyModelIdOptions = data.data.rows;
}).catch(function (err) { }).catch(function (err) {
...@@ -358,17 +367,17 @@ ...@@ -358,17 +367,17 @@
//获取当前分类 //获取当前分类
get(id) { get(id) {
var that = this; var that = this;
ms.http.get(ms.manager + "/cms/category/get.do", {"id":id}).then(function (res) { ms.http.get(ms.manager + "/cms/category/get.do", {"id": id}).then(function (res) {
if(res.result&&res.data){ if (res.result && res.data) {
if(res.data.categoryImg){ if (res.data.categoryImg) {
res.data.categoryImg = JSON.parse(res.data.categoryImg); res.data.categoryImg = JSON.parse(res.data.categoryImg);
res.data.categoryImg.forEach(function(value){ res.data.categoryImg.forEach(function (value) {
value.url= ms.base + value.path value.url = ms.base + value.path
}) })
}else{ } else {
res.data.categoryImg=[] res.data.categoryImg = []
} }
if(!res.data.categoryId){ if (!res.data.categoryId) {
res.data.categoryId = '0'; res.data.categoryId = '0';
} }
that.form = res.data; that.form = res.data;
...@@ -379,12 +388,12 @@ ...@@ -379,12 +388,12 @@
console.log(err); console.log(err);
}); });
}, },
contentList: function(id){ contentList: function (id) {
var that = this; var that = this;
ms.http.post(ms.manager+"/cms/content/list.do",{ ms.http.post(ms.manager + "/cms/content/list.do", {
contentCategoryId: id, contentCategoryId: id,
}).then(function (data) { }).then(function (data) {
if(data.data.total>0){ if (data.data.total > 0) {
that.categoryTypeDisabled = true; that.categoryTypeDisabled = true;
} else { } else {
that.categoryTypeDisabled = false; that.categoryTypeDisabled = false;
...@@ -396,7 +405,7 @@ ...@@ -396,7 +405,7 @@
//获取categoryListUrl数据源 //获取categoryListUrl数据源
categoryListUrlOptionsGet() { categoryListUrlOptionsGet() {
var that = this; var that = this;
ms.http.get(ms.manager+"/template/queryTemplateFileForColumn.do", {}).then(function (data) { ms.http.get(ms.manager + "/template/queryTemplateFileForColumn.do", {}).then(function (data) {
that.categoryListUrlOptions = data.data; that.categoryListUrlOptions = data.data;
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
...@@ -405,17 +414,17 @@ ...@@ -405,17 +414,17 @@
//获取categoryUrl数据源 //获取categoryUrl数据源
categoryUrlOptionsGet() { categoryUrlOptionsGet() {
var that = this; var that = this;
ms.http.get(ms.manager+"/template/queryTemplateFileForColumn.do", {}).then(function (data) { ms.http.get(ms.manager + "/template/queryTemplateFileForColumn.do", {}).then(function (data) {
that.categoryUrlOptions = data.data; that.categoryUrlOptions = data.data;
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });
}, },
//categoryImg文件上传完成回调 //categoryImg文件上传完成回调
categoryImgSuccess:function(response, file, fileList) { categoryImgSuccess: function (response, file, fileList) {
this.form.categoryImg.push({url:file.url,name:file.name,path:response,uid:file.uid}); this.form.categoryImg.push({url: file.url, name: file.name, path: response, uid: file.uid});
}, },
categoryImghandleRemove:function(file, files) { categoryImghandleRemove: function (file, files) {
var index = -1; var index = -1;
index = this.form.categoryImg.findIndex(text => text == file); index = this.form.categoryImg.findIndex(text => text == file);
if (index != -1) { if (index != -1) {
...@@ -423,14 +432,14 @@ ...@@ -423,14 +432,14 @@
} }
}, },
//categoryImg文件上传完成回调 //categoryImg文件上传完成回调
categoryImgSuccess:function(response, file, fileList) { categoryImgSuccess: function (response, file, fileList) {
this.form.categoryImg.push({url:file.url,name:file.name,path:response,uid:file.uid}); this.form.categoryImg.push({url: file.url, name: file.name, path: response, uid: file.uid});
}, },
//上传超过限制 //上传超过限制
categoryImghandleExceed:function(files, fileList) { categoryImghandleExceed: function (files, fileList) {
this.$notify({ title: '当前最多上传1个文件', type: 'warning' }); this.$notify({title: '当前最多上传1个文件', type: 'warning'});
}, },
categoryImghandleRemove:function(file, files) { categoryImghandleRemove: function (file, files) {
var index = -1; var index = -1;
index = this.form.categoryImg.findIndex(text => text == file); index = this.form.categoryImg.findIndex(text => text == file);
if (index != -1) { if (index != -1) {
...@@ -453,7 +462,7 @@ ...@@ -453,7 +462,7 @@
}); });
</script> </script>
<style> <style>
.el-select{ .el-select {
width: 100%; width: 100%;
} }
</style> </style>
\ No newline at end of file
...@@ -34,38 +34,17 @@ ...@@ -34,38 +34,17 @@
<el-table-column label="编号" width="120" prop="id"> <el-table-column label="编号" width="120" prop="id">
<template slot='header'>编号 <template slot='header'>编号
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.typeid/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.typeid/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typeid/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typeid/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="标题" align="left" prop="categoryTitle"> <el-table-column label="标题" align="left" prop="categoryTitle">
<template slot='header'>标题
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.typetitle/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typetitle/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column label="属性" align="center" prop="categoryType" :formatter="categoryTypeFormat" width="70"> <el-table-column label="属性" align="center" prop="categoryType" :formatter="categoryTypeFormat" width="70">
<template slot='header'>属性
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.flag/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.flag/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column label="链接地址" align="left" prop="categoryPath" show-overflow-tooltip> <el-table-column label="链接地址" align="left" prop="categoryPath" show-overflow-tooltip>
<template slot='header'>链接地址
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.typelink/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">[field.typelink/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<span style="cursor: pointer" class="copyBtn" :data-clipboard-text="'{ms:global.url/}'+scope.row.categoryPath+'/index.html'" @click="copyUrl">{{"{ms:global.url/}"+scope.row.categoryPath+"/index.html"}}</span> <span style="cursor: pointer" class="copyBtn" :data-clipboard-text="'{ms:global.url/}'+scope.row.categoryPath+'/index.html'" @click="copyUrl">{{"{ms:global.url/}"+scope.row.categoryPath+"/index.html"}}</span>
</template> </template>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-form-item label="文章标题" prop="contentTitle"> <el-form-item label="文章标题" prop="contentTitle">
<template slot='label'>文章标题 <template slot='label'>文章标题
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.title/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.title/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.title/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.title/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
...@@ -44,8 +44,7 @@ ...@@ -44,8 +44,7 @@
<el-form-item label="所属栏目" prop="contentCategoryId"> <el-form-item label="所属栏目" prop="contentCategoryId">
<template slot='label'>所属栏目 <template slot='label'>所属栏目
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.typeid/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.typetitle/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.typeid/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -75,6 +74,13 @@ ...@@ -75,6 +74,13 @@
</el-col> </el-col>
<el-col span="12"> <el-col span="12">
<el-form-item label="发布时间" prop="contentDatetime"> <el-form-item label="发布时间" prop="contentDatetime">
<template slot='label'>发布时间
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.date?string("yyyy-MM-dd")/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.date?string("yyyy-MM-dd")/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
<el-date-picker <el-date-picker
v-model="form.contentDatetime" v-model="form.contentDatetime"
placeholder="请选择发布时间" placeholder="请选择发布时间"
...@@ -99,7 +105,7 @@ ...@@ -99,7 +105,7 @@
<el-form-item label="文章作者" prop="contentAuthor"> <el-form-item label="文章作者" prop="contentAuthor">
<template slot='label'>文章作者 <template slot='label'>文章作者
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.author/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.author/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.author/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.author/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
...@@ -116,7 +122,7 @@ ...@@ -116,7 +122,7 @@
<el-form-item label="文章来源" prop="contentSource"> <el-form-item label="文章来源" prop="contentSource">
<template slot='label'>文章来源 <template slot='label'>文章来源
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.source/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.source/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.source/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.source/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
...@@ -165,7 +171,7 @@ ...@@ -165,7 +171,7 @@
<template slot='label'>文章缩略图 <template slot='label'>文章缩略图
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
文章缩略图,支持jpg格式 文章缩略图,支持jpg格式
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.litpic/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.litpic/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.litpic/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.litpic/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
...@@ -186,37 +192,42 @@ ...@@ -186,37 +192,42 @@
<div slot="tip" class="el-upload__tip">最多上传1张图片</div> <div slot="tip" class="el-upload__tip">最多上传1张图片</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="描述" prop="contentDescription"> <el-form-item label="关键字" prop="contentKeyword">
<template slot='label'>关键字
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{{ms:field.keyword/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.keyword/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
v-model="form.contentKeyword"
v-model="form.contentDescription"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="请输入对该文章的简短描述,以便用户查看文章简略"> placeholder="请输入文章关键字">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="关键字" prop="contentKeyword"> <el-form-item label="描述" prop="contentDescription">
<template slot='label'>关键字 <template slot='label'>描述
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.keyword/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.descrip/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.keyword/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.descrip/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
v-model="form.contentDescription"
v-model="form.contentKeyword"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="请输入文章关键字"> placeholder="请输入对该文章的简短描述,以便用户查看文章简略">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="contentDetails"> <el-form-item label="文章内容" prop="contentDetails">
<template slot='label'>文章内容 <template slot='label'>文章内容
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.content/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.content/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.content/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.content/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
......
...@@ -63,45 +63,24 @@ ...@@ -63,45 +63,24 @@
<el-table-column label="编号" width="70" prop="id"> <el-table-column label="编号" width="70" prop="id">
<template slot='header'>编号 <template slot='header'>编号
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.id/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.id/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.id/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.id/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="栏目名" align="left" prop="contentCategoryId" :formatter="contentCategoryIdFormat" width="100"> <el-table-column label="栏目名" align="left" prop="contentCategoryId" :formatter="contentCategoryIdFormat" width="100">
<template slot='header'>栏目名
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.typename/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.typename/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column label="文章标题" align="left" prop="contentTitle" show-overflow-tooltip> <el-table-column label="文章标题" align="left" prop="contentTitle" show-overflow-tooltip>
<template slot='header'>文章标题
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.title/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.title/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column label="作者" align="left" prop="contentAuthor" width="100" show-overflow-tooltip> <el-table-column label="作者" align="left" prop="contentAuthor" width="100" show-overflow-tooltip>
<template slot='header'>作者
<el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.author/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.author/]</a>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column label="排序" width="55" align="right" prop="contentSort"> <el-table-column label="排序" width="55" align="right" prop="contentSort">
</el-table-column> </el-table-column>
<el-table-column label="点击量" width="90" align="right" prop="contentHit"> <el-table-column label="点击量" width="90" align="right" prop="contentHit">
<template slot='header'>点击量 <template slot='header'>点击量
<el-popover placement="top-start" title="提示" trigger="hover" > <el-popover placement="top-start" title="提示" trigger="hover" >
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{field.hit/}</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" target="_blank">{ms:field.hit/}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.hit/]</a> <a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">[field.hit/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
......
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