|
|
@ -146,6 +146,9 @@ |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button type="warning" icon="Download" @click="handleExport">导出</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button type="info" plain icon="Refresh" @click="cleanRedis">刷新redis缓存</el-button> |
|
|
|
</el-col> |
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"> |
|
|
|
</right-toolbar> |
|
|
|
</el-row> |
|
|
@ -399,7 +402,7 @@ |
|
|
|
} |
|
|
|
</style> |
|
|
|
<script setup name="Device"> |
|
|
|
import { getUuid, listDevice, getDevice, delDevice, addDevice, updateDevice, listWithFilterColumn, selectDcBaseDeviceinfoMaxSort } from "@/api/model/device"; |
|
|
|
import { getUuid, listDevice, getDevice, delDevice, addDevice, updateDevice, listWithFilterColumn, selectDcBaseDeviceinfoMaxSort,cleanRedisCache } from "@/api/model/device"; |
|
|
|
import { deptTreeSelect } from "@/api/system/user"; |
|
|
|
import lock from "@/assets/icons/svg/lock.svg"; |
|
|
|
import { ref, onMounted, onUnmounted } from "vue"; |
|
|
@ -944,6 +947,13 @@ watch(deptName, val => { |
|
|
|
proxy.$refs["deptTreeRef"].filter(val); |
|
|
|
}); |
|
|
|
|
|
|
|
function cleanRedis() { |
|
|
|
proxy.$modal.confirm('是否确认清空所有缓存?').then(function () { |
|
|
|
return cleanRedisCache(); |
|
|
|
}).catch(function () { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getDeptTree(); |
|
|
|
getList(); |
|
|
|