index.vue 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!-- 其他指标 -->
  2. <template>
  3. <div class="main-contain">
  4. <div class="position">
  5. <!-- <bread-crumb :crumbs="crumbs"></bread-crumb>-->
  6. </div>
  7. <div class="app-container">
  8. <div class="page_patientControlAnalysis">
  9. <div class="photos">
  10. <div v-for="(item,index) in indicators" :key="index" @click="echart_click(item)"
  11. style="width: 280px;height: 235px;border:1px solid gainsboro;border-radius: 8px;margin: 0 0 30px 28px"
  12. >
  13. <!-- <div v-if="" class="background date_type1" style="background-repeat: no-repeat;"></div>
  14. <div v-if="item.check_type == 1" class="background date_type2" style="background-repeat: no-repeat;"></div>
  15. <div v-if="item.check_type == 2" class="background date_type3" style="background-repeat: no-repeat;"></div>
  16. <p class="title">{{item.item_name}}</p> -->
  17. <div :class="[item.sub_check_type ==1 ? 'date_type1 background' : item.sub_check_type ==2 ?'date_type2 background':item.sub_check_type ==3 ?'date_type3 background':'']" style="background-repeat: no-repeat;"></div>
  18. <!-- <div v-if="item.check_type == 1" class="background date_type2" style="background-repeat: no-repeat;"></div>
  19. <div v-if="item.check_type == 2" class="background date_type3" style="background-repeat: no-repeat;"></div> -->
  20. <!-- <div v-if="item.check_type == 1" class="background date_type1" style="background-repeat: no-repeat;"></div> -->
  21. <p class="title" style="text-align: center;">{{item.item_name}}</p>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  30. import { getStatisticsList } from '../../../api/statistics'
  31. export default {
  32. name:'index',
  33. components: {
  34. BreadCrumb,
  35. },
  36. data() {
  37. return {
  38. indicators:[],
  39. activeName: 'first'
  40. }
  41. },
  42. methods:{
  43. getStatisticsList(){
  44. let params = {
  45. }
  46. this.indicators = []
  47. getStatisticsList(params).then(response => {
  48. if (response.data.state == 1) {
  49. // this.indicators = this.indicators.concat(response.data.data.configurationlist)
  50. console.log('444444444',this.indicators);
  51. for(let i = 0; i < this.indicators.length; i++){
  52. this.indicators[i]["check_type"] = 1
  53. this.indicators[i]["sub_check_type"] = 1
  54. }
  55. let obj = {
  56. "check_type":1,
  57. "item_name":"透析总量分析",
  58. "sub_check_type":1
  59. }
  60. this.indicators.push(obj)
  61. let obj2 = {
  62. "check_type":2,
  63. "item_name":"透析总量详情",
  64. "sub_check_type":3
  65. }
  66. this.indicators.push(obj2)
  67. let obj3 = {
  68. "check_type":3,
  69. "item_name":"抗凝剂类型统计",
  70. "sub_check_type":1
  71. }
  72. this.indicators.push(obj3)
  73. let obj4 = {
  74. "check_type":4,
  75. "item_name":"透析器使用统计",
  76. "sub_check_type":1
  77. }
  78. this.indicators.push(obj4)
  79. let obj5 = {
  80. "check_type":5,
  81. "item_name":"透析治疗完成率",
  82. "sub_check_type":2
  83. }
  84. this.indicators.push(obj5)
  85. console.log( this.indicators)
  86. // this.indicators.push("")
  87. } else {
  88. this.$message.error(response.data.msg)
  89. }
  90. })
  91. },
  92. echart_click(item){
  93. if(item.check_type == 1){
  94. this.$router.push('/Dialysisanalysis/qualitycontrol/new_otherIndicators/Total_analysis')
  95. }else if(item.check_type == 2){
  96. this.$router.push('/Dialysisanalysis/qualitycontrol/new_otherIndicators/Total_table')
  97. }else if (item.check_type == 3){
  98. this.$router.push('/Dialysisanalysis/qualitycontrol/new_otherIndicators/anticoagulant')
  99. }else if (item.check_type == 4){
  100. this.$router.push('/Dialysisanalysis/qualitycontrol/new_otherIndicators/dialyzer')
  101. }
  102. else if(item.check_type == 5){
  103. this.$router.push('/Dialysisanalysis/qualitycontrol/new_otherIndicators/complete')
  104. }
  105. console.log('item',item);
  106. }
  107. // jump(project_id, item_id,project_type){
  108. // this.$router.push('/Dialysisanalysis/qualitycontrol/Indicatorsdetail?project_id='+project_id+"&item_id="+item_id+"&project_type="+parseInt(project_type))
  109. // },
  110. // handleClick(tab, event) {
  111. // console.log(tab, event);
  112. // },
  113. // echart_click(item){
  114. // // if(item.check_type == 1){
  115. // // if(item.sub_check_type == 1){
  116. // // this.$router.push('/Dialysisanalysis/qualitycontrol/Indicatorsdetail?project_id='+item.inspection_major+"&item_id="+item.inspection_minor+"&project_type="+parseInt(item.id))
  117. // // // this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
  118. // // }else if(item.sub_check_type == 2){
  119. // // this.$router.push('/Dialysisanalysis/qualitycontrol/platelets')
  120. // // }
  121. // // }else if(item.check_type == 2){
  122. // // this.$router.push('/Dialysisanalysis/qualitycontrol/summary')
  123. // // }
  124. // }
  125. },
  126. created(){
  127. this.getStatisticsList()
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. .page_patientControlAnalysis{
  133. .background{
  134. height: 180px;
  135. width: 100%;
  136. background-repeat:no-repeat;
  137. }
  138. .date_type1{
  139. background: url('../../../assets/img/zhuzhuantu.png');
  140. }
  141. .date_type2{
  142. background: url('../../../assets/img/bingzhuantua.png');
  143. }
  144. .date_type3{
  145. background: url('../../../assets/img/biaoge.png');
  146. }
  147. .title{
  148. font-size: 18px;
  149. margin: 15px 10px;
  150. color: #333333;
  151. text-overflow: ellipsis;
  152. overflow: hidden;
  153. white-space: nowrap;
  154. }
  155. .tag {
  156. margin-left: 10px;
  157. height: 82px;
  158. overflow: auto;
  159. }
  160. .use {
  161. font-size: 14px;
  162. color: #999;
  163. margin-left: 10px;
  164. }
  165. // .shoucang{
  166. // width: 20px;
  167. // height: 20px;
  168. // margin-right: 15px;
  169. // float: right;
  170. // background:url('../../../assets/img/xingixnghuise.png')
  171. // }
  172. .tags{
  173. font-size: 14px;
  174. font-family: Microsoft YaHei;
  175. color: #477ac5;
  176. background: #edf4ff;
  177. margin-right: 3px;
  178. margin-top: 3px;
  179. padding: 1px 6px;
  180. border-radius: 5px;
  181. }
  182. .photos{
  183. display: flex;
  184. justify-content: flex-start;
  185. flex-wrap: wrap;
  186. }
  187. }
  188. // .page_patientControlAnalysis {
  189. // .pointTitle {
  190. // font-size: 13px;
  191. // }
  192. // .chartTitle {
  193. // font-size: 16px;
  194. // font-weight: bold;
  195. // color: #000000;
  196. // }
  197. // .point {
  198. // width: 13px;
  199. // height: 13px;
  200. // background: linear-gradient(
  201. // 0deg,
  202. // rgba(169, 224, 243, 1),
  203. // rgba(159, 189, 252, 1)
  204. // );
  205. // border-radius: 7px;
  206. // margin-right: 8px;
  207. // }
  208. // .pointTitle {
  209. // font-size: 13px;
  210. // }
  211. // }
  212. </style>
  213. <style lang="scss">
  214. // .page_patientControlAnalysis {
  215. // .el-form-item {
  216. // margin-bottom: 0;
  217. // }
  218. // .cell {
  219. // text-align: center;
  220. // }
  221. // ::-webkit-scrollbar {
  222. // height: 15px !important;
  223. // }
  224. // }
  225. </style>