血透系统PC前端

DataCountry.vue 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div class="main-contain">
  3. <div v-if="isShow">
  4. <div class="cell clearfix marginBottom1">
  5. <div class="block">
  6. <span class="demonstration">上报时间:</span>
  7. <el-date-picker v-model="value" type="month" placeholder="选择年月">
  8. </el-date-picker>
  9. <el-button type="primary">一键上报</el-button>
  10. </div>
  11. </div>
  12. <div class="cell clearfix marginBottom2">
  13. <el-radio-group v-model="radio">
  14. <el-radio label="自动上报"></el-radio>
  15. <el-radio label="离线上报"></el-radio>
  16. </el-radio-group>
  17. </div>
  18. <!-- <div class="cell clearfix">
  19. <el-button type="primary">一键上报</el-button>
  20. </div> -->
  21. <div>
  22. <el-row :gutter="12" style="margin-top: 10px">
  23. <el-table
  24. :data="list"
  25. border
  26. highlight-current-row
  27. :row-style="{ color: '#303133' }"
  28. :header-cell-style="{
  29. backgroundColor: 'rgb(245, 247, 250)',
  30. color: '#606266'
  31. }"
  32. >
  33. <el-table-column label="日期" align="center">
  34. <template slot-scope="scope"> </template>
  35. </el-table-column>
  36. <el-table-column label="上传项目" align="center">
  37. <template slot-scope="scope"> </template>
  38. </el-table-column>
  39. <el-table-column label="上传状态" align="center">
  40. <template slot-scope="scope"> </template>
  41. </el-table-column>
  42. <el-table-column label="回报详情" align="center">
  43. <template slot-scope="scope"> </template>
  44. </el-table-column>
  45. </el-table>
  46. <!--<el-pagination-->
  47. <!--@size-change="handleSizeChange"-->
  48. <!--@current-change="handleCurrentChange"-->
  49. <!--:page-sizes="[7, 10, 50, 100]"-->
  50. <!--:page-size="7"-->
  51. <!--background-->
  52. <!--style="margin-top:20px;float: right"-->
  53. <!--layout="total, sizes, prev, pager, next, jumper"-->
  54. <!--:total="total">-->
  55. <!--</el-pagination>-->
  56. </el-row>
  57. </div>
  58. </div>
  59. <div v-else>
  60. <div class="cell clearfix">
  61. <div class="cellTitle">
  62. 质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </template>
  68. <script>
  69. import { getConfig } from "@/api/config";
  70. export default {
  71. name: "DataCountry",
  72. created() {
  73. this.getConfig();
  74. },
  75. data() {
  76. return {
  77. value: "",
  78. list: [],
  79. radio: "",
  80. isShow: true
  81. };
  82. },
  83. methods: {
  84. getConfig: function() {
  85. getConfig({ config_type: 1 })
  86. .then(response => {
  87. var res = response.data;
  88. if (res.state === 1) {
  89. this.isShow = true;
  90. } else {
  91. this.isShow = false;
  92. }
  93. })
  94. .catch(e => {});
  95. }
  96. }
  97. };
  98. </script>
  99. <style rel="stylesheet/css" lang="scss" scoped>
  100. .information {
  101. border: 1px #dcdfe6 solid;
  102. padding: 30px 20px 30px 20px;
  103. .border {
  104. border-bottom: 1px #dcdfe6 solid;
  105. margin: 0px 0 20px 0;
  106. }
  107. }
  108. .edit_separater {
  109. border-top: 1px solid rgb(233, 233, 233);
  110. margin-top: 15px;
  111. margin-bottom: 15px;
  112. }
  113. .demonstration {
  114. color: #909399;
  115. }
  116. .marginBottom1 {
  117. margin-bottom: 20px !important;
  118. margin-top: 5px !important;
  119. }
  120. .marginBottom2 {
  121. margin-bottom: 20px !important;
  122. }
  123. .cellTitle {
  124. width: 100%;
  125. text-align: center;
  126. margin-top: 50px;
  127. }
  128. </style>
  129. <style>
  130. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  131. font-size: 12px;
  132. }
  133. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  134. background: #6fb5fa;
  135. }
  136. .count {
  137. color: #bd2c00;
  138. }
  139. .el-table td,
  140. .el-table th.is-leaf,
  141. .el-table--border,
  142. .el-table--group {
  143. border-color: #d0d3da;
  144. }
  145. .el-table--border::after,
  146. .el-table--group::after,
  147. .el-table::before {
  148. background-color: #d0d3da;
  149. }
  150. </style>