toast
This commit is contained in:
@@ -51,7 +51,9 @@ module.exports = {
|
|||||||
creationdate: 'Creation Date',
|
creationdate: 'Creation Date',
|
||||||
adduser: 'Add User',
|
adduser: 'Add User',
|
||||||
question1: 'Are you sure you want to reset your password?',
|
question1: 'Are you sure you want to reset your password?',
|
||||||
question2: 'Are you sure you want to delete this user?'
|
question2: 'Are you sure you want to delete this user?',
|
||||||
|
toast1: 'The username cannot be empty',
|
||||||
|
toast2: 'Password cannot be empty'
|
||||||
},
|
},
|
||||||
role: {
|
role: {
|
||||||
rolemanagement: 'Role Management',
|
rolemanagement: 'Role Management',
|
||||||
@@ -59,14 +61,18 @@ module.exports = {
|
|||||||
role: 'Role',
|
role: 'Role',
|
||||||
describe: 'Describe',
|
describe: 'Describe',
|
||||||
creationdate: 'Creation Date',
|
creationdate: 'Creation Date',
|
||||||
addrole: 'Add Role'
|
addrole: 'Add Role',
|
||||||
|
toast1: 'Role name cannot be empty'
|
||||||
},
|
},
|
||||||
system: {
|
system: {
|
||||||
systemmanagement: 'System Management',
|
systemmanagement: 'System Management',
|
||||||
code: 'Code',
|
code: 'Code',
|
||||||
value: 'Value',
|
value: 'Value',
|
||||||
addparameter: 'Add Parameter',
|
addparameter: 'Add Parameter',
|
||||||
question1: 'Are you sure to delete it?'
|
question1: 'Are you sure to delete it?',
|
||||||
|
toast1: 'Encoding cannot be empty',
|
||||||
|
toast2: 'Name cannot be empty',
|
||||||
|
toast3: 'Value cannot be empty'
|
||||||
},
|
},
|
||||||
developer: {
|
developer: {
|
||||||
developeroptions: 'Developer Options'
|
developeroptions: 'Developer Options'
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ module.exports = {
|
|||||||
creationdate: '创建日期',
|
creationdate: '创建日期',
|
||||||
adduser: '添加用户',
|
adduser: '添加用户',
|
||||||
question1: '确定重置密码吗?',
|
question1: '确定重置密码吗?',
|
||||||
question2: '确定删除该用户吗?'
|
question2: '确定删除该用户吗?',
|
||||||
|
toast1: '用户名不能为空',
|
||||||
|
toast2: '密码不能为空'
|
||||||
},
|
},
|
||||||
role: {
|
role: {
|
||||||
rolemanagement: '角色管理',
|
rolemanagement: '角色管理',
|
||||||
@@ -59,14 +61,18 @@ module.exports = {
|
|||||||
role: '角色',
|
role: '角色',
|
||||||
describe: '描述',
|
describe: '描述',
|
||||||
creationdate: '创建日期',
|
creationdate: '创建日期',
|
||||||
addrole: '新增角色'
|
addrole: '新增角色',
|
||||||
|
toast1: '角色名称不能为空'
|
||||||
},
|
},
|
||||||
system: {
|
system: {
|
||||||
systemmanagement: '系统管理',
|
systemmanagement: '系统管理',
|
||||||
code: '编码',
|
code: '编码',
|
||||||
value: '值',
|
value: '值',
|
||||||
addparameter: '添加参数',
|
addparameter: '添加参数',
|
||||||
question1: '确定删除吗?'
|
question1: '确定删除吗?',
|
||||||
|
toast1: '编码不能为空',
|
||||||
|
toast2: '名字不能为空',
|
||||||
|
toast3: '数值不能为空'
|
||||||
},
|
},
|
||||||
developer: {
|
developer: {
|
||||||
developeroptions: '开发者选项'
|
developeroptions: '开发者选项'
|
||||||
|
|||||||
@@ -232,7 +232,8 @@ export default {
|
|||||||
async _sysRoleAdd () {
|
async _sysRoleAdd () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
if (!this.rolename) {
|
if (!this.rolename) {
|
||||||
this.toast('角色名称不能为空')
|
// this.toast('角色名称不能为空')
|
||||||
|
this.toast(this.$t('role.toast1'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -252,7 +253,8 @@ export default {
|
|||||||
async _sysRoleEdit () {
|
async _sysRoleEdit () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
if (!this.rolename) {
|
if (!this.rolename) {
|
||||||
this.toast('角色名称不能为空')
|
// this.toast('角色名称不能为空')
|
||||||
|
this.toast(this.$t('role.toast1'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -221,17 +221,20 @@ export default {
|
|||||||
async _paramAdd () {
|
async _paramAdd () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
if (!this.code) {
|
if (!this.code) {
|
||||||
this.toast('编码不能为空')
|
// this.toast('编码不能为空')
|
||||||
|
this.toast(this.$t('system.toast1'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.toast('名字不能为空')
|
// this.toast('名字不能为空')
|
||||||
|
this.toast(this.$t('system.toast2'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.value) {
|
if (!this.value) {
|
||||||
this.toast('数值不能为空')
|
// this.toast('数值不能为空')
|
||||||
|
this.toast(this.$t('system.toast3'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -251,17 +254,20 @@ export default {
|
|||||||
async _paramEdit () {
|
async _paramEdit () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
if (!this.code) {
|
if (!this.code) {
|
||||||
this.toast('编码不能为空')
|
// this.toast('编码不能为空')
|
||||||
|
this.toast(this.$t('system.toast1'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.toast('名字不能为空')
|
// this.toast('名字不能为空')
|
||||||
|
this.toast(this.$t('system.toast2'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.value) {
|
if (!this.value) {
|
||||||
this.toast('数值不能为空')
|
// this.toast('数值不能为空')
|
||||||
|
this.toast(this.$t('system.toast3'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -288,12 +288,14 @@ export default {
|
|||||||
async _usersAdd () {
|
async _usersAdd () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
if (!this.username) {
|
if (!this.username) {
|
||||||
this.toast('用户名不能为空')
|
// this.toast('用户名不能为空')
|
||||||
|
this.toast(this.$t('user.toast1'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.password) {
|
if (!this.password) {
|
||||||
this.toast('密码不能为空')
|
// this.toast('密码不能为空')
|
||||||
|
this.toast(this.$t('user.toast2'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -319,7 +321,8 @@ export default {
|
|||||||
async _usersEdit () {
|
async _usersEdit () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
if (!this.username) {
|
if (!this.username) {
|
||||||
this.toast('用户名不能为空')
|
// this.toast('用户名不能为空')
|
||||||
|
this.toast(this.$t('user.toast1'))
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
interTime: this.$store.getters.setTime,
|
interTime: this.$store.getters.setTime,
|
||||||
timer: null,
|
timer: null,
|
||||||
show: true,
|
show: false,
|
||||||
result: [],
|
result: [],
|
||||||
obj: {},
|
obj: {},
|
||||||
status: {},
|
status: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user