trafficAccidentSimulationList.vue 7.0 KB

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