Commit 42e0c134 authored by 赵啸非's avatar 赵啸非

修改站点请求地址

parent 4827577f
...@@ -319,12 +319,14 @@ export default { ...@@ -319,12 +319,14 @@ export default {
}, },
changeStat(val, enabled) { changeStat(val, enabled) {
//去除其它条件
let param={"siteId":this.siteId} delete this.query["productId"]
param = Object.assign(param, { deviceStatus: val }); delete this.query["deviceName"]
delete this.query["deviceCode"]
this.query = Object.assign(this.query, { deviceStatus: val });
if (!enabled) { if (!enabled) {
this.query = Object.assign(param, { this.query = Object.assign(this.query, {
deviceStatusList: [1, 2], deviceStatusList: [1, 2],
enabled: enabled, enabled: enabled,
}); });
......
...@@ -501,7 +501,6 @@ public class DeviceApiController { ...@@ -501,7 +501,6 @@ public class DeviceApiController {
ProductVersionEntity productVersionEntity = productVersionService.selectOne(productVersionQuery); ProductVersionEntity productVersionEntity = productVersionService.selectOne(productVersionQuery);
if (ObjectUtils.isEmpty(productVersionEntity)) { if (ObjectUtils.isEmpty(productVersionEntity)) {
throw new AppException(DEVICE_VERSION_UNEXIST, DEVICE_VERSION_UNEXIST_CONTENT); throw new AppException(DEVICE_VERSION_UNEXIST, DEVICE_VERSION_UNEXIST_CONTENT);
} }
ProductVersionInfo productVersionInfo = new ProductVersionInfo(); ProductVersionInfo productVersionInfo = new ProductVersionInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment