|
|
@@ -27,25 +27,25 @@
|
|
|
v-model="visible"
|
|
|
>
|
|
|
<div class="normal-margin">
|
|
|
- <transactionUser @onshow="show"></transactionUser>
|
|
|
+ <transactionUser v-if="tool.checkAuth($route.name,'responsible')" @onshow="show"></transactionUser>
|
|
|
</div>
|
|
|
<div class="normal-margin">
|
|
|
- <transaction_status :id="mainData.sa_customersid" @onshow="onSuccess" @shareSuccess="onSuccess"></transaction_status>
|
|
|
+ <transaction_status v-if="tool.checkAuth($route.name,'transaction')" :id="mainData.sa_customersid" @onshow="onSuccess" @shareSuccess="onSuccess"></transaction_status>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus === 0">
|
|
|
- <lock :id="mainData.sa_customersid" @onshow="onSuccess"></lock>
|
|
|
+ <lock v-if="tool.checkAuth($route.name,'lock')" :id="mainData.sa_customersid" @onshow="onSuccess"></lock>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus === 2">
|
|
|
- <unlock :id="mainData.sa_customersid" @onshow="onSuccess"></unlock>
|
|
|
+ <unlock v-if="tool.checkAuth($route.name,'unlock')" :id="mainData.sa_customersid" @onshow="onSuccess"></unlock>
|
|
|
</div>
|
|
|
<div class="normal-margin">
|
|
|
- <share :id="mainData.sa_customersid" @onshow="onSuccess" @shareSuccess="onSuccess"></share>
|
|
|
+ <share v-if="tool.checkAuth($route.name,'share') && mainData.poolname === ''" :id="mainData.sa_customersid" @onshow="onSuccess" @shareSuccess="onSuccess"></share>
|
|
|
</div>
|
|
|
<div class="normal-margin">
|
|
|
- <send_back :id="mainData.sa_customersid" @onshow="onSuccess" @backSuccess="onSuccess"></send_back>
|
|
|
+ <send_back v-if="tool.checkAuth($route.name,'back')" :id="mainData.sa_customersid" @onshow="onSuccess" @backSuccess="onSuccess"></send_back>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus !== 1">
|
|
|
- <to_void :id="mainData.sa_customersid" @onshow="onSuccess" @toVoidSuccess="onSuccess"></to_void>
|
|
|
+ <to_void v-if="tool.checkAuth($route.name,'toVoid')" :id="mainData.sa_customersid" @onshow="onSuccess" @toVoidSuccess="onSuccess"></to_void>
|
|
|
</div>
|
|
|
<el-button size="mini" slot="reference" icon="el-icon-more" @click="visible = !visible"></el-button>
|
|
|
</el-popover>
|
|
|
@@ -145,7 +145,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label:'负责人',
|
|
|
- value:this.mainData.createby
|
|
|
+ value:this.mainData.leadername
|
|
|
},
|
|
|
{
|
|
|
label:'最近跟近时间',
|
|
|
@@ -182,7 +182,14 @@ export default {
|
|
|
this.queryMainData(this.$route.query.id)
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+ this.tool.checkAuth(this.$route.name,'update')?'':this.$router.go(-1)
|
|
|
+ /*this.tool.checkAuth(this.$route.name,'toVoid')?'':this.$router.go(-1)*/
|
|
|
+ // this.tool.checkAuth(this.$route.name,'responsible')?'':this.$router.go(-1)
|
|
|
+ // this.tool.checkAuth(this.$route.name,'transaction')?'':this.$router.go(-1)
|
|
|
+ // this.tool.checkAuth(this.$route.name,'lock')?'':this.$router.go(-1)
|
|
|
+ // this.tool.checkAuth(this.$route.name,'unlock')?'':this.$router.go(-1)
|
|
|
+ // this.tool.checkAuth(this.$route.name,'share')?'':this.$router.go(-1)
|
|
|
+ // this.tool.checkAuth(this.$route.name,'back')?'':this.$router.go(-1)
|
|
|
}
|
|
|
}
|
|
|
</script>
|