zidian.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <style>
  10. body{
  11. margin: 0;
  12. }
  13. .header{
  14. padding: 18px 18px 18px 0px;
  15. }
  16. #text{
  17. padding-left: 18px;
  18. border-left: 2px solid #2eaafa;
  19. }
  20. #app{
  21. margin: 0;
  22. padding: 0;
  23. }
  24. .el-dialog__title {
  25. position: absolute;
  26. font-size: 16px;
  27. top: 5px;
  28. left: 0.5px;
  29. border-left: 2px solid #2eaafa;
  30. border-radius: 2px;
  31. padding-left: 10px;
  32. }
  33. .el-dialog__headerbtn {
  34. position: absolute;
  35. top: 7px;
  36. font-size: 18px ;
  37. }
  38. .el-dialog__body {
  39. padding: 0;
  40. }
  41. .el-menu {
  42. width: 200px;
  43. font-size: 15px;
  44. /* background-color: #f2f6fa; */
  45. }
  46. .el-menu-item {
  47. font-size: 15px;
  48. background-color: #f2f6fa;
  49. }
  50. .el-aside {
  51. overflow: hidden;
  52. background-color: #f2f6fa;
  53. }
  54. aside{
  55. background-color: #f2f6fa;
  56. }
  57. #typeSearch {
  58. width: 400px;
  59. }
  60. .search_box {
  61. display: inline-block;
  62. margin: 10px 0px 20px 0px;
  63. position: relative;
  64. left: 50px;
  65. }
  66. #searchtext{
  67. position: relative;
  68. left: 50px;
  69. }
  70. .el-main {
  71. padding: 0;
  72. padding-right: 20px;
  73. }
  74. </style>
  75. </head>
  76. <body>
  77. <div id="app">
  78. <nav class="header">
  79. <span id="text">查看字典</span>
  80. </nav>
  81. <el-container style="height: 100%;">
  82. <el-aside style="width: 200px; ">
  83. <el-menu active-text-color="#2eaafa" :default-openeds="['1']">
  84. <el-menu-item class="ellipsis" title="检验专业代码" index="1-0">
  85. 检验专业代码</el-menu-item>
  86. <el-menu-item class="ellipsis" title="检验专业分类" index="1-1">
  87. 检验专业分类</el-menu-item>
  88. </el-aside>      
  89. <el-main style="height: 100%;overflow: hidden;">
  90. <span id="searchtext"> 字典项:</span>
  91. <div class="search_box">
  92. <div class="flex f_xy_c ">
  93. <el-input placeholder="请输入内容" id="typeSearch" v-model="searchKey">
  94. </el-input>
  95. </div>
  96. </div>
  97. <el-table :data="tableData" border style="width: 100%">
  98. <el-table-column prop="date" label="序号" width="80">
  99. </el-table-column>
  100. <el-table-column prop="name" label="值域编码" width="220">
  101. </el-table-column>
  102. <el-table-column prop="address" label="值域名称">
  103. </el-table-column>
  104. </el-table>
  105. <el-pagination
  106. @size-change="handleSizeChange"
  107. @current-change="handleCurrentChange"
  108. :current-page="currentPage4"
  109. :page-sizes="[100, 200, 300, 400]"
  110. :page-size="100"
  111. layout="total, sizes, prev, pager, next, jumper"
  112. :total="400">
  113. </el-pagination>
  114. </el-main>
  115. </el-container>
  116. </div>
  117. <script>
  118. window.noUse=true
  119. </script>
  120. <script src="../../../js/post.js"></script>
  121. <script>
  122. new Vue({
  123. el: "#app",
  124. data: function () {
  125. return {
  126. showFlag: true,
  127. radio: "",
  128. searchKey: '',
  129. currentPage4: 4,
  130. tableData: [{
  131. date: '02',
  132. name: '王小虎',
  133. address: '上海市'
  134. }, {
  135. date: '04',
  136. name: '王小虎',
  137. address: '上海市'
  138. }, {
  139. date: '01',
  140. name: '王小虎',
  141. address: '上海'
  142. }, {
  143. date: '03',
  144. name: '王小虎',
  145. address: '上海'
  146. }]
  147. }
  148. },
  149. methods: {
  150. radioEvent() {
  151. this.showFlag = false;
  152. this.adapterSelected = this.radio;
  153. },
  154. handleSizeChange(val) {
  155. console.log(`每页 ${val} 条`);
  156. },
  157. handleCurrentChange(val) {
  158. console.log(`当前页: ${val}`);
  159. }
  160. }
  161. })
  162. </script>
  163. </body>
  164. </html>