s3tousuPro.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. <s3tousuItem
  20. :data="data"
  21. width="50%"
  22. :height="height"
  23. id="s3tousuPro"
  24. click="false"
  25. />
  26. <s3tousuCItem
  27. :data="data"
  28. width="50%"
  29. :height="height"
  30. id="s3tousuCPro"
  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_complaintNum.date}} 年度</el-divider>
  38. 投诉总数次数 :<el-tag>{{data.t_complaintNum.number[0]}} 次</el-tag>
  39. <br>
  40. 委托总数次数 :<el-tag>{{data.t_complaintNum.numberAll[0]}} 次</el-tag>
  41. <br>
  42. 客户投诉率 :<el-tag>{{data.t_complaintNum.res[0]}} %</el-tag>
  43. <br>
  44. 当前目标值 :<el-tag>{{mubiao}}</el-tag>
  45. <br>
  46. <br>
  47. <!-- <div v-for="(item,i) in data.t_complaintNum.number" :key="i">
  48. <el-divider content-position="left">{{data.t_complaintNum.date[i]}} 年度</el-divider>
  49. 投诉总数次数 :<el-tag>{{data.t_complaintNum.number[i]}} 次</el-tag>
  50. <br>
  51. 委托总数次数 :<el-tag>{{data.t_mjwtsqbNum.number[i]}} 次</el-tag>
  52. <br>
  53. </div> -->
  54. </div>
  55. </el-aside>
  56. </el-container>
  57. </div>
  58. </el-dialog>
  59. </template>
  60. <script>
  61. export default {
  62. props:{
  63. dialogOff:{ //当前表单示例
  64. type: Boolean,
  65. default:false,
  66. },
  67. title:{ type:String},
  68. data:{
  69. type:Object
  70. },
  71. height:{
  72. type:String,
  73. default:window.screen.height * 0.5 +'px'
  74. },
  75. mubiao:{
  76. type:String,
  77. default:''
  78. }
  79. },
  80. beforeCreate: function () {
  81. // 官方文档给出的是require
  82. this.$options.components.s3tousuItem = () => import('../item/s3tousu.vue')
  83. this.$options.components.s3tousuCItem = () => import('../item/s3tousuCol.vue')
  84. },
  85. watch:{
  86. dialogOff: {
  87. handler: function(val, oldVal) {
  88. this.visible = JSON.parse(JSON.stringify(val));
  89. this.itemShow = true
  90. },
  91. immediate: true
  92. }
  93. },
  94. data() {
  95. return {
  96. visible:false,
  97. itemShow:false,
  98. }
  99. },
  100. methods:{
  101. // 关闭窗口
  102. handleClose(){
  103. this.$emit('close', false)
  104. }
  105. }
  106. }
  107. </script>
  108. <style scoped>
  109. .dataCont{
  110. border:0px;
  111. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  112. height: calc(100vh * 0.85);
  113. padding:20px;
  114. }
  115. </style>