|
@@ -7,7 +7,11 @@
|
|
|
ref="crud"
|
|
ref="crud"
|
|
|
:data="listData"
|
|
:data="listData"
|
|
|
:toolbars="
|
|
:toolbars="
|
|
|
- config
|
|
|
|
|
|
|
+ readOnly
|
|
|
|
|
+ ? listConfig.toolbars.filter((obj) => {
|
|
|
|
|
+ return obj.key == 'search'
|
|
|
|
|
+ })
|
|
|
|
|
+ : config
|
|
|
? listConfig.toolbars.filter((obj) => {
|
|
? listConfig.toolbars.filter((obj) => {
|
|
|
return obj.key !== 'customSetting'
|
|
return obj.key !== 'customSetting'
|
|
|
})
|
|
})
|
|
@@ -85,9 +89,11 @@
|
|
|
<template slot="customButton" slot-scope="{ row }">
|
|
<template slot="customButton" slot-scope="{ row }">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="text"
|
|
type="text"
|
|
|
- :icon="hasRole ? 'el-icon-edit-outline' : 'ibps-icon-eye'"
|
|
|
|
|
|
|
+ :icon="
|
|
|
|
|
+ hasRole && !readOnly ? 'el-icon-edit-outline' : 'ibps-icon-eye'
|
|
|
|
|
+ "
|
|
|
@click="goEdit(row)"
|
|
@click="goEdit(row)"
|
|
|
- >{{ hasRole ? '修改' : '查阅' }}</el-button
|
|
|
|
|
|
|
+ >{{ hasRole && !readOnly ? '修改' : '查阅' }}</el-button
|
|
|
>
|
|
>
|
|
|
<!-- <el-button type="text" icon="el-icon-view" @click="goLook(row)">查阅</el-button> -->
|
|
<!-- <el-button type="text" icon="el-icon-view" @click="goLook(row)">查阅</el-button> -->
|
|
|
<el-button
|
|
<el-button
|
|
@@ -383,7 +389,7 @@
|
|
|
:hide-sys-device-no="hideSysDeviceNo"
|
|
:hide-sys-device-no="hideSysDeviceNo"
|
|
|
:has-fu-ze-ren-dian-hua="hasFuZeRenDianHua"
|
|
:has-fu-ze-ren-dian-hua="hasFuZeRenDianHua"
|
|
|
:has-chang-jia-lian-xi-ren="hasChangJiaLianXiRen"
|
|
:has-chang-jia-lian-xi-ren="hasChangJiaLianXiRen"
|
|
|
- :readonly="!hasRole"
|
|
|
|
|
|
|
+ :readonly="!hasRole || readOnly"
|
|
|
@close="close"
|
|
@close="close"
|
|
|
/>
|
|
/>
|
|
|
<input
|
|
<input
|
|
@@ -912,6 +918,7 @@ export default {
|
|
|
hasChangJiaLianXiRen: false,
|
|
hasChangJiaLianXiRen: false,
|
|
|
tabList: {},
|
|
tabList: {},
|
|
|
hasRole: true,
|
|
hasRole: true,
|
|
|
|
|
+ readOnly: this.$route.fullPath === '/xxgl/sbda',
|
|
|
typeList: {
|
|
typeList: {
|
|
|
检验系统: '检验系统',
|
|
检验系统: '检验系统',
|
|
|
通用设备: '通用设备',
|
|
通用设备: '通用设备',
|