toast
This commit is contained in:
@@ -107,7 +107,9 @@ module.exports = {
|
|||||||
poweroff: 'Power Off',
|
poweroff: 'Power Off',
|
||||||
softwarerestart: 'Software Restart',
|
softwarerestart: 'Software Restart',
|
||||||
restart: 'Restart',
|
restart: 'Restart',
|
||||||
skipdetection: 'Skip Detection'
|
skipdetection: 'Skip Detection',
|
||||||
|
toast1: 'Please select coordinates',
|
||||||
|
toast2: 'RC control and Joy control cannot be turned on simultaneously'
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
cancel: 'Cancel',
|
cancel: 'Cancel',
|
||||||
@@ -127,6 +129,7 @@ module.exports = {
|
|||||||
changepassword: 'Change Password',
|
changepassword: 'Change Password',
|
||||||
exit: 'Exit',
|
exit: 'Exit',
|
||||||
oldpassword: 'Old Password',
|
oldpassword: 'Old Password',
|
||||||
newpassword: 'New Password'
|
newpassword: 'New Password',
|
||||||
|
operationfailed: 'Operation failed'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,9 @@ module.exports = {
|
|||||||
poweroff: '关机',
|
poweroff: '关机',
|
||||||
softwarerestart: '软启动',
|
softwarerestart: '软启动',
|
||||||
restart: '重启',
|
restart: '重启',
|
||||||
skipdetection: '跳过检测'
|
skipdetection: '跳过检测',
|
||||||
|
toast1: '请选择坐标',
|
||||||
|
toast2: 'RC控制与Joy控制不能同时开启'
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
cancel: '取消',
|
cancel: '取消',
|
||||||
@@ -127,6 +129,7 @@ module.exports = {
|
|||||||
changepassword: '修改密码',
|
changepassword: '修改密码',
|
||||||
exit: '退出',
|
exit: '退出',
|
||||||
oldpassword: '旧的密码',
|
oldpassword: '旧的密码',
|
||||||
newpassword: '新的密码'
|
newpassword: '新的密码',
|
||||||
|
operationfailed: '操作失败'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<div v-if="active1" class="dialog_wrapper">
|
<div v-if="active1" class="dialog_wrapper">
|
||||||
<div class="dialog dialog_1">
|
<div class="dialog dialog_1">
|
||||||
<div class="dialog_header">
|
<div class="dialog_header">
|
||||||
<span class="dialog_title">{{ pkObj.name }}</span>
|
<span class="dialog_title">{{ $i18n.locale === 'en-us' ? pkObj.en_name : pkObj.zh_name }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog_body dialog_body_1">
|
<div class="dialog_body dialog_body_1">
|
||||||
<div class="tree_wrapper">
|
<div class="tree_wrapper">
|
||||||
@@ -152,10 +152,10 @@ export default {
|
|||||||
type (val) {
|
type (val) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case '1':
|
case '1':
|
||||||
this.title = '添加角色'
|
this.title = this.$i18n.locale === 'en-us' ? 'Add Role' : '添加角色'
|
||||||
break
|
break
|
||||||
case '2':
|
case '2':
|
||||||
this.title = '修改角色'
|
this.title = this.$i18n.locale === 'en-us' ? 'Modify Role' : '修改角色'
|
||||||
break
|
break
|
||||||
case '3':
|
case '3':
|
||||||
this.title = ''
|
this.title = ''
|
||||||
|
|||||||
@@ -130,10 +130,10 @@ export default {
|
|||||||
type (val) {
|
type (val) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case '1':
|
case '1':
|
||||||
this.title = '添加参数'
|
this.title = this.$i18n.locale === 'en-us' ? 'Add Parameter' : '添加参数'
|
||||||
break
|
break
|
||||||
case '2':
|
case '2':
|
||||||
this.title = '修改参数'
|
this.title = this.$i18n.locale === 'en-us' ? 'Modify Parameter' : '修改参数'
|
||||||
break
|
break
|
||||||
case '3':
|
case '3':
|
||||||
this.title = ''
|
this.title = ''
|
||||||
|
|||||||
@@ -177,10 +177,10 @@ export default {
|
|||||||
type (val) {
|
type (val) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case '1':
|
case '1':
|
||||||
this.title = '添加用户'
|
this.title = this.$i18n.locale === 'en-us' ? 'Add User' : '添加用户'
|
||||||
break
|
break
|
||||||
case '2':
|
case '2':
|
||||||
this.title = '修改用户'
|
this.title = this.$i18n.locale === 'en-us' ? 'Modify User' : '修改用户'
|
||||||
break
|
break
|
||||||
case '3':
|
case '3':
|
||||||
this.title = ''
|
this.title = ''
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
interTime: this.$store.getters.setTime,
|
interTime: this.$store.getters.setTime,
|
||||||
timer: null,
|
timer: null,
|
||||||
show: false,
|
show: true,
|
||||||
result: [],
|
result: [],
|
||||||
obj: {},
|
obj: {},
|
||||||
status: {},
|
status: {},
|
||||||
@@ -157,12 +157,14 @@ export default {
|
|||||||
switchDown (type, bool) {
|
switchDown (type, bool) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (type === '5' && this.switch4 === '0' && this.switch5 === '1') {
|
if (type === '5' && this.switch4 === '0' && this.switch5 === '1') {
|
||||||
this.toast('RC控制与Joy控制不能同时开启')
|
// this.toast('RC控制与Joy控制不能同时开启')
|
||||||
|
this.toast(this.$t('vehiclecontrol.toast2'))
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (type === '6' && this.switch4 === '1' && this.switch5 === '0') {
|
if (type === '6' && this.switch4 === '1' && this.switch5 === '0') {
|
||||||
this.toast('RC控制与Joy控制不能同时开启')
|
// this.toast('RC控制与Joy控制不能同时开启')
|
||||||
|
this.toast(this.$t('vehiclecontrol.toast2'))
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -197,7 +199,7 @@ export default {
|
|||||||
this.refresh()
|
this.refresh()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.toast('操作失败')
|
this.toast(this.$t('common.operationfailed'))
|
||||||
this.refresh()
|
this.refresh()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -222,7 +224,8 @@ export default {
|
|||||||
async _restCoordinate () {
|
async _restCoordinate () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (JSON.stringify(this.obj) === '{}') {
|
if (JSON.stringify(this.obj) === '{}') {
|
||||||
this.toast('请选择坐标')
|
// this.toast('请选择坐标')
|
||||||
|
this.toast(this.$t('vehiclecontrol.toast1'))
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user