Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

syncList.vue 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <div>
  3. <el-row :gutter="12" style="margin-top: 10px">
  4. <el-table :data="patientData" border :row-style="{ color: '#303133' }" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)', color: '#606266' }" >
  5. <el-table-column label="同步时间" align="center" width="200">
  6. <template slot-scope="scope">{{getTime( scope.row.sync_time ,'{y}-{m}-{d} {h}:{i}:{s}')}}</template>
  7. </el-table-column>
  8. <el-table-column label="同步结果" align="center">
  9. <template slot-scope="scope">
  10. <span v-if="scope.row.sync_result_type == 1">成功</span>
  11. <span v-if="scope.row.sync_result_type == 2">失败</span>
  12. </template>
  13. </el-table-column>
  14. <el-table-column label="同步信息" align="center">
  15. <template slot-scope="scope">{{scope.row.sync_result_remark }}</template>
  16. </el-table-column>
  17. <el-table-column label="同步条数" align="center">
  18. <template slot-scope="scope">{{scope.row.sync_total_num }}</template>
  19. </el-table-column>
  20. <el-table-column label="上传条数" align="center">
  21. <template slot-scope="scope">{{scope.row.sync_success_num }}</template>
  22. </el-table-column>
  23. </el-table>
  24. <el-pagination
  25. @size-change="handleSizeChange"
  26. @current-change="handleCurrentChange"
  27. :page-sizes="[10, 50, 100]"
  28. :page-size="10"
  29. background
  30. style="margin-top:20px;float: right"
  31. layout="total, sizes, prev, pager, next, jumper"
  32. :total="total"
  33. ></el-pagination>
  34. </el-row>
  35. </div>
  36. </template>
  37. <script>
  38. import { getsynclist } from '@/api/integration'
  39. import { uParseTime } from '@/utils/tools'
  40. export default {
  41. name: 'patientHisConfig',
  42. created() {
  43. this.getsynclist()
  44. },
  45. data() {
  46. return {
  47. dialogFormVisible: false,
  48. page: 1,
  49. limit: 10,
  50. total: 0,
  51. pageTotal: 0,
  52. pageSelect: 0,
  53. adminUserOptions: [],
  54. patientData: [],
  55. contagions: [],
  56. patient_id: 0,
  57. his_record_id: 0,
  58. his_id: '',
  59. current_index: 0,
  60. name: '',
  61. form: {
  62. his_user_id: '',
  63. name: '',
  64. sex: '',
  65. other_age: '',
  66. infectious: ''
  67. },
  68. rules: {
  69. his_user_id: [
  70. { required: true, message: '请输入his_id', trigger: 'blur' }
  71. ]
  72. }
  73. }
  74. },
  75. methods: {
  76. getsynclist: function() {
  77. const Params = {
  78. page: this.page,
  79. limit: this.limit
  80. }
  81. getsynclist(Params).then(response => {
  82. if (response.data.state == 0) {
  83. this.$message.error(response.data.msg)
  84. return false
  85. } else {
  86. this.total = response.data.data.total
  87. this.patientData = response.data.data.list
  88. }
  89. })
  90. },
  91. handleSizeChange(val) {
  92. this.limit = val
  93. this.getsynclist()
  94. },
  95. handleCurrentChange(val) {
  96. this.page = val
  97. this.getsynclist()
  98. },
  99. getTime(value, temp) {
  100. if (value != undefined) {
  101. return uParseTime(value, temp)
  102. }
  103. return ''
  104. }
  105. }
  106. }
  107. </script>
  108. <style rel="stylesheet/css" lang="scss" scoped>
  109. .information {
  110. border: 1px #dcdfe6 solid;
  111. padding: 30px 20px 30px 20px;
  112. .border {
  113. border-bottom: 1px #dcdfe6 solid;
  114. margin: 0px 0 20px 0;
  115. }
  116. }
  117. .edit_separater {
  118. border-top: 1px solid rgb(233, 233, 233);
  119. margin-top: 15px;
  120. margin-bottom: 15px;
  121. }
  122. </style>
  123. <style>
  124. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  125. font-size: 12px;
  126. }
  127. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  128. background: #6fb5fa;
  129. }
  130. .count {
  131. color: #bd2c00;
  132. }
  133. .el-table td,
  134. .el-table th.is-leaf,
  135. .el-table--border,
  136. .el-table--group {
  137. border-color: #d0d3da;
  138. }
  139. .el-table--border::after,
  140. .el-table--group::after,
  141. .el-table::before {
  142. background-color: #d0d3da;
  143. }
  144. </style>