申请重新匹配 匹配状态判断
This commit is contained in:
@@ -1048,9 +1048,19 @@ export default {
|
|||||||
// 申请重新匹配
|
// 申请重新匹配
|
||||||
applyforrematch(){
|
applyforrematch(){
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
let content = []
|
let statusList = []
|
||||||
console.log(this.selectedRowKeysRecord)
|
this.selectedRowKeysRecord.forEach(item => {
|
||||||
this.$refs.applyforrematchRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
if(item.status){
|
||||||
|
statusList.push(item.status)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const index = statusList.indexOf('locked');
|
||||||
|
console.log(index)
|
||||||
|
if (index !== -1) {
|
||||||
|
this.$message.warning(this.$t('selectlocked'))
|
||||||
|
} else {
|
||||||
|
this.$refs.applyforrematchRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
@@ -1128,10 +1138,10 @@ export default {
|
|||||||
postAction('/ota/otaManageApplyEO/submit', query).then((res) => {
|
postAction('/ota/otaManageApplyEO/submit', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
if(res.msgList && res.msgList.length == 0){
|
if(res.result.msgList && res.result.msgList.length == 0){
|
||||||
this.getList()
|
this.getList()
|
||||||
}else{
|
}else{
|
||||||
this.selectedRowKeysValue = res.msgList
|
this.selectedRowKeysValue = res.result.msgList
|
||||||
this.visibleoperationFailed = true
|
this.visibleoperationFailed = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user