This commit is contained in:
2025-09-01 15:59:37 +08:00
parent 35dd9b33a3
commit 1056ac0c93
7 changed files with 18 additions and 10 deletions

View File

@@ -48,4 +48,4 @@ export const synchronizedMap = () => post('mapInfo/synchronizedMap', {})
// 错误
export const queryErrorDataByCode = (code) => post('anomalyInfo/queryErrorDataByCode?code=' + code, {})
// 叉间状态
export const backIoStatus = (type) => post('vehicle/backIoStatus?backIoStatus=' + type, {})
export const backIoStatus = (type) => post('vehicle/setForkLegsObstacles?backIoStatus=' + type, {})

View File

@@ -109,6 +109,6 @@ module.exports = {
shutrestartcancel: 'The operation of shutting down and restarting has been cancelled.',
Systemsettings: 'System settings',
Control: 'Control',
Workshopstatus: 'Workshop status',
Obstacleforklifts: 'Obstacle avoidance between forklifts',
Syncsuccessfully: 'Sync successfully'
}

View File

@@ -109,6 +109,6 @@ module.exports = {
shutrestartcancel: '已取消关机重启',
Systemsettings: '系统设置',
Control: '控制',
Workshopstatus: '叉间状态',
Obstacleforklifts: '叉间避障',
Syncsuccessfully: '同步成功'
}

View File

@@ -18,7 +18,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
width="55%">
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" :label-width="$i18n.locale === 'en-us' ? '' : '1.1rem'" size="mini">
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" :label-width="$i18n.locale === 'en-us' ? '' : '1.1rem'" size="mini" @submit.native.prevent>
<el-form-item :label="$t('StationName')" prop="stationName">
<el-input v-model="dataForm.stationName" id="stationName"></el-input>
</el-form-item>
@@ -257,6 +257,13 @@ export default {
this.dataForm.stationCode = 'B' + (this.keyPoints.length + 1)
const na = this.$i18n.locale === 'en-us' ? 'Work point ' : '工作点'
this.dataForm.stationName = `${na}${this.keyPoints.length + 1}`
this.$nextTick(() => {
const input = document.getElementById('stationName');
if (input) {
input.focus();
}
})
},
// 打点->保存
stationConfirm () {

View File

@@ -51,8 +51,8 @@
</el-row>
<div class="contorl_title">{{$t('Control')}}</div>
<el-row type="flex" class="contorl_box">
<p class="contorl_title_2">{{$t('Workshopstatus')}}</p>
<div class="switch_button" :class="{'switch_button_on': backIoStatus}">
<p class="contorl_title_2">{{$t('Obstacleforklifts')}}</p>
<div class="switch_button" :class="{'switch_button_on': backIoStatus === '1'}">
<div class="switch_on_off"></div>
<input type="checkbox" @click="_backIoStatus">
</div>

View File

@@ -106,7 +106,8 @@ export default {
// "zh_error_description": null,
// "en_error_description": null,
// "error_type": 1}
// ]
// ],
// forkTipObstacles: '1'
// },
taskSeq: [],
currentStep: null,

View File

@@ -4,7 +4,7 @@ const state = {
carPosition: {x: '', y: '', angle: ''},
isTop: false,
errorData: [],
backIoStatus: false
backIoStatus: '0'
}
const getters = {
@@ -34,8 +34,8 @@ const mutations = {
if (Object.prototype.hasOwnProperty.call(data, 'errorData')) {
state.errorData = data.errorData
}
if (Object.prototype.hasOwnProperty.call(data, 'back_io_status')) {
state.backIoStatus = data.back_io_status
if (Object.prototype.hasOwnProperty.call(data, 'forkTipObstacles')) {
state.backIoStatus = data.forkTipObstacles
}
}
}