|
@@ -45,7 +45,7 @@
|
|
|
<el-table-column prop="address" label="操作" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" @click="createCustomer(scope.row, 2)">查看</el-button>
|
|
|
- <el-button size="mini" @click="createCustomer(scope.row, 3)">编辑</el-button>
|
|
|
+ <el-button size="mini" @click="createCustomer(scope.row, 3)" v-show="isEdit">编辑</el-button>
|
|
|
<el-button size="mini" type="danger" @click="handleDelete(scope.row, '')">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -80,6 +80,7 @@
|
|
|
pageSize: 10,
|
|
|
deptBudgetTotal: 0,
|
|
|
deptCircularPage: {},
|
|
|
+ isEdit:true
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
@@ -165,6 +166,13 @@
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.customertList = response.records
|
|
|
+ for(let i=0;i<response.records.length;i++){
|
|
|
+ if(response.records[i].compId==sessionStorage.getItem('ws-pf_compId')){
|
|
|
+ this.isEdit = true
|
|
|
+ }else{
|
|
|
+ this.isEdit = false
|
|
|
+ }
|
|
|
+ }
|
|
|
this.deptBudgetTotal = response.total
|
|
|
})
|
|
|
},
|