diff --git a/src/config/getData.js b/src/config/getData.js index 779c64a..975b693 100644 --- a/src/config/getData.js +++ b/src/config/getData.js @@ -49,4 +49,8 @@ export const synchronizedMap = () => post('mapInfo/synchronizedMap', {}) // 错误 export const queryErrorDataByCode = (code) => post('anomalyInfo/queryErrorDataByCode?code=' + code, {}) // 叉间状态 -export const backIoStatus = (type) => post('vehicle/setForkLegsObstacles?backIoStatus=' + type, {}) \ No newline at end of file +export const backIoStatus = (type) => post('vehicle/setForkLegsObstacles?backIoStatus=' + type, {}) +// 获取当前配置的休息点 +export const getReturnStation = () => get('station/getReturnStation', {}) +// 配置车辆返回点 +export const updateReturnStation = (id) => post('station/updateReturnStation?station_id=' + id, {}) \ No newline at end of file diff --git a/src/config/mork.js b/src/config/mork.js index 656a7c9..1c6c576 100644 --- a/src/config/mork.js +++ b/src/config/mork.js @@ -3,20 +3,20 @@ export const queryStation = () => { let res = { message: 'ok', data: [ - {station_code: 'B1', station_name: 'Starting position on the first floor Starting position on the first floor', x: '10', Y: '10', angle: '90'}, - {station_code: 'B2', station_name: '一楼起点位置一楼起点位置一楼起点位置', x: '10', Y: '10', angle: '90'}, - {station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'}, - {station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'}, - {station_code: 'B5', station_name: 'B5', x: '10', Y: '10', angle: '90'}, - {station_code: 'B6', station_name: 'B6', x: '10', Y: '10', angle: '90'}, - {station_code: 'B7', station_name: 'B7', x: '10', Y: '10', angle: '90'}, - {station_code: 'B8', station_name: 'B8', x: '10', Y: '10', angle: '90'}, - {station_code: 'B9', station_name: 'B9', x: '10', Y: '10', angle: '90'}, - {station_code: 'B10', station_name: 'B10', x: '10', Y: '10', angle: '90'}, - {station_code: 'B11', station_name: 'B11', x: '10', Y: '10', angle: '90'}, - {station_code: 'B12', station_name: 'B12', x: '10', Y: '10', angle: '90'}, - {station_code: 'B13', station_name: 'B13', x: '10', Y: '10', angle: '90'}, - {station_code: 'B14', station_name: 'B14', x: '10', Y: '10', angle: '90'} + {station_id: 'B1', station_code: 'B1', station_name: 'Starting position on the first floor Starting position on the first floor', x: '10', Y: '10', angle: '90'}, + {station_id: 'B2', station_code: 'B2', station_name: '一楼起点位置一楼起点位置一楼起点位置', x: '10', Y: '10', angle: '90'}, + {station_id: 'B3', station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'}, + {station_id: 'B4', station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'}, + {station_id: 'B5', station_code: 'B5', station_name: 'B5', x: '10', Y: '10', angle: '90'}, + {station_id: 'B6', station_code: 'B6', station_name: 'B6', x: '10', Y: '10', angle: '90'}, + {station_id: 'B7', station_code: 'B7', station_name: 'B7', x: '10', Y: '10', angle: '90'}, + {station_id: 'B8', station_code: 'B8', station_name: 'B8', x: '10', Y: '10', angle: '90'}, + {station_id: 'B9', station_code: 'B9', station_name: 'B9', x: '10', Y: '10', angle: '90'}, + {station_id: 'B10', station_code: 'B10', station_name: 'B10', x: '10', Y: '10', angle: '90'}, + {station_id: 'B11', station_code: 'B11', station_name: 'B11', x: '10', Y: '10', angle: '90'}, + {station_id: 'B12', station_code: 'B12', station_name: 'B12', x: '10', Y: '10', angle: '90'}, + {station_id: 'B13', station_code: 'B13', station_name: 'B13', x: '10', Y: '10', angle: '90'}, + {station_id: 'B14', station_code: 'B14', station_name: 'B14', x: '10', Y: '10', angle: '90'} ] } return res @@ -199,4 +199,8 @@ export const setStation = (sn, code) => { message: 'ok' } return res +} +export const getReturnStation = () => { + let res = {station_id: 'B1',station_code:"111",station_name:"1111"} + return res } \ No newline at end of file diff --git a/src/i18n/langs/en.js b/src/i18n/langs/en.js index 08124d3..e646aa8 100644 --- a/src/i18n/langs/en.js +++ b/src/i18n/langs/en.js @@ -119,5 +119,6 @@ module.exports = { no: 'No', Dispatchnotconnected: 'Dispatch is not connected', Vehiclenotconnected: 'Vehicle body is not connected', - Dispatchvehiclenotconnected: 'Dispatch and the vehicle body are not connected.' + Dispatchvehiclenotconnected: 'Dispatch and the vehicle body are not connected.', + Vehiclereturnpoint: 'Vehicle return point' } diff --git a/src/i18n/langs/zh.js b/src/i18n/langs/zh.js index e06bfec..9c8c53f 100644 --- a/src/i18n/langs/zh.js +++ b/src/i18n/langs/zh.js @@ -119,5 +119,6 @@ module.exports = { no: '否', Dispatchnotconnected: '调度未连接', Vehiclenotconnected: '车辆本体未连接', - Dispatchvehiclenotconnected: '调度和车辆本体未连接' + Dispatchvehiclenotconnected: '调度和车辆本体未连接', + Vehiclereturnpoint: '车辆返回点' } diff --git a/src/pages/shells/config-modal.vue b/src/pages/shells/config-modal.vue index 5d0ffd9..1206b9c 100644 --- a/src/pages/shells/config-modal.vue +++ b/src/pages/shells/config-modal.vue @@ -57,6 +57,22 @@ +
{{$t('Vehiclereturnpoint')}}
+ + + + + + + + + {{$t('Save')}} + + @@ -64,7 +80,7 @@ diff --git a/src/style/common.styl b/src/style/common.styl index cfb1ae9..c575714 100644 --- a/src/style/common.styl +++ b/src/style/common.styl @@ -158,6 +158,10 @@ color #fff .el-select-dropdown__item.hover, .el-select-dropdown__item:hover background-color #2D58B8 +.el-select:hover .el-input__inner + border-color: #409EFF; +.el-select-dropdown__empty + font-size .2rem .el-table, .el-table tr background-color transparent .el-table th