1
0
forked from dyf/dyf-vue-ui

添加 一个设备的控制面板及一些小优化

This commit is contained in:
liub
2026-04-16 10:04:43 +08:00
parent cce863c590
commit ced4a5177f
19 changed files with 2804 additions and 906 deletions

View File

@ -481,7 +481,11 @@ const { queryParams, form, rules } = toRefs<PageData<deviceForm, deviceQuery>>(d
/** 查询设备列表 */
const getList = async () => {
loading.value = true;
const res = await api.deviceList(proxy?.addDateRange(queryParams.value, dateRange.value));
let paras=Object.assign({},queryParams.value);
paras.deviceMac=paras.deviceMac.replace(/:/g,'').replace(//g,'').replace(/(.{2})/g, '$1:').slice(0, -1);
const res = await api.deviceList(proxy?.addDateRange(paras, dateRange.value));
loading.value = false;
deviceDist.value = res.rows;
total.value = res.total;
@ -501,6 +505,7 @@ const resetQuery = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: deviceVO) => {
debugger;
// 批量删除逻辑
let arrey = ids.value.map((item) => item.id);
if (!row) {