123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813 |
- <template>
- <div class="scenePacketListPanel">
- <div class="viewBox">
- <el-button icon="el-icon-view" @click="view" type="primary"
- >模板预览</el-button
- >
- </div>
- <tableList
- ref="table"
- :columns="columns"
- :getDataWay="getDataWay"
- :pagination="pagination"
- >
- <el-table-column label="操作" slot="cgInfos" align="center">
- <template v-slot="scope">
- <i
- @click="addIndicators(scope.row)"
- class="el-icon-plus elIcon"
- ></i>
- <i
- @click="addIndicators(scope.row)"
- class="el-icon-edit-outline elIcon"
- ></i>
- <i
- @click="addMarkDia(scope.row)"
- class="el-icon-delete elIcon"
- ></i>
- <i
- @click="addScenario(scope.row)"
- class="el-icon-document-add elIcon"
- ></i>
- </template>
- </el-table-column>
- </tableList>
- <el-dialog
- :title="diaTitle"
- :visible.sync="indicatorsVisible"
- width="690px"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- >
- <el-form
- ref="form"
- :model="form"
- :rules="rules"
- label-width="108px"
- >
- <el-form-item label="指标名称:" prop="name">
- <el-input
- placeholder="请输入"
- maxlength="30"
- v-autoTrim="{ obj: form, key: 'name' }"
- v-model="form.name"
- >
- </el-input>
- </el-form-item>
- <el-form-item label="权重:" prop="x">
- <el-input
- placeholder="请输入"
- maxlength="30"
- v-autoTrim="{ obj: form, key: 'x' }"
- v-model="form.x"
- >
- </el-input>
- </el-form-item>
- <el-form-item label="评分规则:" prop="x">
- <el-select v-model="form.y">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="备注:" prop="des">
- <el-input
- v-autoTrim="{
- obj: form,
- key: 'des',
- }"
- v-model="form.des"
- type="textarea"
- placeholder="请输入"
- :autosize="{ minRows: 4, maxRows: 4 }"
- maxlength="200"
- ></el-input>
- </el-form-item>
- </el-form>
- <span slot="footer">
- <el-button type="primary" @click="indicatorsConfirm"
- >确 定</el-button
- >
- <el-button @click="indicatorsVisible = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="场景分类"
- :visible.sync="scenarioVisible"
- width="690px"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- >
- <el-form
- ref="formA"
- :model="formA"
- :rules="rulesA"
- label-width="108px"
- >
- <el-form-item label="场景分类:" prop="x">
- <el-select v-model="formA.y">
- <el-option
- v-for="item in listA"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div class="tips">
- 解释:基于不同环境要素,在前述主题场景及两条路径的框架下进行场景的精确细分。细分维度包括天气、季节、温度、路况、车况等多种元素,所采纳元素的广度和深度既与需求有关,也与汽车智能化程度(感知能力)相关
- </div>
- <span slot="footer">
- <el-button type="primary" @click="scenarioConfirm"
- >确 定</el-button
- >
- <el-button @click="scenarioVisible = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="真实场景"
- :visible.sync="scenarioListsVisible"
- width="90%"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- >
- <div class="tabsBox">
- <toolbarTab
- :isConnect="true"
- position="top"
- :subPageActiveName="subPageActiveName"
- :toolbarItem="pageBtnList"
- @toolbarClick="pageControl"
- class="toolbarTab"
- >
- </toolbarTab>
- <div v-show="activitedPageNum === 1">
- <search-layout>
- <template slot="searchItem1">
- <span class="label">场景名称</span>
- <el-input
- v-model="searchParamsA.id"
- size="small"
- clearable
- placeholder="请输入"
- >
- </el-input>
- </template>
- <template slot="searchItem2">
- <span class="label">自车驾驶行为</span>
- <el-select v-model="searchParamsA.status" multiple>
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem3">
- <span class="label">目标驾驶行为</span>
- <el-select v-model="searchParamsA.status" multiple>
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem4">
- <span class="label">自车反应行为</span>
- <el-select v-model="searchParamsA.status" multiple>
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem5">
- <span class="label">冲突行为</span>
- <el-select v-model="searchParamsA.status" multiple>
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem6">
- <span class="label">冲突类型</span>
- <el-select v-model="searchParamsA.status" multiple>
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchBtn1">
- <el-button type="primary">查询</el-button>
- </template>
- <template slot="searchBtn2">
- <el-button type="primary">重置</el-button>
- </template>
- </search-layout>
- <div class="isSelected">
- <el-checkbox v-model="selectedA">已选择</el-checkbox>
- </div>
- <tableList
- ref="tableA"
- :columns="columnsA"
- :getDataWay="getDataWayA"
- :pagination="paginationA"
- index
- selection
- >
- </tableList>
- </div>
- <div v-show="activitedPageNum === 2">
- <search-layout>
- <template slot="searchItem1">
- <span class="label">道路</span>
- <el-select v-model="searchParamsB.status">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem2">
- <span class="label">基础设施</span>
- <el-select v-model="searchParamsB.status">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem3">
- <span class="label">交通情况</span>
- <el-select v-model="searchParamsB.status">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem4">
- <span class="label">自车行为</span>
- <el-select v-model="searchParamsB.status">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem5">
- <span class="label">目标行为</span>
- <el-select v-model="searchParamsB.status">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem6">
- <span class="label">自然环境</span>
- <el-select v-model="searchParamsB.status">
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchBtn1">
- <el-button type="primary">查询</el-button>
- </template>
- <template slot="searchBtn2">
- <el-button type="primary">重置</el-button>
- </template>
- </search-layout>
- <div class="isSelected">
- <el-checkbox v-model="selectedB">已选择</el-checkbox>
- </div>
- <tableList
- ref="tableB"
- :columns="columnsB"
- :getDataWay="getDataWayB"
- :pagination="paginationB"
- index
- selection
- >
- </tableList>
- </div>
- <div v-show="activitedPageNum === 3">
- <search-layout>
- <template slot="searchItem1">
- <span class="label">场景名称</span>
- <el-input
- v-model="searchParamsC.id"
- size="small"
- clearable
- placeholder="请输入"
- >
- </el-input>
- </template>
- <template slot="searchItem2">
- <span class="label">法规类型</span>
- <el-select v-model="searchParamsC.status" multiple>
- <el-option
- v-for="item in list"
- :label="item.caption"
- :value="item.code"
- :key="item.code"
- ></el-option>
- </el-select>
- </template>
- <template slot="searchItem3">
- <span class="label">标准类型</span>
- <el-input
- v-model="searchParamsC.id"
- size="small"
- clearable
- placeholder="请输入"
- >
- </el-input>
- </template>
- <template slot="searchBtn1">
- <el-button type="primary">查询</el-button>
- </template>
- <template slot="searchBtn2">
- <el-button type="primary">重置</el-button>
- </template>
- </search-layout>
- <div class="isSelected">
- <el-checkbox v-model="selectedC">已选择</el-checkbox>
- </div>
- <tableList
- ref="tableC"
- :columns="columnsC"
- :getDataWay="getDataWayC"
- :pagination="paginationC"
- index
- selection
- >
- </tableList>
- </div>
- </div>
- <div class="flexBox summaryBox">
- <div>场景总数: {{ sceneTotal }}</div>
- <div>交通事故场景: {{ sceneA }}</div>
- <div>自然驾驶场景: {{ sceneB }}</div>
- <div>标准法规场景: {{ sceneC }}</div>
- </div>
- <span slot="footer">
- <el-button type="primary" @click="scenarioListsConfirm"
- >确 定</el-button
- >
- <el-button @click="scenarioListsVisible = false"
- >取 消</el-button
- >
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import searchLayout from "@/components/grid/searchLayout";
- import tableList from "@/components/grid/TableList";
- import toolbarTab from "@/components/toolbar/toolbarTab";
- export default {
- name: "scenePacketList", // 场景数据包
- components: { searchLayout, tableList, toolbarTab },
- data() {
- return {
- searchParams: {
- //搜索参数
- id: "", //ID
- clientOrgName: "", //车辆名称
- clientOrgName1: "", //配置名称
- clientOrgName2: "", //配置描述
- },
- activitedPageNum: 1,
- subPageActiveName: 1,
- pageBtnList: [
- {
- type: "primary",
- title: "交通事故场景",
- key: "all",
- fromId: 1,
- method: "showAll",
- plain: true,
- disabled: false,
- },
- {
- type: "primary",
- title: "自然驾驶场景",
- key: "notRead",
- fromId: 2,
- method: "showNotRead",
- plain: true,
- disabled: false,
- },
- {
- type: "primary",
- title: "标准法规场景",
- key: "notRead1",
- fromId: 3,
- method: "showNotRead1",
- plain: true,
- disabled: false,
- },
- ],
- columns: [
- {
- label: "操作",
- prop: "cgInfos",
- template: true,
- },
- {
- label: "指标名称",
- prop: "id",
- },
- {
- label: "权重",
- prop: "ktName",
- },
- {
- label: "场景数量",
- prop: "jbSource",
- },
- {
- label: "规则名称",
- prop: "startDateStr",
- },
- {
- label: "备注",
- prop: "startDateStr",
- },
- ],
- pagination: {
- //分页使用
- currentPage: 1,
- pageSize: 10,
- position: "right",
- pageSizes: [10, 30, 50, 100, 200],
- layout: "sizes, total, prev, pager, next, jumper",
- },
- getDataWay: {
- //加载表格数据
- dataType: "data",
- type: "post",
- firstRequest: false,
- data: [
- {
- id: 1,
- ktName: "kjdhfkjsdhfkjsjhdfksdjhfkhwoieyrhfisdhfksjhdf",
- jbSource: "收到就好付款时间的回复可见收到货覅无痕",
- },
- { id: 2 },
- { id: 3 },
- { id: 4 },
- { id: 5 },
- { id: 6 },
- ],
- param: {},
- },
- diaTitle: "",
- indicatorsVisible: false, // 编辑指标
- scenarioVisible: false, // 选择场景
- scenarioListsVisible: false, // 真实场景列表
- form: {
- name: "",
- des: "",
- x: "",
- y: "",
- },
- rules: {
- name: [{ required: true, message: "请输入", trigger: "blur" }],
- x: [{ required: true, message: "请输入", trigger: "blur" }],
- y: [{ required: true, message: "请选择", trigger: "change" }],
- },
- list: [],
- formA: {
- x: "",
- },
- rulesA: {
- x: [{ required: true, message: "请选择", trigger: "change" }],
- },
- listA: [],
- searchParamsA: {
- //搜索参数
- id: "", //ID
- clientOrgName: "", //车辆名称
- clientOrgName1: "", //配置名称
- clientOrgName2: "", //配置描述
- status: "",
- x: "1",
- c: [],
- },
- columnsA: [
- //表格列
- {
- label: "场景名称",
- prop: "id",
- },
- {
- label: "自车驾驶行为",
- prop: "aid1",
- },
- {
- label: "目标驾驶行为",
- prop: "ktName",
- },
- {
- label: "自车反应行为",
- prop: "jbSource",
- },
- {
- label: "冲突行为",
- prop: "jbSource",
- },
- {
- label: "冲突类型",
- prop: "jbSource",
- },
- {
- label: "标签",
- prop: "asd",
- template: true,
- },
- {
- label: "操作",
- prop: "cgInfos",
- template: true,
- },
- ],
- paginationA: {
- //分页使用
- currentPage: 1,
- pageSize: 10,
- position: "right",
- pageSizes: [10, 30, 50, 100, 200],
- layout: "sizes, total, prev, pager, next, jumper",
- },
- getDataWayA: {
- //加载表格数据
- dataType: "data",
- type: "post",
- firstRequest: false,
- data: [
- {
- id: 1,
- ktName: "kjdhfkjsdhfkjsjhdfksdjhfkhwoieyrhfisdhfksjhdf",
- jbSource: "收到就好付款时间的回复可见收到货覅无痕",
- },
- { id: 2 },
- { id: 3 },
- { id: 4 },
- { id: 51 },
- { id: 6 },
- ],
- // data: this.$api.scientificStatistics.typeProjectStatistics,
- param: {},
- },
- selectedA: false,
- searchParamsB: {
- //搜索参数
- id: "", //ID
- clientOrgName: "", //车辆名称
- clientOrgName1: "", //配置名称
- clientOrgName2: "", //配置描述
- status: "",
- c: [],
- },
- columnsB: [
- //表格列
- {
- label: "场景名称",
- prop: "aid1",
- },
- {
- label: "天气",
- prop: "ktName",
- },
- {
- label: "自车行为",
- prop: "jbSource",
- },
- {
- label: "目标行为",
- prop: "jbSource",
- },
- {
- label: "标签",
- prop: "asd",
- template: true,
- },
- {
- label: "操作",
- prop: "cgInfos",
- template: true,
- },
- ],
- paginationB: {
- //分页使用
- currentPage: 1,
- pageSize: 10,
- position: "right",
- pageSizes: [10, 30, 50, 100, 200],
- layout: "sizes, total, prev, pager, next, jumper",
- },
- getDataWayB: {
- //加载表格数据
- dataType: "data",
- type: "post",
- firstRequest: false,
- data: [
- {
- id: 1,
- ktName: "kjdhfkjsdhfkjsjhdfksdjhfkhwoieyrhfisdhfksjhdf",
- jbSource: "收到就好付款时间的回复可见收到货覅无痕",
- },
- { id: 2 },
- { id: 3 },
- { id: 4 },
- { id: 51 },
- { id: 6 },
- ],
- param: {},
- },
- selectedB: false,
- searchParamsC: {
- //搜索参数
- id: "", //ID
- clientOrgName: "", //车辆名称
- clientOrgName1: "", //配置名称
- clientOrgName2: "", //配置描述
- status: "",
- c: [],
- },
- columnsC: [
- //表格列
- {
- label: "场景名称",
- prop: "id",
- },
- {
- label: "法规类型",
- prop: "aid1",
- },
- {
- label: "标准类型",
- prop: "ktName",
- },
- {
- label: "标签",
- prop: "asd",
- template: true,
- },
- {
- label: "操作",
- prop: "cgInfos",
- template: true,
- },
- ],
- paginationC: {
- //分页使用
- currentPage: 1,
- pageSize: 10,
- position: "right",
- pageSizes: [10, 30, 50, 100, 200],
- layout: "sizes, total, prev, pager, next, jumper",
- },
- getDataWayC: {
- //加载表格数据
- dataType: "data",
- type: "post",
- firstRequest: false,
- data: [
- {
- id: 1,
- ktName: "kjdhfkjsdhfkjsjhdfksdjhfkhwoieyrhfisdhfksjhdf",
- jbSource: "收到就好付款时间的回复可见收到货覅无痕",
- },
- { id: 2 },
- { id: 3 },
- { id: 4 },
- { id: 51 },
- { id: 6 },
- ],
- // data: this.$api.scientificStatistics.typeProjectStatistics,
- param: {},
- },
- selectedC: false,
- sceneTotal: 0,
- sceneA: 0,
- sceneB: 0,
- sceneC: 0,
- };
- },
- computed: {},
- methods: {
- view() {},
- addIndicators(row) {
- this.diaTitle = "添加指标";
- this.indicatorsVisible = true;
- },
- addScenario(row) {
- this.scenarioVisible = true;
- },
- indicatorsConfirm() {
- this.indicatorsVisible = false;
- },
- scenarioConfirm() {
- this.scenarioVisible = false;
- this.scenarioListsVisible = true;
- },
- scenarioListsConfirm() {
- this.scenarioListsVisible = false;
- },
- pageControl(data) {
- this.activitedPageNum = data.fromId;
- },
- },
- // mounted() {},
- };
- </script>
- <style lang='less' scoped>
- .scenePacketListPanel {
- padding: 30px;
- .viewBox {
- padding: 0 10px 10px;
- }
- .tips {
- padding: 10px 0 10px 18px;
- font-size: 12px;
- color: @gray;
- }
- .tabsBox {
- .el-input,
- .el-select {
- width: 230px;
- }
- .label {
- min-width: 90px;
- }
- .isSelected {
- padding: 10px 0 10px 30px;
- }
- }
- .summaryBox {
- padding: 20px 20px 0;
- margin-top: 20px;
- border-top: 1px dotted @themeColor;
- color: @themeColor;
- font-size: 18px;
- font-weight: bold;
- > div {
- margin-right: 30px;
- }
- }
- }
- </style>
|