clusteringManagement.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!--集群管理-->
  2. <template>
  3. <div>
  4. <search-layout :needBox="true">
  5. <template slot="searchItem1">
  6. <span class="label">分配账户</span>
  7. <el-input
  8. v-model="searchParams.a1"
  9. size="small"
  10. clearable
  11. placeholder="请输入"
  12. >
  13. </el-input>
  14. </template>
  15. <template slot="searchItem3">
  16. <span class="label">节点类型</span>
  17. <el-select v-model="searchParams.a2">
  18. <el-option
  19. v-for="item in list"
  20. :label="item.caption"
  21. :value="item.code"
  22. :key="item.code"
  23. ></el-option>
  24. </el-select>
  25. </template>
  26. <template slot="searchBtn1">
  27. <el-button type="primary">查询</el-button>
  28. </template>
  29. <template slot="searchBtn2">
  30. <el-button type="primary">重置</el-button>
  31. </template>
  32. </search-layout>
  33. <div class="btnsPanel">
  34. <el-button
  35. type="primary"
  36. icon="el-icon-circle-plus-outline"
  37. @click="addConfig"
  38. >新建配置</el-button
  39. >
  40. </div>
  41. <tableList
  42. ref="table"
  43. style="border-top: none; margin: 0 30px"
  44. :columns="columns"
  45. :getDataWay="getDataWay"
  46. :pagination="pagination"
  47. index
  48. selection
  49. >
  50. <el-table-column label="操作" slot="cgInfos" align="center">
  51. <template v-slot="scope">
  52. <i
  53. @click="addMarkDia(scope.row)"
  54. class="el-icon-edit-outline elIcon"
  55. ></i>
  56. <i
  57. @click="addMarkDia(scope.row)"
  58. class="el-icon-video-pause elIcon"
  59. ></i>
  60. </template>
  61. </el-table-column>
  62. </tableList>
  63. </div>
  64. </template>
  65. <script>
  66. import searchLayout from "@/components/grid/searchLayout";
  67. import tableList from "@/components/grid/TableList";
  68. export default {
  69. name: "clusteringManagement", // 账户管理
  70. components: { searchLayout, tableList },
  71. data() {
  72. return {
  73. searchParams: {
  74. //搜索参数
  75. },
  76. list: [],
  77. columns: [
  78. //表格列
  79. {
  80. label: "节点ID",
  81. prop: "a1",
  82. },
  83. {
  84. label: "节点类型",
  85. prop: "a2",
  86. },
  87. {
  88. label: "适用类型",
  89. prop: "a3",
  90. },
  91. {
  92. label: "分配账户",
  93. prop: "a4",
  94. },
  95. {
  96. label: "操作",
  97. prop: "cgInfos",
  98. template: true,
  99. },
  100. ],
  101. pagination: {
  102. //分页使用
  103. currentPage: 1,
  104. pageSize: 10,
  105. position: "right",
  106. pageSizes: [10, 30, 50, 100, 200],
  107. layout: "sizes, total, prev, pager, next, jumper",
  108. },
  109. getDataWay: {
  110. //dataType: "url",
  111. dataType: "data",
  112. type: "post",
  113. // firstRequest: false,
  114. // data: this.$api.algorithmsLibrary.selectSharedAlgorithmList,
  115. data:[{a1:'1',a2:'2',a3:'3',a4:'4',a5:'5',a6:'6'}],
  116. param: {},
  117. },
  118. };
  119. },
  120. methods: {
  121. addConfig() {
  122. this.$router.push({ path: "/clusteringDetail" });
  123. },
  124. addMarkDia() {},
  125. },
  126. };
  127. </script>
  128. <style scoped lang="less">
  129. .btnsPanel {
  130. margin: 45px 40px 15px;
  131. }
  132. </style>