|
@@ -25,7 +25,7 @@ const opts = reactive({
|
|
|
},
|
|
},
|
|
|
{ field: "status", name: "租户状态", visible: true, isSort: false, width: 100 },
|
|
{ field: "status", name: "租户状态", visible: true, isSort: false, width: 100 },
|
|
|
{ field: "actions", name: `操作`, width: 150 }
|
|
{ field: "actions", name: `操作`, width: 150 }
|
|
|
- ],
|
|
|
|
|
|
|
+ ] as any[],
|
|
|
queryParams: {
|
|
queryParams: {
|
|
|
companyName: undefined,
|
|
companyName: undefined,
|
|
|
licenseNumber: undefined,
|
|
licenseNumber: undefined,
|
|
@@ -109,6 +109,16 @@ const opts = reactive({
|
|
|
btnClass: "btn btn-light-warning",
|
|
btnClass: "btn btn-light-warning",
|
|
|
permission: "no_auth",
|
|
permission: "no_auth",
|
|
|
clickFun: handleSyncTenantDict
|
|
clickFun: handleSyncTenantDict
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "handleSyncTenantConfig",
|
|
|
|
|
+ show: appStore.authStore.user.roles.includes("super_admin"),
|
|
|
|
|
+ name: "同步租户配置",
|
|
|
|
|
+ iconType: "class",
|
|
|
|
|
+ icon: "me-1 bi bi-arrow-repeat",
|
|
|
|
|
+ btnClass: "btn btn-light-warning",
|
|
|
|
|
+ permission: "no_auth",
|
|
|
|
|
+ clickFun: handleSyncTenantConfig
|
|
|
}
|
|
}
|
|
|
] as any,
|
|
] as any,
|
|
|
tableListFun: apis.system.tenantApi.list,
|
|
tableListFun: apis.system.tenantApi.list,
|
|
@@ -351,6 +361,12 @@ function handleSyncTenantDict() {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function handleSyncTenantConfig() {
|
|
|
|
|
+ apis.system.tenantApi.syncTenantConfig().then(() => {
|
|
|
|
|
+ message.msgSuccess("同步成功")
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
|
function submitForm() {
|
|
function submitForm() {
|
|
|
apis.system.tenantApi.addOrUpdate(form.value).then(() => {
|
|
apis.system.tenantApi.addOrUpdate(form.value).then(() => {
|