From c8887a3b6677e23338d04895fab816484117bd9b Mon Sep 17 00:00:00 2001
From: wyw <571921741@qq.com>
Date: Wed, 23 Apr 2025 14:49:46 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA=E8=AF=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/apply/viewCheck.vue | 9 ++++-----
pages/apply/viewEvaluation.vue | 5 ++++-
pages/apply/viewRisk.vue | 5 ++++-
pages/apply/viewVideo.vue | 32 ++++++++++++++++++--------------
4 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/pages/apply/viewCheck.vue b/pages/apply/viewCheck.vue
index 21a8a3a..eb90e25 100644
--- a/pages/apply/viewCheck.vue
+++ b/pages/apply/viewCheck.vue
@@ -8,7 +8,7 @@
隐患信息
-
@@ -33,10 +33,6 @@
v-for="(item, index) in model.ListShow">
-
-
-
@@ -168,6 +164,9 @@
} else {
this.model.ListShow = res.Data
}
+
+ if (res.TotalCount == 0)
+ uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: ''
diff --git a/pages/apply/viewEvaluation.vue b/pages/apply/viewEvaluation.vue
index 3e4f8e0..98bd4c8 100644
--- a/pages/apply/viewEvaluation.vue
+++ b/pages/apply/viewEvaluation.vue
@@ -8,7 +8,7 @@
隐患信息
-
@@ -155,6 +155,9 @@
} else {
this.model.ListShow = res.Data
}
+
+ if (res.TotalCount == 0)
+ uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: '',
diff --git a/pages/apply/viewRisk.vue b/pages/apply/viewRisk.vue
index d95b9fd..d1ec821 100644
--- a/pages/apply/viewRisk.vue
+++ b/pages/apply/viewRisk.vue
@@ -8,7 +8,7 @@
隐患信息
-
@@ -162,6 +162,9 @@
} else {
this.model.ListShow = res.Data
}
+
+ if (res.TotalCount == 0)
+ uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: '',
diff --git a/pages/apply/viewVideo.vue b/pages/apply/viewVideo.vue
index 322e45c..79c4a98 100644
--- a/pages/apply/viewVideo.vue
+++ b/pages/apply/viewVideo.vue
@@ -3,12 +3,12 @@
-
+
隐患信息
-
@@ -29,14 +29,15 @@
-
+
-
+
@@ -77,9 +78,9 @@
data() {
return {
OrgId: '',
- pageIndex:0,
- pageSize:20,
- total:0,
+ pageIndex: 0,
+ pageSize: 20,
+ total: 0,
model: {
RISK_AREA_NAME: '请选择区域',
RISK_AREA_ID: '',
@@ -125,7 +126,7 @@
this.OrgId = option.OrgId // 'B043B28B-BBC3-C452-6052-4FBA1457ABFA'
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID != '') {
// this.PagedCheckMain()//扫二维码 默认赋值
-
+
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
json.IgnoreDataRule = true
json.Limit = 2
@@ -147,17 +148,20 @@
const json = initFilter(this.OrgId, this.model.RISK_AREA_ID, "CREATE_TIME", 1, this.pageIndex, ((
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
json.IgnoreDataRule = true
- json.Limit = this.pageSize
- json.SelectField = ["CHECKCONTENT", "DESCREPTION","Nav_RiskArea.NAME", "CREATE_TIME"]
+ json.Limit = this.pageSize
+ json.SelectField = ["CHECKCONTENT", "DESCREPTION", "Nav_RiskArea.NAME", "CREATE_TIME"]
PagedCheckMain(json).then(res => {
if (res.IsSuccessful) {
- this.total=res.TotalCount
+ this.total = res.TotalCount
// this.model.ListShow = res.Data
if (paginate) {
- this.model.ListShow= this.model.ListShow.concat(res.Data)
+ this.model.ListShow = this.model.ListShow.concat(res.Data)
} else {
this.model.ListShow = res.Data
}
+
+ if (res.TotalCount == 0)
+ uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: '',
@@ -242,7 +246,7 @@
}
},
onReachBottom() {
- if (this.total > this.pageSize * this.pageIndex)
+ if (this.total > this.pageSize * this.pageIndex)
this.PagedCheckMain(true)
}
// watch: {