批量设置权限判断
This commit is contained in:
@@ -1070,19 +1070,19 @@ export default {
|
|||||||
// 批量设置
|
// 批量设置
|
||||||
BatchSetting(){
|
BatchSetting(){
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
let flag = 1
|
// let flag = 1
|
||||||
this.selectedRowKeysRecord.forEach(item => {
|
// this.selectedRowKeysRecord.forEach(item => {
|
||||||
if(item.disabled == true){
|
// if(item.disabled == true){
|
||||||
flag = 2
|
// flag = 2
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
console.log(flag)
|
// console.log(flag)
|
||||||
if (flag == 2) {
|
// if (flag == 2) {
|
||||||
this.$message.warning(this.$t('datacannotbeedited'))
|
// this.$message.warning(this.$t('datacannotbeedited'))
|
||||||
} else {
|
// } else {
|
||||||
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeysRecord)),this.vehicleTypeCode)
|
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeysRecord)),this.vehicleTypeCode)
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user