|
@@ -11,7 +11,7 @@
|
|
|
</div>
|
|
|
<div class="search">
|
|
|
<mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
|
|
|
- <el-button size="small" @click="addExcel" type="primary">新增模板</el-button>
|
|
|
+ <el-button size="small" @click="addExcel" type="primary" v-if="isManageMuban">新增模板</el-button>
|
|
|
</div>
|
|
|
<div class="tabbox">
|
|
|
<el-table height="calc(100% - 40px)" v-loading="loading" class="com-table" ref="multipleTable"
|
|
@@ -33,7 +33,7 @@
|
|
|
<el-table-column align="center" prop="hotline" width="200" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button :disabled="scope.row.tempStsDesc == '作废'" size="mini" type="primary" plain
|
|
|
- @click="issue(scope.row)">下发</el-button>
|
|
|
+ @click="issue(scope.row)" v-if="isManageMuban">下发</el-button>
|
|
|
<el-button size="mini" type="primary" plain @click="detailes(scope.row)">查看</el-button>
|
|
|
<!-- <el-button
|
|
|
size="mini"
|
|
@@ -43,7 +43,7 @@
|
|
|
>修改</el-button
|
|
|
> -->
|
|
|
<el-button :disabled="scope.row.tempStsDesc == '作废'" size="mini" type="danger" plain
|
|
|
- @click="deletes(scope.row)">作废</el-button>
|
|
|
+ @click="deletes(scope.row)" v-if="isManageMuban">作废</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -167,6 +167,7 @@
|
|
|
loading: false,
|
|
|
tableCell: "",
|
|
|
tempType: "",
|
|
|
+ isManageMuban: false
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -403,6 +404,13 @@
|
|
|
mounted() {
|
|
|
this.getOpations();
|
|
|
this.getList(this.params, this.pageSize);
|
|
|
+
|
|
|
+ let menus = JSON.parse(window.sessionStorage.childrenMenus);
|
|
|
+ menus.forEach(item=>{
|
|
|
+ if(item.systemflag == 1 && item.jspUrl == '/kpiMuban'){
|
|
|
+ this.isManageMuban = true
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
watch: {
|
|
|
$route() {
|