index.vue 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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":2
  59. }
  60. this.indicators.push(obj)
  61. let obj2 = {
  62. "check_type":2,
  63. "item_name":"患者体重增长分析(以上次透后体重为分母)",
  64. "sub_check_type":1
  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":3
  83. }
  84. this.indicators.push(obj5)
  85. let obj6 = {
  86. "check_type":6,
  87. "item_name":"患者透前血压分析",
  88. "sub_check_type":2
  89. }
  90. this.indicators.push(obj6)
  91. let obj7 = {
  92. "check_type":7,
  93. "item_name":"患者透后血压分析",
  94. "sub_check_type":2
  95. }
  96. this.indicators.push(obj7)
  97. let obj8 = {
  98. "check_type":8,
  99. "item_name":"患者血压详情",
  100. "sub_check_type":3
  101. }
  102. this.indicators.push(obj8)
  103. console.log( this.indicators)
  104. // this.indicators.push("")
  105. } else {
  106. this.$message.error(response.data.msg)
  107. }
  108. })
  109. },
  110. echart_click(item){
  111. if(item.check_type == 1){
  112. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/dry_weight')
  113. }else if(item.check_type == 2){
  114. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/list_denominator')
  115. }else if (item.check_type == 3){
  116. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/dry_denominator')
  117. }else if (item.check_type == 4){
  118. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/dialyze_after')
  119. } else if(item.check_type == 5){
  120. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/weight_table')
  121. }else if (item.check_type == 6){
  122. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/before_Blood')
  123. }else if (item.check_type == 7){
  124. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/after_Blood')
  125. }else if(item.check_type == 8){
  126. this.$router.push('/Dialysisanalysis/qualitycontrol/weightblood/blood_table')
  127. }
  128. console.log('item',item);
  129. }
  130. // jump(project_id, item_id,project_type){
  131. // this.$router.push('/Dialysisanalysis/qualitycontrol/Indicatorsdetail?project_id='+project_id+"&item_id="+item_id+"&project_type="+parseInt(project_type))
  132. // },
  133. // handleClick(tab, event) {
  134. // console.log(tab, event);
  135. // },
  136. // echart_click(item){
  137. // // if(item.check_type == 1){
  138. // // if(item.sub_check_type == 1){
  139. // // this.$router.push('/Dialysisanalysis/qualitycontrol/Indicatorsdetail?project_id='+item.inspection_major+"&item_id="+item.inspection_minor+"&project_type="+parseInt(item.id))
  140. // // // this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
  141. // // }else if(item.sub_check_type == 2){
  142. // // this.$router.push('/Dialysisanalysis/qualitycontrol/platelets')
  143. // // }
  144. // // }else if(item.check_type == 2){
  145. // // this.$router.push('/Dialysisanalysis/qualitycontrol/summary')
  146. // // }
  147. // }
  148. },
  149. created(){
  150. this.getStatisticsList()
  151. }
  152. }
  153. </script>
  154. <style lang="scss" scoped>
  155. .page_patientControlAnalysis{
  156. .background{
  157. height: 180px;
  158. width: 100%;
  159. background-repeat:no-repeat;
  160. }
  161. .date_type1{
  162. background: url('../../../assets/img/zhuzhuantu.png');
  163. }
  164. .date_type2{
  165. background: url('../../../assets/img/bingzhuantua.png');
  166. }
  167. .date_type3{
  168. background: url('../../../assets/img/biaoge.png');
  169. }
  170. .title{
  171. font-size: 18px;
  172. margin: 15px 10px;
  173. color: #333333;
  174. text-overflow: ellipsis;
  175. overflow: hidden;
  176. white-space: nowrap;
  177. }
  178. .tag {
  179. margin-left: 10px;
  180. height: 82px;
  181. overflow: auto;
  182. }
  183. .use {
  184. font-size: 14px;
  185. color: #999;
  186. margin-left: 10px;
  187. }
  188. // .shoucang{
  189. // width: 20px;
  190. // height: 20px;
  191. // margin-right: 15px;
  192. // float: right;
  193. // background:url('../../../assets/img/xingixnghuise.png')
  194. // }
  195. .tags{
  196. font-size: 14px;
  197. font-family: Microsoft YaHei;
  198. color: #477ac5;
  199. background: #edf4ff;
  200. margin-right: 3px;
  201. margin-top: 3px;
  202. padding: 1px 6px;
  203. border-radius: 5px;
  204. }
  205. .photos{
  206. display: flex;
  207. justify-content: flex-start;
  208. flex-wrap: wrap;
  209. }
  210. }
  211. // .page_patientControlAnalysis {
  212. // .pointTitle {
  213. // font-size: 13px;
  214. // }
  215. // .chartTitle {
  216. // font-size: 16px;
  217. // font-weight: bold;
  218. // color: #000000;
  219. // }
  220. // .point {
  221. // width: 13px;
  222. // height: 13px;
  223. // background: linear-gradient(
  224. // 0deg,
  225. // rgba(169, 224, 243, 1),
  226. // rgba(159, 189, 252, 1)
  227. // );
  228. // border-radius: 7px;
  229. // margin-right: 8px;
  230. // }
  231. // .pointTitle {
  232. // font-size: 13px;
  233. // }
  234. // }
  235. </style>
  236. <style lang="scss">
  237. // .page_patientControlAnalysis {
  238. // .el-form-item {
  239. // margin-bottom: 0;
  240. // }
  241. // .cell {
  242. // text-align: center;
  243. // }
  244. // ::-webkit-scrollbar {
  245. // height: 15px !important;
  246. // }
  247. // }
  248. </style>