pdfZyb.vue 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410
  1. <template>
  2. <view class="page-wrappe">
  3. <cus-header title=' ' bgColor="transparent"></cus-header>
  4. <view id="pdfContainer" class="pdf-container" :style="{'transform':'scale('+scale+')', 'height': containerScaledHeight + 'px'}" v-if="reportData">
  5. <!-- 封面 -->
  6. <view class="cd_box fm2 adffc" style="border: none;margin-top: 20px;height: 868px;">
  7. <img class="fm2-logo" src="https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fm_logo.png">
  8. <img class="fm2-logo2" src="https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fm_logo2.png">
  9. <img class="fm2-perill" src="https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fm_perill.png">
  10. <view class="fm2-line"></view>
  11. <view class="fm2-p" style="margin-top: 4px;font-size: 38px;">团队发展动态评估报告(团队版)</view>
  12. <view class="fm2-texts adf">
  13. <view class="fm2-texts-pre adf" style="margin-top: 6px;">
  14. <view class="fm2-texts-pre-span">客户名称:</view>
  15. <view class="fm2-texts-pre-val">{{ reportData.teamInfo.enterpriseName||'' }}</view>
  16. </view>
  17. <view class="fm2-texts-pre adf" style="margin-top: 6px;">
  18. <view class="fm2-texts-pre-span">团队名称:</view>
  19. <view class="fm2-texts-pre-val">{{ reportData.teamInfo.teamName||'' }}</view>
  20. </view>
  21. <view class="fm2-texts-pre adf" style="margin-top: 6px;">
  22. <view class="fm2-texts-pre-span">团队职能类型:</view>
  23. <view class="fm2-texts-pre-val">{{ reportData.teamInfo.functionName||'' }}</view>
  24. </view>
  25. <view class="fm2-texts-pre adf" style="margin-top: 6px;">
  26. <view class="fm2-texts-pre-span">团队模式类型:</view>
  27. <view class="fm2-texts-pre-val">{{ reportData.teamInfo.organizationName||'' }}</view>
  28. </view>
  29. <view class="fm2-texts-pre adf" style="margin-top: 6px;">
  30. <view class="fm2-texts-pre-span">评估发起人:</view>
  31. <view class="fm2-texts-pre-val">{{ reportData.teamInfo.initiator||'' }}</view>
  32. </view>
  33. <view class="fm2-texts-pre adf" style="margin-top: 6px;">
  34. <view class="fm2-texts-pre-span">报告生成时间:</view>
  35. <view class="fm2-texts-pre-val">{{ reportData.teamInfo.reportDate||'' }}</view>
  36. </view>
  37. </view>
  38. <view class="fm2-tip" style="margin-top: 12px;">免责声明:本团队测评报告基于您方团队填写的测评数据及相关信息生成,深圳创衡管理顾问有限公司不对报告内容的真实性、准确性和完整性负责。本报告仅供您了解团队情况、优化管理决策提供参考。报告结论不构成任何法律、商业或投资建议,亦不替代专业咨询意见。我方不对因使用本报告内容而产生的任何直接或间接损失承担责任。</view>
  39. </view>
  40. <!-- 介绍 -->
  41. <view class="cd_box" style="border: none">
  42. <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)','padding':'0 8px 0 24px'}">
  43. <view class="vt-left" style="color: #FFFFFF;">PERILL模型介绍</view>
  44. <view class="vt-right">团队发展动态评估报告(团队版) </view>
  45. </view>
  46. <view class="v2-box">
  47. <img class="vb-img1" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_box_img1.png'">
  48. <view class="v2-p">PERILL团队发展动态评估源于团队教练辅导领域的先驱、管理思维与团队绩效领域的权威、全球顶尖团队教练David Clutterbuck教授及其团队通过深入研究,提炼出影响团队绩效的140多个基于实证的因素,整合而成的团队评估和提升工具-PERILL模型。</view>
  49. <view class="v2-p" style="margin-top: 8px;">创衡国际基于10多年来在全球与200多家具有前瞻性的国际公司以及国内具有行业代表性公司的合作经验,结合CCMI的PERILL评估工具,在中国推出的团队发展动态评估系统,旨在帮助团队更全面、更有效地从六个维度评估团队的发展现状,为支持团队成为高价值创造团队提供全景式的客观评估。</view>
  50. <view class="v2-p" style="margin-top: 8px;">PERILL团队发展动态评估(团队版)的主体内容由<span>{{ reportData.teamInfo.questionCount }}</span>个关于团队的描述组成。</view>
  51. </view>
  52. <view class="v2-six">
  53. <view class="vsix-title">PERILL六大纬度</view>
  54. <view class="vsix-p">PERILL评估提供了一个复杂的团队系统概览,它并非针对孤立的问题,也不是简单的优缺点,而是着眼于团队系统的复杂性。它通过6个影响因素(如下所述)提出问题,以揭示团队系统各要素之间的联系,以及这些联系如何影响团队的高效运作能力。</view>
  55. <view class="vsix-boxs">
  56. <view class="vsb adfac" v-for="(item,index) in sixWd" :key="index">
  57. <img class="vsb-img" :src="item.img"/>
  58. <view class="vsb-right">
  59. <view class="vsbr-top adfac">
  60. <view class="vsbrt-type" :style="{'background':item.color}">{{ item.type }}</view>
  61. <view class="vsbrt-title" :style="{'color':item.color}">{{ item.title }}</view>
  62. </view>
  63. <view class="vsbr-desc">{{ item.desc }}</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 总体评估分析 -->
  70. <view class="cd_box adffc" style="border: none;">
  71. <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)'}">
  72. <view class="vt-left">总体评估分析</view>
  73. <view class="vt-right">团队发展动态评估报告(团队版) </view>
  74. </view>
  75. <view class="v2-box" style="border: 1px solid #33A7A7;">
  76. <img class="vb-img1" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_box_img1.png'">
  77. <view class="v2-p2">报告的核心是PERILL评估分析下的整体团队表现。这包括团队在PERILL模型每个关键要素上的综合得分,通过结合得分和置信指数,我们能够展示出高功能和低功能领域。</view>
  78. <view class="v2-p2" style="margin-top: 2px;font-weight: 400;color: #002846;font-size: 10px;">下面图中的位置标记显示了团队按影响力划分的总分。</view>
  79. <view class="vb-category" v-if="reportData&&reportData.teamInfo">
  80. <view class="vbc-pre adfac">
  81. <view class="vbcp-yuan y1"></view>
  82. <view class="vbcp-text">团队领导者 Team Leader&nbsp;&nbsp;{{ reportData.teamInfo.leaderCount||0 }}人</view>
  83. </view>
  84. <view class="vbc-pre adfac">
  85. <view class="vbcp-yuan y2"></view>
  86. <view class="vbcp-text">团队成员 Team Member&nbsp;&nbsp;{{ reportData.teamInfo.memberCount||0 }}人</view>
  87. </view>
  88. <view class="vbc-pre adfac">
  89. <view class="vbcp-yuan y3"></view>
  90. <view class="vbcp-text">利益相关方 Stakeholder&nbsp;&nbsp;{{ reportData.teamInfo.stackCount||0 }}人</view>
  91. </view>
  92. <view class="vbc-pre adfac">
  93. <view class="vbcp-yuan y4"></view>
  94. <view class="vbcp-text">赞助人/出资人 Sponsor&nbsp;&nbsp;{{ reportData.teamInfo.sponsorCount||0 }}人</view>
  95. </view>
  96. </view>
  97. <view style="width:360px;height:360px;margin: 0 auto;" class="pdfEchart">
  98. <l-echart ref="ztzdfxRef" :canvas2d="true" @finished="initZtzdfxChart" style="width: 100%;height: 100%;"></l-echart>
  99. </view>
  100. <view class="v2b-tip-title" style="color: #002846;">注: 关于认同度、重要性分、影响力分的定义</view>
  101. <view class="v2b-tip-memo">
  102. a.“认同度分”,指标逻辑为团队全体对当前主题所对应各问卷题目认同度评分的均值,用来表征团队对这一主题问卷所陈述内容与团队情况的相符合程度的平均认知,最高分:5分,最低分:1分;<br>
  103. b.“重要分”,指标逻辑为根据团队全体对当前主题所对应各问卷题目重要性评分的均值,用来表征团队对这一主题问卷所陈述内容对于团队重要性的平均认知,最高分:5分,最低分:1分;<br>
  104. c.“影响力分”,指标逻辑为综合团队全体对当前主题所对应各问卷题目的认同度与重要性的评分数据测算而来,用来表征团队对这一主题问卷所陈述内容对于团队的影响力水平,最高分:5分,最低分:1分;</view>
  105. <view class="v2b-title">总评分表</view>
  106. <view class="sum_score_table">
  107. <div class="sst-th adfac">
  108. <div class="sstt1">PERILL维度</div>
  109. <div class="sstt2">
  110. <div class="sstt2-title">团队全员</div>
  111. <div class="sstt2-subs adfac">
  112. <div class="sstt2-s sstt-td">认同度</div>
  113. <div class="sstt2-s sstt-td">重要性</div>
  114. <div class="sstt2-s sstt-td">影响力</div>
  115. </div>
  116. </div>
  117. <div class="sstt3">
  118. <div class="sstt3-pre adfac">
  119. <div class="sstt-td">利益相关者</div>
  120. <div class="sstt-td notr">赞助者</div>
  121. </div>
  122. <div class="sstt3-pre adfac">
  123. <div class="sstt-td">影响力</div>
  124. <div class="sstt-td notr">影响力</div>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="sst-trs">
  129. <div class="sstr-pre adfac" :class="{'spbg':index%2===1,'lasttr':index===perillData.length-1}" v-for="(item,index) in perillData" :key="index">
  130. <div class="sstr-td1">{{ item.dimension }}</div>
  131. <div class="sstr-td2">{{ item.teamRecognition }}</div>
  132. <div class="sstr-td2">{{ item.teamImportance }}</div>
  133. <div class="sstr-td2">{{ item.teamInfluence }}</div>
  134. <div class="sstr-td2">{{ item.stakeholderInfluence }}</div>
  135. <div class="sstr-td2 notr">{{ item.sponsorInfluence }}</div>
  136. </div>
  137. </div>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 总体评估分析 评估建议-->
  142. <view class="cd_box adffc" style="border: none;">
  143. <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)'}">
  144. <view class="vt-left">总体评估分析</view>
  145. <view class="vt-right">团队发展动态评估报告(团队版) </view>
  146. </view>
  147. <view class="v2-box" style="border: 1px solid #33A7A7;">
  148. <img class="vb-img1" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_box_img1.png'">
  149. <view class="v2b-title" style="margin-top: 0;">评估建议</view>
  150. <view class="v2b-p" v-html="renderMarkdown(reportData.totalDiagnosisSuggest||'')"></view>
  151. <view class="v2b-title">评估结果</view>
  152. <view class="v2b-p" v-html="renderMarkdown(reportData.totalDiagnosticOutput||'')"></view>
  153. </view>
  154. </view>
  155. <!-- 多维度 -->
  156. <canvas type="2d" canvas-id="score-canvas" id="score-canvas" class="offscreen-canvas"></canvas>
  157. <template v-if="reportData&&reportData.dimensionAnalysis&&reportData.dimensionAnalysis.length">
  158. <block v-for="(item,index) in reportData.dimensionAnalysis" :key="index">
  159. <view class="cd_box adffc" style="border: none;">
  160. <view class="v2-top adfacjb" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+(typeDict[item.title]||'zzdj')+'_title_bg.png)','padding':'0 8px 0 24px'}">
  161. <view class="vt-left" :class="{'black':(item.title=='人际关系'||item.title=='学习')}">{{ item.title }}</view>
  162. <view class="vt-right">团队发展动态评估报告(团队版) </view>
  163. </view>
  164. <view class="v2-box" :style="{'border':'none','padding':0}">
  165. <view class="v2-p2">{{ item.desc }}</view>
  166. <view class="vb-table adf" :style="{'border':'1px solid '+item.bordercolor,'margin-top':'12px'}">
  167. <view class="vbt2-left">
  168. <view class="vbt2l-th adf" :style="{'background':item.thbgcolor,'color':item.thtextcolor}">
  169. <view class="vbt2l-th-title adfac">主题</view>
  170. <view class="vbt2l-th-score adfacjc">影响力分</view>
  171. </view>
  172. <view class="vbt2l-pre" v-for="(ss,si) in item.scoreSpreads" :key="si" :style="{'border-bottom':'1px solid '+item.bordercolor}">
  173. <view class="vbt2l-pre-l adffc">
  174. <view class="vbt2l-pre-l-title" :style="{'color':item.titlecolor}">{{ ss.theme||'' }}</view>
  175. <view class="vbt2l-pre-l-tip">{{ ss.question||'' }}</view>
  176. </view>
  177. <view class="vbt2l-pre-r adfacjc">{{ ss.regular.avgScore||0 }}</view>
  178. </view>
  179. </view>
  180. <view class="vbt2-right adffc">
  181. <view class="vbt2r-th adf" :style="{'background':item.thbgcolor,'color':item.thtextcolor}">
  182. <view class="vbt2r-pre adfacjc">认同度分</view>
  183. <view class="vbt2r-pre adfacjc">重要性分</view>
  184. </view>
  185. <view class="vbt2r-tb adf">
  186. <view class="vbt2r-tb-l adffc">
  187. <view class="vbt2r-tb-l-pre red adfac" v-for="(ss,si) in item.scoreSpreads" :key="si" :style="{'border-bottom':'1px solid '+item.bordercolor}">
  188. <view class="vbt2r-tb-l-pre-bg"></view>
  189. <view class="vbt2r-tb-l-pre-zzt red" :style="{'width':(ss.regular.avgAgreement/6*100)+'%'}">
  190. <view class="vbt2r-tb-l-pre-zzt-numl">{{ ss.regular.avgAgreement||0 }}</view>
  191. </view>
  192. </view>
  193. </view>
  194. <view class="vbt2r-tb-l">
  195. <view class="vbt2r-tb-l-pre green adfac" v-for="(ss,si) in item.scoreSpreads" :key="si" :style="{'border-bottom':'1px solid '+item.bordercolor}">
  196. <view class="vbt2r-tb-l-pre-bg r"></view>
  197. <view class="vbt2r-tb-l-pre-zzt green" :style="{'width':(ss.regular.avgVital/6*100)+'%'}">
  198. <view class="vbt2r-tb-l-pre-zzt-numr">{{ ss.regular.avgVital||0 }}</view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. <view class="v2-subp">评估结果</view>
  206. <view class="v2-p" style="margin-top: 6px;" v-html="renderMarkdown2(item.diagnosisOutput||'')"></view>
  207. </view>
  208. </view>
  209. <view class="cd_box adffc" style="border: none;">
  210. <view class="v2-top adfacjb" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/'+(typeDict[item.title]||'zzdj')+'_title_bg.png)','padding':'0 8px 0 24px'}">
  211. <view class="vt-left" :class="{'black':(item.title=='人际关系'||item.title=='学习')}">{{ item.title }}</view>
  212. <view class="vt-right">团队发展动态评估报告(团队版) </view>
  213. </view>
  214. <view class="v2-box" :style="{'border':'none','padding':0}">
  215. <view class="v2-p" style="margin-top: 6px;" v-html="renderMarkdown2(item.diagnosisSuggest||'')"></view>
  216. </view>
  217. </view>
  218. </block>
  219. </template>
  220. <!-- 封底页 -->
  221. <view class="cd_box fdy" style="border: none;">
  222. <view class="v2-top adfacjb" :style="{'background-image':'url(https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fdy_title_bg.png)'}">
  223. <view class="vt-left" style="color: #FFFFFF;">结言</view>
  224. <view class="vt-right">团队发展动态评估报告(团队版)</view>
  225. </view>
  226. <view class="fdy-title">致团队:从评估到行动,开启团队进化跃迁之旅</view>
  227. <view class="fdy-p">当您阅读至此,首先恭喜您和团队伙伴共同完成了一次完整、专业的团队评估!这标志着团队发展旅程中一个充满可能性的新起点。</view>
  228. <view class="fdy-p">作为团队教练,我们希望与您分享PERILL评估的科学价值,并为您描绘从系统诊断到协同进化的路径。 </view>
  229. <view class="fdy-subtitle">一、这份报告为团队带来了什么? </view>
  230. <view class="fdy-p" style="margin-top: 6px;">这份报告整合了团队内部(如:团队领导者与成员)与外部(如:客户、合作伙伴、赞助人)的多方视角,为您呈现团队作为一个“系统”的真实状态。它帮助团队:</view>
  231. <view class="fdy-p" style="margin-top: 0px;text-indent: 24px;">· 看见惯性模式与盲点——那些日常被忽略的协作断点、沟通落差与共识偏差。</view>
  232. <view class="fdy-p" style="margin-top: 0px;text-indent: 24px;">· 获得立体画像而非主观印象——基于数据而非直觉,客观定位团队在六大维度的表现。</view>
  233. <view class="fdy-p" style="margin-top: 0px;text-indent: 24px;">· 识别高杠杆改进区——不只列出问题,更揭示“从哪里改变,能带动全局提升”。</view>
  234. <view class="fdy-subtitle">二、PERILL 评估的科学洞察:不只是分数,更是系统思维</view>
  235. <view class="fdy-p" style="margin-top: 6px;">PERILL源自David Clutterbuck教授数十年的实证研究,其价值远超过一份评分报告。它帮助团队实现:</view>
  236. <view class="fdy-subtitle2">从“凭感觉管理”到“系统诊断”</view>
  237. <view class="fdy-p" style="margin-top: 6px;text-indent: 24px;">传统团队讨论容易陷入“我觉得”“你认为”的主观争论。PERILL提供共同语言与结构框架,让对话基于事实,聚焦系统障碍而非个人指责。</view>
  238. <view class="fdy-subtitle2">揭示“维度关联”,避免单一解药</view>
  239. <view class="fdy-p" style="margin-top: 6px;text-indent: 24px;">PERILL 揭示六大维度间的动态关联,例如:</view>
  240. <view class="fdy-p" style="margin-top: 0px;text-indent: 24px;">· 人际关系(R)紧张 → 抑制信息共享 → 影响学习(L)与创新 → 动摇宗旨认同(P)。</view>
  241. <view class="fdy-p" style="margin-top: 0px;text-indent: 24px;">· 改进关键点:可能只需提升心理安全(R),即可激活学习(L)与协同(I)。</view>
  242. <view class="fdy-subtitle2">赋能团队成为“自我进化系统”</view>
  243. <view class="fdy-p" style="margin-top: 6px;text-indent: 24px;">评估过程本身就是一次深度对话与反思。通过共同诊断、共同制定行动,团队主人翁意识被激发,变革可持续性远高于外部强加的“方案”。</view>
  244. <view class="fdy-subtitle">三、接下来,团队可以如何行动?</view>
  245. <view class="fdy-p" style="margin-top: 8px;">报告只是开始,真正的进化发生在对话与实践中。可以依照团队的需求去安排以下内容</view>
  246. <view class="fdy-subtitle2">1. 召开一次“报告解读与共识工作坊”</view>
  247. <view class="fdy-p" style="margin-top: 6px;text-indent: 24px;">邀请专业团队教练与团队一起开放地探讨评估结果,理解数据背后的含义,并就<span style="font-weight: bold;">“我们接下来共同聚焦哪1-2个维度?”</span>达成共识。这个过程本身,就是一次强有力的团队对话与承诺建立。</view>
  248. <view class="fdy-subtitle2">2. 针对关键挑战,设计专题行动实验</view>
  249. <view class="fdy-subtitle2">3. 如需深度支持,可考虑引入团队教练辅导助力团队发展</view>
  250. <view class="fdy-p">每一支高价值团队,都始于对现状清醒的认知与共同进化的勇气。PERILL为团队提供了导航仪与路线图——下一步,行动在您们手中。</view>
  251. <view class="fdy-p">PERILL不止于评估,更在于赋能。期待与您和团队同行,见证未来的更多可能。</view>
  252. <view class="fdy-p" style="margin-top: 8px;">具体需求可联系您的团队教练 或 扫码联系“⼤衡同学”。</view>
  253. <view class="fdy-code adffcac">
  254. <img class="fdy-code-team" :src="'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/fdy_code.png'">
  255. <p style="margin-top: 0;font-size: 10px;color: #002846;line-height: 18px;">扫码联系大衡同学</p>
  256. </view>
  257. <view class="v2b-alert">注:团队发展本身就不是单一答案的过程,PERILL AI教练根据创衡独创团队教练方法论,可以从不同角度解读团队,发现那些隐藏的机会点。多元建议代表多元可能。您可以尝试再次生成评估报告,探索更多可能性。</view>
  258. </view>
  259. </view>
  260. <view class="pdf_btn" @click="createPdf">生成PDF</view>
  261. <view class="loading adffcacjc" v-if="isLoading">
  262. <u-loading-icon text="数据加载中,请耐心等待" :vertical="true" size="72" color="#FFFFFF" textSize="32" textColor="#FFFFFF"></u-loading-icon>
  263. </view>
  264. </view>
  265. </template>
  266. <script name="">
  267. import { BaseApi } from '@/http/baseApi.js';
  268. import * as echarts from '@/pagesHome/components/lime-echart/static/echarts.min.js'
  269. import lEchart from '@/pagesHome/components/lime-echart/components/l-echart/l-echart.vue'
  270. export default {
  271. name: 'ZtzdfxChart',
  272. components:{ lEchart },
  273. data() {
  274. return {
  275. isLoading: true,
  276. reportId:'',
  277. reportData: null,
  278. isChartReady: false,
  279. scale:1,
  280. originalContainerHeight: 0,
  281. containerScaledHeight: 'auto',
  282. typeDict: {
  283. '宗旨与动机':'zzdj',
  284. '外部流程、系统与结构':'wbjg',
  285. '人际关系':'rjgx',
  286. '内部流程、系统与结构':'nbjg',
  287. '学习':'xx',
  288. '领导力':'ldl'
  289. },
  290. sixWd: [
  291. {
  292. img:'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_p.png',
  293. type:'P',
  294. title:'宗旨与动机',
  295. desc:'指团队共享的目的和存在的意义, 包含对共同的愿景,目标和优先级的清晰度。',
  296. color:'#761E6A'
  297. },
  298. {
  299. img:'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_e.png',
  300. type:'E',
  301. title:'外部流程、系统与结构',
  302. desc:'指团队与其外部利益相关者 - 客户,供应商,股东,组织内的上级及其他团队的互动关系和协作机制。',
  303. color:'#009191'
  304. },
  305. {
  306. img:'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_r.png',
  307. type:'R',
  308. title:'人际关系',
  309. desc:'指团队成员共同工作时的关系状态–他们是否相互尊重和信任对方的能力,是否足够心理安全以能够坦诚沟通,是否真正关心彼此的幸福感等。',
  310. color:'#FFD750'
  311. },
  312. {
  313. img:'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_i.png',
  314. type:'I',
  315. title:'内部流程、系统与结构',
  316. desc:'指团队如何管理工作任务和流程(包括但不限于会议、任务分配和团队情绪等),互相支持以及高质量的沟通和决策。',
  317. color:'#4EB2B2'
  318. },
  319. {
  320. img:'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_l.png',
  321. type:'L',
  322. title:'学习',
  323. desc:'指团队如何应对多变的环境和保持持续的进步和成⻓,能够从经验中反思、提炼并应用知识的能力。',
  324. color:'#AFCDF5'
  325. },
  326. {
  327. img:'https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/versionTwo/intro_img_l2.png',
  328. type:'L',
  329. title:'领导力',
  330. desc:'指团队认为需要怎样的领导行为能够让他们,作为个人或者团队做到最好。团队可以和他们的领导者讨论他们的责任及承担方式,以帮助领导者成为他们需要的领导者。',
  331. color:'#002846'
  332. }
  333. ],
  334. pdfImages:[],
  335. perillData:[
  336. {
  337. filter: '宗旨与动机',
  338. dimension: '宗旨与动机(P)',
  339. teamRecognition: '-',
  340. teamImportance: '-',
  341. teamInfluence: '-',
  342. stakeholderInfluence: '-',
  343. sponsorInfluence: '-'
  344. },
  345. {
  346. filter: '外部流程、系统与结构',
  347. dimension: '外部流程及系统及架构(E)',
  348. teamRecognition: '-',
  349. teamImportance: '-',
  350. teamInfluence: '-',
  351. stakeholderInfluence: '-',
  352. sponsorInfluence: '-'
  353. },
  354. {
  355. filter: '人际关系',
  356. dimension: '人际关系(R)',
  357. teamRecognition: '-',
  358. teamImportance: '-',
  359. teamInfluence: '-',
  360. stakeholderInfluence: '-',
  361. sponsorInfluence: '-'
  362. },
  363. {
  364. filter: '内部流程、系统与结构',
  365. dimension: '内部流程及系统及架构(I)',
  366. teamRecognition: '-',
  367. teamImportance: '-',
  368. teamInfluence: '-',
  369. stakeholderInfluence: '-',
  370. sponsorInfluence: '-'
  371. },
  372. {
  373. filter: '学习',
  374. dimension: '学习(L)',
  375. teamRecognition: '-',
  376. teamImportance: '-',
  377. teamInfluence: '-',
  378. stakeholderInfluence: '-',
  379. sponsorInfluence: '-'
  380. },
  381. {
  382. filter: '领导力',
  383. dimension: '领导力(L)',
  384. teamRecognition: '-',
  385. teamImportance: '-',
  386. teamInfluence: '-',
  387. stakeholderInfluence: '-',
  388. sponsorInfluence: '-'
  389. }
  390. ]
  391. };
  392. },
  393. onLoad(options) {
  394. this.reportId = options.reportId;
  395. this.getReportData();
  396. },
  397. onReady() {
  398. // #ifdef MP-WEIXIN
  399. wx.hideShareMenu();
  400. // #endif
  401. },
  402. mounted() {
  403. this.calculateScaleAndPosition();
  404. uni.onWindowResize(() => {
  405. this.calculateScaleAndPosition();
  406. });
  407. },
  408. methods: {
  409. renderMarkdown(val) {
  410. if(!val) return '';
  411. val = '<span style="padding-left:4ch;"></span>'+val;
  412. val = this.formattedText2(val);
  413. val = val.replaceAll('\n','<br><span style="padding-left:4ch;"></span>')
  414. val = this.formattedText(val);
  415. return val
  416. },
  417. renderMarkdown2(val) {
  418. if(!val) return '';
  419. val = '<span style="padding-left:4ch;"></span>'+val;
  420. val = val.replaceAll('\n','<br><span style="padding-left:4ch;"></span>')
  421. return val
  422. },
  423. formattedText(val) {
  424. // 正则表达式:匹配**包裹的内容
  425. // /\*\*(.*?)\*\*/g 解析:
  426. // \*\* 匹配两个星号(*需要转义)
  427. // (.*?) 非贪婪匹配任意字符(括号捕获匹配的内容)
  428. // g 全局匹配(替换所有符合条件的内容)
  429. const regex = /\*\*(.*?)\*\*/g
  430. // 替换为<b>标签,$1表示正则中括号捕获的内容
  431. return val.replace(regex, '<b>$1</b>')
  432. },
  433. formattedText2(val) {
  434. // 正则解析:
  435. // #{1,6} 匹配1到6个#
  436. // (.*?) 非贪婪捕获#后、空格前的任意文字(核心要保留的内容)
  437. // \s 匹配后面的空格(注意是单个空格,若要兼容多个空格可改为\s+)
  438. // g 全局匹配,替换所有符合条件的内容
  439. const regex = /#{1,6}\s*(.+?)\s*\n/g;
  440. // 替换规则:将匹配到的 "#文字 " / "##文字 " / "###文字 " 转为 "<b>文字</b>"
  441. return val.replace(regex, '<b>$1</b><br>')
  442. },
  443. getReportData(){
  444. this.$api.get(`/core/report/previewReport/${this.reportId}`).then(async ({data:res})=>{
  445. if(res.code!==0) return this.$showToast(res.msg)
  446. this.reportData = res.data;
  447. const tempDimensionAnalysis = [
  448. {
  449. title:'宗旨与动机',thbgcolor:'#761E6A',thtextcolor:'#FFFFFF',titlecolor:'#761E6A',dimensionCode:"purpose",bordercolor:'#E4D2E1',
  450. desc:`「宗旨与动机」维度,我们旨在探究团队是否有清晰的存在理由和明确的方向,能够激发团队成员的动力并吸引他们的想象力,以及个人与集体的身份认同是否围绕共同的目标,并在实现目标的优先次序上达成一致。`
  451. },
  452. {
  453. title:'外部流程、系统与结构',thbgcolor:'#009191',thtextcolor:'#FFFFFF',titlecolor:'#009191',dimensionCode:"external",bordercolor:'#B3DEDE',
  454. desc:`「外部流程、系统与结构」维度,我们旨在探究团队如何与各种利益相关者互动,他们与团队的利益相关方各自如何寻求了解对方,以及现有系统和流程的有效性,以帮助管理不同利益相关者的期望和需求。`
  455. },
  456. {
  457. title:'人际关系',thbgcolor:'#FFD750',thtextcolor:'#002846',titlecolor:'#002846',dimensionCode:"relationship",bordercolor:'#FFEBA8',
  458. desc:`「人际关系」维度,我们旨在探究团队成员相互沟通交流的状态,团队成员的信任程度、尊重和关心的程度、心理安全度,以及团队成员之间的关系如何促进(或破坏)协作。`
  459. },
  460. {
  461. title:'内部流程、系统与结构',thbgcolor:'#4EB2B2',thtextcolor:'#FFFFFF',titlecolor:'#33A7A7',dimensionCode:"internal",bordercolor:'#B3DEDE',
  462. desc:`「内部流程、系统与结构」维度,我们旨在探究团队在管理工作任务和流程中如何平衡责任与自主权进行协作。主要关注团队应对变化时的敏捷程度、日常沟通方式以及内部决策过程的有效性。`
  463. },
  464. {
  465. title:'学习',thbgcolor:'#AFCDF5',thtextcolor:'#002846',titlecolor:'#002846',dimensionCode:"learning",bordercolor:'#C7DCF8',
  466. desc:`「学习」维度,我们旨在探究团队如何提高其绩效(完成当下的任务)、能力(提高技能和资源以处理明天的任务)和容量(⻓期的愿景,用更少的资源做更多的事情)以应对当前和未来的任务。同时还关注团队如何管理这些能力和提高效率。`
  467. },
  468. {
  469. title:'领导力',thbgcolor:'#002846',thtextcolor:'#FFFFFF',titlecolor:'#002846',dimensionCode:"leadership",bordercolor:'#E6EAED',
  470. desc:`「领导力」维度,我们旨在探究团队领导者的素质和行为(包括但不限于正式与非正式的引导、赋能与责任承担方式)如何对团队功能和其他因素产生影响,以及这是积极的还是消极的。`
  471. }
  472. ]
  473. this.reportData.dimensionAnalysis.forEach((d,i)=>{
  474. d.scoreSpreads.forEach(s=>{
  475. s.theme = s.theme.replaceAll(',',' ').replaceAll(',','');
  476. })
  477. let temp = tempDimensionAnalysis.find(t=>t.dimensionCode === d.dimensionCode)||{};
  478. this.reportData.dimensionAnalysis[i] = {...d,...temp}
  479. })
  480. this.reportData.overall.forEach(o=>{
  481. let temp = this.perillData.find(t=>t.filter === o.dimension);
  482. let ti = this.perillData.findIndex(t=>t.filter === o.dimension);
  483. if(temp&&ti>-1){
  484. if(o.dimensionTotalSpreads&&o.dimensionTotalSpreads.length){
  485. this.perillData[ti].teamRecognition = o.dimensionTotalSpreads[0].all_agreement||'-';
  486. this.perillData[ti].teamImportance = o.dimensionTotalSpreads[0].all_vital||'-';
  487. this.perillData[ti].teamInfluence = o.dimensionTotalSpreads[0].all_score||'-';
  488. this.perillData[ti].stakeholderInfluence = o.dimensionTotalSpreads[0].stakeholder_score||'-';
  489. this.perillData[ti].sponsorInfluence = o.dimensionTotalSpreads[0].sponsor_score||'-';
  490. }
  491. }
  492. })
  493. // 【关键逻辑】在数据渲染后,开始预加载图片
  494. await this.$nextTick(); // 确保DOM更新完毕
  495. try {
  496. const imageUrls = this.collectImageUrls();
  497. const results = await this.preloadAllImages(imageUrls);
  498. // (可选) 检查加载结果并上报或提示
  499. const failedImages = results
  500. .filter(result => result.status === 'rejected')
  501. .map(result => result.reason.url); // 获取加载失败的图片URL
  502. if (failedImages.length > 0) {
  503. console.error(`加载失败的图片 (重试3次后):`, failedImages);
  504. this.$showToast('部分图片资源加载失败');
  505. } else {
  506. console.log('所有依赖的图片已加载完成!');
  507. }
  508. } catch (error) {
  509. // Promise.allSettled 本身不应该抛出错误,这里作为保险
  510. console.error('预加载过程中发生意外错误:', error);
  511. } finally {
  512. // 无论成功或失败,最后都隐藏loading
  513. this.isLoading = false;
  514. }
  515. }).catch(err => {
  516. // 网络请求失败等情况
  517. console.error('获取报告数据失败:', err);
  518. this.isLoading = false;
  519. this.$showToast('获取报告数据失败,请检查网络');
  520. });
  521. },
  522. /**
  523. * @description 新增:收集页面上所有需要预加载的图片URL
  524. * @returns {Array<string>} 包含所有图片URL的数组
  525. */
  526. collectImageUrls() {
  527. // 使用 Set 来自动去重
  528. const imageUrls = new Set();
  529. const baseUrl = 'https://oss.familydaf.cn/sxsnfile/';
  530. // 1. 静态图片 (封面、介绍等)
  531. imageUrls.add(baseUrl + '20251230/b70c19716d86452aaa0c9808a2851e8b.png');
  532. console.log(`[Preload] 收集到 ${imageUrls.size} 个待加载的图片URL`);
  533. return Array.from(imageUrls); // 将 Set 转换为数组
  534. },
  535. /**
  536. * @description 【新增】带重试逻辑的单个图片加载器
  537. * @param {string} url 图片URL
  538. * @param {number} maxRetries 最大重试次数
  539. * @returns {Promise} 成功时 resolve, 彻底失败时 reject
  540. */
  541. loadImageWithRetry(url, maxRetries = 5) {
  542. return new Promise((resolve, reject) => {
  543. let attempts = 0;
  544. const tryLoad = () => {
  545. attempts++;
  546. uni.getImageInfo({
  547. src: url,
  548. success: (res) => {
  549. // console.log(`图片加载成功: ${url} (尝试次数: ${attempts})`);
  550. resolve(res);
  551. },
  552. fail: (err) => {
  553. console.warn(`图片加载失败: ${url} (尝试次数: ${attempts}/${maxRetries})`);
  554. if (attempts < maxRetries) {
  555. // 稍作延迟后重试,避免立即请求导致服务器压力
  556. setTimeout(tryLoad, 300);
  557. } else {
  558. // 达到最大重试次数,彻底失败
  559. console.error(`图片彻底加载失败: ${url}`);
  560. reject({ url, error: err }); // reject时返回包含url的对象,方便追踪
  561. }
  562. }
  563. });
  564. };
  565. tryLoad();
  566. });
  567. },
  568. /**
  569. * @description 【优化】预加载所有图片,并处理重试逻辑
  570. * @param {Array<string>} urls 图片URL数组
  571. * @returns {Promise<Array<Object>>} 返回 Promise.allSettled 的结果数组
  572. */
  573. preloadAllImages(urls) {
  574. const promises = urls.map(url => this.loadImageWithRetry(url, 5));
  575. // 使用 Promise.allSettled
  576. // 它会等待所有 Promise 完成(无论是 resolve还是reject)
  577. // 这样即使有图片加载失败,也不会中断整个过程
  578. return Promise.allSettled(promises);
  579. },
  580. async createPdf(){
  581. uni.showLoading({
  582. title:'正在生成PDF所需的图片...'
  583. })
  584. try {
  585. const ztzdfxImgPromise = this.downloadZtzdfxImg();
  586. const sumScoreTablePromise = this.generateSumScoreTableImage();
  587. const dimensionImagePromises = this.reportData.dimensionAnalysis.map(d => {
  588. return this.generateScoreImage(d,d.scoreSpreads);
  589. });
  590. const allImageUrls = await Promise.all([
  591. ztzdfxImgPromise,
  592. sumScoreTablePromise,
  593. ...dimensionImagePromises
  594. ]);
  595. this.pdfImages = allImageUrls;
  596. this.$api.post('/core/report/reportToPdf',{
  597. images:this.pdfImages,
  598. reportId:this.reportId
  599. }).then(({data:res})=>{
  600. if(res.code!==0) return this.$showToast(res.msg)
  601. uni.hideLoading();
  602. this.$showToast('生成成功');
  603. setTimeout(()=>{
  604. uni.redirectTo({
  605. url:'/pagesHome/report'
  606. })
  607. },1500)
  608. })
  609. } catch (error) {
  610. uni.hideLoading();
  611. console.error('生成图片过程中发生错误:', error);
  612. uni.showToast({ title: '生成图片失败,请重试', icon: 'none' });
  613. }
  614. },
  615. // 绘制主函数
  616. async generateScoreImage(dimensionData, scoreData) {
  617. return new Promise(resolve => {
  618. console.log('开始生成图片...');
  619. // --- 1. 定义尺寸和样式 ---
  620. const canvasWidth = 588;
  621. const headerHeight = 26;
  622. const rowHeight = 54;
  623. const totalHeight = headerHeight + rowHeight * scoreData.length;
  624. const leftColWidth = 280;
  625. const rightColWidth = 308;
  626. // --- 2. 获取 Canvas 节点 ---
  627. const query = uni.createSelectorQuery().in(this);
  628. query.select('#score-canvas')
  629. .fields({
  630. node: true,
  631. size: true
  632. })
  633. .exec(async (res) => {
  634. if (!res || !res[0] || !res[0].node) {
  635. console.error('获取 Canvas 节点失败,请检查 canvas-id 和 type="2d" 是否正确设置。');
  636. uni.showToast({
  637. title: '组件初始化失败',
  638. icon: 'none'
  639. });
  640. return;
  641. }
  642. const canvasNode = res[0].node;
  643. const ctx = canvasNode.getContext('2d');
  644. const dpr = uni.getSystemInfoSync().pixelRatio;
  645. // --- 3. 设置画布尺寸和缩放以适应高分屏 ---
  646. canvasNode.width = canvasWidth * dpr;
  647. canvasNode.height = totalHeight * dpr;
  648. ctx.scale(dpr, dpr);
  649. // --- 4. 开始绘制 ---
  650. // 绘制大背景
  651. ctx.fillStyle = '#FFFFFF';
  652. ctx.fillRect(0, 0, canvasWidth, totalHeight);
  653. // --- 5. 绘制表头 ---
  654. // 左侧表头背景
  655. ctx.fillStyle = dimensionData.thbgcolor;
  656. ctx.fillRect(0, 0, leftColWidth, headerHeight);
  657. // 右侧表头背景
  658. ctx.fillRect(leftColWidth, 0, rightColWidth, headerHeight);
  659. // 左侧表头文字
  660. ctx.fillStyle = dimensionData.thtextcolor;
  661. ctx.font = 'bold 9px sans-serif';
  662. ctx.textBaseline = 'middle';
  663. ctx.textAlign = 'left';
  664. ctx.fillText('主题', 15, headerHeight / 2);
  665. // 左侧表头分割线
  666. ctx.strokeStyle = 'rgba(255,255,255,0.24)';
  667. ctx.lineWidth = 1;
  668. ctx.beginPath();
  669. ctx.moveTo(leftColWidth - 54, 0);
  670. ctx.lineTo(leftColWidth - 54, headerHeight);
  671. ctx.stroke();
  672. // 影响力分右侧分割线 (Header)
  673. ctx.beginPath();
  674. ctx.moveTo(leftColWidth, 0);
  675. ctx.lineTo(leftColWidth, headerHeight);
  676. ctx.stroke();
  677. ctx.textAlign = 'center';
  678. ctx.fillText('影响力分', leftColWidth - 27, headerHeight / 2);
  679. // 右侧表头分割线
  680. ctx.beginPath();
  681. ctx.moveTo(leftColWidth + rightColWidth / 2, 0);
  682. ctx.lineTo(leftColWidth + rightColWidth / 2, headerHeight);
  683. ctx.stroke();
  684. // 右侧表头文字
  685. ctx.fillText('认同度分', leftColWidth + rightColWidth / 4, headerHeight / 2);
  686. ctx.fillText('重要性分', leftColWidth + rightColWidth * 0.75, headerHeight / 2);
  687. // --- 6. 循环绘制每一行 ---
  688. for (let i = 0; i < scoreData.length; i++) {
  689. const item = scoreData[i];
  690. const yPos = headerHeight + i * rowHeight;
  691. this.drawTableItem(ctx, item, yPos, leftColWidth, rightColWidth, rowHeight, dimensionData);
  692. }
  693. // --- 7. 绘制最外层边框 ---
  694. ctx.strokeStyle = dimensionData.bordercolor;
  695. ctx.lineWidth = 1;
  696. ctx.strokeRect(0, 0, canvasWidth, totalHeight);
  697. // --- 9. 生成图片 ---
  698. uni.hideLoading();
  699. uni.canvasToTempFilePath({
  700. canvas: canvasNode,
  701. x: 0,
  702. y: 0,
  703. width: canvasWidth,
  704. height: totalHeight,
  705. destWidth: canvasWidth * dpr,
  706. destHeight: totalHeight * dpr,
  707. success: async (result) => {
  708. console.log('图片生成成功!', result.tempFilePath);
  709. const fileurl = await this.uploadFilePromise(result.tempFilePath);
  710. console.log(fileurl, 'fileurl');
  711. resolve(fileurl)
  712. },
  713. fail: (err) => {
  714. console.error('图片生成失败', err);
  715. uni.showToast({
  716. title: '图片生成失败',
  717. icon: 'none'
  718. });
  719. }
  720. }, this);
  721. });
  722. })
  723. },
  724. // 绘制总评分表
  725. async generateSumScoreTableImage() {
  726. return new Promise(resolve => {
  727. // --- 1. 定义尺寸和样式 ---
  728. const canvasWidth = 588;
  729. const headerHeight = 72;
  730. const rowHeight = 36;
  731. const totalHeight = headerHeight + rowHeight * this.perillData.length;
  732. // 列宽设置
  733. const colWidth = 87; // 标准列宽度
  734. const col1Width = canvasWidth - colWidth * 5; // PERILL纬度列宽度
  735. // --- 2. 获取 Canvas 节点 ---
  736. const query = uni.createSelectorQuery().in(this);
  737. query.select('#score-canvas')
  738. .fields({
  739. node: true,
  740. size: true
  741. })
  742. .exec(async (res) => {
  743. if (!res || !res[0] || !res[0].node) {
  744. console.error('获取 Canvas 节点失败,请检查 canvas-id 和 type="2d" 是否正确设置。');
  745. uni.showToast({
  746. title: '组件初始化失败',
  747. icon: 'none'
  748. });
  749. return;
  750. }
  751. const canvasNode = res[0].node;
  752. const ctx = canvasNode.getContext('2d');
  753. const dpr = uni.getSystemInfoSync().pixelRatio;
  754. // --- 3. 设置画布尺寸和缩放以适应高分屏 ---
  755. canvasNode.width = canvasWidth * dpr;
  756. canvasNode.height = totalHeight * dpr;
  757. ctx.scale(dpr, dpr);
  758. // --- 4. 开始绘制 ---
  759. // 绘制大背景
  760. ctx.fillStyle = '#FFFFFF';
  761. ctx.fillRect(0, 0, canvasWidth, totalHeight);
  762. // --- 5. 绘制表头 ---
  763. // 表头背景
  764. ctx.fillStyle = '#F5F7F8';
  765. ctx.fillRect(0, 0, canvasWidth, headerHeight);
  766. // 表头文字样式
  767. ctx.fillStyle = '#002846';
  768. ctx.font = 'bold 12px PingFang-SC, sans-serif';
  769. ctx.textBaseline = 'middle';
  770. // 第一列:PERILL纬度
  771. ctx.textAlign = 'left';
  772. ctx.fillText('PERILL纬度', 10, headerHeight / 2);
  773. // 第二列:团队全员
  774. ctx.textAlign = 'center';
  775. ctx.fillText('团队全员', col1Width + colWidth * 1.5, 18);
  776. // 团队全员子列
  777. ctx.font = 'bold 12px PingFang-SC, sans-serif';
  778. ctx.fillText('认同度', col1Width + colWidth * 0.5, 54);
  779. ctx.fillText('重要性', col1Width + colWidth * 1.5, 54);
  780. ctx.fillText('影响力', col1Width + colWidth * 2.5, 54);
  781. // 第三列:利益相关者
  782. ctx.fillText('利益相关者', col1Width + colWidth * 3.5, 18);
  783. ctx.fillText('影响力', col1Width + colWidth * 3.5, 54);
  784. // 第四列:赞助者
  785. ctx.fillText('赞助者', col1Width + colWidth * 4.5, 18);
  786. ctx.fillText('影响力', col1Width + colWidth * 4.5, 54);
  787. // 绘制表头分割线
  788. ctx.strokeStyle = '#AEDADA';
  789. ctx.lineWidth = 1;
  790. // 垂直线
  791. ctx.beginPath();
  792. // PERILL纬度列右边的线
  793. ctx.moveTo(col1Width, 0);
  794. ctx.lineTo(col1Width, headerHeight);
  795. // 团队全员子列分割线(只在36px以下)
  796. ctx.moveTo(col1Width + colWidth, 36);
  797. ctx.lineTo(col1Width + colWidth, headerHeight);
  798. ctx.moveTo(col1Width + colWidth * 2, 36);
  799. ctx.lineTo(col1Width + colWidth * 2, headerHeight);
  800. // 团队全员与利益相关者之间的线
  801. ctx.moveTo(col1Width + colWidth * 3, 0);
  802. ctx.lineTo(col1Width + colWidth * 3, headerHeight);
  803. // 利益相关者与赞助者之间的线
  804. ctx.moveTo(col1Width + colWidth * 4, 0);
  805. ctx.lineTo(col1Width + colWidth * 4, headerHeight);
  806. // 赞助者列右边的线
  807. ctx.moveTo(col1Width + colWidth * 5, 0);
  808. ctx.lineTo(col1Width + colWidth * 5, headerHeight);
  809. ctx.stroke();
  810. // 水平线
  811. ctx.beginPath();
  812. // 只绘制PERILL纬度列右侧的横线
  813. ctx.moveTo(col1Width, 36);
  814. ctx.lineTo(canvasWidth, 36);
  815. ctx.moveTo(0, headerHeight);
  816. ctx.lineTo(canvasWidth, headerHeight);
  817. ctx.stroke();
  818. // --- 6. 绘制数据行 ---
  819. ctx.font = 'bold 12px PingFang-SC, sans-serif';
  820. ctx.textBaseline = 'middle';
  821. for (let i = 0; i < this.perillData.length; i++) {
  822. const item = this.perillData[i];
  823. const yPos = headerHeight + i * rowHeight;
  824. // 交替背景色
  825. if (i % 2 === 1) {
  826. ctx.fillStyle = 'rgba(51,167,167,0.08)';
  827. ctx.fillRect(0, yPos, canvasWidth, rowHeight);
  828. }
  829. // 第一列:维度名称
  830. ctx.fillStyle = '#002846';
  831. ctx.textAlign = 'left';
  832. ctx.fillText(item.dimension, 10, yPos + rowHeight / 2);
  833. // 其他列:数据
  834. ctx.textAlign = 'center';
  835. ctx.fillText(item.teamRecognition, col1Width + colWidth * 0.5, yPos + rowHeight / 2);
  836. ctx.fillText(item.teamImportance, col1Width + colWidth * 1.5, yPos + rowHeight / 2);
  837. ctx.fillText(item.teamInfluence, col1Width + colWidth * 2.5, yPos + rowHeight / 2);
  838. ctx.fillText(item.stakeholderInfluence, col1Width + colWidth * 3.5, yPos + rowHeight / 2);
  839. ctx.fillText(item.sponsorInfluence, col1Width + colWidth * 4.5, yPos + rowHeight / 2);
  840. // 绘制行分割线
  841. if (i < this.perillData.length - 1) {
  842. ctx.beginPath();
  843. ctx.moveTo(0, yPos + rowHeight);
  844. ctx.lineTo(canvasWidth, yPos + rowHeight);
  845. ctx.stroke();
  846. }
  847. // 绘制列分割线
  848. ctx.beginPath();
  849. ctx.moveTo(col1Width, yPos);
  850. ctx.lineTo(col1Width, yPos + rowHeight);
  851. ctx.moveTo(col1Width + colWidth, yPos);
  852. ctx.lineTo(col1Width + colWidth, yPos + rowHeight);
  853. ctx.moveTo(col1Width + colWidth * 2, yPos);
  854. ctx.lineTo(col1Width + colWidth * 2, yPos + rowHeight);
  855. ctx.moveTo(col1Width + colWidth * 3, yPos);
  856. ctx.lineTo(col1Width + colWidth * 3, yPos + rowHeight);
  857. ctx.moveTo(col1Width + colWidth * 4, yPos);
  858. ctx.lineTo(col1Width + colWidth * 4, yPos + rowHeight);
  859. ctx.stroke();
  860. }
  861. // --- 7. 绘制最外层边框 ---
  862. ctx.strokeStyle = '#AEDADA';
  863. ctx.lineWidth = 1;
  864. ctx.strokeRect(0, 0, canvasWidth, totalHeight);
  865. // --- 8. 生成图片 ---
  866. uni.canvasToTempFilePath({
  867. canvas: canvasNode,
  868. x: 0,
  869. y: 0,
  870. width: canvasWidth,
  871. height: totalHeight,
  872. destWidth: canvasWidth * dpr,
  873. destHeight: totalHeight * dpr,
  874. success: async (result) => {
  875. console.log('总评分表图片生成成功!', result.tempFilePath);
  876. const fileurl = await this.uploadFilePromise(result.tempFilePath);
  877. console.log(fileurl, 'fileurl');
  878. resolve(fileurl)
  879. },
  880. fail: (err) => {
  881. console.error('图片生成失败', err);
  882. uni.showToast({
  883. title: '图片生成失败',
  884. icon: 'none'
  885. });
  886. }
  887. }, this);
  888. });
  889. })
  890. },
  891. drawTableItem(ctx, item, y, leftW, rightW, h, dimensionData) {
  892. // 1. 设置通用边框样式
  893. ctx.strokeStyle = dimensionData.bordercolor;
  894. ctx.lineWidth = 1;
  895. // 绘制整行下边框 (贯穿左右)
  896. ctx.beginPath();
  897. ctx.moveTo(0, y + h);
  898. ctx.lineTo(leftW + rightW, y + h);
  899. ctx.stroke();
  900. // --- 计算高度 ---
  901. // 必须先设置字体,否则 measureText 计算不准确
  902. ctx.font = 'bold 9px sans-serif';
  903. let themeHeight = this.calculateWrappedTextHeight(ctx, item.theme, 14, leftW - 54 - 20);
  904. ctx.font = '8px sans-serif';
  905. let questionHeight = this.calculateWrappedTextHeight(ctx, item.question, 10, leftW - 54 - 20);
  906. let totalTextHeight = themeHeight + 4 + questionHeight; // 4 is spacing
  907. let startY = y + (h - totalTextHeight) / 2;
  908. // --- 绘制左侧文字 ---
  909. // Theme Title
  910. ctx.fillStyle = dimensionData.titlecolor;
  911. ctx.font = 'bold 9px sans-serif';
  912. ctx.textAlign = 'left';
  913. ctx.textBaseline = 'top';
  914. this.drawWrappedTextTop(ctx, item.theme, 10, startY, 14, leftW - 54 - 20);
  915. // Question Tip
  916. ctx.fillStyle = '#002846';
  917. ctx.font = '8px sans-serif';
  918. this.drawWrappedTextTop(ctx, item.question, 10, startY + themeHeight + 4, 10, leftW - 54 - 20);
  919. // Score
  920. ctx.fillStyle = '#002846';
  921. ctx.font = 'bold 12px DIN, sans-serif';
  922. ctx.textAlign = 'center';
  923. ctx.textBaseline = 'middle';
  924. ctx.fillText((item.regular && item.regular.avgScore) || 0, leftW - 27, y + h / 2);
  925. // 2. 右侧
  926. const rightX = leftW;
  927. // 绘制中间线
  928. const centerX = rightX + rightW / 2;
  929. // Bar Charts
  930. const barHeight = 10;
  931. const barY = y + (h - barHeight) / 2;
  932. // Agreement (Left, Red/Purple)
  933. // Width = avgAgreement / 6 * 100% of half width?
  934. const maxVal = 6;
  935. const halfW = rightW / 2;
  936. const avgAgreement = (item.regular && item.regular.avgAgreement) || 0;
  937. const avgVital = (item.regular && item.regular.avgVital) || 0;
  938. const agreeW = (avgAgreement / maxVal) * halfW;
  939. const vitalW = (avgVital / maxVal) * halfW;
  940. // --- 绘制背景轨道 (灰色) ---
  941. // 模仿 CSS .vbt2r-tb-l-pre-bg: width: calc(100% - 16px); height: 4px;
  942. // 左右各留 8px 空隙?或者就是简单的横条
  943. const trackHeight = 4;
  944. const trackY = y + (h - trackHeight) / 2;
  945. ctx.fillStyle = '#E6EAED';
  946. // 左侧轨道背景 (从右向左)
  947. this.drawRoundedRect(ctx, rightX + 8, trackY, halfW - 8, trackHeight, 2);
  948. // 右侧轨道背景 (从左向右)
  949. this.drawRoundedRect(ctx, centerX, trackY, halfW - 8, trackHeight, 2);
  950. // Draw Agreement Bar (grows from center to left)
  951. ctx.fillStyle = '#BA8EB4';
  952. // 左侧条,圆角在左边 [2, 0, 0, 2]
  953. this.drawCustomRoundedRect(ctx, centerX - agreeW, barY, agreeW, barHeight, [2, 0, 0, 2]);
  954. // Draw Vital Bar (grows from center to right)
  955. ctx.fillStyle = '#80C8C8';
  956. // 右侧条,圆角在右边 [0, 2, 2, 0]
  957. this.drawCustomRoundedRect(ctx, centerX, barY, vitalW, barHeight, [0, 2, 2, 0]);
  958. // --- 绘制数字标签 ---
  959. const tagW = 16;
  960. const tagH = 20;
  961. // 左标签位置 (中心点)
  962. // CSS: left: -8px (relative to bar start/end).
  963. // 实际上是在条形图的末端(远离中心的那一端)
  964. // 左侧条形图末端 x = centerX - agreeW
  965. // 标签中心 x = centerX - agreeW
  966. this.drawValueTag(ctx, avgAgreement, centerX - agreeW, y + h/2, '#904A87', 'rgba(131,52,120,0.19)', 'rgba(118,30,106,0.1)');
  967. // 右标签位置
  968. // 右侧条形图末端 x = centerX + vitalW
  969. this.drawValueTag(ctx, avgVital, centerX + vitalW, y + h/2, '#199C9C', 'rgba(51,167,167,0.31)', 'rgba(118,30,106,0.1)');
  970. },
  971. // 辅助函数:绘制带样式的数值标签
  972. drawValueTag(ctx, value, cx, cy, textColor, borderColor, shadowColor) {
  973. const width = 16;
  974. const height = 20;
  975. const x = cx - width / 2;
  976. const y = cy - height / 2;
  977. const radius = 4;
  978. ctx.save();
  979. // 阴影
  980. ctx.shadowOffsetX = 0;
  981. ctx.shadowOffsetY = 4;
  982. ctx.shadowBlur = 8;
  983. ctx.shadowColor = shadowColor;
  984. // 背景
  985. ctx.fillStyle = '#FFFFFF';
  986. this.drawRoundedRectPath(ctx, x, y, width, height, radius);
  987. ctx.fill();
  988. // 边框 (取消阴影绘制边框)
  989. ctx.shadowColor = 'transparent';
  990. ctx.strokeStyle = borderColor;
  991. ctx.lineWidth = 1;
  992. ctx.stroke();
  993. // 文字
  994. ctx.fillStyle = textColor;
  995. ctx.font = 'bold 12px DIN, sans-serif';
  996. ctx.textAlign = 'center';
  997. ctx.textBaseline = 'middle';
  998. ctx.fillText(value, cx, cy);
  999. ctx.restore();
  1000. },
  1001. // 辅助函数:绘制圆角矩形路径
  1002. drawRoundedRectPath(ctx, x, y, w, h, r) {
  1003. ctx.beginPath();
  1004. ctx.moveTo(x + r, y);
  1005. ctx.lineTo(x + w - r, y);
  1006. ctx.arcTo(x + w, y, x + w, y + h, r);
  1007. ctx.lineTo(x + w, y + h - r);
  1008. ctx.arcTo(x + w, y + h, x, y + h, r);
  1009. ctx.lineTo(x + r, y + h);
  1010. ctx.arcTo(x, y + h, x, y, r);
  1011. ctx.lineTo(x, y + r);
  1012. ctx.arcTo(x, y, x + w, y, r);
  1013. ctx.closePath();
  1014. },
  1015. // 辅助函数:绘制圆角矩形 (简单版)
  1016. drawRoundedRect(ctx, x, y, w, h, r) {
  1017. this.drawRoundedRectPath(ctx, x, y, w, h, r);
  1018. ctx.fill();
  1019. },
  1020. // 辅助函数:绘制自定义四个角圆角的矩形
  1021. drawCustomRoundedRect(ctx, x, y, w, h, radii) {
  1022. // radii: [tl, tr, br, bl]
  1023. if (!Array.isArray(radii)) radii = [radii, radii, radii, radii];
  1024. const [tl, tr, br, bl] = radii;
  1025. ctx.beginPath();
  1026. ctx.moveTo(x + tl, y);
  1027. ctx.lineTo(x + w - tr, y);
  1028. ctx.arcTo(x + w, y, x + w, y + h, tr);
  1029. ctx.lineTo(x + w, y + h - br);
  1030. ctx.arcTo(x + w, y + h, x, y + h, br);
  1031. ctx.lineTo(x + bl, y + h);
  1032. ctx.arcTo(x, y + h, x, y, bl);
  1033. ctx.lineTo(x, y + tl);
  1034. ctx.arcTo(x, y, x + w, y, tl);
  1035. ctx.closePath();
  1036. ctx.fill();
  1037. },
  1038. // 辅助函数:计算自动换行文字的总高度
  1039. calculateWrappedTextHeight(ctx, text, lineHeight, maxWidth) {
  1040. if (!text) return 0;
  1041. let words = text.split('');
  1042. let line = '';
  1043. let height = lineHeight; // 至少有一行
  1044. for (let n = 0; n < words.length; n++) {
  1045. let testLine = line + words[n];
  1046. let metrics = ctx.measureText(testLine);
  1047. let testWidth = metrics.width;
  1048. if (testWidth > maxWidth && n > 0) {
  1049. line = words[n];
  1050. height += lineHeight;
  1051. } else {
  1052. line = testLine;
  1053. }
  1054. }
  1055. return height;
  1056. },
  1057. // 辅助函数:绘制自动换行文字 (从顶部开始)
  1058. drawWrappedTextTop(ctx, text, x, y, lineHeight, maxWidth) {
  1059. if (!text) return;
  1060. let words = text.split('');
  1061. let line = '';
  1062. let currentY = y;
  1063. for (let n = 0; n < words.length; n++) {
  1064. let testLine = line + words[n];
  1065. let metrics = ctx.measureText(testLine);
  1066. let testWidth = metrics.width;
  1067. if (testWidth > maxWidth && n > 0) {
  1068. ctx.fillText(line, x, currentY); // 使用 currentY 作为顶部基线
  1069. line = words[n];
  1070. currentY += lineHeight;
  1071. } else {
  1072. line = testLine;
  1073. }
  1074. }
  1075. ctx.fillText(line, x, currentY);
  1076. },
  1077. calculateScaleAndPosition() {
  1078. uni.getSystemInfo({
  1079. success: (res) => {
  1080. const screenWidth = res.windowWidth; // 手机屏幕的宽度
  1081. const pcContentWidth = 630; // PC端内容的原始宽度
  1082. this.scale = screenWidth / pcContentWidth;
  1083. this.$nextTick(() => {
  1084. if (this.$refs.ztzdfxRef) {
  1085. this.initZtzdfxChart();
  1086. }
  1087. });
  1088. }
  1089. });
  1090. },
  1091. calculatePdfContainerHeight() {
  1092. uni.createSelectorQuery().in(this).select('#pdfContainer').boundingClientRect(rect => {
  1093. if (rect) {
  1094. this.originalContainerHeight = rect.height;
  1095. this.containerScaledHeight = this.originalContainerHeight * this.scale;
  1096. // console.log('原始高度:', this.originalContainerHeight, '缩放比例:', this.scale, '缩放后高度:', this.containerScaledHeight);
  1097. }
  1098. }).exec();
  1099. },
  1100. downloadZtzdfxImg(){
  1101. return new Promise(resolve=>{
  1102. if (!this.isChartReady) return console.log('图表尚未准备好');
  1103. const chartRef = this.$refs.ztzdfxRef;
  1104. if (!chartRef) return console.log('无法找到图表组件');
  1105. chartRef.canvasToTempFilePath({
  1106. success: async (res) => {
  1107. const imgUrl = await this.uploadFilePromise(res.tempFilePath);
  1108. console.log(imgUrl,'imgUrl');
  1109. resolve(imgUrl)
  1110. },
  1111. fail: (err) => {
  1112. console.log('生成图片失败:', err);
  1113. }
  1114. });
  1115. })
  1116. },
  1117. uploadFilePromise(url) {
  1118. return new Promise((resolve, reject) => {
  1119. let a = uni.uploadFile({
  1120. url: BaseApi+'/uploadFile',
  1121. filePath: url,
  1122. name: 'file',
  1123. success: (res) => {
  1124. setTimeout(() => {
  1125. let data = JSON.parse(res.data)
  1126. if(data&&data.code===0){
  1127. resolve(data.data);
  1128. }else this.$showToast(data?.msg)
  1129. }, 1000);
  1130. },
  1131. fail: err =>{
  1132. resolve('');
  1133. }
  1134. });
  1135. });
  1136. },
  1137. async initZtzdfxChart() {
  1138. let dataSum = this.reportData.overall.length*this.reportData.overall[0].themeTotalSpreads.length;
  1139. const leaderData = [],memberData = [],stakeholderData=[],sponsorData=[];
  1140. const overall = this.reportData.overall||[];
  1141. overall.forEach(o=>{
  1142. let themeTotalSpreads = o.themeTotalSpreads||[];
  1143. if(['内部流程、系统与结构','学习','领导力'].includes(o.dimension)) themeTotalSpreads = o.themeTotalSpreads.reverse()||[];
  1144. themeTotalSpreads.forEach(t=>{
  1145. leaderData.push(t.scoreLeader||0);
  1146. memberData.push(t.scoreMember||0);
  1147. stakeholderData.push(t.scoreStakeholder||0);
  1148. sponsorData.push(t.scoreSponsor||0);
  1149. })
  1150. })
  1151. const sumArr = leaderData.concat(memberData).concat(stakeholderData).concat(sponsorData);
  1152. const maxValue = sumArr.reduce((a,b)=>Math.max(a,b));
  1153. const minValue = sumArr.reduce((a,b)=>Math.min(a,b));
  1154. const chart = await this.$refs.ztzdfxRef.init(echarts);
  1155. let option = {
  1156. graphic: [
  1157. {
  1158. type: 'image',
  1159. id: 'radar-bg',
  1160. z: -1,
  1161. bounding: 'raw',
  1162. left: 'center',
  1163. top: 'center',
  1164. style: {
  1165. image:'https://oss.familydaf.cn/sxsnfile/20251230/b70c19716d86452aaa0c9808a2851e8b.png',
  1166. width: 360*this.scale-20,
  1167. height: 360*this.scale-20,
  1168. opacity: 1
  1169. }
  1170. },
  1171. {
  1172. type: 'circle',
  1173. z: 100, // 设置一个较高的 z 值,确保它在最顶层
  1174. left: 'center', // 水平居中
  1175. top: 'center', // 垂直居中
  1176. shape: {
  1177. r: 12*this.scale // 圆形的半径,您可以根据需要调整大小
  1178. },
  1179. style: {
  1180. fill: '#FFFFFF', // 填充色为白色
  1181. shadowBlur: 20*this.scale, // 阴影的模糊范围
  1182. shadowColor: 'rgba(0, 0, 0, 0.15)', // 阴影颜色
  1183. shadowOffsetY: 4*this.scale // 向下的阴影偏移,产生悬浮效果
  1184. }
  1185. }
  1186. ],
  1187. radar: {
  1188. // shape: 'circle',
  1189. indicator: new Array(dataSum).fill({ max:maxValue, min:minValue }),
  1190. axisName: {
  1191. show: false
  1192. },
  1193. splitArea:{
  1194. show:false
  1195. },
  1196. splitLine: {
  1197. show: false
  1198. },
  1199. axisLine: {
  1200. show: false
  1201. },
  1202. startAngle: 95
  1203. },
  1204. series: [
  1205. {
  1206. type: 'radar',
  1207. data: [
  1208. {
  1209. value: sponsorData,
  1210. itemStyle: {
  1211. color: '#012846'
  1212. },
  1213. lineStyle: {
  1214. color: '#012846',
  1215. width:1
  1216. },
  1217. areaStyle: {
  1218. color: 'rgba(255, 255, 255, 0.4)'
  1219. },
  1220. symbolSize: 2
  1221. },
  1222. {
  1223. value: stakeholderData,
  1224. itemStyle: {
  1225. color: '#FFD650'
  1226. },
  1227. lineStyle: {
  1228. color: '#FFD650',
  1229. width:1
  1230. },
  1231. areaStyle: {
  1232. color: 'rgba(255, 255, 255, 0.4)'
  1233. },
  1234. symbolSize: 2
  1235. },
  1236. {
  1237. value: memberData,
  1238. itemStyle: {
  1239. color: '#AFCDF5'
  1240. },
  1241. lineStyle: {
  1242. color: '#AFCDF5',
  1243. width:1
  1244. },
  1245. areaStyle: {
  1246. color: 'rgba(255, 255, 255, 0.4)'
  1247. },
  1248. symbolSize: 2
  1249. },
  1250. {
  1251. value: leaderData,
  1252. itemStyle: {
  1253. color: '#9F6196'
  1254. },
  1255. lineStyle: {
  1256. color: '#9F6196',
  1257. width:1
  1258. },
  1259. areaStyle: {
  1260. color: 'rgba(255, 255, 255, 0.4)'
  1261. },
  1262. symbolSize: 2
  1263. }
  1264. ]
  1265. }
  1266. ]
  1267. };
  1268. chart.setOption(option);
  1269. this.isChartReady = true;
  1270. this.$nextTick(() => {
  1271. this.calculatePdfContainerHeight();
  1272. });
  1273. },
  1274. }
  1275. };
  1276. </script>
  1277. <style scoped lang="scss">
  1278. .loading{
  1279. position: fixed;
  1280. left: 0;
  1281. right: 0;
  1282. top: 0;
  1283. bottom: 0;
  1284. background: rgba(0,0,0,.4);
  1285. z-index: 1001;
  1286. }
  1287. .page-wrappe{
  1288. width: 100%;
  1289. background: #FFFFFF;
  1290. overflow-x: hidden;
  1291. overflow-y: auto;
  1292. .pdf-container{
  1293. width: 630px;
  1294. padding: 0 20rpx;
  1295. box-sizing: border-box;
  1296. transform-origin: top left;
  1297. }
  1298. }
  1299. .offscreen-canvas {
  1300. position: fixed;
  1301. top: -9999px;
  1302. left: -9999px;
  1303. }
  1304. .pdf_btn{
  1305. padding: 15rpx 20rpx;
  1306. border-radius: 20rpx;
  1307. font-size: 28rpx;
  1308. color: #FFFFFF;
  1309. background: #189B9B;
  1310. position: fixed;
  1311. right: 30rpx;
  1312. bottom: 100rpx;
  1313. z-index: 1000;
  1314. }
  1315. @import '../static/pdf.scss';
  1316. </style>