|
|
@@ -409,15 +409,18 @@ export default {
|
|
|
},
|
|
|
beforeOpen (done, type) {
|
|
|
if (['edit'].includes(type)) {
|
|
|
- this.$confirm('暂未授权使用', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- // this.$router.push({
|
|
|
- // path: '/home/details',
|
|
|
- // query: { id: this.form.id, type: '0', ownerId: this.form.createUser }
|
|
|
- // })
|
|
|
+ if (this.user.info.account !== '15368241401') {
|
|
|
+ this.$confirm('暂未授权使用', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/home/details',
|
|
|
+ query: { id: this.form.id, type: '0', ownerId: this.form.createUser }
|
|
|
+ })
|
|
|
+ }
|
|
|
} else if (type === 'view') {
|
|
|
this.$router.push({
|
|
|
path: '/home/pro_detail',
|