Browse Source

关键词查询

dev
jyt 2 years ago
parent
commit
559d072ed8
18 changed files with 137 additions and 47 deletions
  1. +15
    -5
      pages.json
  2. +1
    -1
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  3. +1
    -1
      pages/center/Piabodata/Customerportrait/Receivingrecords.vue
  4. +2
    -2
      pages/center/Piabodata/Employeesstatistics.vue
  5. +9
    -9
      pages/center/Piabodata/Groupcontrast.vue
  6. +2
    -2
      pages/center/Piabodata/StaffAnalysis.vue
  7. +3
    -3
      pages/center/Piabodata/Theteamcompared.vue
  8. +1
    -1
      pages/center/Piabodata/index.vue
  9. +1
    -1
      pages/center/Piabodata/selectGroup.vue
  10. +1
    -1
      pages/center/Piabodata/selectTeam.vue
  11. +1
    -1
      pages/center/consumer/edit.vue
  12. +17
    -14
      pages/index/index.vue
  13. +1
    -1
      pages/login/index.vue
  14. +1
    -1
      pages/login/yinzhongmalogin.vue
  15. +1
    -1
      pages/mine/details2.vue
  16. +1
    -1
      pages/mine/detailsNew.vue
  17. +77
    -0
      pages/mine/selectBuilding.vue
  18. +2
    -2
      utils/domain.js

+ 15
- 5
pages.json View File

@@ -207,15 +207,25 @@
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
{
"path" : "messageList",
{
"path" : "messageList",
"style" :{ "style" :{
"navigationBarTitleText": "消息", "navigationBarTitleText": "消息",
"navigationBarBackgroundColor": "#2671E2", "navigationBarBackgroundColor": "#2671E2",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}
}
,{
"path" : "selectBuilding",
"style" :
{
"navigationBarTitleText": "切换项目",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
}
}
] ]
}, },
{ {
@@ -321,7 +331,7 @@
{ {
"path": "Piabodata/selectGroup", "path": "Piabodata/selectGroup",
"style": { "style": {
"navigationBarTitleText": "选择楼盘",
"navigationBarTitleText": "选择项目",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }


+ 1
- 1
pages/center/Piabodata/Customerportrait/Receivedetailabout.vue View File

@@ -213,7 +213,7 @@
<view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view> <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view>
</view> </view>
<view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;"> <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
<view style="width: 25%;color: #666666;font-size: 26rpx;">意向楼盘</view>
<view style="width: 25%;color: #666666;font-size: 26rpx;">意向项目</view>
<view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.projectName}}</view> <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.projectName}}</view>
</view> </view>
<view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;"> <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">


+ 1
- 1
pages/center/Piabodata/Customerportrait/Receivingrecords.vue View File

@@ -151,7 +151,7 @@ export default {
starttime:'',//开始时间 starttime:'',//开始时间
endoftime:'',//结束时间 endoftime:'',//结束时间
keywordsId:'',//选中语义词id keywordsId:'',//选中语义词id
houseId:'',//楼盘id
houseId:'',//项目id
semanticlist:[],//语义词集合 semanticlist:[],//语义词集合
name:'', name:'',
agentName:'', agentName:'',


+ 2
- 2
pages/center/Piabodata/Employeesstatistics.vue View File

@@ -166,7 +166,7 @@
return { return {
activeTotal: 4, activeTotal: 4,
totalTimeShow: false, totalTimeShow: false,
// 楼盘id
// 项目id
houseId:'', houseId:'',
lastEndDate:'', lastEndDate:'',
lastStartDate:'', lastStartDate:'',
@@ -197,7 +197,7 @@
}; };
}, },
onLoad() { onLoad() {
// 获取楼盘id
// 获取项目id
this.houseId = uni.getStorageSync('buildingID').id; this.houseId = uni.getStorageSync('buildingID').id;
this.init() this.init()
}, },


+ 9
- 9
pages/center/Piabodata/Groupcontrast.vue View File

@@ -22,7 +22,7 @@
<view class="title1">接待量(TOP10)</view> <view class="title1">接待量(TOP10)</view>
</view> </view>
<view class="hejibox"> <view class="hejibox">
<view class="heji">楼盘:{{newTeam1||0}}</view>
<view class="heji">项目:{{newTeam1||0}}</view>
<view class="heji">均值:{{newAvg1||0}}</view> <view class="heji">均值:{{newAvg1||0}}</view>
</view> </view>
<view class="jindu"> <view class="jindu">
@@ -47,7 +47,7 @@
<view class="title1">接待时长(TOP10)</view> <view class="title1">接待时长(TOP10)</view>
</view> </view>
<view class="hejibox"> <view class="hejibox">
<view class="heji">楼盘:{{newTeam2||0}}</view>
<view class="heji">项目:{{newTeam2||0}}</view>
<view class="heji">均值:{{newAvg2||0}}</view> <view class="heji">均值:{{newAvg2||0}}</view>
</view> </view>
<view class="jindu"> <view class="jindu">
@@ -80,7 +80,7 @@
</view> </view>
<view class="hejibox"> <view class="hejibox">
<view class="heji">楼盘:{{newTeam3||0}}</view>
<view class="heji">项目:{{newTeam3||0}}</view>
<view class="heji">均值:{{newAvg3||0}}%</view> <view class="heji">均值:{{newAvg3||0}}%</view>
</view> </view>
<view class="jindu"> <view class="jindu">
@@ -113,7 +113,7 @@
</view> </view>
<!-- <view class="hejibox"> <!-- <view class="hejibox">
<view class="heji">楼盘:{{newTeam4||0}}</view>
<view class="heji">项目:{{newTeam4||0}}</view>
<view class="heji">均值:{{newAvg4||0}}</view> <view class="heji">均值:{{newAvg4||0}}</view>
</view> --> </view> -->
<view class="jindu"> <view class="jindu">
@@ -137,7 +137,7 @@
<view class="title" style="padding-right: 30rpx;"> <view class="title" style="padding-right: 30rpx;">
<view class="title1" style="flex: 1;">销讲能力</view> <view class="title1" style="flex: 1;">销讲能力</view>
<!-- <view class="title2" style="flex: 1;justify-content: flex-end;" @click="Groupcontrast"> <!-- <view class="title2" style="flex: 1;justify-content: flex-end;" @click="Groupcontrast">
<view class="title2-che">楼盘
<view class="title2-che">项目
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view> </view>
</view> --> </view> -->
@@ -148,7 +148,7 @@
</view> </view>
</view> </view>
<!-- <view class="hejibox"> <!-- <view class="hejibox">
<view class="heji">楼盘:50</view>
<view class="heji">项目:50</view>
<view class="heji">均值:25</view> <view class="heji">均值:25</view>
</view> --> </view> -->
<view class="uchaserbox"> <view class="uchaserbox">
@@ -193,7 +193,7 @@
<view class="title" style="padding-right: 30rpx;"> <view class="title" style="padding-right: 30rpx;">
<view class="title1" style="flex: 1;">违禁能力(TOP10)</view> <view class="title1" style="flex: 1;">违禁能力(TOP10)</view>
<view class="title2" style="flex: 1;justify-content: flex-end;"> <view class="title2" style="flex: 1;justify-content: flex-end;">
<view class="title2-che">楼盘
<view class="title2-che">项目
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view> </view>
</view> </view>
@@ -214,7 +214,7 @@
</view> --> </view> -->
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
<!-- 选择楼盘 -->
<!-- 选择项目 -->
<u-select v-model="staffShow" :list="staffList" @confirm="staffSelectCallback" :default-value='selindex'></u-select> <u-select v-model="staffShow" :list="staffList" @confirm="staffSelectCallback" :default-value='selindex'></u-select>
</view> </view>
</template> </template>
@@ -230,7 +230,7 @@
activeTotal2: 0, activeTotal2: 0,
bocindex:0, bocindex:0,
totalTimeShow: false, totalTimeShow: false,
// 楼盘id
// 项目id
houseId:'', houseId:'',
staffShow:false, staffShow:false,
staffList:[], staffList:[],


+ 2
- 2
pages/center/Piabodata/StaffAnalysis.vue View File

@@ -151,7 +151,7 @@
totalTimeShow: false, totalTimeShow: false,
activeTotal:4, activeTotal:4,
activeTotal2:1, activeTotal2:1,
// 楼盘id
// 项目id
houseId:'', houseId:'',
staffList:[], staffList:[],
staffList1:[], staffList1:[],
@@ -236,7 +236,7 @@
}, },
onLoad: function(options) { onLoad: function(options) {
// 获取楼盘id
// 获取项目id
this.houseId = uni.getStorageSync('buildingID').id; this.houseId = uni.getStorageSync('buildingID').id;
// this.buildingname = uni.getStorageSync('buildingID').name; // this.buildingname = uni.getStorageSync('buildingID').name;
// 请求接口获取所有置业顾问员工的列表 // 请求接口获取所有置业顾问员工的列表


+ 3
- 3
pages/center/Piabodata/Theteamcompared.vue View File

@@ -282,7 +282,7 @@
<view class="title" style="padding-right: 30rpx;"> <view class="title" style="padding-right: 30rpx;">
<view class="title1" style="flex: 1;">违禁能力(TOP10)</view> <view class="title1" style="flex: 1;">违禁能力(TOP10)</view>
<view class="title2" style="flex: 1;justify-content: flex-end;"> <view class="title2" style="flex: 1;justify-content: flex-end;">
<view class="title2-che">楼盘
<view class="title2-che">项目
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view> </view>
</view> </view>
@@ -328,7 +328,7 @@
bocindex:0, bocindex:0,
timepickpickisshow:false, timepickpickisshow:false,
totalTimeShow: false, totalTimeShow: false,
// 楼盘id
// 项目id
houseId:'', houseId:'',
staffList:[], staffList:[],
staffList1:[], staffList1:[],
@@ -464,7 +464,7 @@
// 获取销奖能力 // 获取销奖能力
that.getPowerList() that.getPowerList()
}) })
// 获取楼盘id
// 获取项目id
this.houseId = uni.getStorageSync('buildingID').id; this.houseId = uni.getStorageSync('buildingID').id;
// this.buildingname = uni.getStorageSync('buildingID').name; // this.buildingname = uni.getStorageSync('buildingID').name;
// 请求接口获取所有置业顾问员工的列表 // 请求接口获取所有置业顾问员工的列表


+ 1
- 1
pages/center/Piabodata/index.vue View File

@@ -318,7 +318,7 @@
}; };
}, },
onShow() { onShow() {
// 获取楼盘id
// 获取项目id
this.houseId = uni.getStorageSync('buildingID').id; this.houseId = uni.getStorageSync('buildingID').id;
// 获取数据看板 // 获取数据看板




+ 1
- 1
pages/center/Piabodata/selectGroup.vue View File

@@ -38,7 +38,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
// 获取楼盘id
// 获取项目id
// console.log(e) // console.log(e)
this.ids=e.ids this.ids=e.ids
// this.houseId = uni.getStorageSync('buildingID').id; // this.houseId = uni.getStorageSync('buildingID').id;


+ 1
- 1
pages/center/Piabodata/selectTeam.vue View File

@@ -38,7 +38,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
// 获取楼盘id
// 获取项目id
// console.log(e) // console.log(e)
this.ids=e.ids this.ids=e.ids
this.houseId = uni.getStorageSync('buildingID').id; this.houseId = uni.getStorageSync('buildingID').id;


+ 1
- 1
pages/center/consumer/edit.vue View File

@@ -176,7 +176,7 @@
], ],
allList:[], allList:[],
dataCode:'', dataCode:'',
projectId: '', // 楼盘ID
projectId: '', // 项目ID
} }
}, },
onLoad(e) { onLoad(e) {


+ 17
- 14
pages/index/index.vue View File

@@ -4,9 +4,9 @@
<view class="Switching1"> <view class="Switching1">
<image class="Switching1-img" src="../../static/images/building.png" mode=""></image> <image class="Switching1-img" src="../../static/images/building.png" mode=""></image>
</view> </view>
<view class="Switching2">楼盘:</view>
<view class="Switching2">项目:</view>
<view class="Switching3">{{buildingname}}</view> <view class="Switching3">{{buildingname}}</view>
<view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换楼盘</view>
<view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view>
</view> </view>


<view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">我的工牌</view> <view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">我的工牌</view>
@@ -15,8 +15,8 @@
<view class="Workcard-box"> <view class="Workcard-box">
<view class="Workcardimg"> <view class="Workcardimg">
<view class="Workcardimg1"> <view class="Workcardimg1">
<view v-if="percentage>20" class="bar" :style="{width : percentage + '%' }"></view>
<view v-if="percentage<20" class="bar1" :style="{width : percentage + '%' }"></view>
<view v-if="percentage>20" class="bar" :style="{width : percentage + '%' }"></view>
<view v-if="percentage<20" class="bar1" :style="{width : percentage + '%' }"></view>
</view> </view>
</view> </view>
<view class="Workcardtext">电量:{{percentage}}%</view> <view class="Workcardtext">电量:{{percentage}}%</view>
@@ -210,7 +210,7 @@
</view> </view>




<!-- 楼盘切换 -->
<!-- 项目切换 -->
<view v-if="Showhiddenunits"> <view v-if="Showhiddenunits">
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist" <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
@cancel="cancel" @confirm="confirm"></u-select> @cancel="cancel" @confirm="confirm"></u-select>
@@ -226,10 +226,10 @@
return { return {
userInfo: {}, userInfo: {},
Showhiddenunits: false, Showhiddenunits: false,
lpanlist: [], //楼盘列表
buildingname: '', //楼盘
buildingID: '', //楼盘id
buildingishow: false, //是否选择楼盘
lpanlist: [], //项目列表
buildingname: '', //项目
buildingID: '', //项目id
buildingishow: false, //是否选择项目
Myworkcard: false, Myworkcard: false,
percentage: '', //设备电量 percentage: '', //设备电量
Whetheroffline: false, //是否离线 Whetheroffline: false, //是否离线
@@ -462,11 +462,14 @@
} }
}) })
}, },
//选择楼盘弹框
//选择项目弹框
piskbuilding() { piskbuilding() {
this.Showhiddenunits = true;
// this.Showhiddenunits = true;
uni.navigateTo({
url:"../mine/selectBuilding"
})
}, },
// 楼盘选择确认
// 项目选择确认
confirm(e) { confirm(e) {
this.buildingname = e[0].label; this.buildingname = e[0].label;
this.buildingID = e[0].value; this.buildingID = e[0].value;
@@ -474,14 +477,14 @@
id: e[0].value, id: e[0].value,
name: e[0].label name: e[0].label
} }
uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
uni.setStorageSync("buildingID", lopan); //项目id写入缓存
this.initworkThisWeek() this.initworkThisWeek()
this.initrealTimeStatistics() this.initrealTimeStatistics()
this.initequipment() this.initequipment()
this.iniodianloang() this.iniodianloang()
}, },
// 楼盘选择取消
// 项目选择取消
cancel() { cancel() {
this.Showhiddenunits = false; this.Showhiddenunits = false;
}, },


+ 1
- 1
pages/login/index.vue View File

@@ -138,7 +138,7 @@
} }
uni.setStorageSync("fendianindex", 0); //写入缓存 uni.setStorageSync("fendianindex", 0); //写入缓存
uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存 uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存
uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
uni.setStorageSync("buildingID", lopan); //项目id写入缓存
uni.switchTab({ uni.switchTab({
url: '/pages/index/index' url: '/pages/index/index'
}); });


+ 1
- 1
pages/login/yinzhongmalogin.vue View File

@@ -164,7 +164,7 @@
} }
uni.setStorageSync("fendianindex", 0); //写入缓存 uni.setStorageSync("fendianindex", 0); //写入缓存
uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存 uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存
uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
uni.setStorageSync("buildingID", lopan); //项目id写入缓存
uni.switchTab({ uni.switchTab({
url: '/pages/index/index' url: '/pages/index/index'
}); });


+ 1
- 1
pages/mine/details2.vue View File

@@ -260,7 +260,7 @@
</view> </view>
<view <view
style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;"> style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
<view style="width: 25%;color: #666666;font-size: 26rpx;">意向楼盘</view>
<view style="width: 25%;color: #666666;font-size: 26rpx;">意向项目</view>
<view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.projectName}}</view> <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.projectName}}</view>
</view> </view>
<view <view


+ 1
- 1
pages/mine/detailsNew.vue View File

@@ -226,7 +226,7 @@
afterseek:false afterseek:false
}, },
customerId:"",//客户id customerId:"",//客户id
buildingID:'',//楼盘id
buildingID:'',//项目id
debug:true, debug:true,
dialogList:[],//转写内容区域 dialogList:[],//转写内容区域
isshowFile:false,//文件切换状态 isshowFile:false,//文件切换状态


+ 77
- 0
pages/mine/selectBuilding.vue View File

@@ -0,0 +1,77 @@
<template>
<view class="selectBuilding">
<view class="searchStyle">
<u-search placeholder="输入项目名称" v-model="search" @search="s" @custom="s"></u-search>
</view>
<view class="searchResultStyle">
<view class="searchList" v-for="(item,index) in list" :key="index" @click="okSelect(item.id,item.propertyName)">
{{item.propertyName}}
</view>
</view>
</view>
</template>
<script>
var config = require("@/config");
export default {
name: "selectBuilding",
data() {
return {
search: "",
list: [],
};
},
methods:{
s(e){
this.init(e)
},
okSelect(id,name){
let lopan = {
id,
name
}
uni.setStorageSync("buildingID", lopan);
uni.navigateBack({
delta:-1
})
},
init(e){
let data = {houseName:decodeURI(e)||''}
uni.request({
url: config.service.getUser,
method: "GET",
data,
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
success: (res) => {
console.log(res)
this.list = res.data.data.zkProperties
}
})
}
},
onLoad() {
this.init("")
}
}
</script>
<style lang="scss" scoped>
.selectBuilding {
.searchStyle {
padding: 20rpx;
}
.searchResultStyle {
padding: 0 30rpx;
.searchList{
border-bottom: 1rpx solid #E0E0E0;
padding: 30rpx 0;
font-size: 30rpx;
}
}
}
</style>

+ 2
- 2
utils/domain.js View File

@@ -1,10 +1,10 @@
// http.js使用域名 // http.js使用域名
// const baseUrl = 'http://192.168.31.57:8080/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://121.42.63.138:9091/autoSR/api';// 测试站/
// const baseUrl = 'http://192.168.31.167:8080/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://192.168.31.134:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式






Loading…
Cancel
Save