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 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.', shutrestartcancel: 'The operation of shutting down and restarting has been cancelled.',
Systemsettings: 'System settings', Systemsettings: 'System settings',
Control: 'Control', Control: 'Control',
Workshopstatus: 'Workshop status', Obstacleforklifts: 'Obstacle avoidance between forklifts',
Syncsuccessfully: 'Sync successfully' Syncsuccessfully: 'Sync successfully'
} }

View File

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

View File

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

View File

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

View File

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

View File

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