This commit is contained in:
yanran200730
2021-12-23 14:32:35 +08:00
parent 0dc5f5d7b2
commit bba21ea9f4
3 changed files with 9 additions and 6 deletions

View File

@@ -73,7 +73,9 @@
props: {
instance: Function,
dict: Object,
params: Object
params: Object,
areaId: String,
areaName: String
},
data () {
@@ -100,8 +102,8 @@
},
created () {
this.form.areaId = this.user.info.areaId
this.form.areaName = this.user.info.areaName
this.form.areaId = this.areaId
this.form.areaName = this.areaName
this.disabledLevel = this.user.info.areaList.length - 1
if (this.params && this.params.id) {
this.id = this.params.id

View File

@@ -38,7 +38,7 @@
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
<el-button type="text" @click="toAdd(row.id)" :disabled="row.status === '1' || row.status === '2'">编辑</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
</div>
</template>