修改切換角色
This commit is contained in:
@@ -254,7 +254,7 @@
|
||||
_this.selectedRowKeys = []
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -346,7 +346,7 @@
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1316,9 +1316,29 @@
|
||||
|
||||
updateStatusBatch(num, selectedRowKeys) {
|
||||
let _this = this
|
||||
let lawsInventoryList = []
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
for (let j = 0; j < selectedRowKeys.length; j++) {
|
||||
if (this.dataSource[i].id == selectedRowKeys[j]) {
|
||||
let roleCode
|
||||
if (this.dataSource[i].regulationOwnerId == this.userInfo().id &&
|
||||
this.dataSource[i].homologationEngineerId == this.userInfo().id) {
|
||||
roleCode = 4
|
||||
} else if (this.dataSource[i].regulationOwnerId == this.userInfo().id) {
|
||||
roleCode = 1
|
||||
} else if (this.dataSource[i].homologationEngineerId == this.userInfo().id) {
|
||||
roleCode = 2
|
||||
}
|
||||
lawsInventoryList.push({
|
||||
id: this.dataSource[i].id,
|
||||
roleCode: roleCode
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
let query = {
|
||||
operatorType: 1,
|
||||
ids: selectedRowKeys.join(','),
|
||||
lawsInventoryList: lawsInventoryList,
|
||||
projectLibraryId: _this.$route.query.id,
|
||||
operatorResult: num
|
||||
}
|
||||
@@ -1685,9 +1705,11 @@
|
||||
.box-input .ant-select-selection__rendered {
|
||||
line-height: 38px;
|
||||
}
|
||||
.popconfirm{
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.popconfirm {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.popconfirm .ant-popover-buttons {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user