trafficAccidentSimulationScenarioList.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <template>
  2. <div>
  3. <search-layout :needBox="true">
  4. <template slot="searchItem1">
  5. <span class="label">场景名称</span>
  6. <el-input
  7. v-model="searchParams.id"
  8. size="small"
  9. clearable
  10. placeholder="请输入"
  11. >
  12. </el-input>
  13. </template>
  14. <template slot="searchItem2">
  15. <span class="label">自车驾驶行为</span>
  16. <el-select v-model="searchParams.status" multiple>
  17. <el-option
  18. v-for="item in list"
  19. :label="item.caption"
  20. :value="item.code"
  21. :key="item.code"
  22. ></el-option>
  23. </el-select>
  24. </template>
  25. <template slot="searchItem3">
  26. <span class="label">目标驾驶行为</span>
  27. <el-select v-model="searchParams.status" multiple>
  28. <el-option
  29. v-for="item in list"
  30. :label="item.caption"
  31. :value="item.code"
  32. :key="item.code"
  33. ></el-option>
  34. </el-select>
  35. </template>
  36. <template slot="searchItem4">
  37. <span class="label">自车反应行为</span>
  38. <el-select v-model="searchParams.status" multiple>
  39. <el-option
  40. v-for="item in list"
  41. :label="item.caption"
  42. :value="item.code"
  43. :key="item.code"
  44. ></el-option>
  45. </el-select>
  46. </template>
  47. <template slot="searchItem5">
  48. <span class="label">冲突行为</span>
  49. <el-select v-model="searchParams.status" multiple>
  50. <el-option
  51. v-for="item in list"
  52. :label="item.caption"
  53. :value="item.code"
  54. :key="item.code"
  55. ></el-option>
  56. </el-select>
  57. </template>
  58. <template slot="searchItem6">
  59. <span class="label">冲突类型</span>
  60. <el-select v-model="searchParams.status" multiple>
  61. <el-option
  62. v-for="item in list"
  63. :label="item.caption"
  64. :value="item.code"
  65. :key="item.code"
  66. ></el-option>
  67. </el-select>
  68. </template>
  69. <template slot="searchItem7">
  70. <el-checkbox-group v-model="searchParams.c">
  71. <el-checkbox-button :label="1" :key="1" class="labelA"
  72. >绿灯</el-checkbox-button
  73. >
  74. <el-checkbox-button :label="2" :key="2" class="labelB"
  75. >桥梁</el-checkbox-button
  76. >
  77. <el-checkbox-button :label="3" :key="3" class="labelC"
  78. >晴天</el-checkbox-button
  79. >
  80. <el-checkbox-button :label="4" :key="4" class="labelD"
  81. >直道</el-checkbox-button
  82. >
  83. <el-checkbox-button :label="5" :key="5" class="labelC"
  84. >晴天</el-checkbox-button
  85. >
  86. <el-checkbox-button :label="6" :key="6" class="labelD"
  87. >直道</el-checkbox-button
  88. >
  89. </el-checkbox-group>
  90. </template>
  91. <!-- <template slot="searchItem7">
  92. <div class="radioBox">
  93. <span class="label">是否存在盲区</span>
  94. <el-radio v-model="searchParams.x" label="1">是</el-radio>
  95. <el-radio v-model="searchParams.x" label="2">否</el-radio>
  96. </div>
  97. </template>
  98. <template slot="searchItem8">
  99. <div class="radioBox">
  100. <span class="label">是否发生碰撞</span>
  101. <el-radio v-model="searchParams.x" label="1">是</el-radio>
  102. <el-radio v-model="searchParams.x" label="2">否</el-radio>
  103. </div>
  104. </template> -->
  105. <template slot="searchBtn1">
  106. <el-button type="primary">查询</el-button>
  107. </template>
  108. <template slot="searchBtn2">
  109. <el-button type="primary">重置</el-button>
  110. </template>
  111. </search-layout>
  112. <tableList
  113. ref="table"
  114. style="border-top: none; margin: 30px"
  115. :columns="columns"
  116. :getDataWay="getDataWay"
  117. :pagination="pagination"
  118. index
  119. >
  120. <el-table-column label="标签" slot="asd" align="center">
  121. <template>
  122. <div class="labelPanel">
  123. <span class="labelBox labelA">绿灯</span>
  124. <span class="labelBox labelB">桥梁</span>
  125. <span class="labelBox labelC">晴天</span>
  126. <span class="labelBox labelD">直道</span>
  127. </div>
  128. </template>
  129. </el-table-column>
  130. <el-table-column
  131. label="操作"
  132. slot="cgInfos"
  133. align="center"
  134. width="180"
  135. >
  136. <template v-slot="scope">
  137. <i
  138. @click="viewRow(scope.row)"
  139. class="el-icon-view elIcon cursor"
  140. >
  141. </i>
  142. </template>
  143. </el-table-column>
  144. </tableList>
  145. <el-dialog
  146. title="CAMERAO"
  147. :visible.sync="dialogVisible"
  148. width="690px"
  149. :close-on-click-modal="false"
  150. :close-on-press-escape="false"
  151. >
  152. <div>123</div>
  153. </el-dialog>
  154. </div>
  155. </template>
  156. <script>
  157. import searchLayout from "@/components/grid/searchLayout";
  158. import tableList from "@/components/grid/TableList";
  159. export default {
  160. name: "trafficAccidentSimulationScenarioList", // 交通事故仿真场景
  161. components: { searchLayout, tableList },
  162. data() {
  163. return {
  164. searchParams: {
  165. //搜索参数
  166. id: "", //ID
  167. clientOrgName: "", //车辆名称
  168. clientOrgName1: "", //配置名称
  169. clientOrgName2: "", //配置描述
  170. status: "",
  171. x: "1",
  172. c: [],
  173. },
  174. list: [],
  175. columns: [
  176. //表格列
  177. {
  178. label: "场景名称",
  179. prop: "id",
  180. },
  181. {
  182. label: "自车驾驶行为",
  183. prop: "aid1",
  184. },
  185. {
  186. label: "目标驾驶行为",
  187. prop: "ktName",
  188. },
  189. {
  190. label: "自车反应行为",
  191. prop: "jbSource",
  192. },
  193. {
  194. label: "冲突行为",
  195. prop: "jbSource",
  196. },
  197. {
  198. label: "冲突类型",
  199. prop: "jbSource",
  200. },
  201. {
  202. label: "标签",
  203. prop: "asd",
  204. template: true,
  205. },
  206. {
  207. label: "操作",
  208. prop: "cgInfos",
  209. template: true,
  210. },
  211. ],
  212. pagination: {
  213. //分页使用
  214. currentPage: 1,
  215. pageSize: 10,
  216. position: "right",
  217. pageSizes: [10, 30, 50, 100, 200],
  218. layout: "sizes, total, prev, pager, next, jumper",
  219. },
  220. getDataWay: {
  221. //加载表格数据
  222. dataType: "url",
  223. type: "post",
  224. // firstRequest: false,
  225. data: this.$api.sceneLibrary.queryStandardsRegulationsList,
  226. param: {},
  227. },
  228. dialogVisible: false,
  229. };
  230. },
  231. methods: {
  232. viewRow(row) {
  233. this.dialogVisible = true;
  234. },
  235. },
  236. // mounted: {},
  237. };
  238. </script>
  239. <style lang='less' scoped>
  240. @import "./common/util.less";
  241. .inputBox {
  242. .radioBox {
  243. width: 340px;
  244. }
  245. .label {
  246. min-width: 90px;
  247. }
  248. }
  249. </style>