tabchange.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <link rel="stylesheet" href="../../../css/element.css">
  9. <link rel="stylesheet" href="./css/tabChange.css">
  10. </head>
  11. <body>
  12. <div id="app">
  13. <template>
  14. <div class="nav">
  15. <el-radio-group v-model="tabPosition" style="margin-bottom: 30px;" class="tabNav">
  16. <el-radio-button label="top">频繁就医</el-radio-button>
  17. <el-radio-button label="right">超高费用</el-radio-button>
  18. <el-radio-button label="bottom">重复检查检验</el-radio-button>
  19. <el-radio-button label="left">用药分析</el-radio-button>
  20. </el-radio-group>
  21. </div>
  22. <!-- <el-tabs :tab-position="tabPosition" style="height: 200px;"> -->
  23. <!-- <el-tab-pane label="用户管理">用户管理</el-tab-pane>
  24. <el-tab-pane label="配置管理">配置管理</el-tab-pane>
  25. <el-tab-pane label="角色管理">角色管理</el-tab-pane>
  26. <el-tab-pane label="定时任务补偿">定时任务补偿</el-tab-pane> -->
  27. <!-- </el-tabs> -->
  28. </template>
  29. <div class="main">
  30. <div class="tab1" v-if='showCancel'>
  31. <span>一周内就医次数>=3次</span>
  32. <template>
  33. <el-table :data="tableData" border style="width: 100%">
  34. <el-table-column prop="name" label="姓名" width="120">
  35. </el-table-column>
  36. <el-table-column prop="province" label="就医次数" width="120">
  37. </el-table-column>
  38. <el-table-column prop="address" label="身份证" width="400">
  39. </el-table-column>
  40. <el-table-column prop="city" label="性别" width="120">
  41. </el-table-column>
  42. <el-table-column prop="zip" label="年龄" width="120">
  43. </el-table-column>
  44. <el-table-column prop="address" label="家庭住址" width="400">
  45. </el-table-column>
  46. <el-table-column fixed="right" label="操作" width="100">
  47. <template slot-scope="scope">
  48. <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
  49. <el-button type="text" size="small">编辑</el-button>
  50. </template>
  51. </el-table-column>
  52. </el-table>
  53. <span class="total">总计:1200条</span>
  54. </template>
  55. </div>
  56. <div class="tab2">
  57. <template>
  58. <span>就诊类型:</span><el-select v-model="value" placeholder="请选择">
  59. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
  60. </el-option>
  61. </el-select>
  62. <span>机构等级</span>
  63. </div>
  64. <el-select v-model="value" placeholder="请选择">
  65. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
  66. </el-option>
  67. </el-select>
  68. <el-select v-model="value" placeholder="请选择">
  69. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
  70. </el-option>
  71. </el-select>
  72. </template>
  73. <br>
  74. <span>一周内就医次数>=3次</span>
  75. <template>
  76. <el-table :data="tableData" border style="width: 100%">
  77. <el-table-column prop="name" label="姓名" width="120">
  78. </el-table-column>
  79. <el-table-column prop="province" label="就医次数" width="120">
  80. </el-table-column>
  81. <el-table-column prop="address" label="身份证" width="400">
  82. </el-table-column>
  83. <el-table-column prop="city" label="性别" width="120">
  84. </el-table-column>
  85. <el-table-column prop="zip" label="年龄" width="120">
  86. </el-table-column>
  87. <el-table-column prop="address" label="家庭住址" width="400">
  88. </el-table-column>
  89. <el-table-column fixed="right" label="操作" width="100">
  90. <template slot-scope="scope">
  91. <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
  92. <el-button type="text" size="small">编辑</el-button>
  93. </template>
  94. </el-table-column>
  95. </el-table>
  96. <span class="total">总计:1200条</span>
  97. </template>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <script src="../../../js/vue.js"></script>
  103. <script src="../../../js/jquery.min.js?v=2.1.4"></script>
  104. <script src="../../../js/element.js"></script>
  105. <script>
  106. new Vue({
  107. el: "#app",
  108. data() {
  109. return {
  110. tabPosition: 'top',
  111. showCancel: false,
  112. tableData: [{
  113. date: '2016-05-03',
  114. name: '王小虎',
  115. province: '上海',
  116. city: '普陀区',
  117. address: '上海市普陀区金沙江路 1518 弄',
  118. zip: 200333
  119. }, {
  120. date: '2016-05-02',
  121. name: '王小虎',
  122. province: '上海',
  123. city: '普陀区',
  124. address: '上海市普陀区金沙江路 1518 弄',
  125. zip: 200333
  126. }, {
  127. date: '2016-05-04',
  128. name: '王小虎',
  129. province: '上海',
  130. city: '普陀区',
  131. address: '上海市普陀区金沙江路 1518 弄',
  132. zip: 200333
  133. }, {
  134. date: '2016-05-01',
  135. name: '王小虎',
  136. province: '上海',
  137. city: '普陀区',
  138. address: '上海市普陀区金沙江路 1518 弄',
  139. zip: 200333
  140. }, {
  141. date: '2016-05-04',
  142. name: '王小虎',
  143. province: '上海',
  144. city: '普陀区',
  145. address: '上海市普陀区金沙江路 1518 弄',
  146. zip: 200333
  147. }, {
  148. date: '2016-05-04',
  149. name: '王小虎',
  150. province: '上海',
  151. city: '普陀区',
  152. address: '上海市普陀区金沙江路 1518 弄',
  153. zip: 200333
  154. }, {
  155. date: '2016-05-04',
  156. name: '王小虎',
  157. province: '上海',
  158. city: '普陀区',
  159. address: '上海市普陀区金沙江路 1518 弄',
  160. zip: 200333
  161. },],
  162. options: [{
  163. value: '选项1',
  164. label: '门急诊'
  165. }, {
  166. value: '选项2',
  167. label: '住院'
  168. }],
  169. value: '门急诊'
  170. };
  171. },
  172. methods: {
  173. handleClick(row) {
  174. console.log(row);
  175. }
  176. },
  177. })
  178. </script>
  179. </body>
  180. </html>