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;