From 2833f7d28b5f9764fc6ecca76c47dd64f93b00bb Mon Sep 17 00:00:00 2001
From: liyuanchao <438964165@qq.com>
Date: Thu, 21 Aug 2025 14:25:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/config.js | 10 +-
common/http.api.js | 2 +
pages.json | 2 +-
pages/sys/user/myRepair/addRepair.vue | 657 ++++++------
pages/sys/user/myRepair/myRepair.vue | 955 +++++++++---------
.../workbench/earlyWarning/earlyWarning.vue | 84 +-
pages/sys/workbench/order/order.vue | 508 +++++-----
pages/sys/workbench/order/orderDetail.vue | 8 +-
8 files changed, 1127 insertions(+), 1099 deletions(-)
diff --git a/common/config.js b/common/config.js
index b93d548..0b3b001 100644
--- a/common/config.js
+++ b/common/config.js
@@ -24,7 +24,11 @@ const config = {
}
// 设置后台接口服务的基础地址
-config.baseUrl = 'http://tc.cqsznc.com:7080/api';
+// config.baseUrl = 'http://tc.cqsznc.com:7080/api';
+
+//正式
// config.baseUrl = 'http://183.230.235.66:11010/api';
-// config.baseUrl = 'http://58cbd58.r28.cpolar.top';
-export default config;
\ No newline at end of file
+
+
+config.baseUrl = 'http://818aa9b.r28.cpolar.top';
+export default config;
diff --git a/common/http.api.js b/common/http.api.js
index 9e999a8..7207a7a 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -39,6 +39,8 @@ const install = (Vue, vm) => {
//获取处理人
getHandler:(params = {})=>vm.$u.get(config.adminPath+'/property/enum-fetcher/enum-values/getServiceWorkOrdersHandler',params),
+ getHandler2:(params = {})=>vm.$u.get(config.adminPath+'/property/enum-fetcher/enum-values/getAccount',params),
+
//会议列表
getMeetings:(params = {})=>vm.$u.get(config.adminPath+'/property/roomBooking/list',params),
diff --git a/pages.json b/pages.json
index f8fc010..8d9d26f 100644
--- a/pages.json
+++ b/pages.json
@@ -349,7 +349,7 @@
{
"path": "pages/sys/user/myRepair/addRepair",
"style": {
- "navigationBarTitleText": "新增"
+ "navigationBarTitleText": "新增报事报修"
}
},
{
diff --git a/pages/sys/user/myRepair/addRepair.vue b/pages/sys/user/myRepair/addRepair.vue
index ce1356a..90a683d 100644
--- a/pages/sys/user/myRepair/addRepair.vue
+++ b/pages/sys/user/myRepair/addRepair.vue
@@ -1,330 +1,337 @@
-
-
-
-
-
-
-
- 详细地址
-
-
-
-
-
-
- 报事报修
-
- {{ selectedType }}
-
-
- 问题详情 (非必填)
-
-
-
-
-
-
- 上传照片 (非必填,最多三张)
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/sys/user/myRepair/myRepair.vue b/pages/sys/user/myRepair/myRepair.vue
index 1793d3a..75a696b 100644
--- a/pages/sys/user/myRepair/myRepair.vue
+++ b/pages/sys/user/myRepair/myRepair.vue
@@ -1,489 +1,466 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 工单号:{{ item.orderNo }}
-
- {{ getStatusLabel(item.status) }}
-
-
-
- 建立时间:{{ item.createTime }}
- 报事内容:{{ item.typeName }}
- 报事位置:{{ item.location }}
- 服务评价
-
-
-
-
-
-
-
-
-
- 报事详情
-
-
-
-
-
-
-
-
-
-
-
- {{ step }}
-
-
-
- 建立时间:{{ detailItem.createTime }}
- 报事内容:{{ detailItem.typeName }}
- 报事位置:{{ detailItem.location }}
-
-
-
-
-
-
-
-
-
-
-/* 让服务评价按钮靠右 */
-.eval-btn-right {
-margin-left: auto;
-display: block;
-width: fit-content;
-}
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 工单号:{{ item.orderNo }}
+
+ {{ getStatusLabel(item.status) }}
+
+
+
+ 建立时间:{{ item.createTime }}
+ 报事内容:{{ item.typeName }}
+ 报事位置:{{ item.location }}
+ 服务评价
+
+
+
+
+ 加载中...
+
+
+ 没有更多数据了
+
+
+
+
+
+
+
+
+
+
+ 报事详情
+
+
+
+
+
+
+
+
+
+
+
+ {{ step }}
+
+
+ 建立时间:{{ detailItem.createTime }}
+ 报事内容:{{ detailItem.typeName }}
+ 报事位置:{{ detailItem.location }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/sys/workbench/earlyWarning/earlyWarning.vue b/pages/sys/workbench/earlyWarning/earlyWarning.vue
index 1993e2e..8de2506 100644
--- a/pages/sys/workbench/earlyWarning/earlyWarning.vue
+++ b/pages/sys/workbench/earlyWarning/earlyWarning.vue
@@ -1,10 +1,12 @@
+
预警处理
预警统计
+
-
+
{{item.smallTypeName}}
-
- {{item.levelName}}
-
+ {{item.levelName}}
预警内容:{{ item.description }}
@@ -32,6 +34,15 @@
去处理
+
+
+
+ 加载中...
+
+
+ 没有更多数据了
+
+
@@ -42,56 +53,75 @@
return {
tabs: ["待处理", "全部"],
activeTab: 0,
+
tabData: [
[],
[]
- ],
- tabLoaded: [false, false],
+ ], // 每个 tab 的数据
+ pageNum: [1, 1], // 每个 tab 当前页码
+ pageSize: 10,
+ noMore: [false, false], // 每个 tab 是否没有更多数据
+ tabLoaded: [false, false], // tab 是否加载过
loading: false,
- lastScrollTop: 0,
-
+ refresherTriggered: false
};
},
computed: {
list() {
return this.tabData[this.activeTab];
- },
- },
- onShow() {
- uni.$once('refreshData',s=> {
- this.loadTabData(this.activeTab);
- });
+ }
},
created() {
- this.loadTabData(this.activeTab);
+ this.onRefresh()
},
methods: {
goBack() {
uni.navigateBack();
},
-
+ // 切换 tab
async changeTab(idx) {
this.activeTab = idx;
if (!this.tabLoaded[idx]) {
- await this.loadTabData(idx);
+ this.onRefresh()
}
},
+ // 下拉刷新
+ async onRefresh() {
+ this.refresherTriggered = true;
+ this.pageNum[this.activeTab] = 1;
+ this.noMore[this.activeTab] = false;
+ this.tabData[this.activeTab] = [];
+ await this.loadTabData(this.activeTab);
+ this.refresherTriggered = false;
+ },
+ // 滚动加载更多
+ async loadMore() {
+ if (this.loading || this.noMore[this.activeTab]) return;
+ this.pageNum[this.activeTab]++;
+ await this.loadTabData(this.activeTab);
+ },
+ // 请求数据
async loadTabData(idx) {
this.loading = true;
- let params = {};
- if (idx == 0) {
- params = {
- 'states': [20, 30, 31, 32]
- }
+ let params = {
+ pageNum: this.pageNum[idx],
+ pageSize: this.pageSize
+ };
+ // 待处理
+ if (idx === 0) {
+ params.states = [20, 30, 31, 32];
}
let res = await this.$u.api.getWarns(params);
if (res.code == "200") {
- this.$set(this.tabData, idx, res.rows);
+ let rows = res.rows || [];
+ if (rows.length < this.pageSize) {
+ this.noMore[idx] = true;
+ }
+ this.$set(this.tabData, idx, [...this.tabData[idx], ...rows]);
}
- this.$set(this.tabLoaded, idx, true);
+ this.tabLoaded[idx] = true;
this.loading = false;
},
-
goDetail(item) {
const itemStr = encodeURIComponent(JSON.stringify(item));
uni.navigateTo({
@@ -101,7 +131,7 @@
goDetail2(item) {
const itemStr = encodeURIComponent(JSON.stringify(item));
uni.navigateTo({
- url: "/pages/sys/workbench/earlyWarning/warnDetail?item=" + itemStr+"&pageType=detail",
+ url: "/pages/sys/workbench/earlyWarning/warnDetail?item=" + itemStr + "&pageType=detail",
});
},
goStatistics() {
@@ -109,7 +139,7 @@
url: "/pages/sys/workbench/earlyWarning/warnStatistics"
});
}
- },
+ }
};
diff --git a/pages/sys/workbench/order/order.vue b/pages/sys/workbench/order/order.vue
index 04790b0..40dc294 100644
--- a/pages/sys/workbench/order/order.vue
+++ b/pages/sys/workbench/order/order.vue
@@ -1,253 +1,261 @@
-
-
-
-
-
- {{ !selectedFilters.type ||selectedFilters.type.orderTypeName === '全部' ? '工单类型' : selectedFilters.type.orderTypeName }}
-
-
-
-
-
- {{ item.orderTypeName }}
-
-
-
-
-
-
-
- {{ !selectedFilters.status || selectedFilters.status.name === '全部' ? '工单状态' : selectedFilters.status.name }}
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
- {{ !selectedFilters.handler || selectedFilters.handler.name === '全部' ? '处理人' : selectedFilters.handler.name }}
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
- {{ tab }}
-
-
-
-
-
-
-
-
- 工单号:{{ item.orderNo }}
-
- {{ getStatusLabel(item.status) }}
-
-
-
- 工单名称:{{ item.orderName }}
- 工单类型:{{ item.typeName }}
- 创建时间:{{ item.createTime }}
-
- 有 效 期:{{ item.createTime }}-{{ item.planCompleTime }}
-
-
- 服务评价
-
-
-
-
-
-
-
-
-
-