From 980b9ef92fd9ea8f5402708eb4dd0c7e8a05bede Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期四, 23 十月 2025 16:59:29 +0800
Subject: [PATCH] 修改问题
---
HTML/views/BaseSetting/MaterialsForm.html | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/HTML/views/BaseSetting/MaterialsForm.html b/HTML/views/BaseSetting/MaterialsForm.html
index 1ce4191..30c44e7 100644
--- a/HTML/views/BaseSetting/MaterialsForm.html
+++ b/HTML/views/BaseSetting/MaterialsForm.html
@@ -300,20 +300,21 @@
var sel2 = false;
function getPackagList(){
var packagList=[];
- for (let index = 1; index < 5; index++) {
- //鑾峰彇鍖呰涓嬫媺鑿滃崟 PackagNo
- synData(IP + "/Basis/GetPackagList?page="+index, {}, 'get', function (res) {
+
+ let shouldContinue = true;
+ let index = 1;
+ while (shouldContinue) {
+ synData(IP + "/Basis/GetPackagList?page="+index, {}, 'get', function (res, status, error) {
if (res.code == 0) {
if(res.data.length>0){
- packagList.push(res.data)
+ packagList.push(res.data);
+ index++;
}else{
- return;
- }
-
+ shouldContinue=false;
+ }
}else {
- return;
+ shouldContinue=false;
}
-
});
}
if(packagList.length>0){
--
Gitblit v1.8.0