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);
|
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>
|
<el-header>
|
||||||
<div class="header-lf mask-image">
|
<div class="header-lf mask-image">
|
||||||
<div class="logo flx-center">
|
<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>
|
<span class="logo-text">{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
<ToolBarLeft />
|
<ToolBarLeft />
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<el-container class="layout">
|
<el-container class="layout">
|
||||||
<div class="aside-split">
|
<div class="aside-split">
|
||||||
<div class="logo flx-center">
|
<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>
|
</div>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="split-list">
|
<div class="split-list">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<el-aside>
|
<el-aside>
|
||||||
<div class="aside-box" :style="{ width: isCollapse ? '65px' : '210px' }">
|
<div class="aside-box" :style="{ width: isCollapse ? '65px' : '210px' }">
|
||||||
<div class="logo flx-center">
|
<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>
|
<span v-show="!isCollapse" class="logo-text">{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<template #tableHeader="scope">
|
<template #tableHeader="scope">
|
||||||
<el-button type="primary" :icon="CirclePlus" @click="openDrawer(true)">新增</el-button>
|
<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="batchAdd"> 批量添加 </el-button>
|
||||||
|
<el-button type="primary" :icon="Upload" @click="clearCache"> 缓存清理 </el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
:icon="Delete"
|
:icon="Delete"
|
||||||
@@ -76,7 +77,7 @@ import { useHandleData } from "@/hooks/useHandleData";
|
|||||||
import ProTable from "@/components/ProTable/index.vue";
|
import ProTable from "@/components/ProTable/index.vue";
|
||||||
import { Delete, EditPen, CirclePlus,Upload, Refresh } from "@element-plus/icons-vue";
|
import { Delete, EditPen, CirclePlus,Upload, Refresh } from "@element-plus/icons-vue";
|
||||||
import { ProTableInstance, ColumnProps } from "@/components/ProTable/interface";
|
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 { getAllList } from "@/api/modules/site/template";
|
||||||
import Drawer from "./drawer.vue";
|
import Drawer from "./drawer.vue";
|
||||||
import { arrColorType } from "@/utils/serviceDict";
|
import { arrColorType } from "@/utils/serviceDict";
|
||||||
@@ -259,6 +260,12 @@ const deleteAccount = async (params: SiteList.ResList) => {
|
|||||||
proTable.value?.getTableList();
|
proTable.value?.getTableList();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 清理缓存
|
||||||
|
const clearCache = async (params: SiteList.ResList) => {
|
||||||
|
await useHandleData(cacheFlush, {}, "清理缓存");
|
||||||
|
proTable.value?.getTableList();
|
||||||
|
};
|
||||||
|
|
||||||
// 批量删除站点信息
|
// 批量删除站点信息
|
||||||
const batchDelete = async (id: any[]) => {
|
const batchDelete = async (id: any[]) => {
|
||||||
const ids = id.map((item: SiteList.ResList) => item.si_id);
|
const ids = id.map((item: SiteList.ResList) => item.si_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user