血透系统PC前端

DataProvince.vue 3.6KB

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