Compare commits
No commits in common. "175249cba1e78a5f8e727fd8ad966f98edd0973e" and "927198a4a9529e86b1fa85d78af481e3c7396762" have entirely different histories.
175249cba1
...
927198a4a9
|
|
@ -218,14 +218,14 @@
|
|||
|
||||
let pizhun=[];
|
||||
let shenhe=[];
|
||||
debugger
|
||||
|
||||
for (var i = 0; i < selectedValues.length; i++) {
|
||||
const item = selectedValues[i]; // 缓存当前元素,代码更简洁
|
||||
console.log('当前遍历元素:', item);
|
||||
// 核心:判断字符串是否包含「新购任务审核」,includes返回布尔值
|
||||
if (item.includes('新购任务审核') || item.includes('新购检验审核')) {
|
||||
if (item.includes('新购任务审核')) {
|
||||
shenhe.push(item); // 符合条件,推入xingo
|
||||
} else if (item.includes('新购任务批准') || item.includes('新购检验批准')){
|
||||
} else if (item.includes('新购任务批准')){
|
||||
pizhun.push(item); // 不符合,推入shenhe
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue