|
|
@@ -52,6 +52,11 @@
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button v-hasPermi="['tool:gen:remove']" type="danger" plain icon="Delete" @click="removeUserCacheSystemDataClick()">
|
|
|
+ 清理系统数据
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
@@ -117,6 +122,7 @@ import { delTable, genCode, getDataNames, listTable, previewTable, synchDb } fro
|
|
|
import { TableQuery, TableVO } from '@/api/tool/gen/types';
|
|
|
import router from '@/router';
|
|
|
import ImportTable from './importTable.vue';
|
|
|
+import { removeUserCacheSystemData } from '@/api/system/business/apiUsers';
|
|
|
|
|
|
const route = useRoute();
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
@@ -236,6 +242,12 @@ const handleDelete = async (row?: TableVO) => {
|
|
|
proxy?.$modal.msgSuccess('删除成功');
|
|
|
};
|
|
|
|
|
|
+const removeUserCacheSystemDataClick = async () => {
|
|
|
+ await proxy?.$modal.confirm('是否确认清理数据库数据项?');
|
|
|
+ await removeUserCacheSystemData();
|
|
|
+ proxy?.$modal.msgSuccess('清理成功');
|
|
|
+};
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
const time = route.query.t;
|
|
|
if (time != null && time != uniqueId.value) {
|