修改入网设计方案申请治理工程申请按钮显示条件
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<template #operation>
|
<template #operation>
|
||||||
<!-- <el-button icon='el-icon-Download' type='primary'>导出</el-button> -->
|
<!-- <el-button icon='el-icon-Download' type='primary'>导出</el-button> -->
|
||||||
@@ -52,7 +51,21 @@ const areaOptionList = dictData.getBasicData('jibei_area')
|
|||||||
const statusSelect = dictData.statusSelect()
|
const statusSelect = dictData.statusSelect()
|
||||||
//获取登陆用户姓名和部门
|
//获取登陆用户姓名和部门
|
||||||
const adminInfo = useAdminInfo()
|
const adminInfo = useAdminInfo()
|
||||||
console.log(adminInfo.$state.roleCode, '++++++++++++++++')
|
const jb_pl = ref(false)
|
||||||
|
const jb_dky = ref(false)
|
||||||
|
jb_pl.value =
|
||||||
|
adminInfo.$state.roleCode.filter(item => {
|
||||||
|
return item == 'jb_pl'
|
||||||
|
}).length != 0
|
||||||
|
? true
|
||||||
|
: false
|
||||||
|
jb_dky.value =
|
||||||
|
adminInfo.$state.roleCode.filter(item => {
|
||||||
|
return item == 'jb_dky'
|
||||||
|
}).length != 0
|
||||||
|
? true
|
||||||
|
: false
|
||||||
|
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
const TableHeaderRef = ref()
|
const TableHeaderRef = ref()
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
@@ -138,14 +151,7 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return (
|
return jb_pl.value || jb_dky.value
|
||||||
adminInfo.$state.roleCode.filter(item => {
|
|
||||||
return item == 'jb_pl'
|
|
||||||
}) ||
|
|
||||||
adminInfo.$state.roleCode.filter(item => {
|
|
||||||
return item == 'jb_dky'
|
|
||||||
})
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
toFangAn(row, 0)
|
toFangAn(row, 0)
|
||||||
@@ -158,14 +164,7 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return (
|
return jb_pl.value || jb_dky.value
|
||||||
adminInfo.$state.roleCode.filter(item => {
|
|
||||||
return item != 'jb_pl'
|
|
||||||
}) ||
|
|
||||||
adminInfo.$state.roleCode.filter(item => {
|
|
||||||
return item == 'jb_dky'
|
|
||||||
})
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
toFangAn(row, 1)
|
toFangAn(row, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user