diff --git a/src/api/modules/http.js b/src/api/modules/http.js index 4cd434e..851c200 100644 --- a/src/api/modules/http.js +++ b/src/api/modules/http.js @@ -203,3 +203,21 @@ export function findmatchdata(query) { }) } +//用户洞察详情 +export function receptionRecord(query) { + return request({ + url: '/autoSR/matchKeywords/receptionRecord', + method:'get', + params:query + }) +} + +//用户洞察详情获取语义词 +export function findKeywords(query) { + return request({ + url: '/autoSR/matchKeywords/findKeywords', + method:'get', + params:query + }) +} + diff --git a/src/views/Statistics/Insightintothedetails.vue b/src/views/Statistics/Insightintothedetails.vue index c221440..6fd72c3 100644 --- a/src/views/Statistics/Insightintothedetails.vue +++ b/src/views/Statistics/Insightintothedetails.vue @@ -7,57 +7,59 @@
时间:
- 全部 + 今日
- 15天内 + 昨日
- 30天内 + 近一周
-
客户名称:
- +
置业顾问:
- +
客户意向:
- + + :key="item.keywordsId" + :label="item.isInterval==0?item.name+'-'+item.endName+item.unit:item.name" + :value="item.keywordsId"> +
- 筛选
- 清空筛选条件 + 清空筛选条件
@@ -70,37 +72,37 @@ height="400" style="width: 100%"> @@ -116,10 +118,10 @@ @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage4" - :page-sizes="[100, 200, 300, 400]" - :page-size="100" + :page-sizes="[10, 20, 30, 30]" + :page-size="10" layout="total, sizes, prev, pager, next, jumper" - :total="400"> + :total="total"> @@ -131,134 +133,133 @@ export default { data() { return { TimetoAhoose: 2, - options: [ - { - value: "1", - label: "全部", - }, - { - value: "2", - label: "服务器内", - }, - { - value: "3", - label: "已失效", - }, - ], - options2: [ - { - value: "1", - label: "有效录音", - }, - { - value: "2", - label: "无效录音", - }, - ], - options3: [ - { - value: "1", - label: "0-15分钟", - }, - { - value: "2", - label: "16-30分钟", - }, - { - value: "3", - label: "31-60分钟", - }, - { - value: "4", - label: "61-90分钟", - }, - { - value: "5", - label: "90分钟以上", - }, - ], - options4: [ - { - value: "1", - label: "首次到访", - }, - { - value: "2", - label: "2次到访", - }, - { - value: "3", - label: "3次到访", - }, - { - value: "4", - label: "三次以上", - }, - ], - options5: [ - { - value: "1", - label: "已标注", - }, - { - value: "2", - label: "未标注", - }, - { - value: "3", - label: "全部", - }, - ], - currentPage4:4, + customtime: [], + currentPage4:1, value: "", input: "", - tableData: [ - { - date: "2016-05-03", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-02", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-04", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-01", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-08", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-06", - name: "王小虎", - address: " 1518 弄", - }, - { - date: "2016-05-07", - name: "王小虎", - address: " 1518 弄", - }, - ], + tableData: [], + fromobj: { + starttime: "", + endoftime: "", + name:'', + agentName:'', + projectId:'', + type:0, + keywords:'', + keywordIds:[] + }, + pageNum:1, + pageSize:10, + options5:[], + total:0, + }; }, - mounted() {}, + mounted() { + var isnull=this.$route.query.flag; + this.TimetoAhoose=isnull.TimetoAhoose; + this.customtime=isnull.customtime; + this.fromobj.starttime=isnull.starttime; + this.fromobj.endoftime=isnull.endoftime; + this.fromobj.projectId=isnull.houseId; + this.fromobj.keywords=isnull.keywordsId; + this.Accesstolevel() + }, methods: { - handleSizeChange(val) { - console.log(`每页 ${val} 条`); - }, - handleCurrentChange(val) { - console.log(`当前页: ${val}`); - } + //获取三级 + Accesstolevel(){ + this.options5=[]; + var datatype=''; + if(this.TimetoAhoose==6){ + datatype='' + }else { + datatype=this.TimetoAhoose + } + this.$api.http.findKeywords({ + type:this.fromobj.type, + dateType:datatype, + statDateStart:this.fromobj.starttime, + statDateEnd:this.fromobj.endoftime, + projectId:this.fromobj.projectId + }).then((res) => { + if(res.code==0){ + this.options5=res.data; + this.receptionRecord() + } + }) + }, + receptionRecord(){ + var dateType=''; + if(this.TimetoAhoose==6){ + dateType=''; + }else { + dateType=this.TimetoAhoose; + } + this.$api.http.receptionRecord({ + dateType:dateType, + staDate:this.fromobj.starttime, + endDate:this.fromobj.endoftime, + projectId:this.fromobj.projectId, + name:this.fromobj.name, + agentName:this.fromobj.agentName, + type:this.fromobj.type, + time:1, + keywordIds:this.fromobj.keywordIds.length>0?this.fromobj.keywordIds.join(','):this.fromobj.keywords, + current:this.pageNum, + size:this.pageSize, + }).then((res) => { + if(res.code==0){ + this.tableData=res.data.records; + this.total=res.data.total + } + }); + }, + //筛选 + screening(){ + this.fromobj.type=1; + this.pageNum=1; + this.receptionRecord() + }, + //清空筛选条件 + Screeningofempty(){ + this.TimetoAhoose=2; + this.fromobj.starttime = ""; + this.fromobj.endoftime = ""; + this.fromobj.name=''; + this.fromobj.agentName=''; + this.fromobj.keywords=''; + this.fromobj.type=0; + this.fromobj.keywordIds=[]; + this.pageNum=1; + this.customtime = []; + this.receptionRecord() + }, + //切换时间 + tabtimetap(index) { + this.TimetoAhoose = index; + this.fromobj.starttime = ""; + this.fromobj.endoftime = ""; + this.customtime = []; + this.pageNum=1; + this.receptionRecord() + }, + //自定义时间 + confirmtime() { + this.TimetoAhoose = 6; + this.fromobj.starttime = this.customtime[0]; + this.fromobj.endoftime = this.customtime[1]; + this.pageNum=1; + this.receptionRecord() + }, + handleSizeChange(val) { + this.pageSize=val; + this.receptionRecord() + }, + handleCurrentChange(val) { + this.pageNum=val; + this.receptionRecord() + }, + }, }; diff --git a/src/views/Statistics/index.vue b/src/views/Statistics/index.vue index e30b88b..59e506e 100644 --- a/src/views/Statistics/index.vue +++ b/src/views/Statistics/index.vue @@ -4,7 +4,7 @@
楼盘选择: - +  { -         console.log(res) - this.houseId=res.data.records[0].id; -         this.buildingoptions= res.data.records; - this.getorgCode(); -       }); + this.$api.api.findHouseByUser({ + orgType: localStorage.getItem("orgType"), + }).then((res) => { + this.buildingoptions = res.data; + this.houseId = res.data[0].id; + this.getorgCode() + });     }, //自定义时间 confirmtime() { this.TimetoAhoose = 6; this.fromobj.starttime = this.customtime[0]; this.fromobj.endoftime = this.customtime[1]; + this.getorgCode() }, //切换时间 tabtimetap(index) { @@ -270,26 +225,24 @@ export default { }else { dateType=this.TimetoAhoose; } - this.$api.http.findmatchdata({ dateType:dateType, houseId:this.houseId, statDateStart:this.fromobj.starttime, statDateEnd:this.fromobj.endoftime }).then((res) => { - if(data.data.res==1){ - this.objlist=data.data.obj.list; - this.alllist=[{"name":'客户数量',"num":data.data.obj.total}] - data.data.obj.list.forEach((item,index)=>{ + + this.objlist=res.data.list; + this.alllist=[{"name":'客户数量',"num":res.data.total}] + res.data.list.forEach((item,index)=>{ this.alllist.push({ name:item.name, num:item.total }) }) - // this.$nextTick(() => { - // this.myChartinit() - // }) - } + this.$nextTick(() => { + this.myChartinit() + }) }); }, diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 69873f5..f2ba004 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -339,12 +339,13 @@ + { - this.area = [this.ruleForm.provinceId, this.ruleForm.cityId]; + this.ruleForm.area = [this.ruleForm.provinceId, this.ruleForm.cityId]; console.log(1); console.log(this.addressOptions); console.log(this.area); diff --git a/vue.config.js b/vue.config.js index 9c48928..b688da4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,8 +4,8 @@ */ // const url = 'http://pigx-gateway' // const url = 'http://39.97.167.65:9999' //测试 -const url = 'http://192.168.31.160:9999' //长龙 -// const url = 'http://192.168.31.127:9999' //嘉豪 +// const url = 'http://192.168.31.160:9999' //长龙 +const url = 'http://192.168.31.129:9999' //嘉豪 // const url = 'http://192.168.31.100:9999' //王笑 const CompressionWebpackPlugin = require('compression-webpack-plugin')