'update'
This commit is contained in:
@ -50,3 +50,11 @@ export function getSetting(tenantId) {
|
|||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 刷新参数缓存
|
||||||
|
export function refreshCache() {
|
||||||
|
return request({
|
||||||
|
url: "/tenant/refreshCache",
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -74,6 +74,16 @@
|
|||||||
>导出
|
>导出
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
v-hasPermi="['tenant:remove']"
|
||||||
|
icon="Refresh"
|
||||||
|
plain
|
||||||
|
type="danger"
|
||||||
|
@click="handleRefreshCache"
|
||||||
|
>刷新缓存
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
v-model:showSearch="showSearch"
|
v-model:showSearch="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
@ -304,6 +314,7 @@ import {
|
|||||||
getTenant,
|
getTenant,
|
||||||
listTenant,
|
listTenant,
|
||||||
updateTenant,
|
updateTenant,
|
||||||
|
refreshCache,
|
||||||
} from "@/api/tenant/tenant";
|
} from "@/api/tenant/tenant";
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
@ -537,6 +548,13 @@ function handleExport() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 刷新缓存按钮操作 */
|
||||||
|
function handleRefreshCache() {
|
||||||
|
refreshCache().then(() => {
|
||||||
|
proxy.$modal.msgSuccess("刷新缓存成功");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
getList();
|
getList();
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Reference in New Issue
Block a user