Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
md-vue-chc
Project
Project
Details
Activity
Releases
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
何鹏程
md-vue-chc
Commits
bd97bf09
Commit
bd97bf09
authored
Mar 09, 2022
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
367df53c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
31 deletions
+23
-31
roleMixin.js
src/common/js/roleMixin.js
+1
-2
index.vue
src/page/carStatistics/index.vue
+1
-1
index.vue
src/page/emergencyCar/index.vue
+14
-7
index.vue
src/page/hospital/index.vue
+1
-0
authDialog.vue
src/page/user/components/authDialog.vue
+3
-0
userDialog.vue
src/page/user/components/userDialog.vue
+0
-18
index.vue
src/page/user/index.vue
+1
-1
staticRoute.js
src/router/staticRoute.js
+1
-1
permission.js
src/util/permission.js
+1
-1
No files found.
src/common/js/roleMixin.js
View file @
bd97bf09
...
@@ -13,9 +13,8 @@ export const roleMixin = {
...
@@ -13,9 +13,8 @@ export const roleMixin = {
])
])
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
userInfo
)
if
(
this
.
userInfo
.
roleId
===
3
)
{
if
(
this
.
userInfo
.
roleId
===
3
)
{
this
.
searchForm
.
area
=
this
.
userInfo
.
roleId
this
.
searchForm
.
area
=
this
.
userInfo
.
area
this
.
isRoleDisabled
=
true
this
.
isRoleDisabled
=
true
}
}
}
}
...
...
src/page/carStatistics/index.vue
View file @
bd97bf09
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<div
class=
"top-main"
>
<div
class=
"top-main"
>
<div
class=
"box"
>
<div
class=
"box"
>
<div
class=
"title"
>
<div
class=
"title"
>
车辆用途占比
车辆
特殊
用途占比
</div>
</div>
<EchartsPie
<EchartsPie
:dataList=
"vechieSpecialList"
:dataList=
"vechieSpecialList"
...
...
src/page/emergencyCar/index.vue
View file @
bd97bf09
...
@@ -211,17 +211,17 @@
...
@@ -211,17 +211,17 @@
type=
"primary"
type=
"primary"
v-if=
"!scope.row.siteId && !checkPermission()"
v-if=
"!scope.row.siteId && !checkPermission()"
@
click=
"siteHandler(scope.row.id)"
@
click=
"siteHandler(scope.row.id)"
>
绑定
{{
scope
.
row
.
siteId
}}
站点
</el-link>
>
绑定站点
</el-link>
<el-link
type=
"primary"
v-if=
"scope.row.siteId && !checkPermission()"
@
click=
"unboundHandler(scope.row.id)"
>
解绑
</el-link>
<el-link
<el-link
type=
"primary"
type=
"primary"
v-if=
"(scope.row.auditStatus === 1 || scope.row.auditStatus === 5) && checkPermission()"
v-if=
"(scope.row.auditStatus === 1 || scope.row.auditStatus === 5) && checkPermission()"
@
click=
"auditHandler(scope.row.id)"
@
click=
"auditHandler(scope.row.id)"
>
审核
</el-link>
>
审核
</el-link>
<el-link
type=
"primary"
v-if=
"scope.row.siteId && checkPermission() && !isRoleDisabled"
@
click=
"unboundHandler(scope.row.id)"
>
解绑
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -299,7 +299,7 @@ export default {
...
@@ -299,7 +299,7 @@ export default {
name
:
'车辆负责人'
,
name
:
'车辆负责人'
,
key
:
'vehicleManager'
,
key
:
'vehicleManager'
,
sortable
:
false
,
sortable
:
false
,
width
:
'
2
00'
,
width
:
'
1
00'
,
fixed
:
false
fixed
:
false
},
},
{
{
...
@@ -332,6 +332,13 @@ export default {
...
@@ -332,6 +332,13 @@ export default {
sortable
:
false
,
sortable
:
false
,
width
:
'100'
,
width
:
'100'
,
fixed
:
false
fixed
:
false
},
{
name
:
'所属站点'
,
key
:
'siteName'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
}
}
],
],
body
:
[],
body
:
[],
...
...
src/page/hospital/index.vue
View file @
bd97bf09
...
@@ -115,6 +115,7 @@
...
@@ -115,6 +115,7 @@
>
查看详情
</el-link>
>
查看详情
</el-link>
<el-link
<el-link
type=
"primary"
type=
"primary"
:disabled=
"scope.row.patientType === 5"
@
click=
"goDetail('update', scope.row)"
@
click=
"goDetail('update', scope.row)"
v-if=
"!checkPermission()"
v-if=
"!checkPermission()"
>
修改
</el-link>
>
修改
</el-link>
...
...
src/page/user/components/authDialog.vue
View file @
bd97bf09
...
@@ -78,6 +78,9 @@ export default {
...
@@ -78,6 +78,9 @@ export default {
rules
:
{
rules
:
{
roleId
:
[
roleId
:
[
{
required
:
true
,
message
:
'请选择角色类型'
},
{
required
:
true
,
message
:
'请选择角色类型'
},
],
area
:
[
{
required
:
true
,
message
:
'请选择管理区域'
},
]
]
}
}
}
}
...
...
src/page/user/components/userDialog.vue
View file @
bd97bf09
...
@@ -141,24 +141,6 @@
...
@@ -141,24 +141,6 @@
<el-radio
:label=
"2"
>
否
</el-radio>
<el-radio
:label=
"2"
>
否
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"区域"
prop=
"area"
>
<el-select
v-model=
"dataForm.area"
placeholder=
"请选择辖区"
style=
"width: 100%"
:clearable=
"true"
>
<el-option
v-for=
"item in areaList"
:label=
"item.name"
:key=
"item.id"
:value=
"item.val"
/>
</el-select>
</el-form-item>
</el-form>
</el-form>
<span
<span
slot=
"footer"
slot=
"footer"
...
...
src/page/user/index.vue
View file @
bd97bf09
...
@@ -234,7 +234,7 @@ export default {
...
@@ -234,7 +234,7 @@ export default {
},
},
{
{
name
:
'管理区域'
,
name
:
'管理区域'
,
key
:
'area'
,
key
:
'area
Str
'
,
sortable
:
false
,
sortable
:
false
,
width
:
'150'
,
width
:
'150'
,
fixed
:
false
fixed
:
false
...
...
src/router/staticRoute.js
View file @
bd97bf09
...
@@ -39,7 +39,7 @@ const staticRoute = [
...
@@ -39,7 +39,7 @@ const staticRoute = [
const
routeHandle
=
(
map
)
=>
{
const
routeHandle
=
(
map
)
=>
{
const
routers
=
[]
const
routers
=
[]
map
.
forEach
(
item
=>
{
map
.
forEach
(
item
=>
{
if
(
item
.
secondMenuList
||
item
.
secondMenuList
.
length
>
0
)
{
if
(
item
.
secondMenuList
&&
item
.
secondMenuList
.
length
>
0
)
{
const
children
=
[]
const
children
=
[]
item
.
secondMenuList
.
forEach
(
_item
=>
{
item
.
secondMenuList
.
forEach
(
_item
=>
{
children
.
push
({
children
.
push
({
...
...
src/util/permission.js
View file @
bd97bf09
...
@@ -5,5 +5,5 @@ import store from '@/store'
...
@@ -5,5 +5,5 @@ import store from '@/store'
*/
*/
export
default
function
checkPermission
()
{
export
default
function
checkPermission
()
{
const
userInfo
=
store
.
getters
&&
store
.
getters
.
userInfo
const
userInfo
=
store
.
getters
&&
store
.
getters
.
userInfo
return
userInfo
&&
userInfo
.
roleId
&&
userInfo
.
roleId
===
1
return
userInfo
&&
userInfo
.
roleId
&&
(
userInfo
.
roleId
===
1
||
userInfo
.
roleId
===
3
)
}
}
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