update $message.error全局改成$message.warning
This commit is contained in:
@@ -384,7 +384,7 @@ export default {
|
||||
},
|
||||
handleAdd2: function () {
|
||||
if (!this.currentRoleId) {
|
||||
this.$message.error(this.$t('roleManage.pleaseSelectARole'))
|
||||
this.$message.warning(this.$t('roleManage.pleaseSelectARole'))
|
||||
} else {
|
||||
this.$refs.modalForm2.roleDisabled = true
|
||||
this.$refs.modalForm2.title = this.$t('newlyAdded')
|
||||
@@ -397,7 +397,7 @@ export default {
|
||||
},
|
||||
loadData2 (arg) {
|
||||
if (!this.url.list2) {
|
||||
this.$message.error('请设置url.list2属性!')
|
||||
this.$message.warning('请设置url.list2属性!')
|
||||
return
|
||||
}
|
||||
// 加载数据 若传入参数1则加载第一页的内容
|
||||
@@ -423,7 +423,7 @@ export default {
|
||||
},
|
||||
handleDelete2: function (id) {
|
||||
if (!this.url.delete2) {
|
||||
this.$message.error('请设置url.delete2属性!')
|
||||
this.$message.warning('请设置url.delete2属性!')
|
||||
return
|
||||
}
|
||||
const that = this
|
||||
@@ -438,7 +438,7 @@ export default {
|
||||
},
|
||||
batchDel2: function () {
|
||||
if (!this.url.deleteBatch2) {
|
||||
this.$message.error('请设置url.deleteBatch2属性!')
|
||||
this.$message.warning('请设置url.deleteBatch2属性!')
|
||||
return
|
||||
}
|
||||
if (this.selectedRowKeys2.length <= 0) {
|
||||
@@ -487,7 +487,7 @@ export default {
|
||||
|
||||
handleAddUserRole () {
|
||||
if (!this.currentRoleId) {
|
||||
this.$message.error(this.$t('roleManage.pleaseSelectARole'))
|
||||
this.$message.warning(this.$t('roleManage.pleaseSelectARole'))
|
||||
} else {
|
||||
this.$refs.selectUserModal.visible = true
|
||||
this.$refs.selectUserModal.searchQuery()
|
||||
@@ -503,7 +503,7 @@ export default {
|
||||
},
|
||||
/* handleEdit: function(record) {
|
||||
if (this.currentRoleId == '') {
|
||||
this.$message.error('请选择一个角色!')
|
||||
this.$message.warning('请选择一个角色!')
|
||||
} else {
|
||||
this.$refs.modalForm.edit(record)
|
||||
this.$refs.modalForm.title = '编辑'
|
||||
|
||||
Reference in New Issue
Block a user