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