|
@@ -84,7 +84,7 @@ const data = reactive({
|
|
{ label: "在线", value: "1" },
|
|
{ label: "在线", value: "1" },
|
|
{ label: "离线", value: "2" },
|
|
{ label: "离线", value: "2" },
|
|
],
|
|
],
|
|
- radioValue: "",
|
|
|
|
|
|
+ radioValue: "1",
|
|
dropdownShow: false,
|
|
dropdownShow: false,
|
|
});
|
|
});
|
|
|
|
|
|
@@ -103,8 +103,8 @@ function init() {
|
|
*/
|
|
*/
|
|
|
|
|
|
function dmpDeviceInfoApi() {
|
|
function dmpDeviceInfoApi() {
|
|
- dmpDeviceInfo({ productId: productId.value, deviceName: deviceName.value, current: current.value, size: pageSize.value }).then((requset) => {
|
|
|
|
- if (requset.status === "SUCCESS") {
|
|
|
|
|
|
+ dmpDeviceInfo({ current: current.value, size: pageSize.value ,deviceStatus:radioValue.value }).then((requset) => {
|
|
|
|
+ if (requset.status == "SUCCESS") {
|
|
dataList.value = requset.data.records;
|
|
dataList.value = requset.data.records;
|
|
total.value = requset.data.total;
|
|
total.value = requset.data.total;
|
|
|
|
|
|
@@ -129,8 +129,10 @@ function handleToDevice(array) {
|
|
* @单选change事件
|
|
* @单选change事件
|
|
*/
|
|
*/
|
|
function radioChange(e) {
|
|
function radioChange(e) {
|
|
|
|
+ // console.log(e,'e')
|
|
radioValue.value = e;
|
|
radioValue.value = e;
|
|
- selectListApi();
|
|
|
|
|
|
+ dmpDeviceInfoApi();
|
|
|
|
+ dropdownShow.value=false
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|