debug
This commit is contained in:
@@ -31,6 +31,14 @@ export const uploadExcel = (params: SiteList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/site/domain/upload', params);
|
||||
};
|
||||
|
||||
/**
|
||||
* @name 缓存清理
|
||||
*/
|
||||
export const cacheFlush = (params: SiteList.saveParams) => {
|
||||
return http.post<ResPage<ResultData>>('/system/cache/flush', params);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 0 B |
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 0 B |
@@ -4,7 +4,7 @@
|
||||
<el-header>
|
||||
<div class="header-lf mask-image">
|
||||
<div class="logo flx-center">
|
||||
<img class="logo-img" src="@/customize/images/logo.png" alt="logo" />
|
||||
<!-- <img class="logo-img" src="@/customize/images/logo.png" alt="logo" /> -->
|
||||
<span class="logo-text">{{ title }}</span>
|
||||
</div>
|
||||
<ToolBarLeft />
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<el-container class="layout">
|
||||
<div class="aside-split">
|
||||
<div class="logo flx-center">
|
||||
<img class="logo-img" src="@/customize/images/logo.png" alt="logo" />
|
||||
<!-- <img class="logo-img" src="@/customize/images/logo.png" alt="logo" /> -->
|
||||
</div>
|
||||
<el-scrollbar>
|
||||
<div class="split-list">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<el-aside>
|
||||
<div class="aside-box" :style="{ width: isCollapse ? '65px' : '210px' }">
|
||||
<div class="logo flx-center">
|
||||
<img class="logo-img" src="@/customize/images/logo.png" alt="logo" />
|
||||
<!-- <img class="logo-img" src="@/customize/images/logo.png" alt="logo" /> -->
|
||||
<span v-show="!isCollapse" class="logo-text">{{ title }}</span>
|
||||
</div>
|
||||
<el-scrollbar>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<template #tableHeader="scope">
|
||||
<el-button type="primary" :icon="CirclePlus" @click="openDrawer(true)">新增</el-button>
|
||||
<el-button type="primary" :icon="Upload" @click="batchAdd"> 批量添加 </el-button>
|
||||
<el-button type="primary" :icon="Upload" @click="clearCache"> 缓存清理 </el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
:icon="Delete"
|
||||
@@ -76,7 +77,7 @@ import { useHandleData } from "@/hooks/useHandleData";
|
||||
import ProTable from "@/components/ProTable/index.vue";
|
||||
import { Delete, EditPen, CirclePlus,Upload, Refresh } from "@element-plus/icons-vue";
|
||||
import { ProTableInstance, ColumnProps } from "@/components/ProTable/interface";
|
||||
import { getList, saveData, uploadExcel,deleteItem, buildItem, landingItem } from "@/api/modules/site/list";
|
||||
import { getList, saveData, uploadExcel, cacheFlush ,deleteItem, buildItem, landingItem } from "@/api/modules/site/list";
|
||||
import { getAllList } from "@/api/modules/site/template";
|
||||
import Drawer from "./drawer.vue";
|
||||
import { arrColorType } from "@/utils/serviceDict";
|
||||
@@ -259,6 +260,12 @@ const deleteAccount = async (params: SiteList.ResList) => {
|
||||
proTable.value?.getTableList();
|
||||
};
|
||||
|
||||
// 清理缓存
|
||||
const clearCache = async (params: SiteList.ResList) => {
|
||||
await useHandleData(cacheFlush, {}, "清理缓存");
|
||||
proTable.value?.getTableList();
|
||||
};
|
||||
|
||||
// 批量删除站点信息
|
||||
const batchDelete = async (id: any[]) => {
|
||||
const ids = id.map((item: SiteList.ResList) => item.si_id);
|
||||
|
||||
Reference in New Issue
Block a user