|
@@ -62,7 +62,10 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
yearAndMonth: '',
|
|
yearAndMonth: '',
|
|
|
|
|
|
|
|
- logoForm: {},
|
|
|
|
|
|
|
+ tenantInfo: {},
|
|
|
|
|
+ logoForm: {
|
|
|
|
|
+ logoUrl: ''
|
|
|
|
|
+ },
|
|
|
logoOption: {
|
|
logoOption: {
|
|
|
submitText: '保存',
|
|
submitText: '保存',
|
|
|
emptyBtn: false,
|
|
emptyBtn: false,
|
|
@@ -177,15 +180,16 @@ export default {
|
|
|
this.tenantLoading = true;
|
|
this.tenantLoading = true;
|
|
|
getTenantDetail(tenantId).then(({ data }) => {
|
|
getTenantDetail(tenantId).then(({ data }) => {
|
|
|
this.tenantLoading = false;
|
|
this.tenantLoading = false;
|
|
|
- if (data.code == 200) {
|
|
|
|
|
- this.logoForm = data.data;
|
|
|
|
|
|
|
+ if (data.code == 200 && !!data.data) {
|
|
|
|
|
+ this.tenantInfo = data.data
|
|
|
|
|
+ this.logoForm.logoUrl = data.data.logoUrl
|
|
|
}
|
|
}
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.tenantLoading = false;
|
|
this.tenantLoading = false;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleSubmitLogo(form, done) {
|
|
handleSubmitLogo(form, done) {
|
|
|
- const params = { ...this.logoForm, tenantId: this.userInfo.tenant_id };
|
|
|
|
|
|
|
+ const params = { ...this.tenantInfo, ...this.logoForm };
|
|
|
updateTenant(params).then(({ data }) => {
|
|
updateTenant(params).then(({ data }) => {
|
|
|
done();
|
|
done();
|
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|