diff --git a/mobile/src/common/request.js b/mobile/src/common/request.js
index 8dcbbb15..bf2fe5c5 100644
--- a/mobile/src/common/request.js
+++ b/mobile/src/common/request.js
@@ -114,7 +114,8 @@ export const request = (options) => {
timeout: options.timeout || REQUEST_CONFIG.timeout,
responseType: options.responseType || 'text', // 支持responseType参数
header: {
- 'Content-Type': 'application/json',
+ // 吴自龙 注释 get方法,后台不接受json 20250811
+ // 'Content-Type': 'application/json',
authorization: token,
clientid: options.clientId || REQUEST_CONFIG.clientId,
// 注意:在H5环境中,浏览器会自动设置referer,手动设置会报错
diff --git a/mobile/src/pages/bak/taskFinish-bak.vue b/mobile/src/pages/bak/taskFinish-bak.vue
new file mode 100644
index 00000000..6acf2954
--- /dev/null
+++ b/mobile/src/pages/bak/taskFinish-bak.vue
@@ -0,0 +1,706 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 已选择 {{ userSelectCount }} 位申请人
+ 清除
+
+
+
+
+
+
+
+
+ 加载中...
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mobile/src/pages/task/taskFinish.vue b/mobile/src/pages/task/taskFinish.vue
index 6acf2954..1e9f540f 100644
--- a/mobile/src/pages/task/taskFinish.vue
+++ b/mobile/src/pages/task/taskFinish.vue
@@ -1,194 +1,218 @@
-
-
-
diff --git a/mobile/src/pages/task/taskWaiting.vue b/mobile/src/pages/task/taskWaiting.vue
index 1bb82c5d..dd797979 100644
--- a/mobile/src/pages/task/taskWaiting.vue
+++ b/mobile/src/pages/task/taskWaiting.vue
@@ -71,8 +71,8 @@
- 流程编码:
- {{ item.flowCode || '-' }}
+ 流程名称:
+ {{ item.flowName || '-' }}
流程分类:
@@ -332,12 +332,17 @@ export default {
if (isLoadMore) {
this.taskList = [...this.taskList, ...newList];
- // 判断是否还有更多数据
- if (newList.length < this.queryParams.pageSize) {
+ // 判断是否还有更多数据:检查当前页数据量 AND 总数据量
+ if (
+ newList.length < this.queryParams.pageSize ||
+ this.taskList.length >= (res.total || this.total)
+ ) {
this.loadmoreStatus = 'nomore';
} else {
this.loadmoreStatus = 'loadmore';
}
+ // 更新总数量(防止首次加载时total未正确设置)
+ this.total = res.total || this.total || 0;
} else {
this.taskList = newList;
this.total = res.total || 0;
@@ -565,12 +570,17 @@ export default {
if (isLoadMore) {
// 加载更多,追加数据
this.userList = [...this.userList, ...newUsers];
- // 判断是否还有更多数据
- if (newUsers.length < this.userListParams.pageSize) {
+ // 判断是否还有更多数据:检查当前页数据量 AND 总数据量
+ if (
+ newUsers.length < this.userListParams.pageSize ||
+ this.userList.length >= (res.total || this.userListParams.total)
+ ) {
this.userLoadmoreStatus = 'nomore';
} else {
this.userLoadmoreStatus = 'loadmore';
}
+ // 更新总数量(防止首次加载时total未正确设置)
+ this.userListParams.total = res.total || this.userListParams.total || 0;
} else {
// 首次加载或搜索,替换数据
this.userList = newUsers;