Browse Source

tijaio

dev
douzhuo 2 years ago
parent
commit
5203e4e332
4 changed files with 41 additions and 6 deletions
  1. +13
    -0
      pages/center/Piabodata/Groupcontrast.vue
  2. +17
    -0
      pages/center/Piabodata/StaffAnalysis.vue
  3. +7
    -2
      pages/mine/details2.vue
  4. +4
    -4
      utils/domain.js

+ 13
- 0
pages/center/Piabodata/Groupcontrast.vue View File

@@ -154,6 +154,7 @@
<view class="uchaserbox"> <view class="uchaserbox">
<qiun-data-charts <qiun-data-charts
type="radar" type="radar"
:opts="opts"
:chartData="chartData" :chartData="chartData"
:canvas2d="true" :canvas2d="true"
canvasId="wangxiaohuaerlingeryilingwuyib88" canvasId="wangxiaohuaerlingeryilingwuyib88"
@@ -275,6 +276,15 @@
"data": [90,110,165,195,187,172] "data": [90,110,165,195,187,172]
} }
] ]
},
opts: {
fontSize: 10,
extra: {
radar: {
max: ''
}
}
} }
}; };
@@ -403,6 +413,7 @@
categories:[], categories:[],
series:[] series:[]
} }
let max = 0;
res.result.map((item,index)=>{ res.result.map((item,index)=>{
let obj={ let obj={
name:item[0].houseName, name:item[0].houseName,
@@ -413,10 +424,12 @@
allobj.categories.push(item1.name) allobj.categories.push(item1.name)
} }
obj.data.push(item1.avgExecutionRate) obj.data.push(item1.avgExecutionRate)
if (max < item.avgExecutionRate) max = item.avgExecutionRate;
}) })
allobj.series.push(obj) allobj.series.push(obj)
}) })
// console.log(allobj) // console.log(allobj)
this.opts.extra.radar.max = max + 25
this.chartData=allobj this.chartData=allobj
this.$forceUpdate() this.$forceUpdate()
}) })


+ 17
- 0
pages/center/Piabodata/StaffAnalysis.vue View File

@@ -130,6 +130,7 @@
:canvas2d="true" :canvas2d="true"
canvasId="wangxiaohuaerlingeryilinwuycsdx" canvasId="wangxiaohuaerlingeryilinwuycsdx"
background="none" background="none"
:opts="opts"
/> />
</view> </view>
</view> </view>
@@ -170,6 +171,14 @@
value:'', value:'',
label:'平均' label:'平均'
}, },
opts: {
fontSize: 10,
extra: {
radar: {
max: ''
}
}
},
lastStartDate:'', lastStartDate:'',
lastEndDate :'', lastEndDate :'',
selindex:[0], selindex:[0],
@@ -466,6 +475,7 @@
// console.log(res) // console.log(res)
let first=res.first let first=res.first
let second=res.second let second=res.second
let max = first[0].avgExecutionRate
this.chartData.categories=[] this.chartData.categories=[]
if(!this.timepickpickisshow){ if(!this.timepickpickisshow){
this.chartData.series=[ this.chartData.series=[
@@ -475,6 +485,7 @@
} }
] ]
first.map(item=>{ first.map(item=>{
if (max < item.avgExecutionRate) max = item.avgExecutionRate;
this.chartData.categories.push(item.name) this.chartData.categories.push(item.name)
this.chartData.series[0].data.push(item.avgExecutionRate) this.chartData.series[0].data.push(item.avgExecutionRate)
}) })
@@ -496,7 +507,13 @@
second.map(item=>{ second.map(item=>{
this.chartData.series[1].data.push(item.avgExecutionRate) this.chartData.series[1].data.push(item.avgExecutionRate)
}) })
let all = [...first, ...second]
all.map(item => {
if (max < item.avgExecutionRate) max = item.avgExecutionRate;
})
} }
this.opts.extra.radar.max = max + 25
}) })
}, },


+ 7
- 2
pages/mine/details2.vue View File

@@ -18,7 +18,7 @@
<view class="headboxbott"> <view class="headboxbott">
<view class="headovfu"> <view class="headovfu">
<u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex" <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
@change="tapspagek()" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
@change="tapspagek" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
:is-scroll="true"> :is-scroll="true">
</u-tabs-swiper> </u-tabs-swiper>
</view> </view>
@@ -1004,6 +1004,7 @@
this.roleindex = index; this.roleindex = index;
this.newluyinList = []; this.newluyinList = [];
this.fenjiaoseunfo() this.fenjiaoseunfo()
this.$forceUpdate()
}, },
//分角色标记刷新 //分角色标记刷新
fenjiaoseunfo() { fenjiaoseunfo() {
@@ -1042,6 +1043,10 @@
this.roleindexbiaoji = data.data.data.speaker - 1; this.roleindexbiaoji = data.data.data.speaker - 1;
this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
} }
if (this.roleindex > this.tablist.length - 1) {
this.roleindex = this.tablist.length - 1
this.fenjiaoseunfo()
}




this.speaker = data.data.data.speaker; this.speaker = data.data.data.speaker;
@@ -1626,6 +1631,7 @@
}, },
success: (data) => { success: (data) => {
this.tablist = []; this.tablist = [];
this.roleindexbiaoji = 0;
let jsonInfo = JSON.parse(data.data.data.audioContent); let jsonInfo = JSON.parse(data.data.data.audioContent);


for (var i = 0; i <= data.data.data.speakerNum; i++) { for (var i = 0; i <= data.data.data.speakerNum; i++) {
@@ -1640,7 +1646,6 @@
} }
} }
if (data.data.data.speaker == null) { if (data.data.data.speaker == null) {
this.roleindexbiaoji = 0;
this.dshfkjsdkksodofydwfkhwdfkjh = 0; this.dshfkjsdkksodofydwfkhwdfkjh = 0;
} else { } else {
this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker] this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker]


+ 4
- 4
utils/domain.js View File

@@ -1,9 +1,9 @@
// http.js使用域名 // http.js使用域名
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.169:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.169: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'; // 数智正式




@@ -12,11 +12,11 @@ const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
* 小程序配置文件 * 小程序配置文件
*/ */
// 此处主机域名修改成腾讯云解决方案分配的域名 // 此处主机域名修改成腾讯云解决方案分配的域名
const host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
// const host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
// const host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 // const host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const host = 'http://192.168.31.134: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 = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const host = 'https://zkgj.quhouse.com/api'; // 质控正式
const host = 'https://zkgj.quhouse.com/api'; // 质控正式
// const host = 'https://hfju.com/api'; // 数智正式 // const host = 'https://hfju.com/api'; // 数智正式






Loading…
Cancel
Save