trafficAccidentSimulationList.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. clearable
  10. placeholder="请输入"
  11. maxlength="60"
  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.selfDriving"
  20. multiple
  21. clearable
  22. >
  23. <el-option
  24. v-for="item in selfDrivingList"
  25. :label="item.caption"
  26. :value="item.code"
  27. :key="item.code"
  28. ></el-option>
  29. </el-select>
  30. </template>
  31. <template slot="searchItem3">
  32. <span class="label">目标驾驶行为</span>
  33. <el-select
  34. v-model="searchParams.targetDriving"
  35. multiple
  36. clearable
  37. >
  38. <el-option
  39. v-for="item in targetDrivingList"
  40. :label="item.caption"
  41. :value="item.code"
  42. :key="item.code"
  43. ></el-option>
  44. </el-select>
  45. </template>
  46. <template slot="searchItem4">
  47. <span class="label">自车反应行为</span>
  48. <el-select
  49. v-model="searchParams.selfReaction"
  50. multiple
  51. clearable
  52. >
  53. <el-option
  54. v-for="item in selfReactionList"
  55. :label="item.caption"
  56. :value="item.code"
  57. :key="item.code"
  58. ></el-option>
  59. </el-select>
  60. </template>
  61. <template slot="searchItem5">
  62. <span class="label">冲突行为</span>
  63. <el-select
  64. v-model="searchParams.conflictBehavior"
  65. multiple
  66. clearable
  67. >
  68. <el-option
  69. v-for="item in conflictBehaviorList"
  70. :label="item.caption"
  71. :value="item.code"
  72. :key="item.code"
  73. ></el-option>
  74. </el-select>
  75. </template>
  76. <template slot="searchItem6">
  77. <span class="label">冲突类型</span>
  78. <el-select
  79. v-model="searchParams.conflictType"
  80. multiple
  81. clearable
  82. >
  83. <el-option
  84. v-for="item in conflictTypeList"
  85. :label="item.caption"
  86. :value="item.code"
  87. :key="item.code"
  88. ></el-option>
  89. </el-select>
  90. </template>
  91. <template slot="searchBtn1">
  92. <el-button type="primary" @click="doSearch">查询</el-button>
  93. </template>
  94. <template slot="searchBtn2">
  95. <el-button type="primary" @click="doReset">重置</el-button>
  96. </template>
  97. </search-layout>
  98. <div class="isSelected">
  99. <el-checkbox v-model="selected" @change="selectedShow"
  100. >已选择</el-checkbox
  101. >
  102. </div>
  103. <tableList
  104. ref="table"
  105. :columns="columns"
  106. :getDataWay="getDataWay"
  107. :pagination="pagination"
  108. :checkedData="checkedArr"
  109. :needSelectedCallBack="true"
  110. :selectedCallBack="selectedCallBack"
  111. :selectedAllCallBack="selectedAllCallBack"
  112. index
  113. selection
  114. >
  115. </tableList>
  116. </div>
  117. </template>
  118. <script>
  119. import tool from "./common/tool.js";
  120. export default {
  121. name: "trafficAccidentSimulationList", // 交通事故场景
  122. mixins: [tool],
  123. data() {
  124. return {
  125. searchParams: {
  126. //搜索参数
  127. sceneName: "", //场景名称
  128. selfDriving: [], //自车驾驶行为
  129. targetDriving: [], //目标驾驶行为
  130. selfReaction: [], //自车反应行为
  131. conflictBehavior: [], //冲突行为
  132. conflictType: [], //冲突类型
  133. },
  134. columns: [
  135. //表格列
  136. {
  137. label: "场景名称",
  138. prop: "sceneName",
  139. },
  140. {
  141. label: "自车驾驶行为",
  142. prop: "selfDriving",
  143. },
  144. {
  145. label: "目标驾驶行为",
  146. prop: "targetDriving",
  147. },
  148. {
  149. label: "自车反应行为",
  150. prop: "selfReaction",
  151. },
  152. {
  153. label: "冲突行为",
  154. prop: "conflictBehavior",
  155. },
  156. {
  157. label: "冲突类型",
  158. prop: "conflictType",
  159. },
  160. ],
  161. getDataWay: {
  162. //加载表格数据
  163. dataType: "url",
  164. type: "post",
  165. // firstRequest: false,
  166. data: this.$api.sceneLibrary.querySceneAccidentList,
  167. param: {},
  168. },
  169. };
  170. },
  171. props: {
  172. selfDrivingList: {
  173. type: Array,
  174. default: [],
  175. },
  176. targetDrivingList: {
  177. type: Array,
  178. default: [],
  179. },
  180. selfReactionList: {
  181. type: Array,
  182. default: [],
  183. },
  184. conflictBehaviorList: {
  185. type: Array,
  186. default: [],
  187. },
  188. conflictTypeList: {
  189. type: Array,
  190. default: [],
  191. },
  192. },
  193. methods: {
  194. doReset() {
  195. this.searchParams = {
  196. sceneName: "",
  197. selfDriving: [],
  198. targetDriving: [],
  199. selfReaction: [],
  200. conflictBehavior: [],
  201. conflictType: [],
  202. };
  203. this.doSearch();
  204. },
  205. },
  206. mounted() {},
  207. };
  208. </script>
  209. <style lang='less' scoped>
  210. </style>