|
|
@@ -0,0 +1,437 @@
|
|
|
+<template>
|
|
|
+ <view class="page-wrappe">
|
|
|
+ <view id="pdfContainer" class="pdf-container" :style="{'transform':'scale('+scale+')', 'height': containerScaledHeight + 'px'}">
|
|
|
+ <!-- 封面 -->
|
|
|
+ <view class="cd_box fm2 adffc" style="margin-top: 20px;height: 868px;">
|
|
|
+ <img class="fm2-logo" src="https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fm_logo.png">
|
|
|
+ <img class="fm2-perill" src="https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fm_perill.png">
|
|
|
+ <view class="fm2-line"></view>
|
|
|
+ <view class="fm2-p">团队发展动态评估报告(专业版)</view>
|
|
|
+ <div class="fm2-texts adf" style="margin-top: 5px;">
|
|
|
+ <div class="fm2-texts-pre" style="margin-top: 10px;"><span style="letter-spacing: 2.5px;">报告撰写人:</span>{{ 'Willlian' }}</div>
|
|
|
+ <div class="fm2-texts-pre" style="margin-top: 10px;"><span style="letter-spacing: 6px;">客户名称:</span>{{ '甜梦(中国)巧克力有限公司' }}</div>
|
|
|
+ <div class="fm2-texts-pre" style="margin-top: 10px;"><span style="letter-spacing: 6px;">团队人数:</span>{{ 12 }}</div>
|
|
|
+ <div class="fm2-texts-pre" style="margin-top: 10px;"><span style="letter-spacing: 6px;">报告时间:</span>{{ '2025-11-25' }}</div>
|
|
|
+ <div class="fm2-texts-pre" style="margin-top: 10px;"><span>团队结构类型:</span>{{ '团队结构类型:' }}</div>
|
|
|
+ <div class="fm2-texts-pre" style="margin-top: 10px;"><span>团队职能类型:</span>{{ '团队职能类型:' }}</div>
|
|
|
+ </div>
|
|
|
+ </view>
|
|
|
+ <!-- 介绍 -->
|
|
|
+ <view class="cd_box">
|
|
|
+ <view class="v2-top adfacjb" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_title_bg.png)'}">
|
|
|
+ <view class="vt-left">介绍<span>PERILL模型简介</span></view>
|
|
|
+ <view class="vt-right">团队发展动态评估报告(专业版)</view>
|
|
|
+ </view>
|
|
|
+ <view class="v2-box">
|
|
|
+ <img class="vb-img1" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_box_img1.png'">
|
|
|
+ <img class="vb-img2" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_box_img2.png'">
|
|
|
+ <view class="v2-p">PERILL团队发展动态评估源于团队教练辅导领域的先驱、管理思维与团队绩效领域的权威、全球顶尖团队教练David Clutterbuck教授及其团队通过深入研究,提炼出影响团队绩效的140多个基于实证的因素,整合而成的团队诊断和提升工具-PERILL模型。</view>
|
|
|
+ <view class="v2-p" style="margin-top: 8px;">创衡国际基于10多年来在全球与200多家具有前瞻性的国际公司以及国内具有行业代表性公司的合作经验,结合CCMI的PERILL测评工具,在中国推出的团队发展动态评估系统,旨在帮助团队更全面、更有效地从六个维度评估团队的发展现状,为支持团队成为高价值团队提供全景式的客观诊断。</view>
|
|
|
+ <view class="v2-p" style="margin-top: 8px;">PERILL团队发展动态评估的主体内容由<span>36</span>个关于团队的描述组成。</view>
|
|
|
+ </view>
|
|
|
+ <view class="v2-six">
|
|
|
+ <view class="vsix-title">PERILL六大纬度</view>
|
|
|
+ <view class="vsix-p">PERILL诊断提供了一个复杂的团队系统概览,它并非针对孤立的问题,也不是简单的优缺点,而是着眼于团队系统的复杂性。它 通过6个影响因素(如下所述)提出问题,以揭示团队系统各要素之间的联系,以及这些联系如何影响团队的高效运作能力。</view>
|
|
|
+ <view class="vsix-boxs">
|
|
|
+ <view class="vsb adfac" v-for="(item,index) in sixWd" :key="index">
|
|
|
+ <img class="vsb-img" :src="item.image"/>
|
|
|
+ <view class="vsb-right">
|
|
|
+ <view class="vsbr-top adfac">
|
|
|
+ <view class="vsbrt-type" :style="{'background':item.color}">{{ item.type }}</view>
|
|
|
+ <view class="vsbrt-title" :style="{'color':item.color}">{{ item.title }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="vsbr-desc">{{ item.desc }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 总体诊断分析 -->
|
|
|
+ <view class="cd_box adffc">
|
|
|
+ <view class="v2-top adfacjb" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_top_title_bg2.png)'}">
|
|
|
+ <view class="vt-left">总体诊断分析</view>
|
|
|
+ <view class="vt-right">团队发展动态评估报告(专业版)</view>
|
|
|
+ </view>
|
|
|
+ <view class="v2-box" @click="downloadZtzdfxImg">
|
|
|
+ <img class="vb-img1" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_box_img1.png'">
|
|
|
+ <img class="vb-img2" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_box_img2.png'">
|
|
|
+ <view class="v2-p2">报告的核心是PERILL诊断分析下的整体团队表现。这包括团队在PERILL模型每个关键要素上的综合得分,通过结合得分和置信指数,我们能够展示出高功能领域和低功能域。</view>
|
|
|
+ <div class="v2-p2" style="margin-top: 16px;">下面图中的位置标记显示了团队按主题划分的总分。</div>
|
|
|
+ <div class="vb-category">
|
|
|
+ <div class="vbc-pre adfac">
|
|
|
+ <div class="vbcp-yuan y1"></div>
|
|
|
+ <div class="vbcp-text">团队Leader</div>
|
|
|
+ </div>
|
|
|
+ <div class="vbc-pre adfac">
|
|
|
+ <div class="vbcp-yuan y2"></div>
|
|
|
+ <div class="vbcp-text">团队Member</div>
|
|
|
+ </div>
|
|
|
+ <div class="vbc-pre adfac">
|
|
|
+ <div class="vbcp-yuan y3"></div>
|
|
|
+ <div class="vbcp-text">利益相关方Stakeholder</div>
|
|
|
+ </div>
|
|
|
+ <div class="vbc-pre adfac">
|
|
|
+ <div class="vbcp-yuan y4"></div>
|
|
|
+ <div class="vbcp-text">赞助人Sponsor</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <view style="width:100%;height:360px;" class="pdfEchart">
|
|
|
+ <l-echart ref="ztzdfxRef" :canvas2d="true" @finished="initZtzdfxChart"></l-echart>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="v2-data">
|
|
|
+ <view class="vd-title" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_title_bg1.png)'}">诊断结果</view>
|
|
|
+ <view class="v2-p" v-html="'后端返回数据后端返回数据 后端返回数据 '"></view>
|
|
|
+ </view>
|
|
|
+ <view class="v2-data" style="flex: 1;margin-top: 20px;">
|
|
|
+ <view class="vd-title vt2" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+'intro'+'_title_bg2.png)'}">团队提升&教练建议</view>
|
|
|
+ <view class="v2-p" v-html="'后端返回数据后端返回数据 后端返回数据 '"></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 多维度 -->
|
|
|
+ <template v-if="reportData&&reportData.dimensionAnalysis&&reportData.dimensionAnalysis.length">
|
|
|
+ <div class="cd_box adffc" style="border: none;" v-for="(item,index) in reportData.dimensionAnalysis" :key="index">
|
|
|
+ <div class="v2-top adfacjb" :style="{'background-image':'url('+'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+typeDict[item.title]+'_title_bg.png)'}">
|
|
|
+ <div class="vt-left" :class="{'black':item.title==='目的与动机'}">{{ item.title }}</div>
|
|
|
+ <div class="vt-right">团队发展动态评估报告(专业版)</div>
|
|
|
+ </div>
|
|
|
+ <div class="v2-box" :style="{'border':'1px solid '+item.bcolor}">
|
|
|
+ <img class="vb-img1" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+typeDict[item.title]+'_box_img1.png'">
|
|
|
+ <img class="vb-img2" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+typeDict[item.title]+'_box_img2.png'">
|
|
|
+ <div class="v2-p2">{{ item.desc }}</div>
|
|
|
+ <div class="v2-p2" style="margin-top: 16px;">评分总体分布</div>
|
|
|
+ <div class="vb-table" :style="{'border':'1px solid '+item.bcolor,'margin-top':'22px'}">
|
|
|
+ <div class="vbt-th adfac" :class="{'black':item.title==='目的与动机'}" :style="{'background':item.thcolor}">
|
|
|
+ <div class="vbtt-w1">主题</div>
|
|
|
+ <div class="vbtt-w2">最低分</div>
|
|
|
+ <div class="vbtt-w2">平均分</div>
|
|
|
+ <div class="vbtt-w2">最高分</div>
|
|
|
+ <div class="vbtt-w3">问卷陈述</div>
|
|
|
+ </div>
|
|
|
+ <div class="vbt-pre adfac" v-for="i in 5" :key="item">
|
|
|
+ <div class="vbtp-left vbtt-w1 adfacjc" :class="{'black':item.title==='目的与动机'}" :style="{'background':item.titlecolor,'padding':'0 16px'}">{{ '宗旨共融同心共识' }}</div>
|
|
|
+ <div class="vbtp-num vbtt-w2" :style="{'border-bottom':'1px solid '+item.bcolor}">{{ 3 }}</div>
|
|
|
+ <div class="vbtp-num vbtt-w2 green" :style="{'border-bottom':'1px solid '+item.bcolor}">{{ 8 }}</div>
|
|
|
+ <div class="vbtp-num vbtt-w2" :style="{'border-bottom':'1px solid '+item.bcolor}">{{ 1 }}</div>
|
|
|
+ <div class="vbtp-desc" :style="{'border-bottom':'1px solid '+item.bcolor}">
|
|
|
+ <div class="vbtpd-title">{{ '团队成员能够共同阐述其共享目的,并且在团队使命上保持高度一致。' }}</div>
|
|
|
+ <div class="xr_tb adfac">
|
|
|
+ <div class="xt_pre p1"></div>
|
|
|
+ <div class="xt_pre p2"></div>
|
|
|
+ <div class="xt_pre p3"></div>
|
|
|
+ <div class="xt_score adfac" :style="{'left':(4*2)+'%','width':((25-4)*2)+'%'}">
|
|
|
+ <div class="xts_num red">{{ 4 }}</div>
|
|
|
+ <div class="xts_box"></div>
|
|
|
+ <div class="xts_num green">{{ 25 }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="v2-data" :style="{'border':'1px solid '+item.bcolor}">
|
|
|
+ <div class="vd-title vt3" :class="{'black':item.title==='目的与动机'}" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+typeDict[item.title]+'_title_bg1.png)'}">诊断结果</div>
|
|
|
+ <div class="v2-p3">纬度得分</div>
|
|
|
+ <div class="vd-wd adfac" :style="{'background':item.wddf}">
|
|
|
+ <div class="vdwd-pre">维度加权总分:<span>{{ 34 }}</span></div>
|
|
|
+ <div class="vdwd-pre vp">维度同意度总分(未加权):<span>{{ 34 }}</span></div>
|
|
|
+ <div class="vdwd-pre">维度权重:<span>{{ 34 }}</span></div>
|
|
|
+ </div>
|
|
|
+ <div class="v2-p3" style="margin-top: 16px;">团队维度诊断结果</div>
|
|
|
+ <div class="v2-p" style="margin-top: 8px;" v-html="'后端返回数据 后端返回数据 后端返回数据 后端返回数据 后端返回数据 后端返回数据 '"></div>
|
|
|
+ </div>
|
|
|
+ <div class="v2-data" :style="{'border':'1px solid '+item.bcolor}" style="flex: 1;margin-top: 15px;">
|
|
|
+ <div class="vd-title vt3" :class="{'black':item.title==='目的与动机'}" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+typeDict[item.title]+'_title_bg1.png)'}">诊断建议</div>
|
|
|
+ <div class="v2-p" v-html="'后端返回数据 后端返回数据 后端返回数据 后端返回数据 后端返回数据 后端返回数据 '"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script name="">
|
|
|
+ import { BaseApi } from '@/http/baseApi.js';
|
|
|
+ import * as echarts from '@/components/lime-echart/static/echarts.min.js'
|
|
|
+ import lEchart from '@/components/lime-echart/components/l-echart/l-echart.vue'
|
|
|
+
|
|
|
+ export default {
|
|
|
+ name: 'ZtzdfxChart',
|
|
|
+ // props: {
|
|
|
+ // reportData: {
|
|
|
+ // type: Object,
|
|
|
+ // default: null
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ components:{ lEchart },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ reportData: null,
|
|
|
+ isChartReady: false,
|
|
|
+ scale:1,
|
|
|
+ originalContainerHeight: 0,
|
|
|
+ containerScaledHeight: 'auto',
|
|
|
+ typeDict: {
|
|
|
+ '目的与动机': 'zzdj',
|
|
|
+ '外部流程及系统与架构': 'wbjg',
|
|
|
+ '人际关系': 'rjgx',
|
|
|
+ '内部流程及系统与架构': 'nbjg',
|
|
|
+ '学习': 'xx',
|
|
|
+ '领导力': 'ldl'
|
|
|
+ },
|
|
|
+ sixWd: [
|
|
|
+ {
|
|
|
+ image: 'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_p.png',
|
|
|
+ type: 'P',
|
|
|
+ title: '宗旨与动机',
|
|
|
+ desc: '指团队共享的目的和存在的意义, 包含对共同的愿景,目标和优先级的清晰度。',
|
|
|
+ color: '#833479'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_e.png',
|
|
|
+ type: 'E',
|
|
|
+ title: '外部流程、系统与结构',
|
|
|
+ desc: '指团队与其外部利益相关者 - 客户,供应商,股东,组织内的其他团队等的互动关联。',
|
|
|
+ color: '#199C9C'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_r.png',
|
|
|
+ type: 'R',
|
|
|
+ title: '人际关系',
|
|
|
+ desc: '指团队成员如何共同工作–他们是否相互尊重对方的能力,足够心理安全以能够坦诚相对,真正关心彼此的幸福感。',
|
|
|
+ color: '#FEDA60'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_i.png',
|
|
|
+ type: 'I',
|
|
|
+ title: '内部流程、系统与结构',
|
|
|
+ desc: '指团队如何管理工作流程,互相支持和高质量的沟通和决策(包括工作任务和团队感情)。',
|
|
|
+ color: '#7AABED'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_l.png',
|
|
|
+ type: 'L',
|
|
|
+ title: '学习',
|
|
|
+ desc: '指团队应对多变的环境和保持持续的进步和成长的能力。团队如何提高绩效(如何完成今天的任务)、能力(如何提高技能和资源以处理明天的任务)和容量(长期的愿景, 如何用更少的资源做更多的事情)',
|
|
|
+ color: '#8093A3'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_l2.png',
|
|
|
+ type: 'L',
|
|
|
+ title: '领导力',
|
|
|
+ desc: '指团队认为需要怎样的领导行为能够让他们,作为个人或者团队做到最好。团队可以和他们的领导者讨论他们的责任,以帮助领导者成为他们需要的领导者。',
|
|
|
+ color: '#0096D8'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // reportData.value = props.reportData;
|
|
|
+ this.reportData = {
|
|
|
+ dimensionAnalysis:[
|
|
|
+ {title:'目的与动机',bcolor:'#FFE796',thcolor:'#FFD750',titlecolor:'#FFE796',wddf:'linear-gradient( 90deg, rgba(255,215,80,0.34) 0%, rgba(251,225,130,0.09) 100%)',
|
|
|
+ desc:`「宗旨与动机」维度,我们旨在探究是否存在一个清晰的存在理由和明确的方向,能够激发团队成员的动力并吸引他们的想象力,以及个人与集体的身份认同是否围绕共同的目标,并达成一致。`},
|
|
|
+ {title:'外部流程及系统与架构',bcolor:'#E4D2E1',thcolor:'#833478',titlecolor:'#BA8EB4',wddf:'linear-gradient( 90deg, #F5EFF5 0%, #FAF2F9 100%)',
|
|
|
+ desc:`「外部流程、系统与结构」维度,我们旨在探究团队如何与各种利益相关者互动,他们与团队的利益相关方各自如何寻求了解对方,以及现有系统和流程的有效性,以帮助管理不同的期望和需求。`},
|
|
|
+ {title:'人际关系',bcolor:'#B3DEDE',thcolor:'#199C9C',titlecolor:'#66BDBD',wddf:'linear-gradient( 90deg, #E8F5F5 0%, #F0F8F8 100%)',
|
|
|
+ desc:`「人际关系」维度,我们旨在探究团队成员如何相互交流、信任程度、尊重和关心的程度,以及团队成员之间的关系如何促进(或破坏)协作。`},
|
|
|
+ {title:'内部流程及系统与架构',bcolor:'#C7DCF8',thcolor:'#7AACED',titlecolor:'#95BDF1',wddf:'linear-gradient( 90deg, #E3ECF8 0%, #F2F5F9 100%)',
|
|
|
+ desc:`「内部流程、系统与结构」维度,我们旨在探究团队如何在平衡责任与自主权方面进行协作。我们关注团队的敏捷程度、沟通方式以及决策过程的有效性。`},
|
|
|
+ {title:'学习',bcolor:'#E6EAED',thcolor:'#4D697E',titlecolor:'#8093A3',wddf:'linear-gradient( 90deg, #EDF0F2 0%, #F2F4F6 100%)',
|
|
|
+ desc:`「学习」维度,我们旨在探究团队如何提高其绩效、技能和资源以应对当前和未来的任务。我们还希望了解团队如何管理能力和提高效率。`},
|
|
|
+ {title:'领导力',bcolor:'#D4EDF8',thcolor:'#0599D8',titlecolor:'#3BB6D9',wddf:'linear-gradient( 90deg, #E6F5FB 0%, #F3FCFB 100%)',
|
|
|
+ desc:`「领导力」维度,我们旨在探究领导素质和行为如何对团队功能和其他因素产生调节影响,以及这是积极的还是消极的。`}
|
|
|
+ ]
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ this.calculateScaleAndPosition();
|
|
|
+ uni.onWindowResize(() => {
|
|
|
+ this.calculateScaleAndPosition();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ calculateScaleAndPosition() {
|
|
|
+ uni.getSystemInfo({
|
|
|
+ success: (res) => {
|
|
|
+ const screenWidth = res.windowWidth; // 手机屏幕的宽度
|
|
|
+ const pcContentWidth = 630; // PC端内容的原始宽度
|
|
|
+ this.scale = screenWidth / pcContentWidth;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (this.$refs.ztzdfxRef) {
|
|
|
+ this.initZtzdfxChart();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ calculatePdfContainerHeight() {
|
|
|
+ uni.createSelectorQuery().in(this).select('#pdfContainer').boundingClientRect(rect => {
|
|
|
+ if (rect) {
|
|
|
+ this.originalContainerHeight = rect.height;
|
|
|
+ this.containerScaledHeight = this.originalContainerHeight * this.scale;
|
|
|
+ console.log('原始高度:', this.originalContainerHeight, '缩放比例:', this.scale, '缩放后高度:', this.containerScaledHeight);
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ },
|
|
|
+ downloadZtzdfxImg(){
|
|
|
+ if (!this.isChartReady) return console.log('图表尚未准备好');
|
|
|
+
|
|
|
+ const chartRef = this.$refs.ztzdfxRef;
|
|
|
+ if (!chartRef) return console.log('无法找到图表组件');
|
|
|
+
|
|
|
+ chartRef.canvasToTempFilePath({
|
|
|
+ success: async (res) => {
|
|
|
+ const imgUrl = await this.uploadFilePromise(res.tempFilePath);
|
|
|
+ console.log(imgUrl,'imgUrl');
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ console.log('生成图片失败:', err);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ uploadFilePromise(url) {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ let a = uni.uploadFile({
|
|
|
+ url: BaseApi+'/uploadFile',
|
|
|
+ filePath: url,
|
|
|
+ name: 'file',
|
|
|
+ success: (res) => {
|
|
|
+ setTimeout(() => {
|
|
|
+ let data = JSON.parse(res.data)
|
|
|
+ if(data&&data.code===0){
|
|
|
+ resolve(data.data);
|
|
|
+ }else this.$showToast(data?.msg)
|
|
|
+ }, 1000);
|
|
|
+ },
|
|
|
+ fail: err =>{
|
|
|
+ resolve('');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async initZtzdfxChart() {
|
|
|
+ const chart = await this.$refs.ztzdfxRef.init(echarts);
|
|
|
+ let option = {
|
|
|
+ graphic: [
|
|
|
+ {
|
|
|
+ type: 'image',
|
|
|
+ id: 'radar-bg',
|
|
|
+ z: -1,
|
|
|
+ bounding: 'raw',
|
|
|
+ left: 'center',
|
|
|
+ top: 'center',
|
|
|
+ style: {
|
|
|
+ width: 320,
|
|
|
+ height: 320,
|
|
|
+ opacity: 1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ radar: {
|
|
|
+ // shape: 'circle',
|
|
|
+ indicator: new Array(36).fill(''),
|
|
|
+ axisName: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitArea:{
|
|
|
+ show:false
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ startAngle: 95
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ type: 'radar',
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ value: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],
|
|
|
+ itemStyle: {
|
|
|
+ color: '#FFD650'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: '#FFD650',
|
|
|
+ width:2
|
|
|
+ },
|
|
|
+ areaStyle: {
|
|
|
+ color: 'rgba(255, 255, 255, 0.4)'
|
|
|
+ },
|
|
|
+ symbolSize: 4
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: [31,32,33,34,6,7,8,9,18,19,20,21,22,28,29,35,36,23,24,25,10,11,12,13,14,15,16,17,26,27,1,2,3,4,5,30],
|
|
|
+ itemStyle: {
|
|
|
+ color: '#751E6A'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: '#751E6A',
|
|
|
+ width:2
|
|
|
+ },
|
|
|
+ areaStyle: {
|
|
|
+ color: 'rgba(255, 255, 255, 0.4)'
|
|
|
+ },
|
|
|
+ symbolSize: 4
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: [21,22,28,29,35,36,23,31,32,33,34,6,7,8,9,18,19,20,24,25,10,11,27,1,2,3,4,5,30,12,13,14,15,16,17,26],
|
|
|
+ itemStyle: {
|
|
|
+ color: '#012846'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: '#012846',
|
|
|
+ width:2
|
|
|
+ },
|
|
|
+ areaStyle: {
|
|
|
+ color: 'rgba(255, 255, 255, 0.4)'
|
|
|
+ },
|
|
|
+ symbolSize: 4
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: [28,29,35,36,23,24,27,18,19,20,21,22,11,25,10,31,32,33,34,6,7,8,9,18,19,20,21,22,11,12,13,14,15,16,17,26],
|
|
|
+ itemStyle: {
|
|
|
+ color: '#AFCDF5'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: '#AFCDF5',
|
|
|
+ width:2
|
|
|
+ },
|
|
|
+ areaStyle: {
|
|
|
+ color: 'rgba(255, 255, 255, 0.4)'
|
|
|
+ },
|
|
|
+ symbolSize: 4
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ chart.setOption(option);
|
|
|
+ this.isChartReady = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.calculatePdfContainerHeight();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ }
|
|
|
+ };
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+ .page-wrappe{
|
|
|
+ width: 100%;
|
|
|
+ background: #FFFFFF;
|
|
|
+ overflow-x: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
+ .pdf-container{
|
|
|
+ width: 630px;
|
|
|
+ padding: 0 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ transform-origin: top left;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @import '../static/pdf.scss';
|
|
|
+</style>
|