standardRegulationSimulationList.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <div>
  3. <search-layout>
  4. <template slot="searchItem1">
  5. <span class="label">场景名称</span>
  6. <el-input
  7. v-model="searchParams.sceneName"
  8. size="small"
  9. maxlength="60"
  10. clearable
  11. placeholder="请输入"
  12. @keyup.enter.native="doSearch"
  13. >
  14. </el-input>
  15. </template>
  16. <template slot="searchItem2">
  17. <span class="label">法规类型</span>
  18. <el-select
  19. v-model="searchParams.regulationType"
  20. multiple
  21. clearable
  22. size="small"
  23. >
  24. <el-option
  25. v-for="item in regulationTypeList"
  26. :label="item.caption"
  27. :value="item.code"
  28. :key="item.code"
  29. ></el-option>
  30. </el-select>
  31. </template>
  32. <template slot="searchItem3">
  33. <span class="label">标准类型</span>
  34. <el-input
  35. v-model="searchParams.standardType"
  36. size="small"
  37. maxlength="60"
  38. clearable
  39. placeholder="请输入"
  40. @keyup.enter.native="doSearch"
  41. >
  42. </el-input>
  43. </template>
  44. <template slot="searchBtn1">
  45. <el-button type="primary" @click="doSearch">查询</el-button>
  46. </template>
  47. <template slot="searchBtn2">
  48. <el-button type="primary" @click="doReset">重置</el-button>
  49. </template>
  50. </search-layout>
  51. <div class="isSelected">
  52. <el-checkbox v-model="selected" @change="selectedShow"
  53. >已选择</el-checkbox
  54. >
  55. </div>
  56. <tableList
  57. ref="table"
  58. :columns="columns"
  59. :getDataWay="getDataWay"
  60. :pagination="pagination"
  61. :checkedData="checkedArr"
  62. :needSelectedCallBack="true"
  63. :selectedCallBack="selectedCallBack"
  64. :selectedAllCallBack="selectedAllCallBack"
  65. index
  66. selection
  67. >
  68. </tableList>
  69. </div>
  70. </template>
  71. <script>
  72. import tool from "./common/tool.js";
  73. export default {
  74. name: "standardRegulationSimulationList", // 标准法规场景
  75. mixins: [tool],
  76. data() {
  77. return {
  78. searchParams: {
  79. //搜索参数
  80. sceneName: "", //场景名称
  81. regulationType: [], //法规类型
  82. standardType: "", //标准类型
  83. },
  84. columns: [
  85. //表格列
  86. {
  87. label: "场景名称",
  88. prop: "sceneName",
  89. },
  90. {
  91. label: "法规类型",
  92. prop: "regulationType",
  93. },
  94. {
  95. label: "标准类型",
  96. prop: "standardType",
  97. },
  98. ],
  99. getDataWay: {
  100. //加载表格数据
  101. dataType: "url",
  102. type: "post",
  103. // firstRequest: false,
  104. data: this.$api.sceneLibrary.queryStandardsRegulationsList,
  105. param: {},
  106. },
  107. };
  108. },
  109. props: {
  110. regulationTypeList: {
  111. type: Array,
  112. default: [],
  113. },
  114. },
  115. methods: {
  116. doReset() {
  117. this.searchParams = {
  118. sceneName: "",
  119. regulationType: [],
  120. standardType: "",
  121. };
  122. this.doSearch();
  123. },
  124. },
  125. mounted() {},
  126. };
  127. </script>
  128. <style lang='less' scoped>
  129. </style>