Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_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
赵啸非
smart_gov_platform
Commits
987625c7
Commit
987625c7
authored
Aug 30, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
57fcc27d
3d21fb98
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
375 additions
and
96 deletions
+375
-96
portal-manager-ui/admin/src/App.vue
portal-manager-ui/admin/src/App.vue
+3
-0
portal-manager-ui/admin/src/api/siteArrange.js
portal-manager-ui/admin/src/api/siteArrange.js
+10
-2
portal-manager-ui/admin/src/main.js
portal-manager-ui/admin/src/main.js
+5
-0
portal-manager-ui/admin/src/router/index.js
portal-manager-ui/admin/src/router/index.js
+13
-13
portal-manager-ui/admin/src/store/modules/menu.js
portal-manager-ui/admin/src/store/modules/menu.js
+19
-22
portal-manager-ui/admin/src/views/dataActuary/dataActuary.vue
...al-manager-ui/admin/src/views/dataActuary/dataActuary.vue
+5
-6
portal-manager-ui/admin/src/views/home/home.vue
portal-manager-ui/admin/src/views/home/home.vue
+41
-4
portal-manager-ui/admin/src/views/signIn/signIn.vue
portal-manager-ui/admin/src/views/signIn/signIn.vue
+7
-1
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
...al-manager-ui/admin/src/views/siteArrange/siteArrange.vue
+272
-48
No files found.
portal-manager-ui/admin/src/App.vue
View file @
987625c7
...
...
@@ -58,6 +58,9 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
.app {
min-width: 1600px;
}
.export {
background-color: rgba(0, 0, 0, 0.3);
}
...
...
portal-manager-ui/admin/src/api/siteArrange.js
View file @
987625c7
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
;
// 1.16.1. 查询站点编排列表
export
function
appsListInterface
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/site/model/list`
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/site/model/list/group`
,
params
);
}
// 获取收藏
export
function
getCollect
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/model/collect/get`
,
params
);
}
// 保存收藏
export
function
saveCollect
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/model/collect/save`
,
params
);
}
portal-manager-ui/admin/src/main.js
View file @
987625c7
...
...
@@ -6,6 +6,11 @@ import store from "./store";
import
Antd
from
"
ant-design-vue
"
;
import
"
ant-design-vue/dist/antd.css
"
;
import
{
message
}
from
"
ant-design-vue
"
;
message
.
config
({
duration
:
2
,
maxCount
:
1
,
});
Vue
.
use
(
Antd
);
import
GlobalComponents
from
"
./utils/js/globalComponents
"
;
...
...
portal-manager-ui/admin/src/router/index.js
View file @
987625c7
...
...
@@ -21,19 +21,19 @@ const router = new VueRouter({
routes
:
routeConfig
,
});
//
router.beforeEach((to, from, next) => {
//
let islogin = store.getters["user/token"];
//
if (islogin) {
//
next();
//
} else {
//
// 再次判断防止死循环
//
if (to.path === "/") {
//
next();
//
} else {
//
next({ path: "/" });
//
}
//
}
//
});
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
let
islogin
=
store
.
getters
[
"
user/token
"
];
if
(
islogin
)
{
next
();
}
else
{
// 再次判断防止死循环
if
(
to
.
path
===
"
/
"
)
{
next
();
}
else
{
next
({
path
:
"
/
"
});
}
}
});
router
.
afterEach
((
to
,
from
,
next
)
=>
{
window
.
scrollTo
(
0
,
0
);
...
...
portal-manager-ui/admin/src/store/modules/menu.js
View file @
987625c7
export
default
{
namespaced
:
true
,
state
:
{
menuList_X
:
[],
//简单结构
menuTree_X
:
[],
//树型结构
namespaced
:
true
,
state
:
{
menuList_X
:
[],
//简单结构
menuTree_X
:
[],
//树型结构
},
getters
:
{
menuList_X
:
(
state
)
=>
state
.
menuList_X
,
menuTree_X
:
(
state
)
=>
state
.
menuTree_X
,
},
mutations
:
{
SET_menuList_X
(
state
,
data
)
{
state
.
menuList_X
=
data
;
// console.log(state.menuList_X);
},
getters
:
{
menuList_X
:
state
=>
state
.
menuList_X
,
menuTree_X
:
state
=>
state
.
menuTree_X
,
SET_menuTree_X
(
state
,
data
)
{
state
.
menuTree_X
=
data
;
// console.log(state.menuTree_X);
},
mutations
:
{
SET_menuList_X
(
state
,
data
)
{
state
.
menuList_X
=
data
;
// console.log(state.menuList_X);
},
SET_menuTree_X
(
state
,
data
)
{
state
.
menuTree_X
=
data
;
// console.log(state.menuTree_X);
}
},
actions
:
{
}
}
},
actions
:
{},
};
portal-manager-ui/admin/src/views/dataActuary/dataActuary.vue
View file @
987625c7
...
...
@@ -15,7 +15,7 @@
@
click=
"handleJump(item.url)"
@
mouseover=
"hoverItem(index)"
@
mouseleave=
"hoverleave(index)"
:style=
"
{background: `url(${require('@/assets/images/dataActuary/'+(index+1)+'.png')})`}">
:style=
"
{background: `url(${require('@/assets/images/dataActuary/'+(index+1)+'.png')})
no-repeat
`}">
<div
class=
"actitem_tit"
>
{{
item
.
name
}}
</div>
...
...
@@ -169,12 +169,10 @@ export default {
display: flex;
justify-content: space-between;
transition: all 1s ease 0s;
.yw{
background: url('~@/assets/images/dataActuary/1.png');
}
.act_mod_item:hover{
animation: startopen 1s normal 1 forwards;
// animation: startopen 1s normal 1 forwards;
transition: all 1s ease 0s;
overflow: hidden;
flex-shrink: 0;
width: 551px;
...
...
@@ -206,7 +204,8 @@ export default {
}
}
.act_mod_item{
animation: leaveopen .5s normal 1 forwards;
// animation: leaveopen .5s normal 1 forwards;
transition: all .5s ease 0s;
flex-shrink: 0;
width: 170px;
height: 450px;
...
...
portal-manager-ui/admin/src/views/home/home.vue
View file @
987625c7
<
template
>
<div
class=
"route-view min-h-full w-full flex"
>
<div
class=
"header w-full flex justify-between items-center text-white"
>
<div
class=
"header w-full flex justify-between items-center text-white"
:class=
"
{ inside: !isHomePage }"
>
<a-space>
<img
class=
"logo cursor-pointer"
...
...
@@ -20,14 +23,28 @@
</div>
</a-space>
<!-- 菜单 -->
<a-menu
:selectedKeys=
"current"
@
click=
"handelClick"
mode=
"horizontal"
>
<a-menu
v-if=
"isHomePage"
:selectedKeys=
"current"
@
click=
"handelClick"
mode=
"horizontal"
>
<a-menu-item
v-for=
"v in homeMenus"
:key=
"v.url"
>
{{
v
.
name
}}
</a-menu-item>
</a-menu>
<!-- 时间、用户信息展示 -->
<div
class=
"flex items-center"
>
<div
class=
"show-time flex flex-col items-end"
>
<!-- 返回门户 -->
<div
v-if=
"!isHomePage"
class=
"flex flex-col items-center cursor-pointer"
@
click=
"backHome"
>
<a-icon
type=
"desktop"
class=
"desktop mb-1"
/>
<p
class=
"text-[14px]"
>
返回门户
</p>
</div>
<div
v-if=
"isHomePage"
class=
"show-time flex flex-col items-end"
>
<div
class=
"time mb-1"
>
{{
nowTime
}}
</div>
<div
class=
"date"
>
{{
nowDay
}}
{{
nowWeek
}}
</div>
</div>
...
...
@@ -81,6 +98,12 @@ export default {
nowDay
:
""
,
nowWeek
:
""
,
visibleEditPwd
:
false
,
homePage
:
[
"
/home/dataManagement
"
,
"
/home/siteArrange
"
,
"
/home/dataActuary
"
,
"
/home/thePlatformIsSet/setPlatformes
"
,
],
};
},
computed
:
{
...
...
@@ -94,6 +117,11 @@ export default {
}
return
[
path
];
},
isHomePage
()
{
let
cur
=
this
.
$route
.
path
;
let
curParent
=
this
.
$route
.
matched
[
1
]?.
path
;
return
this
.
homePage
.
includes
(
cur
)
||
this
.
homePage
.
includes
(
curParent
);
},
},
created
()
{
this
.
setMoment
();
...
...
@@ -107,7 +135,12 @@ export default {
this
.
$router
.
go
(
0
);
},
backHome
()
{
this
.
$router
.
push
(
"
/datamanage
"
);
let
path
=
storage
.
get
(
1
,
"
routeInfo
"
);
if
(
path
)
{
this
.
$router
.
push
(
path
);
}
else
{
this
.
$router
.
push
(
"
/home
"
);
}
},
setMoment
()
{
this
.
timer
=
setInterval
(()
=>
{
...
...
@@ -144,6 +177,7 @@ export default {
});
},
handelClick
(
route
)
{
storage
.
set
(
1
,
"
routeInfo
"
,
route
.
key
);
this
.
$router
.
push
(
route
.
key
);
},
},
...
...
@@ -245,4 +279,7 @@ export default {
background: #ffffff;
}
}
.inside {
background: linear-gradient(90deg, #1845c6 0%, #2999ff 100%) !important;
}
</
style
>
\ No newline at end of file
portal-manager-ui/admin/src/views/signIn/signIn.vue
View file @
987625c7
...
...
@@ -67,7 +67,7 @@
<
script
>
import
{
LoginInterface
}
from
"
@/api/user.js
"
;
import
{
mapMutations
}
from
"
vuex
"
;
import
{
mapMutations
,
mapState
}
from
"
vuex
"
;
import
{
changeAccount
}
from
"
@/utils/js/validate
"
;
import
{
encrypt
}
from
"
@/utils
"
;
import
storage
from
"
@/utils/js/Storage
"
;
...
...
@@ -97,7 +97,13 @@ export default {
},
};
},
computed
:
{
...
mapState
(
"
user
"
,
[
"
token
"
]),
},
created
()
{
if
(
this
.
token
)
{
this
.
$router
.
push
(
"
/home
"
);
}
this
.
createCode
();
},
methods
:
{
...
...
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
View file @
987625c7
This diff is collapsed.
Click to expand it.
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