From ed3149e23ef6fa4a0a133a5627c93e3eecd51127 Mon Sep 17 00:00:00 2001 From: wangshuai <464942911@qq.com> Date: Thu, 21 Apr 2022 16:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=BC=96=E8=BE=91=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/Piabodata/StaffAnalysis.vue | 17 ++++++++++++++--- pages/center/consumer/consumerDetail.vue | 13 ++++++++++++- pages/center/consumer/index.vue | 8 ++++---- utils/domain.js | 5 +++-- 4 files changed, 33 insertions(+), 10 deletions(-) diff --git a/pages/center/Piabodata/StaffAnalysis.vue b/pages/center/Piabodata/StaffAnalysis.vue index e985efc..a713cb1 100644 --- a/pages/center/Piabodata/StaffAnalysis.vue +++ b/pages/center/Piabodata/StaffAnalysis.vue @@ -114,6 +114,7 @@ :ontouch="true" canvasId="wangxiaohuaerlingryilingwuyibhh" :canvas2d="true" + :opts="lineOpts" /> @@ -151,7 +152,7 @@ totalTimeShow: false, activeTotal:4, activeTotal2:1, - // 客户id + // 项目id houseId:'', staffList:[], staffList1:[], @@ -171,6 +172,16 @@ value:'', label:'平均' }, + lineOpts: { + yAxis: { + data: [ + { + max: 100, + min: 0, + } + ] + } + }, opts: { fontSize: 10, extra: { @@ -236,13 +247,13 @@ }, onLoad: function(options) { - // 获取客户id + // 获取项目id this.houseId = uni.getStorageSync('buildingID').id; // this.buildingname = uni.getStorageSync('buildingID').name; // 请求接口获取所有置业顾问员工的列表 this.getStaffList() }, - onPullDownRefresh(){ + onPullDownRefresh() { this.getStaffList() setTimeout(function () { uni.stopPullDownRefresh(); diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 7a2708e..84cdbb8 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -12,7 +12,7 @@ {{customerInfo.name || '--'}} - + @@ -248,6 +248,15 @@ buttonisshow:false } }, + + computed: { + isEdit() { + let arr = uni.getStorageSync('weapp_session_Menu_data') + return arr.findIndex(item => { + return item.name == '客户编辑' + }) == -1 ? false : true + } + }, onLoad(options) { this.customerId = options.id; }, @@ -378,6 +387,8 @@ }, // 去编辑 goedit(){ + // console.log('去编辑') + if (!this.isEdit) return // console.log('去编辑') uni.navigateTo({ url:`/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}` diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 85a5826..4ecefa6 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -269,19 +269,19 @@ }, ], levelList: [{ label: 'A', - value: 0, + value: 1, isShow: false, }, { label: 'B', - value: 1, + value: 2, isShow: false, }, { label: 'C', - value: 2, + value: 3, isShow: false, }, { label: 'D', - value: 3, + value: 4, isShow: false, }, ], isRefresh:false diff --git a/utils/domain.js b/utils/domain.js index 0c01cfa..4316ebc 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,10 +1,11 @@ // http.js使用域名 +const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地 // const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 -const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 +// const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 // config使用域名 @@ -17,7 +18,7 @@ const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 // const host = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 // const host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 // const host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 -const host = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 +const host = baseUrl; // 测试站 const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 暂未使用留着防止报错