duty.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <div id="duty">
  3. <el-row class="register">
  4. <el-col :span="24" class="btn">
  5. <el-col :span="20"><h3>责任认定</h3></el-col>
  6. </el-col>
  7. <el-col :span="24" class="search">
  8. <el-col :span="3" class="searchSel">
  9. <el-select v-model="value" placeholder="请选择">
  10. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
  11. </el-select>
  12. </el-col>
  13. <el-col :span="5" class="searchInp"><el-input v-model="input" placeholder="输入用户信息"></el-input></el-col>
  14. <el-col :span="13" class="searchBtn"><el-button icon="el-icon-search"></el-button></el-col>
  15. <el-col :span="1"><el-button type="success" icon="el-icon-plus">认证报告批量导出</el-button></el-col>
  16. </el-col>
  17. <el-col>
  18. <el-table :data="tableData" style="width: 100%" border type="selection">
  19. <el-table-column align="center" type="selection" width="40"> </el-table-column>
  20. <el-table-column align="center" prop="user" label="用户" width="200"> </el-table-column>
  21. <el-table-column align="center" prop="behavior" label="行为"> </el-table-column>
  22. <el-table-column align="center" prop="type" label="类型"> </el-table-column>
  23. <el-table-column align="center" label="操作">
  24. <el-button type="text" @click="dialogTableVisible = true">查看日志</el-button>
  25. <el-button type="text">定位失信行为</el-button>
  26. <el-button type="text">警告</el-button>
  27. <el-button type="text">生成报告 </el-button>
  28. </el-table-column>
  29. </el-table>
  30. <el-col class="paging">
  31. <el-pagination background layout="prev, pager, next" :total="1000"></el-pagination>
  32. </el-col>
  33. </el-col>
  34. </el-row>
  35. <el-dialog title="查看日志详情" fullscreen :visible.sync="dialogTableVisible">
  36. <el-table :data="dialogData">
  37. <el-table-column align="center" property="time" label="时间"></el-table-column>
  38. <el-table-column align="center" property="place" label="地点"></el-table-column>
  39. </el-table>
  40. <div slot="footer" align="center" class="dialog-footer">
  41. <el-button type="primary" @click="dialogTableVisible = false">返回</el-button>
  42. </div>
  43. </el-dialog>
  44. </div>
  45. </template>
  46. <script>
  47. import { log } from 'util';
  48. export default {
  49. name: 'duty',
  50. props: {},
  51. components: {},
  52. data: () => ({
  53. options: [
  54. {
  55. value: '选项1',
  56. label: '行为',
  57. },
  58. {
  59. value: '选项2',
  60. label: '类型',
  61. },
  62. ],
  63. tableData: [
  64. {
  65. user: 'Zedc',
  66. behavior: '登录',
  67. type: '普通行为',
  68. },
  69. {
  70. user: 'Abc',
  71. behavior: '修改',
  72. type: '普通行为',
  73. },
  74. {
  75. user: 'aBc',
  76. behavior: '删除',
  77. type: '关键行为',
  78. },
  79. {
  80. user: 'abC',
  81. behavior: '登录',
  82. type: '关键行为',
  83. },
  84. ],
  85. dialogData: [
  86. { time: '时间:2018年9月1日上午9:40', place: '长春' },
  87. { time: '时间:2018年12月3日下午5:23', place: '北京' },
  88. { time: '时间:2019年3月28日下午9:52', place: '深圳' },
  89. { time: '时间:2019年6月17日上午11:20', place: '上海' },
  90. ],
  91. input: '',
  92. dialogTableVisible: false,
  93. }),
  94. created() {},
  95. computed: {},
  96. methods: {},
  97. };
  98. </script>
  99. <style lang="scss" scoped>
  100. h1,
  101. h2,
  102. h3,
  103. h4,
  104. h5,
  105. h6 {
  106. margin: 0;
  107. padding: 0;
  108. }
  109. .register {
  110. width: 100%;
  111. padding: 20px;
  112. }
  113. .btn {
  114. width: 100%;
  115. height: 40px;
  116. line-height: 40px;
  117. margin: 20px 0;
  118. }
  119. .search {
  120. height: 40px;
  121. line-height: 40px;
  122. margin: 0 0 20px 0;
  123. }
  124. .searchSel .el-select {
  125. border-radius: 0;
  126. }
  127. /deep/.searchInp .el-input__inner {
  128. border-radius: 0;
  129. }
  130. .searchBtn .el-button {
  131. border-radius: 0;
  132. }
  133. .paging {
  134. text-align: right;
  135. margin: 10px 0;
  136. }
  137. </style>