forked from dyf/dyf-vue-ui
添加 一个设备的控制面板及一些小优化
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user