From 633d4188df9dc78f3fc38f1a18daf9972693ee9f Mon Sep 17 00:00:00 2001 From: FrancisHu <2756004617@qq.com> Date: Fri, 13 Sep 2024 10:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=AE=A1=E6=89=B9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/http.js | 16 ++++++++-------- pages/fetchExam/fetchExam.vue | 18 +++++++++++------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/apis/http.js b/apis/http.js index 8ef0233..ddd4ea8 100644 --- a/apis/http.js +++ b/apis/http.js @@ -3,26 +3,26 @@ class HttpConfig { baseUrl = "/api" // #endif // #ifdef APP-PLUS - // baseUrl = "http://112.29.103.165:21624" + baseUrl = "http://112.29.103.165:21624" // baseUrl = "http://192.168.0.14:21624" // baseUrl = "http://112.29.103.165:21626" // baseUrl = "http://172.20.10.3:8080" // baseUrl = "http://10.40.92.8:8080" // baseUrl = "http://10.40.92.52:28080" // baseUrl = "http://10.40.92.78:28080" - baseUrl = "http://192.168.2.136:28090" + // baseUrl = "http://192.168.2.127:28080" // baseUrl = "https://z.csgmall.com.cn/gl" // baseUrl = "http://10.40.92.141:28080" // #endif // 基地址 - // authPath = `${this.baseUrl}/dev-api/auth` - // systemPath = `${this.baseUrl}/dev-api/system` - // basePath = `${this.baseUrl}/dev-api/base` - // materialPath = `${this.baseUrl}/dev-api/material` - authPath = `${this.baseUrl}/auth` + authPath = `${this.baseUrl}/dev-api/auth` + systemPath = `${this.baseUrl}/dev-api/system` + basePath = `${this.baseUrl}/dev-api/base` + materialPath = `${this.baseUrl}/dev-api/material` + /* authPath = `${this.baseUrl}/auth` systemPath = `${this.baseUrl}/system` basePath = `${this.baseUrl}/base` - materialPath = `${this.baseUrl}/material` + materialPath = `${this.baseUrl}/material` */ // 短链 serviceUrl = { login: { diff --git a/pages/fetchExam/fetchExam.vue b/pages/fetchExam/fetchExam.vue index 9c9338e..6ba2df7 100644 --- a/pages/fetchExam/fetchExam.vue +++ b/pages/fetchExam/fetchExam.vue @@ -65,7 +65,7 @@ @@ -73,7 +73,7 @@ @@ -270,6 +270,7 @@ import { basePath } from '../../public' examList: [], deviceList: [], roles: uni.getStorageSync('roles'), + deptId: uni.getStorageSync('userInfo').sysUser.deptId, modalList: {}, rejectReason: '' } @@ -336,25 +337,28 @@ import { basePath } from '../../public' } if (that.modalList.taskStatus == 30) { if (that.modalList.leaseApplyInfoList[0].leaseApplyDetails[0].companyId == 101) { + that.modalList.leaseApplyInfoList[0].examineStatusId = that.modalList.taskStatus this.examList = { taskId: that.modalList.taskId, taskType: that.modalList.taskType, taskStatus: that.modalList.taskStatus + 1, companyId: that.modalList.leaseApplyInfoList[0].companyId, code: that.modalList.code, - leaseApplyInfoList: that.modalList.leaseApplyInfoList + leaseApplyInfoList: that.modalList.leaseApplyInfoList, } } else if (that.modalList.leaseApplyInfoList[0].leaseApplyDetails[0].companyId == 102) { + that.modalList.leaseApplyInfoList[0].examineStatusId = that.modalList.taskStatus this.examList = { taskId: that.modalList.taskId, taskType: that.modalList.taskType, taskStatus: that.modalList.taskStatus + 2, companyId: that.modalList.leaseApplyInfoList[0].companyId, code: that.modalList.code, - leaseApplyInfoList: that.modalList.leaseApplyInfoList + leaseApplyInfoList: that.modalList.leaseApplyInfoList, } } } else { + that.modalList.leaseApplyInfoList[0].examineStatusId = that.modalList.taskStatus this.examList = { taskId: that.modalList.taskId, taskType: that.modalList.taskType, @@ -362,7 +366,7 @@ import { basePath } from '../../public' companyId: that.modalList.leaseApplyInfoList[0].companyId, code: that.modalList.code, leaseApplyInfoList: that.modalList.leaseApplyInfoList, - leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails + leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails, } } if (that.roles.includes('fgs') && that.modalList.taskStatus == 30) { @@ -746,7 +750,8 @@ import { basePath } from '../../public' let that = this that.fetchIpt = '' console.log(uni.getStorageSync('userInfo')); - console.log(that.roles); + console.log(that.roles, that.deptId); + if (that.roles.includes('admin')) that.roles = ['fgs', 'sgb', 'ajb', 'jjfgs', 'tsfgs', 'admin'] for (let i = 0; i < that.roles.length; i++) { if (that.roles[i] == 'em01' || that.roles[i] == 'em02') { that.roles[i] = 'jjfgs' @@ -759,7 +764,6 @@ import { basePath } from '../../public' if (item == 'em01' || item == 'em02') item = 'jjfgs' if (item == 'dm01' || item == 'dm02') item = 'tsfgs' }) */ - if (that.roles.includes('admin')) that.roles = ['fgs', 'sgb', 'ajb', 'jjfgs', 'tsfgs', 'admin'] // if (that.roles.includes('sgb')) that.roles = ['sgb'] console.log(that.roles); that.initFetch()