Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
23d454ba
Commit
23d454ba
authored
Aug 09, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改整体页面和路由配置
parent
1fd30d6a
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
659 additions
and
328 deletions
+659
-328
sample-form-manager-ui/admin/src/api/device.js
sample-form-manager-ui/admin/src/api/device.js
+9
-0
sample-form-manager-ui/admin/src/assets/css/common.less
sample-form-manager-ui/admin/src/assets/css/common.less
+51
-31
sample-form-manager-ui/admin/src/components/TabHeader.vue
sample-form-manager-ui/admin/src/components/TabHeader.vue
+48
-0
sample-form-manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
...manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
+18
-15
sample-form-manager-ui/admin/src/pages/hardware/modal/AddDevice.vue
...m-manager-ui/admin/src/pages/hardware/modal/AddDevice.vue
+1
-1
sample-form-manager-ui/admin/src/pages/jump/jump.vue
sample-form-manager-ui/admin/src/pages/jump/jump.vue
+3
-2
sample-form-manager-ui/admin/src/pages/layouts/Layouts.vue
sample-form-manager-ui/admin/src/pages/layouts/Layouts.vue
+55
-12
sample-form-manager-ui/admin/src/pages/layouts/components/Header.vue
...-manager-ui/admin/src/pages/layouts/components/Header.vue
+80
-17
sample-form-manager-ui/admin/src/pages/software/basics/BasicsSet.vue
...-manager-ui/admin/src/pages/software/basics/BasicsSet.vue
+9
-13
sample-form-manager-ui/admin/src/pages/software/librarymanage/LibraryManage.vue
.../admin/src/pages/software/librarymanage/LibraryManage.vue
+8
-11
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
...ui/admin/src/pages/software/materials/MaterialsManage.vue
+47
-49
sample-form-manager-ui/admin/src/pages/software/matter/MatterManage.vue
...nager-ui/admin/src/pages/software/matter/MatterManage.vue
+24
-27
sample-form-manager-ui/admin/src/pages/software/skinManage/SkinManage.vue
...ger-ui/admin/src/pages/software/skinManage/SkinManage.vue
+18
-22
sample-form-manager-ui/admin/src/pages/system/System.vue
sample-form-manager-ui/admin/src/pages/system/System.vue
+28
-8
sample-form-manager-ui/admin/src/pages/system/task/TaskSet.vue
...e-form-manager-ui/admin/src/pages/system/task/TaskSet.vue
+1
-1
sample-form-manager-ui/admin/src/router/index.js
sample-form-manager-ui/admin/src/router/index.js
+236
-119
sample-form-manager-ui/admin/src/store/index.js
sample-form-manager-ui/admin/src/store/index.js
+7
-0
sample-form-manager-ui/admin/src/utils/index.js
sample-form-manager-ui/admin/src/utils/index.js
+16
-0
No files found.
sample-form-manager-ui/admin/src/api/device.js
View file @
23d454ba
...
@@ -63,3 +63,12 @@ export const saveDeviceEnable = (data) => {
...
@@ -63,3 +63,12 @@ export const saveDeviceEnable = (data) => {
data
,
data
,
});
});
};
};
// 删除设备
export
const
delDevice
=
(
params
)
=>
{
return
request
({
url
:
`/sampleform/device/delete`
,
method
:
"
get
"
,
params
,
});
};
sample-form-manager-ui/admin/src/assets/css/common.less
View file @
23d454ba
...
@@ -30,12 +30,25 @@
...
@@ -30,12 +30,25 @@
.bgg {
.bgg {
background-color: #1bbc9b;
background-color: #1bbc9b;
}
}
.bgw{
background-color: #fff;
}
/* 版心 */
/* 版心 */
.container {
.container {
width: 1200px;
width: 1200px;
}
}
.container_width {
width: 1880px;
}
.container_height {
height: 820px;
}
.w-full{
width:100%;
}
.h-full{
height:100%
}
/* 弹性布局 */
/* 弹性布局 */
.flex {
.flex {
display: flex;
display: flex;
...
@@ -129,7 +142,9 @@
...
@@ -129,7 +142,9 @@
.ml25 {
.ml25 {
margin-left: 25px;
margin-left: 25px;
}
}
.mr5 {
margin-right: 5px;
}
.mr10 {
.mr10 {
margin-right: 10px;
margin-right: 10px;
}
}
...
@@ -304,22 +319,6 @@
...
@@ -304,22 +319,6 @@
text-align: right;
text-align: right;
}
}
/* title */
.color_title {
margin-left: 15px;
position: relative;
margin-bottom: 15px;
}
.color_title::before {
content: "";
width: 4px;
height: 20px;
position: absolute;
top: 0px;
left: -16px;
background-color: #1890ff;
}
/**
/**
element-ui
element-ui
*/
*/
...
@@ -351,9 +350,12 @@
...
@@ -351,9 +350,12 @@
.gutter {
.gutter {
width: 6px !important;
width: 6px !important;
}
}
.auto-scroll{
overflow-y: auto;
}
::-webkit-scrollbar {
::-webkit-scrollbar {
width: 6px;
width: 6px;
height: 6px;
overflow-y: auto;
overflow-y: auto;
}
}
...
@@ -364,7 +366,7 @@
...
@@ -364,7 +366,7 @@
::-webkit-scrollbar-track {
::-webkit-scrollbar-track {
border-radius: 6px;
border-radius: 6px;
background: r
gb
a(0, 0, 0, 0);
background: r
bg
a(0, 0, 0, 0);
}
}
.autoWidth {
.autoWidth {
...
@@ -387,29 +389,47 @@
...
@@ -387,29 +389,47 @@
.el-tooltip__popper {
.el-tooltip__popper {
max-width: 20%;
max-width: 20%;
}
}
.el-drawer__header{
.el-drawer__header
{
margin-bottom: 20px !important;
margin-bottom: 20px !important;
}
}
.el-drawer__body{
.el-drawer__body
{
border-top:1px solid #ececec;
border-top:
1px solid #ececec;
}
}
.el-button--primary{
.el-button--primary
{
background: linear-gradient(90deg, #5ab6ff, #2e9aff) !important;
background: linear-gradient(90deg, #5ab6ff, #2e9aff) !important;
border: none !important;
border: none !important;
border-color: transparent !important;
border-color: transparent !important;
}
}
.el-dialog__header{
.el-dialog__header
{
.el-dialog__title{
.el-dialog__title
{
color: #1890
FF
!important;
color: #1890
ff
!important;
font-size: 18px;
font-size: 18px;
font-weight: bold;
font-weight: bold;
}
}
.el-dialog__close{
.el-dialog__close
{
color: #188fff !important;
color: #188fff !important;
font-size: 26px;
font-size: 26px;
font-weight: bold;
font-weight: bold;
}
}
}
}
.el-pagination__jump{
.el-pagination__jump
{
margin-left: 0px !important;
margin-left: 0px !important;
}
}
\ No newline at end of file
.el-tabs__nav-scroll {
padding-left: 15px;
.tab-label {
font-weight: bold;
color: rgba(0, 0, 0, 0.65);
}
.is-active {
.tab-label {
color:#2681e8
}
}
}
.el-tabs__header{
margin: 0px !important;
}
// .el-tabs__content {
// padding: 0px 15px 15px 15px;
// }
sample-form-manager-ui/admin/src/components/TabHeader.vue
0 → 100644
View file @
23d454ba
<
template
>
<div
class=
"tab-header"
>
<i
v-if=
"icon"
:class=
"['mr5', 'primary', icon]"
></i>
<span
class=
"label"
>
{{
label
}}
</span>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
icon
:
{
type
:
String
,
default
:
""
,
},
label
:
{
type
:
String
,
default
:
""
,
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.tab-header {
display: flex;
align-items: center;
width: 100%;
height: 40px;
padding: 0px 15px;
font-size: 14px;
position: relative;
cursor: default;
&::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: #e4e7ed;
z-index: 1;
}
.label {
font-weight: bold;
color: rgba(0, 0, 0, 0.65);
}
}
</
style
>
\ No newline at end of file
sample-form-manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"device"
>
<div
class=
"device bgw flex flexc"
>
<el-card
shadow=
"never"
>
<TabHeader
icon=
"el-icon-notebook-2"
label=
"数字填单设备"
></TabHeader>
<div
slot=
"header"
>
<div
class=
"flex1 pd15 auto-scroll"
>
<span>
样表设备
</span>
</div>
<TableHeader>
<TableHeader>
<div
slot=
"left"
>
<div
slot=
"left"
>
<!--
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAdd"
<!--
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAdd"
...
@@ -141,7 +139,7 @@
...
@@ -141,7 +139,7 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
prop
=
"
deviceRemark
"
label
=
"
备注
"
>
<
el
-
table
-
column
align
=
"
center
"
prop
=
"
deviceRemark
"
label
=
"
备注
"
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
label
=
"
操作
"
width
=
"
16
0
"
>
<
el
-
table
-
column
align
=
"
center
"
label
=
"
操作
"
width
=
"
20
0
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
div
class
=
"
flex jca
"
>
<
div
class
=
"
flex jca
"
>
<
span
<
span
...
@@ -162,9 +160,9 @@
...
@@ -162,9 +160,9 @@
<
span
class
=
"
primary pointer
"
@
click
=
"
handleEdit(scope.row)
"
<
span
class
=
"
primary pointer
"
@
click
=
"
handleEdit(scope.row)
"
>
编辑
<
/spa
n
>
编辑
<
/spa
n
>
>
<
!--
<
span
class
=
"
delete pointer
"
@
click
=
"
handleDel(scope.row.id)
"
<
span
class
=
"
delete pointer
"
@
click
=
"
handleDel(scope.row.id)
"
>
删除
<
/spa
n
>
删除
<
/spa
n
>
-->
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -177,7 +175,8 @@
...
@@ -177,7 +175,8 @@
@
currentChange
=
"
changePagination
"
@
currentChange
=
"
changePagination
"
@
sizeChange
=
"
changeSize
"
@
sizeChange
=
"
changeSize
"
><
/Pagination
>
><
/Pagination
>
<
/el-card
>
<
/div
>
<!--
新增设备
-->
<!--
新增设备
-->
<
AddDevice
<
AddDevice
:
dict
=
"
dict
"
:
dict
=
"
dict
"
...
@@ -196,10 +195,12 @@ import TableHeader from "@/components/TableHeader.vue";
...
@@ -196,10 +195,12 @@ import TableHeader from "@/components/TableHeader.vue";
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
AddMatter
from
"
./modal/AddMatter.vue
"
;
import
AddMatter
from
"
./modal/AddMatter.vue
"
;
import
AddDevice
from
"
./modal/AddDevice.vue
"
;
import
AddDevice
from
"
./modal/AddDevice.vue
"
;
import
TabHeader
from
"
@/components/TabHeader.vue
"
;
import
{
import
{
getDeviceList
,
getDeviceList
,
saveDeviceEnable
,
saveDeviceEnable
,
saveDeviceActive
,
saveDeviceActive
,
delDevice
,
}
from
"
@/api/device
"
;
}
from
"
@/api/device
"
;
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
export
default
{
export
default
{
...
@@ -208,6 +209,7 @@ export default {
...
@@ -208,6 +209,7 @@ export default {
AddDevice
,
AddDevice
,
AddMatter
,
AddMatter
,
Pagination
,
Pagination
,
TabHeader
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -326,7 +328,12 @@ export default {
...
@@ -326,7 +328,12 @@ export default {
type
:
"
warning
"
,
type
:
"
warning
"
,
}
)
}
)
.
then
(
async
()
=>
{
.
then
(
async
()
=>
{
console
.
log
(
id
);
let
res
=
await
delDevice
({
id
}
);
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
==
1
)
{
this
.
$message
.
success
(
msg
);
this
.
getDeviceList
();
}
}
)
}
)
.
catch
(()
=>
{
.
catch
(()
=>
{
console
.
log
(
"
取消成功!
"
);
console
.
log
(
"
取消成功!
"
);
...
@@ -359,11 +366,7 @@ export default {
...
@@ -359,11 +366,7 @@ export default {
<
style
lang
=
"
less
"
scoped
>
<
style
lang
=
"
less
"
scoped
>
.
device
{
.
device
{
width
:
100
%
;
width
:
100
%
;
min
-
height
:
100
%
;
height
:
100
%
;
display
:
flex
;
:
deep
(.
el
-
card
)
{
height
:
auto
;
}
.
select
{
.
select
{
width
:
220
px
!
important
;
width
:
220
px
!
important
;
}
}
...
...
sample-form-manager-ui/admin/src/pages/hardware/modal/AddDevice.vue
View file @
23d454ba
...
@@ -159,10 +159,10 @@
...
@@ -159,10 +159,10 @@
</el-row>
</el-row>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重 置
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOk"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOk"
>
确 定
</el-button
>
确 定
</el-button
>
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重 置
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
...
...
sample-form-manager-ui/admin/src/pages/jump/jump.vue
View file @
23d454ba
...
@@ -17,15 +17,16 @@ export default {
...
@@ -17,15 +17,16 @@ export default {
this
.
getInfo
();
this
.
getInfo
();
},
},
methods
:
{
methods
:
{
...
mapMutations
([
"
SET_sysName
"
,
"
SET_sysLogo
"
,
"
SET_token
"
]),
...
mapMutations
([
"
SET_sysName
"
,
"
SET_sysLogo
"
,
"
SET_token
"
,
"
SET_path
"
]),
// 获取token和站点信息
// 获取token和站点信息
async
getInfo
()
{
async
getInfo
()
{
let
{
token
,
siteid
,
sysName
,
sysLogo
}
=
this
.
$route
.
query
;
let
{
token
,
siteid
,
sysName
,
sysLogo
,
path
}
=
this
.
$route
.
query
;
if
(
token
)
{
if
(
token
)
{
local
.
setLocal
(
"
sampleSiteId
"
,
siteid
);
local
.
setLocal
(
"
sampleSiteId
"
,
siteid
);
this
.
SET_token
(
token
);
this
.
SET_token
(
token
);
this
.
SET_sysName
(
sysName
);
this
.
SET_sysName
(
sysName
);
this
.
SET_sysLogo
(
sysLogo
);
this
.
SET_sysLogo
(
sysLogo
);
this
.
SET_path
(
path
);
calcMenu
();
calcMenu
();
this
.
$router
.
push
(
"
/basicsset
"
);
this
.
$router
.
push
(
"
/basicsset
"
);
}
else
{
}
else
{
...
...
sample-form-manager-ui/admin/src/pages/layouts/Layouts.vue
View file @
23d454ba
...
@@ -21,8 +21,23 @@
...
@@ -21,8 +21,23 @@
>
>
</el-breadcrumb>
</el-breadcrumb>
</div>
-->
</div>
-->
<div
class=
"out-box flex1"
>
<div
class=
"main flex1 flex flexc"
>
<router-view></router-view>
<!--
<el-tabs
:value=
"activeKey"
@
tab-click=
"changeRouter"
>
<el-tab-pane
v-for=
"v in subMenus"
:key=
"v.path"
:name=
"v.path"
>
<template
slot=
"label"
>
<i
v-if=
"v.meta.icon"
:class=
"['mr5', 'primary', v.meta.icon]"
></i>
<span
class=
"tab-label"
>
{{
v
.
meta
.
title
}}
</span>
</
template
>
</el-tab-pane>
</el-tabs>
-->
<div
class=
"out-box flex1"
>
<keep-alive>
<!-- 需要缓存的视图组件 -->
<router-view
v-if=
"$route.meta.keepAlive"
>
</router-view>
</keep-alive>
<!-- 不需要缓存的视图组件 -->
<router-view
v-if=
"!$route.meta.keepAlive"
>
</router-view>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -32,6 +47,7 @@ import Header from "./components/Header.vue";
...
@@ -32,6 +47,7 @@ import Header from "./components/Header.vue";
import
{
getdeptList
}
from
"
@/api/department
"
;
import
{
getdeptList
}
from
"
@/api/department
"
;
import
{
mapMutations
,
mapState
}
from
"
vuex
"
;
import
{
mapMutations
,
mapState
}
from
"
vuex
"
;
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
import
{
findBottomSubarrays
}
from
"
@/utils
"
;
export
default
{
export
default
{
components
:
{
components
:
{
Header
,
Header
,
...
@@ -41,20 +57,25 @@ export default {
...
@@ -41,20 +57,25 @@ export default {
systemName
:
process
.
env
.
VUE_APP_sysName
,
systemName
:
process
.
env
.
VUE_APP_sysName
,
portalUrl
:
process
.
env
.
VUE_APP_API_portal_URL
,
portalUrl
:
process
.
env
.
VUE_APP_API_portal_URL
,
breads
:
[],
breads
:
[],
subMenus
:
[],
};
};
},
},
created
()
{
created
()
{
// this.getSubMenus();
document
.
title
=
this
.
sysName
?
this
.
sysName
:
this
.
systemName
;
// 设置项目标题
document
.
title
=
this
.
sysName
?
this
.
sysName
:
this
.
systemName
;
// 设置项目标题
this
.
calcBreads
();
//
this.calcBreads();
this
.
getdeptList
();
this
.
getdeptList
();
},
},
watch
:
{
//
watch: {
"
$route.path
"
()
{
//
"$route.path"() {
this
.
calcBreads
();
//
this.calcBreads();
},
//
},
},
//
},
computed
:
{
computed
:
{
...
mapState
([
"
sysName
"
]),
...
mapState
([
"
sysName
"
]),
activeKey
()
{
return
this
.
$route
.
path
;
},
},
},
methods
:
{
methods
:
{
...
mapMutations
([
"
SET_deptList
"
]),
...
mapMutations
([
"
SET_deptList
"
]),
...
@@ -71,6 +92,18 @@ export default {
...
@@ -71,6 +92,18 @@ export default {
this
.
breads
=
[...
temp
,
...
r
];
this
.
breads
=
[...
temp
,
...
r
];
},
},
// 获取当前顶层路由下的所有子路由
getSubMenus
()
{
let
path
=
this
.
$route
?.
meta
.
activeMenu
?
this
.
$route
.
meta
.
activeMenu
:
this
.
$route
.
path
;
let
options
=
this
.
$router
.
options
.
routes
[
0
].
children
;
let
curRouters
=
options
.
filter
((
v
)
=>
v
.
path
==
path
);
this
.
subMenus
=
findBottomSubarrays
(
curRouters
).
filter
(
(
v
)
=>
!
v
.
meta
.
hidden
);
},
// 获取部门列表
// 获取部门列表
async
getdeptList
()
{
async
getdeptList
()
{
let
res
=
await
getdeptList
({
let
res
=
await
getdeptList
({
...
@@ -85,6 +118,10 @@ export default {
...
@@ -85,6 +118,10 @@ export default {
this
.
SET_deptList
(
data
.
data
);
this
.
SET_deptList
(
data
.
data
);
}
}
},
},
changeRouter
(
e
)
{
this
.
$router
.
push
(
e
.
name
);
},
},
},
};
};
</
script
>
</
script
>
...
@@ -94,16 +131,22 @@ export default {
...
@@ -94,16 +131,22 @@ export default {
width: 100%;
width: 100%;
min-width: 1620px;
min-width: 1620px;
height: 100%;
height: 100%;
padding-bottom: 1
0
px;
padding-bottom: 1
5
px;
// .crumbs {
// .crumbs {
// margin: 10px 0px;
// margin: 10px 0px;
// width: 98%;
// width: 98%;
// }
// }
.out-box {
.main {
width: 98%;
width: 98%;
margin-top: 10px;
margin-top: 15px;
// padding-bottom: 15px;
border-radius: 4px;
border-radius: 4px;
background-color: #fff;
overflow-y: auto;
// background-color: #fff;
}
.out-box {
// padding: 15px;
overflow-y: auto;
overflow-y: auto;
}
}
}
}
...
...
sample-form-manager-ui/admin/src/pages/layouts/components/Header.vue
View file @
23d454ba
...
@@ -19,16 +19,43 @@
...
@@ -19,16 +19,43 @@
router
router
text-color=
"rgba(254, 254, 254, 0.65)"
text-color=
"rgba(254, 254, 254, 0.65)"
>
>
<el-menu-item
v-for=
"v in menus"
:key=
"v.path"
:index=
"v.path"
>
<template
v-for=
"v in menus"
>
<!-- 有子路由 -->
<el-submenu
v-if=
"!v.hideChildrenInMenu && v.children.length"
:key=
"'a' + v.path"
:index=
"v.path"
>
<template
slot=
"title"
>
<i
v-if=
"v.meta && v.meta.icon"
:class=
"v.meta.icon"
></i>
{{
v
.
meta
.
title
}}
</
template
>
<el-menu-item
v-for=
"item in v.children"
:key=
"item.path"
:index=
"item.path"
>
<i
v-if=
"item.meta && item.meta.icon"
:class=
"item.meta.icon"
></i>
{{ item.meta
&&
item.meta.title }}
</el-menu-item>
</el-submenu>
<!-- 单个路由 -->
<el-menu-item
v-else
:key=
"v.path"
:index=
"v.path"
>
<i
v-if=
"v.meta && v.meta.icon"
:class=
"v.meta.icon"
></i>
{{ v.meta.title }}
</el-menu-item>
</template>
<!-- <el-menu-item v-for="v in menus" :key="v.path" :index="v.path">
<i :class="v.meta.icon"></i>
<i :class="v.meta.icon"></i>
{{ v.meta.title }}
{{ v.meta.title }}
</el-menu-item>
</el-menu-item>
-->
</el-menu>
</el-menu>
</div>
</div>
<!-- 返回门户 -->
<!-- 返回门户 -->
<div
class=
"back-btn"
>
<div
class=
"back-btn"
>
<el-tooltip
effect=
"dark"
content=
"返回门户"
placement=
"bottom"
>
<el-tooltip
effect=
"dark"
content=
"返回门户"
placement=
"bottom"
>
<a
class=
"pointer"
:href=
"portal"
>
<a
class=
"pointer"
:href=
"portal
+ path
"
>
<i
class=
"el-icon-s-home"
></i>
返回门户
<i
class=
"el-icon-s-home"
></i>
返回门户
</a>
</a>
</el-tooltip>
</el-tooltip>
...
@@ -47,7 +74,7 @@ export default {
...
@@ -47,7 +74,7 @@ export default {
return
{
return
{
systemName
:
process
.
env
.
VUE_APP_sysName
,
systemName
:
process
.
env
.
VUE_APP_sysName
,
api
:
process
.
env
.
VUE_APP_API_IMG_URL
,
api
:
process
.
env
.
VUE_APP_API_IMG_URL
,
portal
:
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/home/siteArrange
"
,
portal
:
process
.
env
.
VUE_APP_API_portal_URL
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -59,7 +86,7 @@ export default {
...
@@ -59,7 +86,7 @@ export default {
}
}
return
path
;
return
path
;
},
},
...
mapState
([
"
menus
"
,
"
sysName
"
,
"
sysLogo
"
]),
...
mapState
([
"
menus
"
,
"
sysName
"
,
"
sysLogo
"
,
"
path
"
]),
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
...
@@ -78,6 +105,7 @@ export default {
...
@@ -78,6 +105,7 @@ export default {
// background-color: #2681e8;
// background-color: #2681e8;
background: linear-gradient(90deg, #1845c6 0%, #2999ff 100%);
background: linear-gradient(90deg, #1845c6 0%, #2999ff 100%);
color: #fff;
color: #fff;
flex-shrink: 0;
.left {
.left {
height: 100%;
height: 100%;
}
}
...
@@ -93,31 +121,66 @@ export default {
...
@@ -93,31 +121,66 @@ export default {
}
}
}
}
/deep/.el-menu {
/deep/.el-menu {
height: 64px !important;
border: none !important;
background-color: transparent;
}
/deep/.el-menu-item {
height: 100% !important;
height: 100% !important;
border: none !important;
border: none !important;
display: flex;
background-color: transparent;
align-items: center;
i {
i {
color: rgba(254, 254, 254, 0.65);
color: rgba(254, 254, 254, 0.65);
}
}
.el-menu-item {
height: 100% !important;
border: none !important;
display: flex;
align-items: center;
color: rgba(254, 254, 254, 0.65);
&:hover {
// background-color: transparent !important;
color: #fff !important;
background-color: #1890ff !important;
// border-bottom: 2px solid #fff !important;
}
}
}
/deep/.el-submenu {
height: 100% !important;
.el-submenu__title {
height: 100% !important;
display: flex;
align-items: center;
color: rgba(254, 254, 254, 0.65) !important;
border: none !important;
&:hover {
// background-color: transparent !important;
color: #fff !important;
background-color: #1890ff !important;
// border-bottom: 2px solid #fff !important;
}
}
}
.el-menu--horizontal .el-menu .el-menu-item {
color: #909399;
&:hover {
&:hover {
// background-color: transparent !important;
i {
background-color: #1890ff !important
;
color: #1890ff
;
color: #fff !important;
}
// border-bottom: 2px solid #fff !important
;
color: #1890ff
;
}
}
}
}
.el-menu--horizontal .el-menu .el-menu-item.is-active {
color: #1890ff !important;
}
/deep/.is-active {
/deep/.is-active {
border: none !important;
// border-bottom: 2px solid #fff !important;
// border-bottom: 2px solid #fff !important;
color: #fff !important;
color: #fff !important;
// background-color: transparent !important;
// background-color: transparent !important;
background-color: #1890ff !important;
background-color: #1890ff !important;
.el-submenu__title {
border: none !important;
color: #fff !important;
// background-color: transparent !important;
background-color: #1890ff !important;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
sample-form-manager-ui/admin/src/pages/software/basics/BasicsSet.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"basics-set"
>
<div
class=
"basics-set bgw flex flexc"
>
<el-card
class=
"box-card"
>
<TabHeader
icon=
"el-icon-notebook-2"
label=
"样表基础设置"
></TabHeader>
<div
slot=
"header"
class=
"clearfix"
>
<div
class=
"pd15 flex1 auto-scroll"
>
<span>
样表基础设置
</span>
</div>
<div
class=
"header"
>
<div
class=
"header"
>
<span
class=
"mr15 title"
>
热门搜索词汇
</span>
<span
class=
"mr15 title"
>
热门搜索词汇
</span>
<span
class=
"tips"
<span
class=
"tips"
...
@@ -62,15 +60,18 @@
...
@@ -62,15 +60,18 @@
>
确
定
>
确
定
<
/el-button
>
<
/el-button
>
<
/div
>
<
/div
>
<
/
el-card
>
<
/
div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getBaseSetInfo
,
saveBaseSet
}
from
"
@/api/baseSet
"
;
import
{
getBaseSetInfo
,
saveBaseSet
}
from
"
@/api/baseSet
"
;
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
import
TabHeader
from
"
@/components/TabHeader.vue
"
;
export
default
{
export
default
{
components
:
{
TabHeader
,
}
,
data
()
{
data
()
{
return
{
return
{
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
...
@@ -172,18 +173,13 @@ export default {
...
@@ -172,18 +173,13 @@ export default {
<
style
lang
=
"
less
"
scoped
>
<
style
lang
=
"
less
"
scoped
>
.
basics
-
set
{
.
basics
-
set
{
width
:
100
%
;
width
:
100
%
;
min
-
height
:
100
%
;
height
:
100
%
;
display
:
flex
;
.
title
{
.
title
{
font
-
size
:
15
px
;
font
-
size
:
15
px
;
color
:
#
000
;
color
:
#
000
;
}
}
}
}
:
deep
(.
el
-
card
)
{
height
:
auto
;
}
.
header
{
.
header
{
.
tips
{
.
tips
{
font
-
size
:
14
px
;
font
-
size
:
14
px
;
...
...
sample-form-manager-ui/admin/src/pages/software/librarymanage/LibraryManage.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"library-manage"
>
<div
class=
"library-manage bgw flex flexc"
>
<el-card
class=
"box-card"
shadow=
"never"
>
<TabHeader
icon=
"el-icon-notebook-2"
label=
"公共库管理"
></TabHeader>
<div
slot=
"header"
class=
"clearfix"
>
<div
class=
"pd15 flex1 auto-scroll"
>
<span>
公共库管理
</span>
</div>
<TableHeader>
<TableHeader>
<div
slot=
"left"
>
<div
slot=
"left"
>
<!--
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAddMaterials"
<!--
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAddMaterials"
...
@@ -113,7 +111,8 @@
...
@@ -113,7 +111,8 @@
@
currentChange
=
"
changePagination
"
@
currentChange
=
"
changePagination
"
@
sizeChange
=
"
changeSize
"
@
sizeChange
=
"
changeSize
"
><
/Pagination
>
><
/Pagination
>
<
/el-card
>
<
/div
>
<!--
添加材料
-->
<!--
添加材料
-->
<!--
<
AddMaterals
<!--
<
AddMaterals
ref
=
"
AddMaterals
"
ref
=
"
AddMaterals
"
...
@@ -132,6 +131,7 @@
...
@@ -132,6 +131,7 @@
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
PreviewMaterals
from
"
./modal/PreviewMaterals.vue
"
;
import
PreviewMaterals
from
"
./modal/PreviewMaterals.vue
"
;
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
TabHeader
from
"
@/components/TabHeader.vue
"
;
import
{
getPubdatumList
,
delPubdatum
}
from
"
@/api/libray
"
;
import
{
getPubdatumList
,
delPubdatum
}
from
"
@/api/libray
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
{
mapGetters
}
from
"
vuex
"
;
export
default
{
export
default
{
...
@@ -139,6 +139,7 @@ export default {
...
@@ -139,6 +139,7 @@ export default {
TableHeader
,
TableHeader
,
PreviewMaterals
,
PreviewMaterals
,
Pagination
,
Pagination
,
TabHeader
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -264,12 +265,8 @@ export default {
...
@@ -264,12 +265,8 @@ export default {
<
style
lang
=
"
less
"
scoped
>
<
style
lang
=
"
less
"
scoped
>
.
library
-
manage
{
.
library
-
manage
{
display
:
flex
;
width
:
100
%
;
width
:
100
%
;
min
-
height
:
100
%
;
height
:
100
%
;
:
deep
(.
el
-
card
)
{
height
:
auto
;
}
.
short
{
.
short
{
overflow
:
hidden
;
overflow
:
hidden
;
text
-
overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
...
...
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"materias-manage flex"
>
<div
class=
"materias-manage flex jcb"
>
<div
class=
"left"
>
<div
class=
"left h-full bgw flex flexc"
>
<el-card
class=
"box-card"
shadow=
"never"
>
<TabHeader
icon=
"el-icon-notebook-2"
label=
"事项列表"
></TabHeader>
<div
slot=
"header"
>
<div
class=
"pd15 flex1 auto-scroll"
>
<span>
事项列表
</span>
</div>
<TableHeader>
<TableHeader>
<div
slot=
"left"
>
<div
slot=
"left"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"setCurrent"
>
{{
<el-button
size=
"small"
type=
"primary"
@
click=
"setCurrent"
>
{{
...
@@ -108,13 +106,11 @@
...
@@ -108,13 +106,11 @@
@
currentChange
=
"
leftChangePagination
"
@
currentChange
=
"
leftChangePagination
"
@
sizeChange
=
"
leftChangeSize
"
@
sizeChange
=
"
leftChangeSize
"
><
/Pagination
>
><
/Pagination
>
<
/
el-card
>
<
/
div
>
<
/div
>
<
/div
>
<
div
class
=
"
right
"
>
<
div
class
=
"
right h-full bgw flex flexc
"
>
<
el
-
card
class
=
"
box-card
"
shadow
=
"
never
"
>
<
TabHeader
icon
=
"
el-icon-notebook-2
"
label
=
"
材料列表
"
><
/TabHeader
>
<
div
slot
=
"
header
"
>
<
div
class
=
"
pd15 flex1 auto-scroll
"
>
<
span
>
材料列表
<
/span
>
<
/div
>
<!--
内容
-->
<!--
内容
-->
<
TableHeader
>
<
TableHeader
>
<
div
slot
=
"
left
"
>
<
div
slot
=
"
left
"
>
...
@@ -264,39 +260,39 @@
...
@@ -264,39 +260,39 @@
@
currentChange
=
"
rightChangePagination
"
@
currentChange
=
"
rightChangePagination
"
@
sizeChange
=
"
rightChangeSize
"
@
sizeChange
=
"
rightChangeSize
"
><
/Pagination
>
><
/Pagination
>
<
/el-card
>
<
/div
>
<
/div
>
<!--
新增材料
-->
<!--
新增材料
-->
<
AddMaterials
<
AddMaterials
ref
=
"
AddMaterials
"
ref
=
"
AddMaterials
"
:
addMaterialsVisible
.
sync
=
"
addMaterialsVisible
"
:
addMaterialsVisible
.
sync
=
"
addMaterialsVisible
"
:
title
=
"
title
"
:
title
=
"
title
"
@
addSuccess
=
"
addSuccess
"
@
addSuccess
=
"
addSuccess
"
><
/AddMaterials
>
><
/AddMaterials
>
<!--
预览材料
-->
<!--
预览材料
-->
<
PreviewMaterials
<
PreviewMaterials
:
drawer
.
sync
=
"
drawer
"
:
drawer
.
sync
=
"
drawer
"
:
materialsInfo
=
"
materialsInfo
"
:
materialsInfo
=
"
materialsInfo
"
><
/PreviewMaterials
>
><
/PreviewMaterials
>
<!--
公共库
-->
<!--
公共库
-->
<
CommonLib
<
CommonLib
ref
=
"
CommonLib
"
ref
=
"
CommonLib
"
:
matterId
=
"
activeDep.id
"
:
matterId
=
"
activeDep.id
"
@
ok
=
"
addSuccess
"
@
ok
=
"
addSuccess
"
:
libVisible
.
sync
=
"
libVisible
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
><
/CommonLib
>
<!--
新增文件夹
-->
<!--
新增文件夹
-->
<
AddFolders
<
AddFolders
ref
=
"
AddFolders
"
ref
=
"
AddFolders
"
:
addFolderVisible
.
sync
=
"
addFolderVisible
"
:
addFolderVisible
.
sync
=
"
addFolderVisible
"
><
/AddFolders
>
><
/AddFolders
>
<!--
文件夹
-->
<!--
文件夹
-->
<
FolderList
<
FolderList
ref
=
"
FolderList
"
ref
=
"
FolderList
"
@
addSuccess
=
"
materialsToFolderOk
"
@
addSuccess
=
"
materialsToFolderOk
"
:
folderListVisible
.
sync
=
"
folderListVisible
"
:
folderListVisible
.
sync
=
"
folderListVisible
"
><
/FolderList
>
><
/FolderList
>
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -308,6 +304,7 @@ import CommonLib from "./modal/CommonLib.vue";
...
@@ -308,6 +304,7 @@ import CommonLib from "./modal/CommonLib.vue";
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
AddFolders
from
"
./modal/AddFolders.vue
"
;
import
AddFolders
from
"
./modal/AddFolders.vue
"
;
import
FolderList
from
"
./modal/FolderList.vue
"
;
import
FolderList
from
"
./modal/FolderList.vue
"
;
import
TabHeader
from
"
@/components/TabHeader.vue
"
;
import
{
getWriteMatterList
}
from
"
@/api/matter
"
;
import
{
getWriteMatterList
}
from
"
@/api/matter
"
;
import
{
import
{
getMaterialsList
,
getMaterialsList
,
...
@@ -325,6 +322,7 @@ export default {
...
@@ -325,6 +322,7 @@ export default {
Pagination
,
Pagination
,
AddFolders
,
AddFolders
,
FolderList
,
FolderList
,
TabHeader
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -580,7 +578,7 @@ export default {
...
@@ -580,7 +578,7 @@ export default {
<
style
lang
=
"
less
"
scoped
>
<
style
lang
=
"
less
"
scoped
>
.
materias
-
manage
{
.
materias
-
manage
{
width
:
100
%
;
width
:
100
%
;
min
-
height
:
100
%
;
height
:
100
%
;
.
short
{
.
short
{
overflow
:
hidden
;
overflow
:
hidden
;
text
-
overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
...
@@ -601,11 +599,11 @@ export default {
...
@@ -601,11 +599,11 @@ export default {
}
}
.
left
{
.
left
{
width
:
40
%
;
width
:
39
%
;
height
:
auto
;
border
-
radius
:
4
px
;
}
}
.
right
{
.
right
{
width
:
60
%
;
width
:
59
%
;
height
:
auto
;
border
-
radius
:
4
px
;
}
}
<
/style>
<
/style>
\ No newline at end of file
sample-form-manager-ui/admin/src/pages/software/matter/MatterManage.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"matter-manage flex"
>
<div
class=
"matter-manage flex
jcb
"
>
<!-- 左 -->
<!-- 左 -->
<div
class=
"left"
>
<div
class=
"left h-full bgw flex flexc"
>
<el-card
class=
"box-card"
shadow=
"never"
>
<TabHeader
icon=
"el-icon-notebook-2"
label=
"样表系统事项列表"
></TabHeader>
<div
slot=
"header"
>
<div
class=
"pd15 flex1 auto-scroll"
>
<span>
样表系统事项列表
</span>
</div>
<TableHeader>
<TableHeader>
<div
slot=
"left"
>
<div
slot=
"left"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAddMatter"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAddMatter"
...
@@ -147,14 +145,20 @@
...
@@ -147,14 +145,20 @@
@
currentChange
=
"
leftChangePagination
"
@
currentChange
=
"
leftChangePagination
"
@
sizeChange
=
"
leftChangeSize
"
@
sizeChange
=
"
leftChangeSize
"
><
/Pagination
>
><
/Pagination
>
<
/el-card
>
<
/div
>
<!--
新增事项
-->
<
AddMatter
ref
=
"
AddMatter
"
:
addMatterVisible
.
sync
=
"
addMatterVisible
"
:
departmentList
=
"
deptList
"
:
title
=
"
title
"
@
addMatter
=
"
getWriteMatterList
"
><
/AddMatter
>
<
/div
>
<
/div
>
<!--
右
-->
<!--
右
-->
<
div
class
=
"
right
"
>
<
div
class
=
"
right h-full bgw flex flexc
"
>
<
el
-
card
class
=
"
box-card
"
shadow
=
"
never
"
>
<
TabHeader
icon
=
"
el-icon-notebook-2
"
label
=
"
站点事项列表
"
><
/TabHeader
>
<
div
slot
=
"
header
"
>
<
div
class
=
"
pd15 flex1 auto-scroll
"
>
<
span
>
站点事项列表
<
/span
>
<
/div
>
<!--
内容
-->
<!--
内容
-->
<
TableHeader
>
<
TableHeader
>
<
div
slot
=
"
left
"
>
<
div
slot
=
"
left
"
>
...
@@ -264,16 +268,8 @@
...
@@ -264,16 +268,8 @@
@
currentChange
=
"
rightChangePagination
"
@
currentChange
=
"
rightChangePagination
"
@
sizeChange
=
"
rightChangeSize
"
@
sizeChange
=
"
rightChangeSize
"
><
/Pagination
>
><
/Pagination
>
<
/
el-card
>
<
/
div
>
<
/div
>
<
/div
>
<!--
新增事项
-->
<
AddMatter
ref
=
"
AddMatter
"
:
addMatterVisible
.
sync
=
"
addMatterVisible
"
:
departmentList
=
"
deptList
"
:
title
=
"
title
"
@
addMatter
=
"
getWriteMatterList
"
><
/AddMatter
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -281,6 +277,7 @@
...
@@ -281,6 +277,7 @@
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
AddMatter
from
"
./modal/AddMatter.vue
"
;
import
AddMatter
from
"
./modal/AddMatter.vue
"
;
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
Pagination
from
"
@/components/Pagination.vue
"
;
import
TabHeader
from
"
@/components/TabHeader.vue
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
{
import
{
// getMatterList,
// getMatterList,
...
@@ -296,6 +293,7 @@ export default {
...
@@ -296,6 +293,7 @@ export default {
TableHeader
,
TableHeader
,
AddMatter
,
AddMatter
,
Pagination
,
Pagination
,
TabHeader
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -518,8 +516,7 @@ export default {
...
@@ -518,8 +516,7 @@ export default {
<
style
lang
=
"
less
"
scoped
>
<
style
lang
=
"
less
"
scoped
>
.
matter
-
manage
{
.
matter
-
manage
{
width
:
100
%
;
width
:
100
%
;
min
-
height
:
100
%
;
height
:
100
%
;
display
:
flex
;
.
short
{
.
short
{
overflow
:
hidden
;
overflow
:
hidden
;
text
-
overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
...
@@ -536,11 +533,11 @@ export default {
...
@@ -536,11 +533,11 @@ export default {
// height: 550px;
// height: 550px;
//
}
//
}
.
left
{
.
left
{
width
:
50
%
;
width
:
49
%
;
height
:
auto
;
border
-
radius
:
4
px
;
}
}
.
right
{
.
right
{
width
:
50
%
;
width
:
49
%
;
height
:
auto
;
border
-
radius
:
4
px
;
}
}
<
/style
>
<
/style
>
sample-form-manager-ui/admin/src/pages/software/skinManage/SkinManage.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"skin-set"
>
<div
class=
"skin-set bgw flex flexc"
>
<el-card
class=
"box-card"
>
<TabHeader
icon=
"el-icon-notebook-2"
label=
"皮肤管理"
></TabHeader>
<div
slot=
"header"
class=
"clearfix"
>
<div
class=
"pd15 flex1 auto-scroll"
>
<span>
皮肤管理
</span>
</div>
<!-- 皮肤列表 -->
<!-- 皮肤列表 -->
<div
class=
"skin-box"
>
<div
class=
"skin-box"
>
<div
class=
"skin-category"
>
<div
class=
"skin-category"
>
...
@@ -32,28 +30,29 @@
...
@@ -32,28 +30,29 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 图片预览 -->
<!-- 图片预览 -->
<el-image-viewer
<el-image-viewer
v-if=
"previewImg"
v-if=
"previewImg"
:on-close=
"
:on-close=
"
() =>
{
() =>
{
(previewImg = false), (previewUrl = '');
(previewImg = false), (previewUrl = '');
}
}
"
"
:url-list="previewUrl"
:url-list="previewUrl"
/>
/>
</el-card>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
import
ElImageViewer
from
"
element-ui/packages/image/src/image-viewer
"
;
import
ElImageViewer
from
"
element-ui/packages/image/src/image-viewer
"
;
import
TabHeader
from
"
@/components/TabHeader.vue
"
;
import
{
getSkinList
,
useSkin
}
from
"
@/api/skin
"
;
import
{
getSkinList
,
useSkin
}
from
"
@/api/skin
"
;
export
default
{
export
default
{
components
:
{
components
:
{
ElImageViewer
,
ElImageViewer
,
TabHeader
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -140,13 +139,10 @@ export default {
...
@@ -140,13 +139,10 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.skin-set {
.skin-set {
display: flex;
width: 100%;
width: 100%;
min-height: 100%;
height: 100%;
}
:deep(.el-card) {
height: auto;
}
}
.skin-category {
.skin-category {
margin-bottom: 30px;
margin-bottom: 30px;
}
}
...
...
sample-form-manager-ui/admin/src/pages/system/System.vue
View file @
23d454ba
<
template
>
<
template
>
<div
class=
"system flex flexc"
>
<div
class=
"system
bgw
flex flexc"
>
<el-tabs
:value=
"activeKey"
@
tab-click=
"changeRouter"
>
<el-tabs
:value=
"activeKey"
@
tab-click=
"changeRouter"
>
<el-tab-pane
label=
"系统参数"
name=
"/system/parameter"
></el-tab-pane>
<el-tab-pane
v-for=
"v in subMenus"
:key=
"v.path"
:name=
"v.path"
>
<el-tab-pane
label=
"任务信息"
name=
"/system/task"
></el-tab-pane>
<template
slot=
"label"
>
<el-tab-pane
label=
"操作日志"
name=
"/system/systemlogs"
></el-tab-pane>
<i
v-if=
"v.meta.icon"
:class=
"['mr5', 'primary', v.meta.icon]"
></i>
<span
class=
"tab-label"
>
{{
v
.
meta
.
title
}}
</span>
</
template
>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"system-out-box flex1"
>
<div
class=
"system-out-box flex1"
>
<router-view></router-view>
<router-view></router-view>
...
@@ -12,16 +15,36 @@
...
@@ -12,16 +15,36 @@
</template>
</template>
<
script
>
<
script
>
import
{
findBottomSubarrays
}
from
"
@/utils
"
;
export
default
{
export
default
{
data
()
{
return
{
subMenus
:
[],
};
},
computed
:
{
computed
:
{
activeKey
()
{
activeKey
()
{
return
this
.
$route
.
path
;
return
this
.
$route
.
path
;
},
},
},
},
created
()
{
this
.
getSubMenus
();
},
methods
:
{
methods
:
{
changeRouter
(
e
)
{
changeRouter
(
e
)
{
this
.
$router
.
push
(
e
.
name
);
this
.
$router
.
push
(
e
.
name
);
},
},
// 获取当前顶层路由下的所有子路由
getSubMenus
()
{
let
path
=
this
.
$route
?.
meta
.
activeMenu
?
this
.
$route
.
meta
.
activeMenu
:
this
.
$route
.
path
;
let
options
=
this
.
$router
.
options
.
routes
[
0
].
children
;
let
curRouters
=
options
.
filter
((
v
)
=>
v
.
path
==
path
);
this
.
subMenus
=
findBottomSubarrays
(
curRouters
).
filter
(
(
v
)
=>
!
v
.
meta
.
hidden
);
},
},
},
};
};
</
script
>
</
script
>
...
@@ -34,11 +57,8 @@ export default {
...
@@ -34,11 +57,8 @@ export default {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
.system-out-box {
.system-out-box {
padding:
0px 15px 15px
15px;
padding: 15px;
overflow-y: auto;
overflow-y: auto;
}
}
/deep/.ant-tabs-nav-container {
border-bottom: 1px solid #f0f0f0 !important;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
sample-form-manager-ui/admin/src/pages/system/task/TaskSet.vue
View file @
23d454ba
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
v-model=
"searchVal"
v-model=
"searchVal"
style=
"width: 200px"
style=
"width: 200px"
class=
"ml10 mr10"
class=
"ml10 mr10"
placeholder=
"请输入
参数
名称搜索"
placeholder=
"请输入
任务
名称搜索"
@
keyup.native.enter=
"handleSearch"
@
keyup.native.enter=
"handleSearch"
></el-input>
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
...
...
sample-form-manager-ui/admin/src/router/index.js
View file @
23d454ba
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/store/index.js
View file @
23d454ba
...
@@ -13,8 +13,12 @@ export default new Vuex.Store({
...
@@ -13,8 +13,12 @@ export default new Vuex.Store({
deptList
:
[],
// 部门列表
deptList
:
[],
// 部门列表
sysName
:
""
,
// 系统名称
sysName
:
""
,
// 系统名称
sysLogo
:
""
,
// 系统logo
sysLogo
:
""
,
// 系统logo
path
:
""
,
// 门户跳转过来的路由
},
},
getters
:
{
getters
:
{
SET_path
(
state
,
path
)
{
state
.
path
=
path
;
},
token
(
state
)
{
token
(
state
)
{
return
state
.
token
;
return
state
.
token
;
},
},
...
@@ -24,6 +28,9 @@ export default new Vuex.Store({
...
@@ -24,6 +28,9 @@ export default new Vuex.Store({
deptList
(
state
)
{
deptList
(
state
)
{
return
state
.
deptList
;
return
state
.
deptList
;
},
},
path
(
state
)
{
return
state
.
path
;
},
},
},
mutations
:
{
mutations
:
{
SET_MENUS
(
state
,
menus
)
{
SET_MENUS
(
state
,
menus
)
{
...
...
sample-form-manager-ui/admin/src/utils/index.js
0 → 100644
View file @
23d454ba
// 递归获取底层子数组
export
function
findBottomSubarrays
(
arr
)
{
let
bottomSubarrays
=
[];
function
recursiveSearch
(
subArr
)
{
for
(
let
item
of
subArr
)
{
if
(
item
.
children
&&
item
.
children
.
length
)
{
recursiveSearch
(
item
.
children
);
}
else
{
bottomSubarrays
.
push
(...
subArr
);
break
;
}
}
}
recursiveSearch
(
arr
);
return
bottomSubarrays
;
}
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