|
@@ -10,7 +10,7 @@
|
|
|
<el-button size="small" style="margin-right: 8px"
|
|
|
:loading="saveLoading" :disabled="!form.id" @click="previewreportfun" >预 览
|
|
|
</el-button>
|
|
|
- <el-button size="small" style="margin-right: 8px"
|
|
|
+ <el-button size="small" style="margin-right: 8px" v-if="roleName.indexOf('admin') != -1"
|
|
|
:loading="saveLoading" :disabled="!form.id" @click="DesignreportDialog = true" >报表设计
|
|
|
</el-button>
|
|
|
<el-button size="small" type="success" style="margin-right: 8px" v-if="form.status == 0 || form.status == 4" :disabled="!form.id"
|
|
@@ -490,6 +490,7 @@ export default {
|
|
|
responsiblePartyData:[], // AMEND 原因
|
|
|
multipleChoiceDArr: [], // 应收多选
|
|
|
multipleChoiceCArr: [], // 应付多选
|
|
|
+ roleName:[], // 当前的角色权限
|
|
|
// 是否编辑状态
|
|
|
editType: false,
|
|
|
buttonDisable:false, // 按钮的是否禁用
|
|
@@ -558,6 +559,9 @@ export default {
|
|
|
immediate: false // 第一次改变就执行
|
|
|
},
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.roleName = localStorage.getItem('roleName').split(',')
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 报表预览
|
|
|
previewreportfun(){
|