From c7cd69ad26ac1a08235981f8395fdb635381e7e9 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Fri, 17 May 2024 09:21:41 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dirving-inspections-list.vue | 37 +------------------ 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/pages/application/driving-inspections/dirving-inspections-list.vue b/pages/application/driving-inspections/dirving-inspections-list.vue index 36fef94..8338526 100644 --- a/pages/application/driving-inspections/dirving-inspections-list.vue +++ b/pages/application/driving-inspections/dirving-inspections-list.vue @@ -112,7 +112,7 @@ this.loginUserId = loginUser.USER_ID; this.background = require('@/common/background.json'); await this.getFunc(); - this.fnInit(); + this.getData(); // setTimeout(function() { // that.loading = true // }, 500) @@ -140,7 +140,7 @@ _this.list1 = []; await this.getFunc(); } - this.fnInit() + this.getData(); }, methods: { @@ -158,39 +158,6 @@ this.list = []; this.list1 = []; this.getData() - }, - async fnInit() { - uni.request({ - url: basePath + '/app/offduty/isRest', - method: 'POST', - dataType: 'json', - header: { - 'Content-type': 'application/x-www-form-urlencoded' - }, - data: { - USER_NAME: loginUser.NAME, - CORPINFO_ID: loginUser.CORPINFO_ID, - USER_ID: loginUser.USER_ID, - }, - success: (res) => { - console.log(res) - if("0" == res.data.ISREST){ - this.getData(); - }else{ - uni.showModal({ - title: "温馨提示", - confirmText: "确定", - content: - "重要提醒:您当前处于离岗状态,无法操作。", - success: (res) => { - if (res.cancel || res.confirm) { - uni.navigateBack(); - } - }, - }); - } - } - }) }, getData(){ var _this=this;