Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
3dfe9c69
Commit
3dfe9c69
authored
Dec 16, 2022
by
msgroup
Committed by
mingsoft
Dec 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:待发布版本
parent
bb7b7a52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
18 deletions
+32
-18
index.ftl
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
+32
-18
No files found.
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
View file @
3dfe9c69
...
@@ -6,14 +6,16 @@
...
@@ -6,14 +6,16 @@
<script
src=
"${base}/static/plugins/clipboard/clipboard.js"
></script>
<script
src=
"${base}/static/plugins/clipboard/clipboard.js"
></script>
</head>
</head>
<body>
<body>
<div
id=
"index"
class=
"ms-index"
v-cloak
>
<div
id=
"index"
class=
"ms-index"
v-cloak
>
<el-header
class=
"ms-header"
height=
"50px"
>
<el-header
class=
"ms-header"
height=
"50px"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<
@
shiro
.
hasPermission
name=
"cms:category:save"
>
<
@
shiro
.
hasPermission
name=
"cms:category:save"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"save()"
>
新增
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"save()"
>
新增
</el-button>
</
@
shiro
.hasPermission
>
</
@
shiro
.hasPermission
>
<
@
shiro
.
hasPermission
name=
"cms:category:del"
>
<
@
shiro
.
hasPermission
name=
"cms:category:del"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"del(selectionList)"
:disabled=
"!selectionList.length"
>
删除
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"del(selectionList)"
:disabled=
"!selectionList.length"
>
删除
</el-button>
</
@
shiro
.hasPermission
>
</
@
shiro
.hasPermission
>
</el-col>
</el-col>
</el-header>
</el-header>
...
@@ -33,13 +35,15 @@
...
@@ -33,13 +35,15 @@
<el-table-column
type=
"selection"
width=
"40"
></el-table-column>
<el-table-column
type=
"selection"
width=
"40"
></el-table-column>
<el-table-column
label=
"编号"
width=
"100"
prop=
"id"
show-overflow-tooltip
>
<el-table-column
label=
"编号"
width=
"100"
prop=
"id"
show-overflow-tooltip
>
<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.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.id}
</a>
标签:
<a
href=
"http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.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>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
style=
"cursor: pointer"
class=
"copyBtn"
:data-clipboard-text=
"scope.row.id"
@
click=
"copyContent(true)"
>
{{scope.row.id}}
</span>
<span
style=
"cursor: pointer"
class=
"copyBtn"
:data-clipboard-text=
"scope.row.id"
@
click=
"copyContent(true)"
>
{{scope.row.id}}
</span>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
label=
"标题"
align=
"left"
prop=
"categoryTitle"
>
<el-table-column
label=
"标题"
align=
"left"
prop=
"categoryTitle"
>
...
@@ -50,8 +54,11 @@
...
@@ -50,8 +54,11 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"链接地址"
align=
"left"
prop=
"categoryPath"
min-width=
"200"
show-overflow-tooltip
>
<el-table-column
label=
"链接地址"
align=
"left"
prop=
"categoryPath"
min-width=
"200"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.categoryType == '1' || scope.row.categoryType == '2'"
style=
"cursor: pointer"
class=
"copyBtn"
:data-clipboard-text=
"'{ms:global.url/}'+scope.row.categoryPath+'/index.html'"
@
click=
"copyContent"
>
{{"{ms:global.url/}"+scope.row.categoryPath+"/index.html"}}
</span>
<span
v-if=
"scope.row.categoryType == '1' || scope.row.categoryType == '2'"
style=
"cursor: pointer"
<span
v-if=
"scope.row.categoryType == '3'"
style=
"cursor: pointer"
class=
"copyBtn"
:data-clipboard-text=
"scope.row.categoryDiyUrl"
@
click=
"copyContent"
>
{{scope.row.categoryDiyUrl}}
</span>
class=
"copyBtn"
:data-clipboard-text=
"'{ms:global.url/}'+scope.row.url"
@
click=
"copyContent"
>
{{"{ms:global.url/}"+scope.row.url}}
</span>
<span
v-if=
"scope.row.categoryType == '3'"
style=
"cursor: pointer"
class=
"copyBtn"
:data-clipboard-text=
"scope.row.categoryDiyUrl"
@
click=
"copyContent"
>
{{scope.row.categoryDiyUrl}}
</span>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
label=
"列表地址"
align=
"left"
prop=
"categoryListUrl"
width=
"100"
show-overflow-tooltip
>
<el-table-column
label=
"列表地址"
align=
"left"
prop=
"categoryListUrl"
width=
"100"
show-overflow-tooltip
>
...
@@ -62,22 +69,25 @@
...
@@ -62,22 +69,25 @@
{{scope.row.categoryType == '2'?scope.row.categoryUrl:''}}
{{scope.row.categoryType == '2'?scope.row.categoryUrl:''}}
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
label=
"栏目属性"
align=
"left"
prop=
"categoryFlag"
width=
"
10
0"
show-overflow-tooltip
>
<el-table-column
label=
"栏目属性"
align=
"left"
prop=
"categoryFlag"
width=
"
8
0"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{getDictLabel(scope.row.categoryFlag)}}
{{getDictLabel(scope.row.categoryFlag)}}
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"18
0"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"24
0"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-link
type=
"primary"
:underline=
"false"
v-if=
"scope.row.categoryType != '3'"
@
click=
"preview(scope.row)"
>
预览
</el-link>
<
@
shiro
.
hasPermission
name=
"cms:category:save"
>
<
@
shiro
.
hasPermission
name=
"cms:category:save"
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"save(scope.row.id, scope.row.id)"
><i
class=
"el-icon-plus"
></i>
子栏目
</el-link>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"save(scope.row.id, scope.row.id)"
><i
class=
"el-icon-plus"
></i>
子栏目
</el-link>
</
@
shiro
.hasPermission
>
</
@
shiro
.hasPermission
>
<
@
shiro
.
hasPermission
name=
"cms:category:save"
>
<
@
shiro
.
hasPermission
name=
"cms:category:save"
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"copyCategory(scope.row.id)"
>
克隆
</el-link>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"copyCategory(scope.row.id)"
>
克隆
</el-link>
</
@
shiro
.hasPermission
>
</
@
shiro
.hasPermission
>
<
#
--
<@
shiro
.
hasPermission
name=
"cms:category:update"
>
-->
<
#
--
<@
shiro
.
hasPermission
name=
"cms:category:update"
>
-->
<
#
--
<
el-link
type=
"primary"
:underline=
"false"
v-if=
"scope.row.categoryType == '1' || scope.row.categoryType == '2'"
@
click=
"updateTemplate(scope.row.id)"
>
应用子栏目
</el-link>
-->
<
#
--
<
el-link
type=
"primary"
:underline=
"false"
v-if=
"scope.row.categoryType == '1' || scope.row.categoryType == '2'"
@
click=
"updateTemplate(scope.row.id)"
>
应用子栏目
</el-link>
-->
<
#
--
</@
shiro
.
hasPermission
>
-->
<
#
--
</@
shiro
.
hasPermission
>
-->
<
@
shiro
.
hasPermission
name=
"cms:category:update"
>
<
@
shiro
.
hasPermission
name=
"cms:category:update"
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"save(scope.row.id)"
>
编辑
</el-link>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"save(scope.row.id)"
>
编辑
</el-link>
</
@
shiro
.hasPermission
>
</
@
shiro
.hasPermission
>
...
@@ -88,7 +98,7 @@
...
@@ -88,7 +98,7 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</el-main>
</el-main>
</div>
</div>
</body>
</body>
</html>
</html>
...
@@ -115,7 +125,7 @@
...
@@ -115,7 +125,7 @@
},
{
},
{
"value"
:
"2"
,
"value"
:
"2"
,
"label"
:
"封面"
"label"
:
"封面"
},
{
},
{
"value"
:
"3"
,
"value"
:
"3"
,
"label"
:
"链接"
"label"
:
"链接"
}],
}],
...
@@ -147,7 +157,7 @@
...
@@ -147,7 +157,7 @@
},
},
methods
:
{
methods
:
{
//复制栏目
//复制栏目
copyCategory
:
function
(
id
)
{
copyCategory
:
function
(
id
)
{
var
that
=
this
;
var
that
=
this
;
ms
.
http
.
get
(
ms
.
manager
+
"/cms/category/copyCategory.do"
,
{
ms
.
http
.
get
(
ms
.
manager
+
"/cms/category/copyCategory.do"
,
{
id
:
id
id
:
id
...
@@ -169,7 +179,7 @@
...
@@ -169,7 +179,7 @@
});
});
},
},
//应用子栏目模板
//应用子栏目模板
updateTemplate
:
function
(
id
)
{
updateTemplate
:
function
(
id
)
{
var
that
=
this
;
var
that
=
this
;
ms
.
http
.
get
(
ms
.
manager
+
"/cms/category/updateTemplate.do"
,
{
ms
.
http
.
get
(
ms
.
manager
+
"/cms/category/updateTemplate.do"
,
{
id
:
id
id
:
id
...
@@ -194,7 +204,7 @@
...
@@ -194,7 +204,7 @@
getDictLabel
:
function
(
v
)
{
getDictLabel
:
function
(
v
)
{
var
that
=
this
;
var
that
=
this
;
var
labels
=
[];
var
labels
=
[];
if
(
v
)
{
if
(
v
)
{
v
.
split
(
","
).
forEach
(
function
(
item
)
{
v
.
split
(
","
).
forEach
(
function
(
item
)
{
for
(
var
key
in
that
.
categoryFlagOptions
)
{
for
(
var
key
in
that
.
categoryFlagOptions
)
{
if
(
item
==
that
.
categoryFlagOptions
[
key
].
dictValue
)
{
if
(
item
==
that
.
categoryFlagOptions
[
key
].
dictValue
)
{
...
@@ -287,6 +297,10 @@
...
@@ -287,6 +297,10 @@
});
});
})
})
},
},
//预览栏目
preview
:
function
(
row
)
{
window
.
open
(
row
[
"url"
]);
},
//获取categoryFlag数据源
//获取categoryFlag数据源
categoryFlagOptionsGet
:
function
()
{
categoryFlagOptionsGet
:
function
()
{
var
that
=
this
;
var
that
=
this
;
...
@@ -294,7 +308,7 @@
...
@@ -294,7 +308,7 @@
dictType
:
'栏目属性'
,
dictType
:
'栏目属性'
,
pageSize
:
99999
pageSize
:
99999
}).
then
(
function
(
res
)
{
}).
then
(
function
(
res
)
{
if
(
res
.
result
)
{
if
(
res
.
result
)
{
res
=
res
.
data
;
res
=
res
.
data
;
that
.
categoryFlagOptions
=
res
.
rows
;
that
.
categoryFlagOptions
=
res
.
rows
;
}
}
...
...
Write
Preview
Markdown
is supported
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