index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <div>
  3. <div class="search">
  4. <el-popover placement="top-start" width="300" trigger="hover" content="设计师和专家能对元器件数据进行标注,并把标注结果进行管理">
  5. <i slot="reference" class="el-icon-question" />
  6. </el-popover>
  7. <el-input v-model="search" placeholder="请输入内容" class="input-with-select" style="width: 400px">
  8. <el-button slot="append" icon="el-icon-search" />
  9. </el-input>
  10. </div>
  11. <el-table :data="listData" stripe style="width: 100%">
  12. <el-table-column type="selection" width="55" align="center" />
  13. <el-table-column prop="id" label="id" width="180" />
  14. <el-table-column prop="标注名称" label="标注名称" width="180" />
  15. <el-table-column prop="标注结果" label="标注结果" />
  16. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  17. <template slot-scope="scope">
  18. <el-button
  19. size="mini"
  20. type="text"
  21. @click="handleUpdate(scope.row)"
  22. >编辑</el-button>
  23. </template>
  24. </el-table-column>
  25. </el-table>
  26. </div>
  27. </template>
  28. <script>
  29. import data from '@/data/customData/dataManagement.json'
  30. export default {
  31. name: 'DataAnnotationsManage',
  32. data() {
  33. return {
  34. // 遮罩层
  35. loading: true,
  36. // 选中数组
  37. ids: [],
  38. // 显示搜索条件
  39. showSearch: true,
  40. // 搜索内容
  41. search: '',
  42. listData: data.DataAnnotations
  43. }
  44. },
  45. methods: {
  46. /** 编辑按钮操作 */
  47. handleUpdate(row) {
  48. // const id = row.id || this.ids
  49. // this.editDialog = true
  50. // this.xmlContent = row.content
  51. },
  52. /** 搜索按钮操作 */
  53. handleQuery() {
  54. // this.queryParams.pageNum = 1
  55. // this.getList()
  56. },
  57. /** 重置按钮操作 */
  58. resetQuery() {
  59. // this.resetForm('queryForm')
  60. // this.handleQuery()
  61. }
  62. }
  63. }
  64. </script>
  65. <style scoped>
  66. .search{
  67. width: 100%;
  68. height: 60px;
  69. position: relative;
  70. }
  71. .input-with-select{
  72. position: absolute;
  73. top: 20px;
  74. right: 20px;
  75. }
  76. .el-icon-question{
  77. margin: 20px;
  78. font-size: 24px;
  79. color: #5cb6ff;
  80. }
  81. </style>