|
@@ -154,7 +154,7 @@
|
|
|
<el-form-item label="租户名称" prop="tenantName">
|
|
<el-form-item label="租户名称" prop="tenantName">
|
|
|
<el-input v-model="form.tenantName" placeholder="请输入租户名称" />
|
|
<el-input v-model="form.tenantName" placeholder="请输入租户名称" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="状态:">
|
|
|
|
|
|
|
+ <el-form-item label="状态:" v-if="isAdd">
|
|
|
<el-radio-group v-model="form.status">
|
|
<el-radio-group v-model="form.status">
|
|
|
<el-radio
|
|
<el-radio
|
|
|
v-for="dict in statusOptions"
|
|
v-for="dict in statusOptions"
|
|
@@ -311,6 +311,7 @@ export default {
|
|
|
children: "children",
|
|
children: "children",
|
|
|
label: "label"
|
|
label: "label"
|
|
|
},
|
|
},
|
|
|
|
|
+ isAdd: false,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -373,12 +374,14 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
handleAdd() {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
|
|
+ this.isAdd = false;
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
this.title = "添加租户基础信息";
|
|
this.title = "添加租户基础信息";
|
|
|
},
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
|
|
+ this.isAdd = true;
|
|
|
const id = row.id || this.ids
|
|
const id = row.id || this.ids
|
|
|
getTenant(id).then(response => {
|
|
getTenant(id).then(response => {
|
|
|
this.form = response.data;
|
|
this.form = response.data;
|