Commit efa3b9de by 王志慧

Merge branch 'SAAS+V4.42' of http://192.168.3.233:8090/saas_plus/dj-car-life-system into SAAS+V4.42

2 parents e33ee3e0 3931fdd2
<!-- 关联活动订单弹窗 --> <!-- 关联活动订单弹窗 -->
<template> <template>
<d2-dialog <d2-dialog
title="质检详情" title="查看结果"
:is-visible="isQualityVisible" :is-visible="isQualityVisible"
class="qualityDailog" class="qualityDailog"
width="80%" width="80%"
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
v-bind="$attrs" v-bind="$attrs"
/> />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="质检分析" name="analyse"> <el-tab-pane label="质检详情" name="analyse">
<quality-analyse <quality-analyse
v-if="activeName == 'analyse'" v-if="activeName == 'analyse'"
v-bind="$attrs" v-bind="$attrs"
......
...@@ -117,8 +117,15 @@ export default { ...@@ -117,8 +117,15 @@ export default {
}, },
mounted() { mounted() {
// 获取对练报告详情 // 获取对练报告详情
console.log(this.detailObj, '===')
getSparringReportDetail({ id: this.detailObj?.id }).then(res => { getSparringReportDetail({ id: this.detailObj?.id }).then(res => {
let activeNameArr = ['saleSkills', 'fluency', 'phonetic', 'proficiency', 'serviceAttitude']
let itemTypeArr = [1, 2, 3, 4, 5]
for (let i = 0; i < itemTypeArr.length; i++) {
if (res.reportItem.findIndex(item => item.itemType == itemTypeArr[i]) > -1) {
this.activeName = activeNameArr[i];
break
}
}
this.detailInfo = res || {} this.detailInfo = res || {}
this.showPage = true this.showPage = true
this.initChart(res) this.initChart(res)
......
...@@ -302,6 +302,7 @@ export default { ...@@ -302,6 +302,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.analyse { .analyse {
padding: 16px;
.statistics { .statistics {
display: flex; display: flex;
align-items: center; align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!