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
367df53c
Commit
367df53c
authored
Mar 07, 2022
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成二级管理员权限修改
parent
942e589b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
4 deletions
+35
-4
roleMixin.js
src/common/js/roleMixin.js
+22
-0
index.vue
src/page/emergencyCar/index.vue
+4
-2
index.vue
src/page/sitePage/index.vue
+3
-1
index.vue
src/page/siteStatistics/index.vue
+3
-0
index.vue
src/page/usage/index.vue
+3
-1
No files found.
src/common/js/roleMixin.js
0 → 100644
View file @
367df53c
import
{
mapGetters
}
from
'vuex'
export
const
roleMixin
=
{
data
()
{
return
{
isRoleDisabled
:
false
}
},
computed
:
{
...
mapGetters
([
'userInfo'
])
},
mounted
()
{
console
.
log
(
this
.
userInfo
)
if
(
this
.
userInfo
.
roleId
===
3
)
{
this
.
searchForm
.
area
=
this
.
userInfo
.
roleId
this
.
isRoleDisabled
=
true
}
}
}
src/page/emergencyCar/index.vue
View file @
367df53c
...
...
@@ -25,6 +25,7 @@
v-model=
"searchForm.area"
placeholder=
"请选择辖区"
style=
"width: 100%"
:disabled=
"isRoleDisabled"
:clearable=
"true"
>
<el-option
...
...
@@ -239,20 +240,21 @@
</template>
<
script
>
import
{
tableDataMixin
}
from
'../../common/js/mixin'
import
{
roleMixin
}
from
'../../common/js/roleMixin'
import
EmergencyCarDialog
from
'./components/emergencyCarDialog.vue'
import
BindSiteDialog
from
'./components/bindSiteDialog.vue'
import
{
queryEmergencyCarPageList
,
deleteEmergencyCar
,
toExamineEmergencyCar
,
unBindSiteToEmergencyCar
}
from
'@/api/emergencyCar'
import
{
exportEmergencyResources
}
from
'@/api/common'
import
{
queryEmergencySiteList
}
from
'@/api/site'
import
{
getDic
}
from
'../../util/dict'
export
default
{
name
:
'emergencyCar'
,
mixins
:
[
tableDataMixin
],
mixins
:
[
tableDataMixin
,
roleMixin
],
components
:
{
EmergencyCarDialog
,
BindSiteDialog
},
data
()
{
return
{
searchForm
:
{
...
...
src/page/sitePage/index.vue
View file @
367df53c
...
...
@@ -25,6 +25,7 @@
v-model=
"searchForm.area"
placeholder=
"请选择辖区"
style=
"width: 100%"
:disabled=
"isRoleDisabled"
:clearable=
"true"
>
<el-option
...
...
@@ -192,13 +193,14 @@
</template>
<
script
>
import
{
tableDataMixin
}
from
'../../common/js/mixin'
import
{
roleMixin
}
from
'../../common/js/roleMixin'
import
{
queryEmergencySitePageList
,
deleteEmergencySite
,
auditEmergencySite
}
from
'@/api/site'
import
{
getDic
}
from
'../../util/dict'
import
{
queryHospitalList
,
exportEmergencyResources
}
from
'@/api/common'
import
SiteDialog
from
'./components/siteDialog.vue'
export
default
{
name
:
'sitePage'
,
mixins
:
[
tableDataMixin
],
mixins
:
[
tableDataMixin
,
roleMixin
],
components
:
{
SiteDialog
},
...
...
src/page/siteStatistics/index.vue
View file @
367df53c
...
...
@@ -16,6 +16,7 @@
v-model=
"searchForm.area"
placeholder=
"请选择车辆类型"
style=
"width: 100%"
:disabled=
"isRoleDisabled"
:clearable=
"true"
>
<el-option
...
...
@@ -53,10 +54,12 @@
</
template
>
<
script
>
import
{
queryEmergencyResource
}
from
'@/api/common'
import
{
roleMixin
}
from
'../../common/js/roleMixin'
import
{
getDic
}
from
'../../util/dict'
import
EchartsBar
from
'./components/echartsBar.vue'
export
default
{
name
:
'siteStatistics'
,
mixins
:
[
roleMixin
],
components
:
{
EchartsBar
},
...
...
src/page/usage/index.vue
View file @
367df53c
...
...
@@ -26,6 +26,7 @@
placeholder=
"请选择辖区"
style=
"width: 100%"
:clearable=
"true"
:disabled=
"isRoleDisabled"
>
<el-option
v-for=
"item in areaList"
...
...
@@ -119,13 +120,14 @@
</template>
<
script
>
import
{
tableDataMixin
}
from
'../../common/js/mixin'
import
{
roleMixin
}
from
'../../common/js/roleMixin'
import
detailDialog
from
'./components/detailDialog.vue'
import
{
queryTotalCarByHospital
}
from
'@/api/emergencyCar'
import
{
getDic
}
from
'../../util/dict'
import
{
exportEmergencyResources
}
from
'@/api/common'
export
default
{
name
:
'usage'
,
mixins
:
[
tableDataMixin
],
mixins
:
[
tableDataMixin
,
roleMixin
],
components
:
{
detailDialog
},
...
...
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