Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d2c3bcf
authored
Jun 01, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.20.0' into 'master'
v1.20.0版本已上线,代码合并到master See merge request
!44
2 parents
e6f2c93d
be6efd3b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
22 deletions
src/services/common.js
src/styles/home.scss
src/views/home/index.vue
src/services/common.js
View file @
6d2c3bc
import
{
COMMON_API
}
from
'@/config/config'
//
import { COMMON_API } from '@/config/config'
import
request
from
'@/services/request'
import
request
from
'@/services/request'
// 获取用户列表
//
//
获取用户列表
function
getProvinceList
(
params
)
{
//
function getProvinceList (params) {
const
url
=
COMMON_API
.
PROVINCE_LIST
//
const url = COMMON_API.PROVINCE_LIST
return
request
(
params
,
url
)
//
return request(params, url)
}
//
}
// 获取字典详情
//
//
获取字典详情
function
dictInfo
(
params
)
{
//
function dictInfo (params) {
const
url
=
`
${
COMMON_API
.
DICTDATA_TYPE
}
/
${
params
}
`
//
const url = `${COMMON_API.DICTDATA_TYPE}/${params}`
return
request
({},
url
)
//
return request({}, url)
}
//
}
// 获取第一级组织列表树
//
//
获取第一级组织列表树
function
getSimpleRoot
(
params
)
{
//
function getSimpleRoot (params) {
const
url
=
COMMON_API
.
ORGINIZA_SIMPLEROOT
//
const url = COMMON_API.ORGINIZA_SIMPLEROOT
return
request
(
params
,
url
)
//
return request(params, url)
}
//
}
// 获取组织列表树
//
//
获取组织列表树
function
getSimpleList
(
params
)
{
//
function getSimpleList (params) {
const
url
=
COMMON_API
.
ORGINIZA_SIMPLELIST
//
const url = COMMON_API.ORGINIZA_SIMPLELIST
return
request
(
params
,
url
)
//
return request(params, url)
}
//
}
function
getOrgTree
(
params
)
{
function
getOrgTree
(
params
)
{
return
request
(
params
,
'/usercenter/organization/orgtree'
)
return
request
(
params
,
'/usercenter/organization/orgtree'
)
}
}
export
{
get
ProvinceList
,
dictInfo
,
getSimpleRoot
,
getSimpleList
,
get
OrgTree
}
export
{
getOrgTree
}
src/styles/home.scss
View file @
6d2c3bc
...
@@ -159,3 +159,15 @@
...
@@ -159,3 +159,15 @@
}
}
}
}
}
}
.area_car
{
position
:
fixed
;
top
:
100px
;
right
:
40px
;
z-index
:
99
;
cursor
:
pointer
;
.img
{
width
:
80px
;
height
:
80px
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/home/index.vue
View file @
6d2c3bc
<
template
>
<
template
>
<div
class=
"home_page"
>
<div
class=
"home_page"
>
<!-- 区域查车按钮 开始 -->
<div
class=
"area_car"
@
click=
"openAreaCar()"
v-if=
"hasPermission('INDEX_AREA_SEARCH_CAR')"
>
<img
src=
"https://img01.glsx.com.cn/weapp/resource/e-shield/car.png"
alt=
""
class=
"img"
/>
</div>
<!-- 区域查车按钮 end -->
<!-- 数据列表 开始 -->
<!-- 数据列表 开始 -->
<div
class=
"static_list_box"
>
<div
class=
"static_list_box"
>
<div
class=
"mask"
v-show=
"maskFlag"
><i
class=
"el-icon-loading"
style=
"font-size: 20px;"
></i>
loading...
</div>
<div
class=
"mask"
v-show=
"maskFlag"
><i
class=
"el-icon-loading"
style=
"font-size: 20px;"
></i>
loading...
</div>
...
@@ -615,6 +621,13 @@ export default {
...
@@ -615,6 +621,13 @@ export default {
this
.
isZhongli
=
res
.
data
;
this
.
isZhongli
=
res
.
data
;
});
});
},
},
// 打开区域查车
openAreaCar
(){
let
_path
=
'oEshield#/monitor/zoneCar?type=full'
window
.
open
(
_path
)
}
},
},
};
};
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment