|
@@ -109,12 +109,12 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "所属租户",
|
|
label: "所属租户",
|
|
|
- prop: "tenantCode",
|
|
|
|
|
|
|
+ prop: "tenantId",
|
|
|
type: "tree",
|
|
type: "tree",
|
|
|
dicUrl: "/api/blade-system/tenant/select",
|
|
dicUrl: "/api/blade-system/tenant/select",
|
|
|
props: {
|
|
props: {
|
|
|
label: "tenantName",
|
|
label: "tenantName",
|
|
|
- value: "tenantCode"
|
|
|
|
|
|
|
+ value: "tenantId"
|
|
|
},
|
|
},
|
|
|
hide: !website.tenantMode,
|
|
hide: !website.tenantMode,
|
|
|
addDisplay: website.tenantMode,
|
|
addDisplay: website.tenantMode,
|
|
@@ -245,13 +245,13 @@
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
- 'form.tenantCode'() {
|
|
|
|
|
- if (this.form.tenantCode !== '') {
|
|
|
|
|
- getDeptTree(this.form.tenantCode).then(res => {
|
|
|
|
|
|
|
+ 'form.tenantId'() {
|
|
|
|
|
+ if (this.form.tenantId !== '') {
|
|
|
|
|
+ getDeptTree(this.form.tenantId).then(res => {
|
|
|
const index = this.$refs.crud.findColumnIndex("deptId");
|
|
const index = this.$refs.crud.findColumnIndex("deptId");
|
|
|
this.option.column[index].dicData = res.data.data;
|
|
this.option.column[index].dicData = res.data.data;
|
|
|
});
|
|
});
|
|
|
- getRoleTree(this.form.tenantCode).then(res => {
|
|
|
|
|
|
|
+ getRoleTree(this.form.tenantId).then(res => {
|
|
|
const index = this.$refs.crud.findColumnIndex("roleId");
|
|
const index = this.$refs.crud.findColumnIndex("roleId");
|
|
|
this.option.column[index].dicData = res.data.data;
|
|
this.option.column[index].dicData = res.data.data;
|
|
|
});
|
|
});
|
|
@@ -404,11 +404,11 @@
|
|
|
this.page.total = data.total;
|
|
this.page.total = data.total;
|
|
|
this.data = data.records;
|
|
this.data = data.records;
|
|
|
});
|
|
});
|
|
|
- getDeptTree(this.form.tenantCode).then(res => {
|
|
|
|
|
|
|
+ getDeptTree(this.form.tenantId).then(res => {
|
|
|
const index = this.$refs.crud.findColumnIndex("deptId");
|
|
const index = this.$refs.crud.findColumnIndex("deptId");
|
|
|
this.option.column[index].dicData = res.data.data;
|
|
this.option.column[index].dicData = res.data.data;
|
|
|
});
|
|
});
|
|
|
- getRoleTree(this.form.tenantCode).then(res => {
|
|
|
|
|
|
|
+ getRoleTree(this.form.tenantId).then(res => {
|
|
|
const index = this.$refs.crud.findColumnIndex("roleId");
|
|
const index = this.$refs.crud.findColumnIndex("roleId");
|
|
|
this.option.column[index].dicData = res.data.data;
|
|
this.option.column[index].dicData = res.data.data;
|
|
|
});
|
|
});
|