From 77f06e2f64e48d926fc9c5650cdc24212f1456d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com> Date: Thu, 30 Mar 2023 17:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=90=E5=BC=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 12 ++- config.js | 177 +++++++++++++++++--------------- pages/reportExcel/dayReport.vue | 1 + utils/domain.js | 4 +- 4 files changed, 106 insertions(+), 88 deletions(-) diff --git a/App.vue b/App.vue index 684e264..33ecf61 100644 --- a/App.vue +++ b/App.vue @@ -30,7 +30,14 @@ this.bulidIngObj = uni.getStorageSync('buildingID') }, addLookingCount(id) { - this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id, recordId: id }) + // uni.request({ + // url: config.service.addLog + // }) + // this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id, recordId: id }) + let obj = { + id: id, + } + this.sendLog(obj) }, sendLog(data) { @@ -44,7 +51,8 @@ data: { houseId: data.houseId || uni.getStorageSync('buildingID').id, houseName: data.houseName ||uni.getStorageSync('buildingID').name, - serviceId: "test" + serviceId: "test", + recordId: data.id }, success: (data) => { console.log(data) diff --git a/config.js b/config.js index 6f6b84b..3f65322 100644 --- a/config.js +++ b/config.js @@ -1,88 +1,95 @@ -import { host, hosts, iMServiceHost , admin, base} from './utils/domain.js' +import { + host, + hosts, + iMServiceHost, + admin, + base, + hostAdmin +} from './utils/domain.js' var config = { - service: { - host, - iMServiceHost, - getView:`${host}/autoSR/api/addtodigest/addPageviews`, - addLog:`${base}/admin/log/addLoginCount`, - getStage:`${host}/customer/getStage`, - //验证toen - verify:`${host}/user/verify`, - //登录 - login: `${hosts}auth/oauth/token`, - - logout: `${hosts}auth/token/logout`, - - findListByUser: `${hosts}admin/dept/findListByUser`, - - //获取用户信息 - getUser: `${host}/user/getUser`, - //获取权限 - getMenu:`${hosts}admin/menu/getMenu`, - //发送验证码 - sendCode:`${hosts}admin/mobile`, - //验证码校验 - plogin:`${hosts}auth/mobile/token/sms`, - //忘记密码 - forgotPassword:`${hosts}admin/user/forgotPassword`, - //修改密码 - updatePassword: `${host}/user/resetPwd`, - //修改用户信息 - upload: `${host}/user/update`, - // 上传头像 - uploadHeadImg:`${host}/user/uploadHeadPortrait`, - //分点学习标签 - findSelectedLabel:`${host}/addtodigest/findSelectedLabel`, - //获取全部学习 - findAllZATD:`${host}/addtodigest/findAllZATD`, - //查询点赞列表 - likegetLike:`${host}/like/getLike`, - // 获取评论 - cmmentList:`${host}/comment/list`, - // 新增评论 - saveCmment:`${host}/comment/saveCmment`, - // 获取客户来源列表 - sourceList: `${host}/customer/sourceList`, - // 新增文件评论 - saveCmmentUpload:`${host}/comment/upload`, - // 点赞 - saveLike:`${host}/like/saveLike`, - // 取消点赞 - cancelLike:`${host}/like/cancelLike`, - //同音转译接口3 - getCorpusAnal: `${host}/corpus/splicAudioPlay`, - //转写内容获取快进时间是第几个文件 - fastForward:`${host}/corpus/fastForward`, - //标记顾问 - markConsultant:`${host}/corpus/markConsultant`, - //同音转译接口 - getSpeechAnalysis: `${host}/cms/mobile/getBytargetId`, - //同音转译接口2 - getCorpusAnalysis: `${host}/corpus/audioPlay`, - //查询设备电量 - findElectricity:`${host}/equipment/findElectricity`, - //首页设备查询 - findEquipmentState:`${host}/cusLvStatistics/findEquipmentState`, - //首页实时统计 - realTimeStatistics:`${host}/cusLvStatistics/realTimeStatistics`, - //首页本周工作 - workThisWeek:`${host}/cusLvStatistics/workThisWeek`, - //查询是否开启选择顾问权限 - getSelfAssignedByHouseId:`${host}/user/getSelfAssignedByHouseId`, - //确认加精 - addATD:`${host}/addtodigest/addATD`, - //取消加精 - delATD:`${host}/addtodigest/delATD`, - // 升级公告 - updateList: `${host}/zkMessage/messageList`, - // 升级公告更新阅读 - updateRead: `${host}/zkMessage/updateFlag`, - - //消息未读数 - notReadNum: `${host}/zkMessage/findFlagCount`, - // 隐私协议 - privacyAgr: `${host}/zkPrivate/findById`, - } + service: { + host, + iMServiceHost, + getView: `${host}/autoSR/api/addtodigest/addPageviews`, + addLog: `${base}/admin/log/addLoginCount`, + getStage: `${host}/customer/getStage`, + //验证toen + verify: `${host}/user/verify`, + //登录 + login: `${hosts}auth/oauth/token`, + + logout: `${hosts}auth/token/logout`, + + findListByUser: `${hosts}admin/dept/findListByUser`, + + //获取用户信息 + getUser: `${host}/user/getUser`, + //获取权限 + getMenu: `${hosts}admin/menu/getMenu`, + //发送验证码 + sendCode: `${hosts}admin/mobile`, + //验证码校验 + plogin: `${hosts}auth/mobile/token/sms`, + //忘记密码 + forgotPassword: `${hosts}admin/user/forgotPassword`, + //修改密码 + updatePassword: `${host}/user/resetPwd`, + //修改用户信息 + upload: `${host}/user/update`, + // 上传头像 + uploadHeadImg: `${host}/user/uploadHeadPortrait`, + //分点学习标签 + findSelectedLabel: `${host}/addtodigest/findSelectedLabel`, + //获取全部学习 + findAllZATD: `${host}/addtodigest/findAllZATD`, + //查询点赞列表 + likegetLike: `${host}/like/getLike`, + // 获取评论 + cmmentList: `${host}/comment/list`, + // 新增评论 + saveCmment: `${host}/comment/saveCmment`, + // 获取客户来源列表 + sourceList: `${host}/customer/sourceList`, + // 新增文件评论 + saveCmmentUpload: `${host}/comment/upload`, + // 点赞 + saveLike: `${host}/like/saveLike`, + // 取消点赞 + cancelLike: `${host}/like/cancelLike`, + //同音转译接口3 + getCorpusAnal: `${host}/corpus/splicAudioPlay`, + //转写内容获取快进时间是第几个文件 + fastForward: `${host}/corpus/fastForward`, + //标记顾问 + markConsultant: `${host}/corpus/markConsultant`, + //同音转译接口 + getSpeechAnalysis: `${host}/cms/mobile/getBytargetId`, + //同音转译接口2 + getCorpusAnalysis: `${host}/corpus/audioPlay`, + //查询设备电量 + findElectricity: `${host}/equipment/findElectricity`, + //首页设备查询 + findEquipmentState: `${host}/cusLvStatistics/findEquipmentState`, + //首页实时统计 + realTimeStatistics: `${host}/cusLvStatistics/realTimeStatistics`, + //首页本周工作 + workThisWeek: `${host}/cusLvStatistics/workThisWeek`, + //查询是否开启选择顾问权限 + getSelfAssignedByHouseId: `${host}/user/getSelfAssignedByHouseId`, + //确认加精 + addATD: `${host}/addtodigest/addATD`, + //取消加精 + delATD: `${host}/addtodigest/delATD`, + // 升级公告 + updateList: `${host}/zkMessage/messageList`, + // 升级公告更新阅读 + updateRead: `${host}/zkMessage/updateFlag`, + + //消息未读数 + notReadNum: `${host}/zkMessage/findFlagCount`, + // 隐私协议 + privacyAgr: `${host}/zkPrivate/findById`, + } }; -module.exports = config; \ No newline at end of file +module.exports = config; diff --git a/pages/reportExcel/dayReport.vue b/pages/reportExcel/dayReport.vue index 939cd60..35a5d27 100644 --- a/pages/reportExcel/dayReport.vue +++ b/pages/reportExcel/dayReport.vue @@ -622,6 +622,7 @@ getMessage() { this.$u.get('/zkMessage/findByProjectId', { id: this.id, + houseId: uni.getStorageSync('buildingID').id, username: uni.getStorageSync('weapp_session_userInfo_data').username }).then(res => { console.log(res) diff --git a/utils/domain.js b/utils/domain.js index ee70f89..61901ab 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -8,6 +8,7 @@ const baseUrl = `${base}/autoSR/api`; // config 使用 const host = `${base}/autoSR/api`; const hosts = `${base}/`; +const hostAdmin = `${base}/admin`; const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 @@ -16,5 +17,6 @@ export { host, hosts, iMServiceHost, - base + base, + hostAdmin }