|
@@ -54,31 +54,6 @@
|
|
|
>
|
|
|
</el-time-picker>
|
|
|
</template>
|
|
|
- <!-- <template slot="searchItem27">
|
|
|
- <el-checkbox-group v-model="labels">
|
|
|
- <el-checkbox-button label="1" :key="1" class="labelA"
|
|
|
- >高速</el-checkbox-button
|
|
|
- >
|
|
|
- <el-checkbox-button label="2" :key="2" class="labelB"
|
|
|
- >切入</el-checkbox-button
|
|
|
- >
|
|
|
- <el-checkbox-button label="3" :key="3" class="labelC"
|
|
|
- >切出</el-checkbox-button
|
|
|
- >
|
|
|
- <el-checkbox-button label="4" :key="4" class="labelD"
|
|
|
- >变道</el-checkbox-button
|
|
|
- >
|
|
|
- <el-checkbox-button label="5" :key="5" class="labelA"
|
|
|
- >匝道</el-checkbox-button
|
|
|
- >
|
|
|
- <el-checkbox-button label="6" :key="6" class="labelB"
|
|
|
- >隧道</el-checkbox-button
|
|
|
- >
|
|
|
- <el-checkbox-button label="7" :key="7" class="labelC"
|
|
|
- >掉头</el-checkbox-button
|
|
|
- >
|
|
|
- </el-checkbox-group>
|
|
|
- </template> -->
|
|
|
<template slot="searchBtn1">
|
|
|
<el-button type="primary" @click="doSearch">查询</el-button>
|
|
|
</template>
|
|
@@ -87,10 +62,6 @@
|
|
|
</template>
|
|
|
</search-layout>
|
|
|
|
|
|
- <!-- <div class="btnsPanel">
|
|
|
- <upload ref="upload" :limit="1" @didUpload="didUpload"></upload>
|
|
|
- </div> -->
|
|
|
-
|
|
|
<tableList
|
|
|
ref="table"
|
|
|
style="margin: 30px"
|
|
@@ -105,14 +76,14 @@
|
|
|
align="center"
|
|
|
width="180"
|
|
|
>
|
|
|
- <!-- <template v-slot="scope">
|
|
|
+ <template v-slot="scope">
|
|
|
<i
|
|
|
- @click="viewRow(scope.row)"
|
|
|
- class="el-icon-view elIcon cursor"
|
|
|
- title="查看"
|
|
|
+ @click="delRow(scope.row)"
|
|
|
+ class="el-icon-delete elIcon"
|
|
|
+ title="删除"
|
|
|
>
|
|
|
</i>
|
|
|
- </template> -->
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
</tableList>
|
|
|
|
|
@@ -134,7 +105,6 @@
|
|
|
<script>
|
|
|
import searchLayout from "@/components/grid/searchLayout";
|
|
|
import tableList from "@/components/grid/TableList";
|
|
|
-// import upload from "./components/upload";
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
@@ -148,18 +118,10 @@ export default {
|
|
|
fileName: [], // 功能模块
|
|
|
scenarioWeather: [], // 天气
|
|
|
scenarioTime: "", // 时间
|
|
|
-
|
|
|
- // highSpeed: [], // 高速
|
|
|
- // ramp: [], // 匝道
|
|
|
- // tunnel: [], // 隧道
|
|
|
- // cutIn: [], // 切入
|
|
|
- // cutOut: [], // 切出
|
|
|
- // laneChange: [], // 变道
|
|
|
- // turnAround: [], // 掉头
|
|
|
},
|
|
|
labels: [],
|
|
|
fileNameList: [],
|
|
|
- scenarioWeatherList: [],
|
|
|
+ // scenarioWeatherList: [],
|
|
|
props: {
|
|
|
multiple: true,
|
|
|
label: "dictName",
|
|
@@ -191,15 +153,11 @@ export default {
|
|
|
label: "天气",
|
|
|
prop: "scenarioWeather",
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "标签",
|
|
|
- // prop: "label",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "操作",
|
|
|
- // prop: "cgInfos",
|
|
|
- // template: true,
|
|
|
- // },
|
|
|
+ {
|
|
|
+ label: "操作",
|
|
|
+ prop: "cgInfos",
|
|
|
+ template: true,
|
|
|
+ },
|
|
|
],
|
|
|
pagination: {
|
|
|
//分页使用
|
|
@@ -224,107 +182,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
|
|
|
+ props: {
|
|
|
+ scenarioWeatherList: {
|
|
|
+ type: Array,
|
|
|
+ default: [],
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
computed: {
|
|
|
...mapState(["fileHost", "fileUrl"]),
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
doSearch() {
|
|
|
- /* this.searchParams.highSpeed = this.labels.includes("1")
|
|
|
- ? [["roadType", "高速"]]
|
|
|
- : [];
|
|
|
- this.searchParams.cutIn = this.labels.includes("2")
|
|
|
- ? [
|
|
|
- [
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "机动车从左侧切入成功",
|
|
|
- ],
|
|
|
- [
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "机动车从右侧切入成功",
|
|
|
- ],
|
|
|
- ]
|
|
|
- : [];
|
|
|
- this.searchParams.cutOut = this.labels.includes("3")
|
|
|
- ? [
|
|
|
- [
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "机动车向左侧切出成功",
|
|
|
- ],
|
|
|
- [
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "targetBehavior",
|
|
|
- "机动车向右侧切出成功",
|
|
|
- ],
|
|
|
- ]
|
|
|
- : [];
|
|
|
- this.searchParams.laneChange = this.labels.includes("4")
|
|
|
- ? [
|
|
|
- [
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "向左变道成功",
|
|
|
- ],
|
|
|
- [
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "向右变道成功",
|
|
|
- ],
|
|
|
- [
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "向左连续变道",
|
|
|
- ],
|
|
|
- [
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "向右连续变道",
|
|
|
- ],
|
|
|
- [
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "向左变道超车",
|
|
|
- ],
|
|
|
- [
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "selfBehavior",
|
|
|
- "向右变道超车",
|
|
|
- ],
|
|
|
- ]
|
|
|
- : [];
|
|
|
- this.searchParams.ramp = this.labels.includes("5")
|
|
|
- ? [["ramp", "是"]]
|
|
|
- : [];
|
|
|
- this.searchParams.tunnel = this.labels.includes("6")
|
|
|
- ? [["tunnel", "是"]]
|
|
|
- : [];
|
|
|
- this.searchParams.turnAround = this.labels.includes("7")
|
|
|
- ? [
|
|
|
- ["selfBehavior", "直路掉头"],
|
|
|
- ["selfBehavior", "selfBehavior", "路口掉头"],
|
|
|
- ]
|
|
|
- : []; */
|
|
|
this.refreshList(this.searchParams);
|
|
|
},
|
|
|
//刷新table
|
|
@@ -366,9 +236,10 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.$axios({
|
|
|
method: "post",
|
|
|
- url: this.$api.sceneLibrary.deleteSceneNatural,
|
|
|
+ url: this.$api.sceneLibrary.deleteSceneGeneralTemplateById,
|
|
|
data: {
|
|
|
- naturalId: row.naturalId,
|
|
|
+ id: row.id,
|
|
|
+ sceneId: row.sceneId,
|
|
|
},
|
|
|
}).then((res) => {
|
|
|
if (res.code == 200) {
|
|
@@ -410,11 +281,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
|
|
|
- async mounted() {
|
|
|
- await this.$dicsListsInit({
|
|
|
- scenarioWeatherList: "scenarioWeather",
|
|
|
- });
|
|
|
-
|
|
|
+ mounted() {
|
|
|
this.getFileNameList();
|
|
|
},
|
|
|
};
|