s2manYiDuPro.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <el-dialog
  3. :visible.sync="visible"
  4. ref="dialog"
  5. :title="title+''"
  6. width="100%"
  7. lock-scroll
  8. append-to-body
  9. fullscreen
  10. close-on-press-escape
  11. destroy-on-close
  12. v-if="visible"
  13. @close="handleClose">
  14. <div>
  15. <el-container>
  16. <!-- <el-aside style="border:0px;width: 13%;"></el-aside> -->
  17. <!-- 放统计内容-->
  18. <el-aside style="border:0px;width: 70%;margin-top: 2%;">
  19. <s2manYiDuItem
  20. :data="data"
  21. width="50%"
  22. :height="height"
  23. id="s2manYiDuPro"
  24. click="false"
  25. />
  26. <s2manYiDuProItem
  27. :data="data"
  28. width="50%"
  29. :height="height"
  30. id="s2manYiDucPro"
  31. click="false"
  32. />
  33. </el-aside>
  34. <!-- 参数页面列 -->
  35. <el-aside style="border:0px;width: 30%;">
  36. <div class="dataCont" style="font-size: 14px;">
  37. <el-divider content-position="left">{{data.t_khmydtjbNum.date}} 年度</el-divider>
  38. 评分得分 :<el-tag>{{data.t_khmydtjbNum.number[0]}} </el-tag>
  39. <br>
  40. 有效问卷总分 :<el-tag>{{data.t_khmydtjbNum.numberAll[0]}} </el-tag>
  41. <br>
  42. 客户满意度 :<el-tag>{{data.t_khmydtjbNum.res[0]}} %</el-tag>
  43. <br>
  44. </div>
  45. <!-- <div v-for="(item,i) in data.t_khmydtjbNum.date" :key="i">
  46. <el-divider content-position="left">{{data.t_khmydtjbNum.date[i]}} 年度</el-divider>
  47. 调查表满意份数 :<el-tag>{{data.t_khmydtjbNum.number[i]}} 次</el-tag>
  48. <br>
  49. 收回调查表有效总份数 :<el-tag>{{data.t_khmydtjbNum.numberAll[i]}} 次</el-tag>
  50. <br>
  51. 客户满意度 :<el-tag>{{data.t_khmydtjbNum.res[i]}} %</el-tag>
  52. <br>
  53. </div> -->
  54. </el-aside>
  55. </el-container>
  56. </div>
  57. </el-dialog>
  58. </template>
  59. <script>
  60. export default {
  61. props:{
  62. dialogOff:{ //当前表单示例
  63. type: Boolean,
  64. default:false,
  65. },
  66. title:{ type:String},
  67. data:{
  68. type:Object
  69. },
  70. height:{
  71. type:String,
  72. default:window.screen.height * 0.5 +'px'
  73. }
  74. },
  75. beforeCreate: function () {
  76. // 官方文档给出的是require
  77. this.$options.components.s2manYiDuItem = () => import('../item/s2manYiDu.vue')
  78. this.$options.components.s2manYiDuProItem = () => import('../item/s2manYiDuPro.vue')
  79. },
  80. watch:{
  81. dialogOff: {
  82. handler: function(val, oldVal) {
  83. this.visible = JSON.parse(JSON.stringify(val));
  84. this.itemShow = true
  85. },
  86. immediate: true
  87. }
  88. },
  89. // drawLine(){
  90. // let s2manYiDu = echarts.init(document.getElementById("s2manYiDuPro"))
  91. // // let beginInof = GetPercent(Number(this.data.t_myddcBegin.number),Number(this.data.t_myddc2Begin.number))
  92. // // let endInof = GetPercent(Number(this.data.t_myddcEnd.number),Number(this.data.t_myddc2End.number))
  93. // let data1 = [];
  94. // data1.push(this.data.t_myddc1Begin.number);
  95. // data1.push(this.data.t_myddc1End.number);
  96. // data1.push(this.data.t_myddc2Begin.number);
  97. // data1.push(this.data.t_myddc2End.number);
  98. // data1.push(this.data.t_myddc3Begin.number);
  99. // data1.push(this.data.t_myddc3End.number);
  100. // data1.push(this.data.t_myddc4Begin.number);
  101. // data1.push(this.data.t_myddc4End.number);
  102. // data1.push(this.data.t_myddc5Begin.number);
  103. // data1.push(this.data.t_myddc5End.number);
  104. // data1.push(this.data.t_myddc6Begin.number);
  105. // data1.push(this.data.t_myddc6End.number);
  106. // let data3 = [];
  107. // data3.push(this.data.t_myddcBegin.date+"技术水平");
  108. // data3.push(this.data.t_myddcEnd.date+"技术水平");
  109. // data3.push(this.data.t_myddcBegin.date+"检测效率满意度");
  110. // data3.push(this.data.t_myddcEnd.date+"检测效率满意度");
  111. // data3.push(this.data.t_myddcBegin.date+"工作态度");
  112. // data3.push(this.data.t_myddcEnd.date+"工作态度");
  113. // data3.push(this.data.t_myddcBegin.date+"检测准确性");
  114. // data3.push(this.data.t_myddcEnd.date+"检测准确性");
  115. // data3.push(this.data.t_myddcBegin.date+"报告完成率");
  116. // data3.push(this.data.t_myddcEnd.date+"报告完成率");
  117. // data3.push(this.data.t_myddcBegin.date+"检测效率");
  118. // data3.push(this.data.t_myddcEnd.date+"检测效率");
  119. // var option = {
  120. // grid: {
  121. // top: '20%',
  122. // left: '3%',
  123. // right: '4%',
  124. // bottom: '10%',
  125. // containLabel: true
  126. // },
  127. // title: [
  128. // {
  129. // text: this.title,
  130. // subtext: this.data.t_myddcEnd.date+"年数据统计"
  131. // }
  132. // ],
  133. // polar: {
  134. // radius: [15, '90%']
  135. // },
  136. // angleAxis: {
  137. // max: GetMax(data1)+0.1,
  138. // startAngle: 75
  139. // },
  140. // radiusAxis: {
  141. // type: 'category',
  142. // data: data3
  143. // },
  144. // tooltip: {
  145. // formatter: function (datas) {
  146. // var res=datas.name+': '+((datas.value-0.01)*100).toFixed(2)+"%"
  147. // return res
  148. // }
  149. // },
  150. // series: {
  151. // itemStyle:{
  152. // normal:{
  153. // color:function(params){
  154. // var colorList = [
  155. // '#FE8463','#9BCA63','#FCCE10','#E87C25','#27727B',
  156. // '#FE8463','#9BCA63','#FAD860','#F3A43B','#60C0DD',
  157. // '#D7504B','#C6E579','#F4E001','#F0805A','#26C0C0'
  158. // ];
  159. // return colorList[params.dataIndex%4];
  160. // }
  161. // }
  162. // },
  163. // type: 'bar',
  164. // data: data1,
  165. // coordinateSystem: 'polar',
  166. // label: {
  167. // show: true,
  168. // position: 'middle',
  169. // formatter: function(a,b,c){
  170. // return '{b}: {c}'
  171. // }
  172. // }
  173. // }
  174. // };
  175. // option && s2manYiDu.setOption(option);
  176. // },
  177. data() {
  178. return {
  179. visible:false,
  180. itemShow:false,
  181. }
  182. },
  183. methods:{
  184. // 关闭窗口
  185. handleClose(){
  186. this.$emit('close', false)
  187. }
  188. }
  189. }
  190. </script>
  191. <style scoped>
  192. .dataCont{
  193. border:0px;
  194. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  195. height: calc(100vh * 0.85);
  196. padding:20px;
  197. }
  198. </style>