Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
jinmao-community-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aa6a682d
authored
May 24, 2021
by
changjin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成ioc按钮权限
parent
852d62f7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
312 additions
and
67 deletions
+312
-67
src/components/common/Sidebar.vue
+2
-2
src/components/page/IOC/activity.vue
+35
-5
src/components/page/IOC/advertising.vue
+40
-6
src/components/page/IOC/data.vue
+53
-9
src/components/page/IOC/greenPlant.vue
+36
-6
src/components/page/IOC/notice.vue
+42
-8
src/components/page/IOC/recipe.vue
+53
-23
src/components/page/IOC/sellCarport.vue
+50
-7
src/router/index.js
+1
-1
No files found.
src/components/common/Sidebar.vue
View file @
aa6a682d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<span
class=
"icon icon7"
v-if=
"item.name == '公告管理'"
></span>
<span
class=
"icon icon7"
v-if=
"item.name == '公告管理'"
></span>
<span
class=
"icon icon8"
v-if=
"item.name == '活动管理'"
></span>
<span
class=
"icon icon8"
v-if=
"item.name == '活动管理'"
></span>
<span
class=
"icon icon9"
v-if=
"item.name == '广告管理'"
></span>
<span
class=
"icon icon9"
v-if=
"item.name == '广告管理'"
></span>
<span
class=
"icon icon10"
v-if=
"item.name == '
菜谱
管理'"
></span>
<span
class=
"icon icon10"
v-if=
"item.name == '
商铺
管理'"
></span>
<span
class=
"icon icon11"
v-if=
"item.name == '绿植管理'"
></span>
<span
class=
"icon icon11"
v-if=
"item.name == '绿植管理'"
></span>
<span
class=
"icon icon12"
v-if=
"item.name == '出售车位管理'"
></span>
<span
class=
"icon icon12"
v-if=
"item.name == '出售车位管理'"
></span>
<span
class=
"icon icon13"
v-if=
"item.name == '数据管理'"
></span>
<span
class=
"icon icon13"
v-if=
"item.name == '数据管理'"
></span>
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
id
:
'3333'
id
:
'3333'
},
},
{
{
name
:
'
菜谱
管理'
,
name
:
'
商铺
管理'
,
url
:
'/IOC/recipe'
,
url
:
'/IOC/recipe'
,
id
:
'4444'
id
:
'4444'
},
},
...
...
src/components/page/IOC/activity.vue
View file @
aa6a682d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div>
<div>
<div
class=
"mainContent tableCont"
>
<div
class=
"mainContent tableCont"
>
<div
class=
"tabCont"
>
<div
class=
"tabCont"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
v-if=
"isAddBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
新增
</span>
<span>
新增
</span>
</el-button>
</el-button>
...
@@ -18,15 +18,15 @@
...
@@ -18,15 +18,15 @@
<el-switch
v-model=
"scope.row.screenFlag"
@
change=
"change(scope.row.id, scope.row, 'screenFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.screenFlag"
@
change=
"change(scope.row.id, scope.row, 'screenFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
-->
</el-table-column>
-->
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
v-if=
"isStatusBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
v-if=
"isEditBtn || isDelBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
class=
"green line pointer"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"green line pointer"
v-if=
"isEditBtn"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"red line ml10 pointer"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
<span
class=
"red line ml10 pointer"
v-if=
"isDelBtn"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -139,6 +139,10 @@ export default {
...
@@ -139,6 +139,10 @@ export default {
title
:
'新增活动'
,
title
:
'新增活动'
,
adddialogVisible
:
false
,
adddialogVisible
:
false
,
editdialogVisible
:
false
,
editdialogVisible
:
false
,
isAddBtn
:
false
,
isDelBtn
:
false
,
isEditBtn
:
false
,
isStatusBtn
:
false
,
headers
:{
headers
:{
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
...
@@ -158,9 +162,35 @@ export default {
...
@@ -158,9 +162,35 @@ export default {
},
},
}),
}),
created
()
{
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-002-002'
)
{
this
.
isAddBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-002-003'
)
{
this
.
isEditBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-002-004'
)
{
this
.
isDelBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-002-001'
)
{
this
.
isStatusBtn
=
true
}
})
})
})
}
})
},
handleadd
(
file
,
fileList
)
{
handleadd
(
file
,
fileList
)
{
this
.
addForm
.
imgUrl
=
file
.
data
;
this
.
addForm
.
imgUrl
=
file
.
data
;
this
.
imgShow
=
false
this
.
imgShow
=
false
...
...
src/components/page/IOC/advertising.vue
View file @
aa6a682d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div>
<div>
<div
class=
"mainContent tableCont"
>
<div
class=
"mainContent tableCont"
>
<div
class=
"tabCont"
>
<div
class=
"tabCont"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
v-if=
"isAddBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
新增
</span>
<span>
新增
</span>
</el-button>
</el-button>
...
@@ -13,20 +13,20 @@
...
@@ -13,20 +13,20 @@
<el-table-column
prop=
"createTime"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"createUser"
label=
"创建人"
></el-table-column>
<el-table-column
prop=
"createUser"
label=
"创建人"
></el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
></el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
></el-table-column>
<el-table-column
prop=
"screenFlag"
label=
"灯杆屏启用状态"
>
<el-table-column
prop=
"screenFlag"
label=
"灯杆屏启用状态"
v-if=
"isLightPoleBtn"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.screenFlag"
@
change=
"change(scope.row.id, scope.row, 'screenFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.screenFlag"
@
change=
"change(scope.row.id, scope.row, 'screenFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
v-if=
"isStatusBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
v-if=
"isEditBtn || isDelBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
class=
"green line pointer"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"green line pointer"
v-if=
"isEditBtn"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"red line ml10 pointer"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
<span
class=
"red line ml10 pointer"
v-if=
"isDelBtn"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -168,11 +168,45 @@ export default {
...
@@ -168,11 +168,45 @@ export default {
imgShow
:
true
,
imgShow
:
true
,
videoShow
:
true
,
videoShow
:
true
,
autoplay
:
false
,
autoplay
:
false
,
isAddBtn
:
false
,
isDelBtn
:
false
,
isEditBtn
:
false
,
isLightPoleBtn
:
false
,
isStatusBtn
:
false
}),
}),
created
()
{
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-003-002'
)
{
this
.
isAddBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-003-003'
)
{
this
.
isEditBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-003-004'
)
{
this
.
isDelBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-003-006'
)
{
this
.
isLightPoleBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-003-001'
)
{
this
.
isStatusBtn
=
true
}
})
})
})
}
})
},
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
this
.
addForm
.
imgUrl
=
res
.
data
;
this
.
addForm
.
imgUrl
=
res
.
data
;
this
.
imgShow
=
false
this
.
imgShow
=
false
...
...
src/components/page/IOC/data.vue
View file @
aa6a682d
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<el-input
v-model=
"data.property"
style=
"width: 220px;"
></el-input>
<el-input
v-model=
"data.property"
style=
"width: 220px;"
></el-input>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<div
slot=
"footer"
class=
"dialog-footer text-center"
v-if=
"isEditPedestriansBtn"
>
<el-button
type=
"primary"
v-on:click=
"close('wise')"
>
清除
</el-button>
<el-button
type=
"primary"
v-on:click=
"close('wise')"
>
清除
</el-button>
<el-button
class=
"ml10"
@
click=
"submit('wise')"
>
更改
</el-button>
<el-button
class=
"ml10"
@
click=
"submit('wise')"
>
更改
</el-button>
</div>
</div>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<el-button
type=
"primary"
>
复位
</el-button>
<el-button
type=
"primary"
>
复位
</el-button>
<el-button
class=
"ml10"
@
click=
"editcloud(item)"
>
更改
</el-button>
<el-button
class=
"ml10"
@
click=
"editcloud(item)"
v-if=
"isEditStatusBtn"
>
更改
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<!--
<el-button
type=
"primary"
>
复位
</el-button>
-->
<!--
<el-button
type=
"primary"
>
复位
</el-button>
-->
<el-button
class=
"ml10"
@
click=
"getUser()"
>
更改
</el-button>
<el-button
class=
"ml10"
@
click=
"getUser()"
v-if=
"isEditPoliceBtn"
>
更改
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"mainBox boxDiv2"
style=
"width: 100%;"
>
<div
class=
"mainBox boxDiv2"
style=
"width: 100%;"
>
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<el-button
type=
"primary"
>
复位
</el-button>
<el-button
type=
"primary"
>
复位
</el-button>
<el-button
class=
"ml10"
@
click=
"IntelKeep()"
>
更改
</el-button>
<el-button
class=
"ml10"
@
click=
"IntelKeep()"
v-if=
"isEditWatchmanBtn"
>
更改
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -226,7 +226,7 @@
...
@@ -226,7 +226,7 @@
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<el-button
type=
"primary"
>
复位
</el-button>
<el-button
type=
"primary"
v-if=
"isStatusResetBtn"
>
复位
</el-button>
<el-button
class=
"ml10"
@
click=
"editcloud(item)"
>
更改
</el-button>
<el-button
class=
"ml10"
@
click=
"editcloud(item)"
>
更改
</el-button>
</div>
</div>
</div>
</div>
...
@@ -265,8 +265,8 @@
...
@@ -265,8 +265,8 @@
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<div
slot=
"footer"
class=
"dialog-footer text-center"
>
<el-button
type=
"primary"
@
click=
"reset(item.name)"
>
复位
</el-button>
<el-button
type=
"primary"
@
click=
"reset(item.name)"
v-if=
"isResetEquipmentBtn"
>
复位
</el-button>
<el-button
class=
"ml10"
@
click=
"SmarSubmit(item)"
>
更改
</el-button>
<el-button
class=
"ml10"
@
click=
"SmarSubmit(item)"
v-if=
"isEditEquipmentBtn"
>
更改
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -316,15 +316,59 @@ export default {
...
@@ -316,15 +316,59 @@ export default {
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
},
},
imgShow
:
true
imgShow
:
true
,
isEditPedestriansBtn
:
false
,
isEditEquipmentBtn
:
false
,
isResetEquipmentBtn
:
false
,
isEditStatusBtn
:
false
,
isStatusResetBtn
:
false
,
isEditWatchmanBtn
:
false
,
isEditPoliceBtn
:
false
}),
}),
created
()
{
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-007-002'
)
{
this
.
isEditPedestriansBtn
=
true
//修改行人
}
if
(
btn
.
menuFlag
===
'1003-05-007-004'
)
{
this
.
isEditEquipmentBtn
=
true
// 修改设备
}
if
(
btn
.
menuFlag
===
'1003-05-007-006'
)
{
this
.
isResetEquipmentBtn
=
true
// 复位设备
}
if
(
btn
.
menuFlag
===
'1003-05-007-009'
)
{
this
.
isEditStatusBtn
=
true
//修改状态
}
if
(
btn
.
menuFlag
===
'1003-05-007-012'
)
{
this
.
isStatusResetBtn
=
true
// 状态预警复位
}
if
(
btn
.
menuFlag
===
'1003-05-007-014'
)
{
this
.
isEditWatchmanBtn
=
true
// 修改巡更
}
if
(
btn
.
menuFlag
===
'1003-05-007-016'
)
{
this
.
isEditPoliceBtn
=
true
// 修改警官
}
})
})
})
}
})
},
getList
(){
getList
(){
this
.
$axios
.
get
(
'/wisePeople/findWisePeople'
).
then
((
res
)
=>
{
this
.
$axios
.
get
(
'/wisePeople/findWisePeople'
).
then
((
res
)
=>
{
this
.
data
=
res
.
data
.
data
;
if
(
res
.
data
.
data
)
{
this
.
data
=
res
.
data
.
data
}
});
});
},
},
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
...
...
src/components/page/IOC/greenPlant.vue
View file @
aa6a682d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div>
<div>
<div
class=
"mainContent tableCont"
>
<div
class=
"mainContent tableCont"
>
<div
class=
"tabCont"
>
<div
class=
"tabCont"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
v-if=
"isAddBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
新增
</span>
<span>
新增
</span>
</el-button>
</el-button>
...
@@ -13,15 +13,15 @@
...
@@ -13,15 +13,15 @@
<el-table-column
prop=
"createTime"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"createUser"
label=
"创建人"
></el-table-column>
<el-table-column
prop=
"createUser"
label=
"创建人"
></el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
></el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
></el-table-column>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
v-if=
"isStatusBtn"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row.iocFlag, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row.iocFlag, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
v-if=
"isEditBtn || isDelBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
class=
"green line pointer"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"green line pointer"
v-if=
"isEditBtn"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"red line ml10 pointer"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
<span
class=
"red line ml10 pointer"
v-if=
"isDelBtn"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -124,12 +124,42 @@ export default {
...
@@ -124,12 +124,42 @@ export default {
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
},
},
imgShow
:
true
imgShow
:
true
,
isAddBtn
:
false
,
isDelBtn
:
false
,
isEditBtn
:
false
,
isStatusBtn
:
false
,
}),
}),
created
()
{
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-005-002'
)
{
this
.
isAddBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-005-003'
)
{
this
.
isEditBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-005-004'
)
{
this
.
isDelBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-005-001'
)
{
this
.
isStatusBtn
=
true
}
})
})
})
}
})
},
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
this
.
addForm
.
imgUrl
=
res
.
data
;
this
.
addForm
.
imgUrl
=
res
.
data
;
this
.
imgShow
=
false
this
.
imgShow
=
false
...
...
src/components/page/IOC/notice.vue
View file @
aa6a682d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div>
<div>
<div
class=
"mainContent tableCont"
>
<div
class=
"mainContent tableCont"
>
<div
class=
"tabCont"
>
<div
class=
"tabCont"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
v-if=
"isAddBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
新增
</span>
<span>
新增
</span>
</el-button>
</el-button>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<el-table-column
prop=
"createTime"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"createUser"
label=
"创建人"
></el-table-column>
<el-table-column
prop=
"createUser"
label=
"创建人"
></el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
></el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
></el-table-column>
<el-table-column
prop=
"screenFlag"
label=
"灯杆屏启用状态"
>
<el-table-column
prop=
"screenFlag"
label=
"灯杆屏启用状态"
v-if=
"isLightPoleBtn"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-switch
<el-switch
v-model=
"scope.row.screenFlag"
v-model=
"scope.row.screenFlag"
...
@@ -23,15 +23,15 @@
...
@@ -23,15 +23,15 @@
></el-switch>
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
v-if=
"isStatusBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
v-if=
"isEditBtn || isDelBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
class=
"green line pointer"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"green line pointer"
v-if=
"isEditBtn"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"red line ml10 pointer"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
<span
class=
"red line ml10 pointer"
v-if=
"isDelBtn"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -87,12 +87,46 @@ export default {
...
@@ -87,12 +87,46 @@ export default {
type
:
'save'
,
type
:
'save'
,
title
:
'新增公告'
,
title
:
'新增公告'
,
adddialogVisible
:
false
,
adddialogVisible
:
false
,
editdialogVisible
:
false
editdialogVisible
:
false
,
isAddBtn
:
false
,
isDelBtn
:
false
,
isEditBtn
:
false
,
isLightPoleBtn
:
false
,
isStatusBtn
:
false
}),
}),
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-001-002'
)
{
this
.
isAddBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-001-003'
)
{
this
.
isEditBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-001-004'
)
{
this
.
isDelBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-001-006'
)
{
this
.
isLightPoleBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-001-001'
)
{
this
.
isStatusBtn
=
true
}
})
})
})
}
})
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
var
params
=
{
var
params
=
{
...
...
src/components/page/IOC/recipe.vue
View file @
aa6a682d
<!--
菜谱
管理 -->
<!--
商铺
管理 -->
<
template
>
<
template
>
<div>
<div>
<div
class=
"mainContent tableCont"
>
<div
class=
"mainContent tableCont"
>
<div
class=
"tabCont"
>
<div
class=
"tabCont"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
v-if=
"isAddBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
新增
</span>
<span>
新增
</span>
</el-button>
</el-button>
...
@@ -18,15 +18,15 @@
...
@@ -18,15 +18,15 @@
<el-switch
v-model=
"scope.row.screenFlag"
@
change=
"change(scope.row.id, scope.row, 'screenFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.screenFlag"
@
change=
"change(scope.row.id, scope.row, 'screenFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
-->
</el-table-column>
-->
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
>
<el-table-column
prop=
"iocFlag"
label=
"IOC启用状态"
v-if=
"isStatusBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
<el-switch
v-model=
"scope.row.iocFlag"
@
change=
"change(scope.row.id, scope.row, 'iocFlag')"
active-color=
"#DF9F01"
inactive-color=
"#aaaa7f"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
v-if=
"isEditBtn || isDelBtn"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
class=
"green line pointer"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"green line pointer"
v-if=
"isEditBtn"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"red line ml10 pointer"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
<span
class=
"red line ml10 pointer"
v-if=
"isDelBtn"
@
click=
"delBtn(scope.row.id)"
>
删除
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -36,13 +36,13 @@
...
@@ -36,13 +36,13 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"adddialogVisible"
width=
"33%"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"adddialogVisible"
width=
"33%"
>
<el-row
class=
"modelBox"
>
<el-row
class=
"modelBox"
>
<el-form
:model=
"addForm"
label-width=
"75px"
>
<el-form
:model=
"addForm"
label-width=
"75px"
>
<el-form-item
label=
"
菜谱
名称"
required
style=
"margin-bottom: 5px !important;"
>
<el-form-item
label=
"
商铺
名称"
required
style=
"margin-bottom: 5px !important;"
>
<el-input
v-model=
"addForm.title"
placeholder=
"请输入
菜谱
名称(10字以内)"
maxlength=
"10"
></el-input>
<el-input
v-model=
"addForm.title"
placeholder=
"请输入
商铺
名称(10字以内)"
maxlength=
"10"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
菜谱
介绍"
required
style=
"margin-bottom: 12px !important;"
>
<el-form-item
label=
"
商铺
介绍"
required
style=
"margin-bottom: 12px !important;"
>
<el-input
type=
"textarea"
:rows=
"5"
v-model=
"addForm.content"
placeholder=
"请输入
菜谱
内容(50字以内)"
maxlength=
"50"
></el-input>
<el-input
type=
"textarea"
:rows=
"5"
v-model=
"addForm.content"
placeholder=
"请输入
商铺
内容(50字以内)"
maxlength=
"50"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
菜谱
图片"
required
>
<el-form-item
label=
"
商铺
图片"
required
>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
<el-upload
<el-upload
class=
"avatar-uploader"
class=
"avatar-uploader"
...
@@ -68,11 +68,11 @@
...
@@ -68,11 +68,11 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"editdialogVisible"
width=
"33%"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"editdialogVisible"
width=
"33%"
>
<el-row
class=
"modelBox"
>
<el-row
class=
"modelBox"
>
<el-form
:model=
"editForm"
label-width=
"75px"
>
<el-form
:model=
"editForm"
label-width=
"75px"
>
<el-form-item
label=
"
菜谱
名称"
required
style=
"margin-bottom: 5px !important;"
>
<el-form-item
label=
"
商铺
名称"
required
style=
"margin-bottom: 5px !important;"
>
<el-input
v-model=
"editForm.title"
placeholder=
"请输入
菜谱
名称(10字以内)"
maxlength=
"10"
></el-input>
<el-input
v-model=
"editForm.title"
placeholder=
"请输入
商铺
名称(10字以内)"
maxlength=
"10"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
菜谱
介绍"
required
style=
"margin-bottom: 12px !important;"
>
<el-form-item
label=
"
商铺
介绍"
required
style=
"margin-bottom: 12px !important;"
>
<el-input
type=
"textarea"
:rows=
"5"
v-model=
"editForm.content"
placeholder=
"请输入
菜谱
内容(50字以内)"
maxlength=
"50"
></el-input>
<el-input
type=
"textarea"
:rows=
"5"
v-model=
"editForm.content"
placeholder=
"请输入
商铺
内容(50字以内)"
maxlength=
"50"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传封面"
required
>
<el-form-item
label=
"上传封面"
required
>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
...
@@ -121,19 +121,49 @@ export default {
...
@@ -121,19 +121,49 @@ export default {
imgUrl
:
''
,
imgUrl
:
''
,
},
},
type
:
'save'
,
type
:
'save'
,
title
:
'新增
菜谱
'
,
title
:
'新增
商铺
'
,
adddialogVisible
:
false
,
adddialogVisible
:
false
,
editdialogVisible
:
false
,
editdialogVisible
:
false
,
headers
:{
headers
:{
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
token
:
window
.
sessionStorage
.
getItem
(
'token'
),
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
projectId
:
window
.
sessionStorage
.
getItem
(
'projectId'
)
},
},
imgShow
:
true
imgShow
:
true
,
isAddBtn
:
false
,
isDelBtn
:
false
,
isEditBtn
:
false
,
isStatusBtn
:
false
,
}),
}),
created
()
{
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-004-002'
)
{
this
.
isAddBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-004-003'
)
{
this
.
isEditBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-004-004'
)
{
this
.
isDelBtn
=
true
}
if
(
btn
.
menuFlag
===
'1003-05-004-001'
)
{
this
.
isStatusBtn
=
true
}
})
})
})
}
})
},
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
this
.
addForm
.
imgUrl
=
res
.
data
;
this
.
addForm
.
imgUrl
=
res
.
data
;
this
.
imgShow
=
false
this
.
imgShow
=
false
...
@@ -165,14 +195,14 @@ export default {
...
@@ -165,14 +195,14 @@ export default {
},
},
// 新增
// 新增
addBtn
(
data
)
{
addBtn
(
data
)
{
this
.
title
=
'新增
菜谱
'
this
.
title
=
'新增
商铺
'
this
.
adddialogVisible
=
true
;
this
.
adddialogVisible
=
true
;
this
.
addForm
=
{}
this
.
addForm
=
{}
},
},
// 修改
// 修改
editBtn
(
data
){
editBtn
(
data
){
this
.
getDetail
(
data
.
id
)
this
.
getDetail
(
data
.
id
)
this
.
title
=
'修改
菜谱
'
this
.
title
=
'修改
商铺
'
this
.
editdialogVisible
=
true
;
this
.
editdialogVisible
=
true
;
},
},
// 获取详情
// 获取详情
...
@@ -185,12 +215,12 @@ export default {
...
@@ -185,12 +215,12 @@ export default {
var
that
=
this
var
that
=
this
if
(
that
.
addForm
.
title
==
''
){
if
(
that
.
addForm
.
title
==
''
){
that
.
$message
({
that
.
$message
({
message
:
'请输入
菜谱
名称'
,
message
:
'请输入
商铺
名称'
,
type
:
'warning'
type
:
'warning'
});
});
}
else
if
(
that
.
addForm
.
content
==
''
){
}
else
if
(
that
.
addForm
.
content
==
''
){
that
.
$message
({
that
.
$message
({
message
:
'请输入
菜谱
内容'
,
message
:
'请输入
商铺
内容'
,
type
:
'warning'
type
:
'warning'
});
});
}
else
if
(
that
.
addForm
.
imgUrl
==
''
){
}
else
if
(
that
.
addForm
.
imgUrl
==
''
){
...
@@ -217,12 +247,12 @@ export default {
...
@@ -217,12 +247,12 @@ export default {
var
that
=
this
var
that
=
this
if
(
that
.
editForm
.
title
==
''
){
if
(
that
.
editForm
.
title
==
''
){
that
.
$message
({
that
.
$message
({
message
:
'请输入
菜谱
名称'
,
message
:
'请输入
商铺
名称'
,
type
:
'warning'
type
:
'warning'
});
});
}
else
if
(
that
.
editForm
.
content
==
''
){
}
else
if
(
that
.
editForm
.
content
==
''
){
that
.
$message
({
that
.
$message
({
message
:
'请输入
菜谱
内容'
,
message
:
'请输入
商铺
内容'
,
type
:
'warning'
type
:
'warning'
});
});
}
else
if
(
that
.
editForm
.
imgUrl
==
''
){
}
else
if
(
that
.
editForm
.
imgUrl
==
''
){
...
...
src/components/page/IOC/sellCarport.vue
View file @
aa6a682d
...
@@ -3,18 +3,18 @@
...
@@ -3,18 +3,18 @@
<div>
<div>
<div
class=
"mainContent tableCont"
>
<div
class=
"mainContent tableCont"
>
<div
class=
"tabCont"
>
<div
class=
"tabCont"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
>
<el-button
class=
"addBtn"
@
click=
"addBtn"
v-if=
"isAddBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
新增
</span>
<span>
新增
</span>
</el-button>
</el-button>
<el-button
class=
"addBtn"
@
click=
"upload(1)"
><span>
导入模板下载
</span></el-button>
<el-button
class=
"addBtn"
@
click=
"upload(1)"
v-if=
"isDownloadBtn"
><span>
导入模板下载
</span></el-button>
<el-button
class=
"addBtn"
>
<el-button
class=
"addBtn"
v-if=
"isImportBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<el-upload
ref=
"upload"
action=
"string"
:before-upload=
"onBeforeUploadImage"
:http-request=
"UploadImage"
:show-file-list=
"false"
style=
"width: 80px;"
>
<el-upload
ref=
"upload"
action=
"string"
:before-upload=
"onBeforeUploadImage"
:http-request=
"UploadImage"
:show-file-list=
"false"
style=
"width: 80px;"
>
<span>
点击上传
</span>
<span>
点击上传
</span>
</el-upload>
</el-upload>
</el-button>
</el-button>
<el-button
class=
"addBtn"
@
click=
"upload(3)"
>
<el-button
class=
"addBtn"
@
click=
"upload(3)"
v-if=
"isCarExportBtn"
>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<img
src=
"../../../../static/img/add.png"
class=
"addIcon"
/>
<span>
数据导出
</span>
<span>
数据导出
</span>
</el-button>
</el-button>
...
@@ -41,11 +41,11 @@
...
@@ -41,11 +41,11 @@
<el-table-column
prop=
"region"
label=
"区域"
></el-table-column>
<el-table-column
prop=
"region"
label=
"区域"
></el-table-column>
<el-table-column
prop=
"carNumber"
label=
"车位编号"
></el-table-column>
<el-table-column
prop=
"carNumber"
label=
"车位编号"
></el-table-column>
<!--
<el-table-column
prop=
"carType"
label=
"车位状态"
></el-table-column>
-->
<!--
<el-table-column
prop=
"carType"
label=
"车位状态"
></el-table-column>
-->
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
v-if=
"isSellBtn || isEditBtn"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<!--
<span
class=
"green line pointer"
@
click=
"(scope.row)"
>
出售
</span>
-->
<!--
<span
class=
"green line pointer"
@
click=
"(scope.row)"
>
出售
</span>
-->
<span
class=
"green line pointer"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"green line pointer"
v-if=
"isEditBtn"
@
click=
"editBtn(scope.row)"
>
修改
</span>
<span
class=
"red line ml10 pointer"
@
click=
"editSell(scope.row.id)"
>
出售
</span>
<span
class=
"red line ml10 pointer"
v-if=
"isSellBtn"
@
click=
"editSell(scope.row.id)"
>
出售
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -109,11 +109,54 @@ export default {
...
@@ -109,11 +109,54 @@ export default {
title
:
'新增出售车位'
,
title
:
'新增出售车位'
,
adddialogVisible
:
false
,
adddialogVisible
:
false
,
editdialogVisible
:
false
,
editdialogVisible
:
false
,
isCarExportBtn
:
false
,
isSellBtn
:
false
,
isEditBtn
:
false
,
isAddBtn
:
false
,
isDownloadBtn
:
false
,
isDelBtn
:
false
,
isImportBtn
:
false
}),
}),
created
()
{
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
this
.
getPermissionsBtn
()
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
getPermissionsBtn
()
{
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
this
.
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
res
.
data
.
data
.
menuResponseList
.
forEach
(
item
=>
{
item
.
childrenList
.
forEach
(
info
=>
{
info
.
childrenList
.
forEach
(
btn
=>
{
if
(
btn
.
menuFlag
===
'1003-05-006-006'
)
{
this
.
isCarExportBtn
=
true
//导出
}
if
(
btn
.
menuFlag
===
'1003-05-006-008'
)
{
this
.
isSellBtn
=
true
// 出售
}
if
(
btn
.
menuFlag
===
'1003-05-006-003'
)
{
this
.
isEditBtn
=
true
// 修改
}
if
(
btn
.
menuFlag
===
'1003-05-006-002'
)
{
this
.
isAddBtn
=
true
//添加
}
if
(
btn
.
menuFlag
===
'1003-05-006-009'
)
{
this
.
isDownloadBtn
=
true
// 下载
}
if
(
btn
.
menuFlag
===
'1003-05-006-004'
)
{
this
.
isDelBtn
=
true
// 删除
}
if
(
btn
.
menuFlag
===
'1003-05-006-007'
)
{
this
.
isImportBtn
=
true
// 导入
}
})
})
})
}
})
},
//加载列表
//加载列表
getList
()
{
getList
()
{
var
params
=
{
var
params
=
{
...
...
src/router/index.js
View file @
aa6a682d
...
@@ -174,7 +174,7 @@ export default new Router({
...
@@ -174,7 +174,7 @@ export default new Router({
path
:
'/IOC/recipe'
,
path
:
'/IOC/recipe'
,
name
:
'recipe'
,
name
:
'recipe'
,
meta
:
{
meta
:
{
pageName
:
'
菜谱
管理'
pageName
:
'
商铺
管理'
},
},
component
:
resolve
=>
component
:
resolve
=>
require
([
'../components/page/IOC/recipe.vue'
],
resolve
)
require
([
'../components/page/IOC/recipe.vue'
],
resolve
)
...
...
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