修改
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user