|
|
@@ -339,8 +339,15 @@ data class Node(
|
|
|
enabled = enabled
|
|
|
)
|
|
|
if (isLockerTemp) {
|
|
|
- val locker = nodeUserList?.find { it.type == "jtlocker" }
|
|
|
- val group = nodeUserList?.filter { it.type == "jtcolocker" } ?: emptyList()
|
|
|
+ var locker = nodeUserList?.find { it.type == "jtlocker" }
|
|
|
+ var group = nodeUserList?.filter { it.type == "jtcolocker" } ?: emptyList()
|
|
|
+ // 如果是解除隔离,且当前解锁和工作人列表为空,需要默认配置
|
|
|
+ if (type == "releaseIsolation" && nodeUserList.isNullOrEmpty()) {
|
|
|
+ val bindNode = nodes.find { it.node?.uuid == isolationNodeUuid && !isolationNodeUuid.isNullOrEmpty() }
|
|
|
+ val nodeUserList = bindNode?.node?.nodeUserList
|
|
|
+ locker = nodeUserList?.find { it.type == "jtlocker" }
|
|
|
+ group = nodeUserList?.filter { it.type == "jtcolocker" } ?: emptyList()
|
|
|
+ }
|
|
|
// 上锁人
|
|
|
list += FormField(
|
|
|
id.toString(),
|