diff --git a/src/api/manager.js b/src/api/manager.js index 16b5b6a..30eee70 100644 --- a/src/api/manager.js +++ b/src/api/manager.js @@ -191,27 +191,27 @@ export const pointApi = { export const dictionaryApi = { driverDictionary: () => request({ url: 'manager_api/manager/dictionary/driver', - method: 'get' + method: 'post' }), profileDictionary: () => request({ url: 'manager_api/manager/dictionary/profile', - method: 'get' + method: 'post' }), driverAttributeDictionary: () => request({ url: 'manager_api/manager/dictionary/driver_attribute', - method: 'get' + method: 'post' }), pointAttributeDictionary: () => request({ url: 'manager_api/manager/dictionary/point_attribute', - method: 'get' + method: 'post' }), deviceDictionary: () => request({ url: 'manager_api/manager/dictionary/device', - method: 'get' + method: 'post' }), pointDictionary: (parent) => request({ url: 'manager_api/manager/dictionary/point/' + parent, - method: 'get' + method: 'post' }) }; diff --git a/src/views/device/Device.vue b/src/views/device/Device.vue index 7ef3ec2..f7f50a7 100644 --- a/src/views/device/Device.vue +++ b/src/views/device/Device.vue @@ -257,13 +257,13 @@ }, driver() { dictionaryApi.driverDictionary().then(res => { - this.findObject(this.listOption.column, 'driverId').dicData = res.data; + this.findObject(this.listOption.column, 'driverId').dicData = res.data.records; }).catch(() => { }); }, profile() { dictionaryApi.profileDictionary().then(res => { - this.findObject(this.listOption.column, 'profileIds').dicData = res.data; + this.findObject(this.listOption.column, 'profileIds').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/driver/DriverAttribute.vue b/src/views/driver/DriverAttribute.vue index 1584efb..c913032 100644 --- a/src/views/driver/DriverAttribute.vue +++ b/src/views/driver/DriverAttribute.vue @@ -215,7 +215,7 @@ }, driver() { dictionaryApi.driverDictionary().then(res => { - this.findObject(this.listOption.column,'driverId').dicData = res.data; + this.findObject(this.listOption.column,'driverId').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/driver/DriverInfo.vue b/src/views/driver/DriverInfo.vue index c0575ee..86e25b9 100644 --- a/src/views/driver/DriverInfo.vue +++ b/src/views/driver/DriverInfo.vue @@ -148,13 +148,13 @@ }, device() { dictionaryApi.deviceDictionary().then(res => { - this.findObject(this.listOption.column, 'deviceId').dicData = res.data; + this.findObject(this.listOption.column, 'deviceId').dicData = res.data.records; }).catch(() => { }); }, driverAttribute() { dictionaryApi.driverAttributeDictionary().then(res => { - this.findObject(this.listOption.column, 'driverAttributeId').dicData = res.data; + this.findObject(this.listOption.column, 'driverAttributeId').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/event/DeviceEvent.vue b/src/views/event/DeviceEvent.vue index b7519eb..ef9f3d4 100644 --- a/src/views/event/DeviceEvent.vue +++ b/src/views/event/DeviceEvent.vue @@ -188,13 +188,13 @@ }, device() { dictionaryApi.deviceDictionary('group').then(res => { - this.findObject(this.listOption.column, 'deviceId').dicData = res.data; + this.findObject(this.listOption.column, 'deviceId').dicData = res.data.records; }).catch(() => { }); }, point() { dictionaryApi.pointDictionary('profile').then(res => { - this.findObject(this.listOption.column, 'pointId').dicData = res.data; + this.findObject(this.listOption.column, 'pointId').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/point/Point.vue b/src/views/point/Point.vue index cfa5e00..fe67aeb 100644 --- a/src/views/point/Point.vue +++ b/src/views/point/Point.vue @@ -318,7 +318,7 @@ }, profile() { dictionaryApi.profileDictionary().then(res => { - this.findObject(this.listOption.column,'profileId').dicData = res.data; + this.findObject(this.listOption.column,'profileId').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/point/PointAttribute.vue b/src/views/point/PointAttribute.vue index 5a53314..2ce1d34 100644 --- a/src/views/point/PointAttribute.vue +++ b/src/views/point/PointAttribute.vue @@ -215,7 +215,7 @@ }, driver() { dictionaryApi.driverDictionary().then(res => { - this.findObject(this.listOption.column,'driverId').dicData = res.data; + this.findObject(this.listOption.column,'driverId').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/point/PointInfo.vue b/src/views/point/PointInfo.vue index 240bdce..5a6b659 100644 --- a/src/views/point/PointInfo.vue +++ b/src/views/point/PointInfo.vue @@ -165,19 +165,19 @@ }, device() { dictionaryApi.deviceDictionary().then(res => { - this.findObject(this.listOption.column,'deviceId').dicData = res.data; + this.findObject(this.listOption.column,'deviceId').dicData = res.data.records; }).catch(() => { }); }, point() { dictionaryApi.pointDictionary('profile').then(res => { - this.findObject(this.listOption.column,'pointId').dicData = res.data; + this.findObject(this.listOption.column,'pointId').dicData = res.data.records; }).catch(() => { }); }, pointAttribute() { dictionaryApi.pointAttributeDictionary().then(res => { - this.findObject(this.listOption.column,'pointAttributeId').dicData = res.data; + this.findObject(this.listOption.column,'pointAttributeId').dicData = res.data.records; }).catch(() => { }); }, diff --git a/src/views/point/PointValue.vue b/src/views/point/PointValue.vue index 07ac310..6fa13a1 100644 --- a/src/views/point/PointValue.vue +++ b/src/views/point/PointValue.vue @@ -152,13 +152,13 @@ }, device() { dictionaryApi.deviceDictionary().then(res => { - this.findObject(this.listOption.column, 'deviceId').dicData = res.data; + this.findObject(this.listOption.column, 'deviceId').dicData = res.data.records; }).catch(() => { }); }, point() { dictionaryApi.pointDictionary('profile').then(res => { - this.findObject(this.listOption.column, 'pointId').dicData = res.data; + this.findObject(this.listOption.column, 'pointId').dicData = res.data.records; }).catch(() => { }); },