n20-common-lib 2.22.12 → 2.22.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -106,23 +106,11 @@ export default {
|
|
|
106
106
|
this.selectCheck = this.selectSprList?.showNextNodeAssignee || false
|
|
107
107
|
},
|
|
108
108
|
personChange(list) {
|
|
109
|
-
const prevList = this.personList || []
|
|
110
109
|
const { nextNodeAssigneeMinnum: min = 0, nextNodeAssigneeMaxnum: max = 0 } = this.selectSprList || {}
|
|
111
110
|
|
|
112
111
|
// 校验最大值
|
|
113
112
|
if (max && list.length > max) {
|
|
114
|
-
|
|
115
|
-
this.$message.warning(`审批人数需小于 ${max} 个`)
|
|
116
|
-
}
|
|
117
|
-
// 恢复为上一次合法选择
|
|
118
|
-
this.$nextTick(() => {
|
|
119
|
-
if (this.$refs.personTable) {
|
|
120
|
-
this.$refs.personTable.clearSelection()
|
|
121
|
-
prevList.forEach((row) => {
|
|
122
|
-
this.$refs.personTable.toggleRowSelection(row, true)
|
|
123
|
-
})
|
|
124
|
-
}
|
|
125
|
-
})
|
|
113
|
+
this.$message.warning(`审批人数需小于或等于 ${max} 个`)
|
|
126
114
|
return
|
|
127
115
|
}
|
|
128
116
|
|
|
@@ -131,9 +119,8 @@ export default {
|
|
|
131
119
|
|
|
132
120
|
// 校验最小值(仅提示,不强制拦截)
|
|
133
121
|
if (min && list.length < min) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
122
|
+
this.$message.info(`审批人数需大于或等于 ${min} 个`)
|
|
123
|
+
return
|
|
137
124
|
}
|
|
138
125
|
},
|
|
139
126
|
closeFn(item) {
|