Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
6cde273f
Commit
6cde273f
authored
May 08, 2022
by
msgroup
Committed by
mingsoft
May 08, 2022
Browse files
fix:5.2.8版本待发布
parent
8616dca6
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
doc/5.2.7-up-5.2.8.sql
View file @
6cde273f
...
...
@@ -2,7 +2,7 @@ SET FOREIGN_KEY_CHECKS = 0;
ALTER
TABLE
`mdiy_page`
ADD
INDEX
`idx_page_model_id`
(
`page_model_id`
)
USING
BTREE
;
DROP
TABLE
`mdiy_form`
;
UPDATE
mdiy_model
SET
MODEL_CUSTOM_TYPE
=
'form'
WHERE
MODEL_CUSTOM_TYPE
=
'post'
;
UPDATE
`mdiy_tag`
SET
`TAG_SQL`
=
'<#assign _typeid=
\'\'
/>
\n
<#assign _typetitle=
\'\'
/>
\n
<#assign _size=
\'
20
\'
/>
\n\n
<#if column?? && column.id?? && column.id?number gt 0>
\n
<#assign _typeid=
\'
${column.id}
\'
>
\n
</#if>
\n\n
<#if typeid??>
\n
<#assign _typeid=
\'
${typeid}
\'
>
\n
</#if>
\n\n
<#if typetitle??>
\n
<#assign _typetitle=
\'
${typetitle}
\'
>
\n
</#if>
\n\n
<#if size??>
\n
<#assign _size=
\'
${size}
\'
>
\n
</#if>
\n\n
<#if orderby?? >
\n
<#if orderby==
\'
date
\'
>
\n
<#assign _orderby=
\'
content_datetime
\'
>
\n
<#elseif orderby==
\'
updatedate
\'
>
\n
<#assign _orderby=
\'
content_updatetime
\'
>
\n
<#elseif orderby==
\'
hit
\'
>
\n
<#assign _orderby=
\'
content_hit
\'
>
\n
<#elseif orderby==
\'
sort
\'
>
\n
<#assign _orderby=
\'
content_sort
\'
>
\n
<#else>
\n
<#assign _orderby=
\'
cms_content.id
\'
>
\n
</#if>
\n
<#else>
\n
<#assign _orderby=
\'
cms_content.id
\'
>
\n
</#if>
\n\n
SELECT
\n
cms_content.id AS id,
\n
content_title AS title,
\n
content_title AS fulltitle,
\n
content_author AS author,
\n
content_source AS source,
\n
category.category_title AS typetitle,
\n
category.id AS typeid,
\n
category.category_path AS typepath,
\n
category.category_img AS typelitpic,
\n
category.category_keyword as typekeyword,
\n
category.top_id as topId,
\n
category.category_parent_ids as parentids,
\n
category.category_type AS
\"
type
\"
,
\n\n
<#--列表页动态链接-->
\n
<#if isDo?? && isDo>
\n
CONCAT(
\'
${modelName}/list.do?style=${appTemplate!
\"\"
}&typeid=
\'
, category.category_id) as typelink,
\n
<#else>
\n
(SELECT CONCAT(category_path,
\'
/index.html
\'
)) AS typelink,
\n
</#if>
\n
content_description AS descrip,
\n
content_hit AS hit,
\n
content_type AS flag,
\n
cms_content.content_keyword AS keyword,
\n
content_img AS litpic,
\n\n
<#--内容页动态链接-->
\n
<#if isDo?? && isDo>
\n
CONCAT(
\'
${modelName}/view.do?style=${appTemplate!
\"\"
}&id=
\'
, cms_content.id) as
\"
link
\"
,
\n
<#else>
\n
CONCAT(category.category_path,
\'
/
\'
,cms_content.id,
\'
.html
\'
) AS
\"
link
\"
,
\n
</#if>
\n\n
<#if tableName??>${tableName}.*,</#if>
\n
content_datetime AS
\"
date
\"\n
FROM
\n
cms_content LEFT JOIN cms_category as category
\n
ON cms_content.category_id = category.id
\n\n
<#--判断是否有自定义模型表-->
\n
<#if tableName??>
\n
LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id
\n
</#if>
\n
WHERE
\n
progress_status=
\'
终审通过
\'\n
and
content_display=0
\n
and cms_content.del=0
\n\n
<#--gov 判断发布到-->
\n
<#if style?? >
\n
and(
\n
<#list style?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> or</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_style)
\n
</#list>)
\n
</#if>
\n
<#--根据站点编号查询-->
\n
<#if appId?? >
\n
and cms_content.app_id=${appId}
\n
and cms_content.id>0
\n
</#if>
\n
<#--判断是否有搜索分类集合-->
\n
<#if search?? && _typeid==
\"\"
>
\n
<#if search.categoryIds?has_content>and FIND_IN_SET(category.id,
\'
${search.categoryIds}
\'
)</#if>
\n
<#--标题-->
\n
<#if search.content_title??> and content_title like CONCAT(
\'
%
\'
,
\'
${search.content_title}
\'
,
\'
%
\'
)</#if>
\n
<#--作者-->
\n
<#if search.content_author??> and content_author like CONCAT(
\'
%
\'
,
\'
${search.content_author}
\'
,
\'
%
\'
)</#if>
\n
<#--来源-->
\n
<#if search.content_source??> and content_source like CONCAT(
\'
%
\'
,
\'
${search.content_source}
\'
,
\'
%
\'
)</#if>
\n
<#--属性-->
\n
<#if search.content_type??> and (
\n
<#list search.content_type?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> or</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)
\n
</#list>)
\n
</#if>
\n\n
<#--描述-->
\n
<#if search.content_description??>
\n
and content_description like CONCAT(
\'
%
\'
,
\'
${search.content_description}
\'
,
\'
%
\'
)
\n
</#if>
\n\n
<#--关键字-->
\n
<#if search.content_keyword??> and content_keyword like CONCAT(
\'
%
\'
,
\'
${search.content_keyword}
\'
,
\'
%
\'
)</#if>
\n\n
<#--内容-->
\n
<#if search.content_details??> and content_details like CONCAT(
\'
%
\'
,
\'
${search.content_details}
\'
,
\'
%
\'
)</#if>
\n\n
<#--自定义顺序-->
\n
<#if search.content_sort??> and content_sort=${search.content_sort}</#if>
\n
<#--时间范围-->
\n
<#if search.content_datetime_start??&&search.content_datetime_end??>
\n
and content_datetime between
\'
${search.content_datetime_start}
\'
and
\'
${search.content_datetime_end}
\'\n
</#if>
\n
<#else>
\n
<#--查询栏目-->
\n
<#if _typeid?has_content>
\n
and (cms_content.category_id=${_typeid}
\n
or FIND_IN_SET(
\'
${_typeid}
\'
, cms_content.category_ids)
\n
or cms_content.category_id in (select id FROM cms_category where cms_category.del=0
\n
<#if _typetitle?has_content>
\n
and cms_category.category_title=
\'
${_typetitle}
\'
</#if> and FIND_IN_SET(${_typeid},CATEGORY_PARENT_IDS)))
\n
</#if>
\n
</#if>
\n
<#--标题-->
\n
<#if content_title??> and content_title like CONCAT(
\'
%
\'
,
\'
${content_title}
\'
,
\'
%
\'
)</#if>
\n
<#--作者-->
\n
<#if content_author??> and content_author like CONCAT(
\'
%
\'
,
\'
${content_author}
\'
,
\'
%
\'
)</#if>
\n
<#--来源-->
\n
<#if content_source??> and content_source like CONCAT(
\'
%
\'
,
\'
${content_source}
\'
,
\'
%
\'
)</#if>
\n
<#--属性-->
\n
<#if content_type??> and content_type like CONCAT(
\'
%
\'
,
\'
${content_type}
\'
,
\'
%
\'
)</#if>
\n
<#--描述-->
\n
<#if content_description??> and content_description like CONCAT(
\'
%
\'
,
\'
${content_description}
\'
,
\'
%
\'
)</#if>
\n
<#--关键字-->
\n
<#if content_keyword??> and content_keyword like CONCAT(
\'
%
\'
,
\'
${content_keyword}
\'
,
\'
%
\'
)</#if>
\n
<#--内容-->
\n
<#if content_details??> and content_details like CONCAT(
\'
%
\'
,
\'
${content_details}
\'
,
\'
%
\'
)</#if>
\n
<#--自定义顺序-->
\n
<#if content_sort??> and content_sort=${content_sort}</#if>
\n
<#--自定义模型-->
\n
<#if diyModel??>
\n
<#list diyModel as dm>
\n
<#assign json=
\"
${dm}
\"
?eval />
\n
and ${tableName}.${json.key} like CONCAT(
\'
%
\'
,
\'
${json.value}
\'
,
\'
%
\'
)
\n
</#list>
\n
</#if>
\n
<#--文章属性-->
\n
<#if flag?? >
\n
and(
\n
<#list flag?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> or</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)
\n
</#list>)
\n
</#if>
\n
<#if noflag??>
\n
and(
\n
<#list noflag?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> and</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)=0
\n
</#list> or cms_content.content_type is null)
\n
</#if>
\n\n
<#--字段排序-->
\n
<#if orderby?? >
\n
ORDER BY
\n
<#if orderby==
\'
date
\'
> content_datetime
\n
<#elseif orderby==
\'
updatedate
\'
> content_updatetime
\n
<#elseif orderby==
\'
hit
\'
> content_hit
\n
<#elseif orderby==
\'
sort
\'
> content_sort
\n
<#else>
\n
cms_content.id
\n
</#if>
\n
<#else>
\n
ORDER BY cms_content.id
\n
</#if>
\n\n
<#if order?? >
\n
<#if order==
\'
desc
\'
> desc</#if>
\n
<#if order==
\'
asc
\'
> asc</#if>
\n
<#else>
\n
desc
\n
</#if>
\n
LIMIT
\n
<#--判断是否分页-->
\n
<#if ispaging?? && (pageTag.pageNo)??>
\n
${((pageTag.pageNo-1)*_size?eval)?c},${_size?default(20)}
\n
<#else>
\n
${_size?default(20)}
\n
</#if>
\n
'
WHERE
`TAG_NAME`
=
'arclist'
;
UPDATE
`mdiy_tag`
SET
`TAG_SQL`
=
'<#assign _typeid=
\'\'
/>
\n
<#assign _typetitle=
\'\'
/>
\n
<#assign _size=
\'
20
\'
/>
\n\n
<#if column?? && column.id?? && column.id?number gt 0>
\n
<#assign _typeid=
\'
${column.id}
\'
>
\n
</#if>
\n\n
<#if typeid??>
\n
<#assign _typeid=
\'
${typeid}
\'
>
\n
</#if>
\n\n
<#if typetitle??>
\n
<#assign _typetitle=
\'
${typetitle}
\'
>
\n
</#if>
\n\n
<#if size??>
\n
<#assign _size=
\'
${size}
\'
>
\n
</#if>
\n\n
<#if orderby?? >
\n
<#if orderby==
\'
date
\'
>
\n
<#assign _orderby=
\'
content_datetime
\'
>
\n
<#elseif orderby==
\'
updatedate
\'
>
\n
<#assign _orderby=
\'
content_updatetime
\'
>
\n
<#elseif orderby==
\'
hit
\'
>
\n
<#assign _orderby=
\'
content_hit
\'
>
\n
<#elseif orderby==
\'
sort
\'
>
\n
<#assign _orderby=
\'
content_sort
\'
>
\n
<#else>
\n
<#assign _orderby=
\'
cms_content.id
\'
>
\n
</#if>
\n
<#else>
\n
<#assign _orderby=
\'
cms_content.id
\'
>
\n
</#if>
\n\n
SELECT
\n
cms_content.id AS id,
\n
content_title AS title,
\n
content_title AS fulltitle,
\n
content_author AS author,
\n
content_source AS source,
\n
category.category_title AS typetitle,
\n
category.id AS typeid,
\n
category.category_path AS typepath,
\n
category.category_img AS typelitpic,
\n
category.category_keyword as typekeyword,
\n
category.top_id as topId,
\n
category.category_parent_ids as parentids,
\n
category.category_type AS
\"
type
\"
,
\n\n
<#--列表页动态链接-->
\n
<#if isDo?? && isDo>
\n
CONCAT(
\'
${modelName}/list.do?style=${appTemplate!
\"\"
}&typeid=
\'
, category.category_id) as typelink,
\n
<#else>
\n
(SELECT CONCAT(category_path,
\'
/index.html
\'
)) AS typelink,
\n
</#if>
\n
content_description AS descrip,
\n
content_hit AS hit,
\n
content_type AS flag,
\n
cms_content.content_keyword AS keyword,
\n
content_img AS litpic,
\n\n
<#--内容页动态链接-->
\n
<#if isDo?? && isDo>
\n
CONCAT(
\'
${modelName}/view.do?style=${appTemplate!
\"\"
}&id=
\'
, cms_content.id) as
\"
link
\"
,
\n
<#else>
\n
CONCAT(category.category_path,
\'
/
\'
,cms_content.id,
\'
.html
\'
) AS
\"
link
\"
,
\n
</#if>
\n\n
<#if tableName??>${tableName}.*,</#if>
\n
content_datetime AS
\"
date
\"\n
FROM
\n
cms_content LEFT JOIN cms_category as category
\n
ON cms_content.category_id = category.id
\n\n
<#--判断是否有自定义模型表-->
\n
<#if tableName??>
\n
LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id
\n
</#if>
\n
WHERE
\n
content_display=0
\n
and cms_content.del=0
\n\n
<#--gov 判断发布到-->
\n
<#if style?? >
\n
and(
\n
<#list style?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> or</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_style)
\n
</#list>)
\n
</#if>
\n
<#--根据站点编号查询-->
\n
<#if appId?? >
\n
and cms_content.app_id=${appId}
\n
and cms_content.id>0
\n
</#if>
\n
<#--判断是否有搜索分类集合-->
\n
<#if search?? && _typeid==
\"\"
>
\n
<#if search.categoryIds?has_content>and FIND_IN_SET(category.id,
\'
${search.categoryIds}
\'
)</#if>
\n
<#--标题-->
\n
<#if search.content_title??> and content_title like CONCAT(
\'
%
\'
,
\'
${search.content_title}
\'
,
\'
%
\'
)</#if>
\n
<#--作者-->
\n
<#if search.content_author??> and content_author like CONCAT(
\'
%
\'
,
\'
${search.content_author}
\'
,
\'
%
\'
)</#if>
\n
<#--来源-->
\n
<#if search.content_source??> and content_source like CONCAT(
\'
%
\'
,
\'
${search.content_source}
\'
,
\'
%
\'
)</#if>
\n
<#--属性-->
\n
<#if search.content_type??> and (
\n
<#list search.content_type?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> or</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)
\n
</#list>)
\n
</#if>
\n\n
<#--描述-->
\n
<#if search.content_description??>
\n
and content_description like CONCAT(
\'
%
\'
,
\'
${search.content_description}
\'
,
\'
%
\'
)
\n
</#if>
\n\n
<#--关键字-->
\n
<#if search.content_keyword??> and content_keyword like CONCAT(
\'
%
\'
,
\'
${search.content_keyword}
\'
,
\'
%
\'
)</#if>
\n\n
<#--内容-->
\n
<#if search.content_details??> and content_details like CONCAT(
\'
%
\'
,
\'
${search.content_details}
\'
,
\'
%
\'
)</#if>
\n\n
<#--自定义顺序-->
\n
<#if search.content_sort??> and content_sort=${search.content_sort}</#if>
\n
<#--时间范围-->
\n
<#if search.content_datetime_start??&&search.content_datetime_end??>
\n
and content_datetime between
\'
${search.content_datetime_start}
\'
and
\'
${search.content_datetime_end}
\'\n
</#if>
\n
<#else>
\n
<#--查询栏目-->
\n
<#if _typeid?has_content>
\n
and (cms_content.category_id=${_typeid}
\n
or cms_content.category_id in (select id FROM cms_category where cms_category.del=0
\n
<#if _typetitle?has_content>
\n
and cms_category.category_title=
\'
${_typetitle}
\'
</#if> and FIND_IN_SET(${_typeid},CATEGORY_PARENT_IDS)))
\n
</#if>
\n
</#if>
\n
<#--标题-->
\n
<#if content_title??> and content_title like CONCAT(
\'
%
\'
,
\'
${content_title}
\'
,
\'
%
\'
)</#if>
\n
<#--作者-->
\n
<#if content_author??> and content_author like CONCAT(
\'
%
\'
,
\'
${content_author}
\'
,
\'
%
\'
)</#if>
\n
<#--来源-->
\n
<#if content_source??> and content_source like CONCAT(
\'
%
\'
,
\'
${content_source}
\'
,
\'
%
\'
)</#if>
\n
<#--属性-->
\n
<#if content_type??> and content_type like CONCAT(
\'
%
\'
,
\'
${content_type}
\'
,
\'
%
\'
)</#if>
\n
<#--描述-->
\n
<#if content_description??> and content_description like CONCAT(
\'
%
\'
,
\'
${content_description}
\'
,
\'
%
\'
)</#if>
\n
<#--关键字-->
\n
<#if content_keyword??> and content_keyword like CONCAT(
\'
%
\'
,
\'
${content_keyword}
\'
,
\'
%
\'
)</#if>
\n
<#--内容-->
\n
<#if content_details??> and content_details like CONCAT(
\'
%
\'
,
\'
${content_details}
\'
,
\'
%
\'
)</#if>
\n
<#--自定义顺序-->
\n
<#if content_sort??> and content_sort=${content_sort}</#if>
\n
<#--自定义模型-->
\n
<#if diyModel??>
\n
<#list diyModel as dm>
\n
<#assign json=
\"
${dm}
\"
?eval />
\n
and ${tableName}.${json.key} like CONCAT(
\'
%
\'
,
\'
${json.value}
\'
,
\'
%
\'
)
\n
</#list>
\n
</#if>
\n
<#--文章属性-->
\n
<#if flag?? >
\n
and(
\n
<#list flag?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> or</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)
\n
</#list>)
\n
</#if>
\n
<#if noflag??>
\n
and(
\n
<#list noflag?split(
\'
,
\'
) as item>
\n
<#if item?index gt 0> and</#if>
\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)=0
\n
</#list> or cms_content.content_type is null)
\n
</#if>
\n\n
<#--字段排序-->
\n
<#if orderby?? >
\n
ORDER BY
\n
<#if orderby==
\'
date
\'
> content_datetime
\n
<#elseif orderby==
\'
updatedate
\'
> content_updatetime
\n
<#elseif orderby==
\'
hit
\'
> content_hit
\n
<#elseif orderby==
\'
sort
\'
> content_sort
\n
<#else>
\n
cms_content.id
\n
</#if>
\n
<#else>
\n
ORDER BY cms_content.id
\n
</#if>
\n\n
<#if order?? >
\n
<#if order==
\'
desc
\'
> desc</#if>
\n
<#if order==
\'
asc
\'
> asc</#if>
\n
<#else>
\n
desc
\n
</#if>
\n
LIMIT
\n
<#--判断是否分页-->
\n
<#if ispaging?? && (pageTag.pageNo)??>
\n
${((pageTag.pageNo-1)*_size?eval)?c},${_size?default(20)}
\n
<#else>
\n
${_size?default(20)}
\n
</#if>
\n
'
WHERE
`TAG_NAME`
=
'arclist'
;
DROP
TABLE
IF
EXISTS
`model`
;
CREATE
TABLE
`model`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'id主键'
,
...
...
doc/mcms-5.2.8.sql
View file @
6cde273f
This diff is collapsed.
Click to expand it.
pom.xml
View file @
6cde273f
...
...
@@ -49,13 +49,15 @@
<dependency>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-basic
</artifactId>
<version>
2.1.13.
1
</version>
<version>
2.1.13.
2
</version>
</dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mdiy
</artifactId>
<version>
2.1.13.1
</version>
</dependency>
<!--store入口依赖(源码不开发),如果不需要MStore可以直接去掉依赖-->
<dependency>
<groupId>
net.mingsoft
</groupId>
...
...
src/main/java/net/mingsoft/config/WebConfig.java
View file @
6cde273f
...
...
@@ -64,6 +64,9 @@ public class WebConfig implements WebMvcConfigurer {
@Autowired
(
required
=
false
)
private
IConfigBiz
configBiz
;
@Autowired
(
required
=
false
)
private
MappingJackson2HttpMessageConverter
mappingJackson2HttpMessageConverter
;
@Bean
public
ActionInterceptor
actionInterceptor
()
{
return
new
ActionInterceptor
();
...
...
@@ -178,21 +181,11 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public
void
configureMessageConverters
(
List
<
HttpMessageConverter
<?>>
converters
)
{
// TODO Auto-generated method stub
converters
.
add
(
mappingJackson2HttpMessageConverter
()
);
converters
.
add
(
mappingJackson2HttpMessageConverter
);
WebMvcConfigurer
.
super
.
configureMessageConverters
(
converters
);
}
@Bean
public
MappingJackson2HttpMessageConverter
mappingJackson2HttpMessageConverter
()
{
MappingJackson2HttpMessageConverter
converter
=
new
MappingJackson2HttpMessageConverter
();
ObjectMapper
objectMapper
=
new
ObjectMapper
();
//添加此配置
objectMapper
.
configure
(
DeserializationFeature
.
FAIL_ON_UNKNOWN_PROPERTIES
,
false
);
converter
.
setObjectMapper
(
objectMapper
);
return
converter
;
}
@Bean
public
ExecutorService
crawlExecutorPool
()
{
...
...
src/main/webapp/WEB-INF/manager/include/head-file.ftl
deleted
100644 → 0
View file @
8616dca6
<
meta
charset="utf-8">
<!--浏览器小图标-->
<
link
rel="icon" href="/logo.ico" type="x-icon">
<
script
type="text/javascript" src="$
{
base
}
/static/plugins/vue/2.6.9/vue.min.js"></script>
<
script
src="$
{
base
}
/static/plugins/vue-i18n/8.18.2/vue-i18n.js"></script>
<!--
图标 -->
<
link
rel="stylesheet" type="text/css" href="$
{
base
}
/static/plugins/iconfont/1.0.0/iconfont.css" />
<
script
src="$
{
base
}
/static/plugins/iconfont/1.0.0/iconfont.js"></script>
<!--
引入样式 -->
<
link
rel="stylesheet" href="$
{
base
}
/static/plugins/element-ui/2.15.7/theme-chalk/index.min.css">
<!--
引入组件库 -->
<
script
src="$
{
base
}
/static/plugins/element-ui/2.15.7/index.min.js"></script>
<
script
src="$
{
base
}
/static/plugins/element-ui/2.15.7/local/en.min.js"></script>
<
script
src="$
{
base
}
/static/plugins/element-ui/2.15.7/local/zh-CN.min.js"></script>
<!--图片懒加载-->
<
script
src="$
{
base
}
/static/plugins/vue.lazyload/1.2.6/vue-lazyload.js"></script>
<!--网络请求框架-->
<
script
src="$
{
base
}
/static/plugins/axios/0.18.0/axios.min.js"></script>
<
script
src="$
{
base
}
/static/plugins/qs/6.6.0/qs.min.js"></script>
<!--金额转换-->
<
script
src="$
{
base
}
/static/plugins/accounting/0.4.1/accounting.js"></script>
<!--时间转换-->
<
script
src="$
{
base
}
/static/plugins/moment/2.24.0/moment.min.js"></script>
<!--铭飞-->
<
script
src="$
{
base
}
/static/plugins/ms/2.0/ms.umd.js"></script>
<
script
src="$
{
base
}
/static/plugins/ms/2.0/ms-el-form.umd.js"></script>
<
script
src="$
{
base
}
/static/plugins/vue-ueditor-wrap/vue-ueditor-wrap.min.js"></script>
<#--复制-->
<
script
src="$
{
base
}
/static/plugins/clipboard/clipboard.js"></script>
<#--
树形下拉-->
<
script
src="$
{
base
}
/static/plugins/tree-select/tree.js"></script>
<!--通用样式-->
<
link
rel="stylesheet" href="$
{
base
}
/static/css/app.css"/>
<#--主题-->
<
link
rel="stylesheet" href="$
{
base
}
/static/css/theme.css">
<![
if
IE]>
<
script
src="$
{
base
}
/static/plugins/babel-polyfill/7.8.3/polyfill.min.js"></script>
<![
endif
]>
<#--语言文件-->
<
script
src="$
{
base
}
/static/locale/lang/base/zh_CN.js"></script>
<
script
src="$
{
base
}
/static/locale/lang/base/en_US.js"></script>
<
script
src="$
{
base
}
/static/mdiy/index.js"></script>
<#--下拉框-->
<
script
src="$
{
base
}
/static/plugins/vue-treeselect/0.4.0/vue-treeselect.umd.min.js"></script>
<
link
rel="stylesheet" href="$
{
base
}
/static/plugins/vue-treeselect/0.4.0/vue-treeselect.min.css">
<#--代码预览-->
<
script
src="$
{
base
}
/static/plugins/clipboard/clipboard.js"></script>
<
script
src="$
{
base
}
/static/plugins/codemirror/5.48.4/codemirror.js"></script>
<
link
href="$
{
base
}
/static/plugins/codemirror/5.48.4/codemirror.css" rel="stylesheet">
<
script
src="$
{
base
}
/static/plugins/codemirror/5.48.4/mode/css/css.js"></script>
<
script
src="$
{
base
}
/static/plugins/vue-codemirror/vue-codemirror.js"></script>
<
script
src="$
{
base
}
/static/plugins/codemirror/5.48.4/addon/scroll/annotatescrollbar.js"></script>
<
script
src="$
{
base
}
/static/plugins/codemirror/5.48.4/mode/xml/xml.js"></script>
<
script
src="$
{
base
}
/static/plugins/codemirror/5.48.4/mode/javascript/javascript.js"></script>
<
script
>
ms.base = "$
{
base
}
";
ms.login = "$
{
managerPath
}
/login.do";
ms.manager = "$
{
managerPath
}
";
ms.web = ms.base;
//百度编辑器默认配置
ms.editorConfig=
{
imageScaleEnabled
:
true
,
autoHeightEnabled
:
true
,
autoFloatEnabled
:
false
,
scaleEnabled
:
true
,
compressSide
:
0
,
maxImageSideLength
:
1000
,
maximumWords
:
2000
,
initialFrameWidth
:
'
100
%'
,
initialFrameHeight
:
400
,
serverUrl
:
ms
.base
+
"/static/plugins/ueditor/1.4.3.3/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\'\'
,fileManagerListPath:
\'\'
,imageMaxSize:204800000,videoMaxSize:204800000,fileMaxSize:204800000,fileUrlPrefix:
\'\'
,imageUrlPrefix:
\'\'
,imagePathFormat:
\'
/${appId}/cms/content/editor/%7Btime%7D
\'
,filePathFormat:
\'
/${appId}/cms/content/editor/%7Btime%7D
\'
,videoPathFormat:
\'
/${appId}/cms/content/editor/%7Btime%7D
\'
%7D"
,
UEDITOR
_
HOME
_
URL
:
ms
.base
+
'/
static
/
plugins
/
ueditor
/
1.4
.
3.3
/'
}
//ms.base = "http://192.168.0.54:90/";
//ms.manager = "http://192.168.0.54:90/apis/ms/";
//ms.web = "http://192.168.0.54:90/apis/";
//图片懒加载
Vue.use(VueLazyload,
{
error
:
ms
.base
+
'/
static
/
images
/
error
.png
'
,
loading
:
ms
.base
+
'/
static
/
images
/
loading
.png
'
,
}
)
Vue.component('treeselect', VueTreeselect.Treeselect)
Vue.component('vue-ueditor-wrap', VueUeditorWrap);
</
script
>
<
style
>
.ms-admin-menu .is-active
{
border
:
0
px
!
important
;
}
.vue-treeselect__placeholder
,
.vue-treeselect__single-value
{
font-size
:
12
px
;
padding-top
:
-8
px
;
}
.vue-treeselect__control
{
height
:
28
px
;
}
.vue-treeselect__label
{
font-size
:
12
px
;
}
.vue-treeselect__menu-container
{
z-index
:
9999
!
important
;
}
</
style
>
src/main/webapp/template/1/default/header.htm
0 → 100644
View file @
6cde273f
<
#assign
ids=
field.parentids
>
<
#assign
typeid=
field.typeid
>
<div
class=
"ms-nav"
>
<div
class=
"body"
>
<div
class=
"logo"
>
<img
title=
""
alt=
""
src=
"{ms:global.host/}/{@ms:file global.logo/}"
class=
"logo-pic"
>
<img
title=
""
alt=
""
src=
"https://www.mingsoft.net//template/1/ms/images/1596437934982.png"
class=
"logo-desc"
>
</div>
<div
@
click=
"switchShow(["1605172743000_96378"]);"
class=
"nav-h5"
>
<i
class=
"iconfont icon-caidan nav-h5-icon"
></i>
<div
id=
"key_1605172743000_96378"
class=
"nav-h5-body"
style=
"display: none"
>
<a
href=
"{ms:global.host/}"
class=
"nav-h5-item"
>
首页
</a>
{ms:channel flag='nav' type='top'}
<a
href=
"<#if field.type==3>{ms:global.url/}${field.typeurl}<#else>{ms:global.url/}${field.typelink}</#if>"
class=
"nav-h5-item <#if typeid==field.typeid || (ids?has_content && ids?index_of('${field.typeid}') gt -1)> sel</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
</div>
</div>
<div
class=
"nav-item"
>
<a
href=
"{ms:global.host/}"
class=
"item"
>
首页
</a>
{ms:channel flag='nav' type='top'}
<a
href=
"<#if field.type==3>{ms:global.url/}${field.typeurl}<#else>{ms:global.url/}${field.typelink}</#if>"
class=
"item<#if typeid==field.typeid || (ids?has_content && ids?index_of('${field.typeid}') gt -1)> sel</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
</div>
<div
class=
"nav-search"
>
<!--搜索-start-->
<form
id=
"searchDataForm"
action=
"{ms:global.host/}/mcms/search.do"
method=
"post"
class=
"ms-search-input"
>
<div
class=
"ms-search-input-div"
>
<!--输入框 - start -->
<input
class=
"ms-input"
name=
"content_title"
placeholder=
"输入搜索关键字"
>
<!--输入框 -end -->
</div>
<div
class=
"ms-search-button"
onclick=
"document.getElementById('searchDataForm').submit();"
>
<i
class=
"iconfont icon-fangdajing"
></i>
</div>
</form>
<!--搜索-end-->
</div>
</div>
</div>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment