30 changed files with 1652 additions and 717 deletions
@ -0,0 +1,225 @@ |
|||
<template> |
|||
<div class="congestion"> |
|||
<div> |
|||
<!-- :style="{ width: dataList.length * 300 }" --> |
|||
<div |
|||
:class=" |
|||
selectIndex == index |
|||
? selectLine < 1 |
|||
? 'item action Abefore' |
|||
: 'item action Aafter' |
|||
: selectIndex + selectLine == index |
|||
? selectLine < 1 |
|||
? 'item action Aafter' |
|||
: 'item action Abefore' |
|||
: 'item' |
|||
" |
|||
v-for="(item, index) in dataList" |
|||
:key="index" |
|||
> |
|||
<i class="after" v-if="index === 0"></i> |
|||
<i |
|||
class="after" |
|||
v-else |
|||
@click="selectItem(index, -1, dataList[index - 1])" |
|||
></i> |
|||
<i class="before" v-if="index === dataList.length - 1"></i> |
|||
<i class="before" v-else @click="selectItem(index, +1, item)"></i> |
|||
|
|||
<span></span> |
|||
<div>{{ item.title }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: "ProgressBar", |
|||
components: {}, |
|||
props: { |
|||
dataList: { |
|||
type: Array, |
|||
default: () => { |
|||
return []; |
|||
}, |
|||
}, |
|||
selectIndex: { |
|||
type: Number, |
|||
default: 1, |
|||
}, |
|||
reset: { |
|||
type: Boolean, |
|||
default: false, |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
// selectIndex: 0, |
|||
selectLine: -1, |
|||
}; |
|||
}, |
|||
created() {}, |
|||
watch: { |
|||
reset: { |
|||
handler(newV) { |
|||
if (newV) { |
|||
this.selectLine = -1; |
|||
} |
|||
}, |
|||
immediate: true, |
|||
}, |
|||
}, |
|||
methods: { |
|||
selectItem(index, num, item) { |
|||
// this.selectIndex = index; |
|||
this.selectLine = num; |
|||
if (item) this.$emit("selectItem", item, index); |
|||
}, |
|||
}, |
|||
mounted() {}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.congestion { |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
> div { |
|||
position: relative; |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
> .item .after { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: -5px; |
|||
width: 45px !important; |
|||
height: 35px !important; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .after::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
> .item .before { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
right: 0px; |
|||
top: -5px; |
|||
width: 45px; |
|||
height: 35px; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .before::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
.item.action .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
.item.action.Aafter .after::after { |
|||
background-color: #c7c7c7 !important; |
|||
} |
|||
|
|||
> .item.action.Aafter .before::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .item.action.Abefore .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .bef::before { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .aft::after { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item.action span { |
|||
background-color: #72fdc9; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item.action span::after { |
|||
border-color: #72fdc9; |
|||
} |
|||
|
|||
> .action div { |
|||
color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item { |
|||
position: relative; |
|||
width: 113px; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
justify-items: center; |
|||
|
|||
> span { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 9px; |
|||
height: 9px; |
|||
background: #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
left: 53px; |
|||
} |
|||
|
|||
> div { |
|||
font-size: 14px; |
|||
position: relative; |
|||
display: inline-flex; |
|||
width: 100%; |
|||
align-items: center; |
|||
justify-content: center; |
|||
top: 5px; |
|||
margin-top: 10px; |
|||
color: #c7c7c7; |
|||
} |
|||
|
|||
> span::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 15px; |
|||
height: 15px; |
|||
border: 1px solid #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
top: -3.5px; |
|||
left: -3px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,336 @@ |
|||
<template> |
|||
<div class="EventDetail"> |
|||
<Table :data="tableData" :show-header="false"> |
|||
<ElTableColumn prop="deviceType" width="160"> |
|||
<template slot-scope="scope"> |
|||
<el-select v-model="scope.row.deviceType" placeholder="请选择设备类型" @change="changeDeviceType"> |
|||
<el-option v-for="item in deviceOptions" :key="item.value" :label="item.label" |
|||
:value="item.value"> |
|||
</el-option> |
|||
</el-select> |
|||
</template> |
|||
</ElTableColumn> |
|||
|
|||
<ElTableColumn prop="searchRule" width="230"> |
|||
<template slot-scope="scope"> |
|||
<div class="plhx"> |
|||
<el-select v-model="scope.row.searchRule" placeholder="检索规则条件"> |
|||
<el-option v-for="item in zyOptions" :key="item.value" :label="item.label" |
|||
:value="item.value"> |
|||
</el-option> |
|||
</el-select> |
|||
|
|||
<el-input-number v-if="scope.row.searchRule == 2 || scope.row.searchRule == 3" |
|||
v-model="scope.row.number" :min="0" :max="9999" style="width: 130px;"></el-input-number> |
|||
<p v-if="scope.row.searchRule == 2 || scope.row.searchRule == 3">个</p> |
|||
|
|||
<el-input-number v-if="scope.row.searchRule == 4" v-model="scope.row.number" :min="0" |
|||
:max="9999" style="width: 130px;"></el-input-number> |
|||
<p v-if="scope.row.searchRule == 4" style="width: 56px;">公里</p> |
|||
</div> |
|||
|
|||
</template> |
|||
</ElTableColumn> |
|||
|
|||
<ElTableColumn prop="deviceList" width="400"> |
|||
<template slot-scope="scope"> |
|||
<div class="mjs"> |
|||
<el-select v-if="scope.row.searchRule == 1" v-model="scope.row.deviceList" placeholder="请选择设备" |
|||
multiple collapse-tags> |
|||
<el-option v-for="item in sbOptions" :key="item.id" :label="item.deviceName" |
|||
:value="item.id"> |
|||
</el-option> |
|||
</el-select> |
|||
<el-input @click.native="clickQbb(scope.$index)" v-if="scope.row.deviceType == 2" |
|||
placeholder="请选择" v-model="scope.row.qbb" readonly> |
|||
<i slot="suffix" class="el-input__icon el-icon-search"></i> |
|||
</el-input> |
|||
|
|||
<el-select v-if="scope.row.deviceType == 10" v-model="scope.row.gzms" placeholder="工作模式"> |
|||
<el-option v-for="item in gzmsOptions" :key="item.value" :label="item.label" |
|||
:value="item.value"></el-option> |
|||
</el-select> |
|||
<el-input-number v-if="scope.row.deviceType == 10" placeholder="时长(分钟)" |
|||
v-model="scope.row.operationDuration" :min="0" :max="999"></el-input-number> |
|||
|
|||
<el-select v-if="scope.row.deviceType == 12" v-model="scope.row.controlModel" |
|||
placeholder="请选择模式"> |
|||
<el-option label="手动模式" value="00"></el-option> |
|||
<el-option label="自动模式" value="01"></el-option> |
|||
<el-option label="万年历" value="02"></el-option> |
|||
</el-select> |
|||
<el-time-picker v-if="scope.row.controlModel == '01' && scope.row.deviceType == 12" |
|||
v-model="scope.row.time" is-range style="" range-separator="-" placeholder="选择时间" |
|||
value-format="HH:mm" format="HH:mm"> |
|||
</el-time-picker> |
|||
<el-select v-if="scope.row.deviceType == 12" v-model="scope.row.state" placeholder="工作状态"> |
|||
<el-option v-for="item in gzztOptions" :key="item.value" :label="item.label" |
|||
:value="item.value"></el-option> |
|||
</el-select> |
|||
|
|||
<el-input v-if="scope.row.deviceType == 5" v-model="scope.row.content" |
|||
placeholder="请输入发布内容"></el-input> |
|||
|
|||
</div> |
|||
</template> |
|||
</ElTableColumn> |
|||
|
|||
|
|||
<ElTableColumn label="操作" width="100"> |
|||
<template slot-scope="scope"> |
|||
<ElButton class="elButton" icon="el-icon-plus" plain size="mini" |
|||
@click.native="onAdd(scope.row.id)" /> |
|||
<ElButton class="elButton" icon="el-icon-delete" plain size="mini" |
|||
@click.native="onDel(scope.$index)" /> |
|||
</template> |
|||
</ElTableColumn> |
|||
</Table> |
|||
|
|||
<!-- 情报板弹窗 --> |
|||
<QbbDialog :visible="isShowDialog" :info="qbbData" :type="type" @close="onCloseDialog" @dialogSubmit="dialogSubmit" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Table from '@screen/components/Table.vue'; |
|||
import Button from '@screen/components/Buttons/Button.vue'; |
|||
import request from "@/utils/request"; |
|||
import QbbDialog from "../qbbDialog/index.vue"; |
|||
import { Message } from 'element-ui' |
|||
import { planDeviceOptions } from "@screen/utils/enum.js"; |
|||
|
|||
|
|||
export default { |
|||
name: 'formTable', |
|||
components: { |
|||
Button, |
|||
Table, |
|||
QbbDialog |
|||
}, |
|||
model: { |
|||
prop: 'visible', |
|||
event: 'update:value' |
|||
}, |
|||
inject: ['loadData'], |
|||
props: { |
|||
visible: Boolean, |
|||
eventType: Number, |
|||
type: Number, |
|||
tableData: { |
|||
type: Array, |
|||
default: () => [{ |
|||
deviceType: 1, |
|||
searchRule: 1, |
|||
qbb: '' |
|||
}] |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
// tableData: [ |
|||
// { |
|||
// deviceType: 1, |
|||
// searchRule: 1, |
|||
// qbb: '安全行驶' |
|||
// } |
|||
// ], |
|||
isShowDialog: false, |
|||
deviceOptions: planDeviceOptions, |
|||
zyOptions: [ |
|||
{ |
|||
value: 1, |
|||
label: '指定设备资源' |
|||
}, |
|||
{ |
|||
value: 2, |
|||
label: '事发上游最近' |
|||
}, |
|||
{ |
|||
value: 3, |
|||
label: '事发下游最近' |
|||
}, |
|||
{ |
|||
value: 4, |
|||
label: '最近公里数' |
|||
}, |
|||
], |
|||
gzztOptions: [ |
|||
{ |
|||
value: "01", |
|||
label: "常亮" |
|||
}, |
|||
{ |
|||
value: "02", |
|||
label: "流水" |
|||
}, |
|||
{ |
|||
value: "03", |
|||
label: "闪烁" |
|||
}, |
|||
{ |
|||
value: "04", |
|||
label: "关闭", |
|||
} |
|||
], |
|||
gzmsOptions: [ |
|||
{ |
|||
value: "SETMD0", |
|||
label: "激光关闭" |
|||
}, |
|||
{ |
|||
value: "SETMD1", |
|||
label: "常亮模式" |
|||
}, |
|||
{ |
|||
value: "SETMD2", |
|||
label: "间隔100ms闪烁模式" |
|||
}, |
|||
{ |
|||
value: "SETMD3", |
|||
label: "间隔200ms闪烁模式", |
|||
}, |
|||
{ |
|||
value: "SETMD4", |
|||
label: "间隔500ms闪烁模式", |
|||
}, |
|||
{ |
|||
value: "SETMD5", |
|||
label: "2次闪烁模式" |
|||
}, |
|||
{ |
|||
value: "SETMD6", |
|||
label: "SOS模式" |
|||
}, |
|||
{ |
|||
value: "SETMD7", |
|||
label: "自定义模式1", |
|||
}, |
|||
{ |
|||
value: "SETMD8", |
|||
label: "自定义模式2", |
|||
}, |
|||
{ |
|||
value: "SETMD9", |
|||
label: "自定义模式3", |
|||
} |
|||
], |
|||
qbbData: {}, |
|||
sbOptions: [], |
|||
deviceType: 1, |
|||
index: 1 |
|||
} |
|||
}, |
|||
async created() { |
|||
let loadData = await this.loadData(1); |
|||
// console.log('aa',loadData) |
|||
this.sbOptions = loadData; |
|||
}, |
|||
methods: { |
|||
initData() { |
|||
// request({ |
|||
// url: `business/device/query?deviceType=2`, |
|||
// method: "get", |
|||
// }).then((result) => { |
|||
// if (result.code != 200) return Message.error(result?.msg); |
|||
// this.sbOptions = result.data; |
|||
|
|||
// }).catch(() => { |
|||
// Message.error("查询可变信息标识失败"); |
|||
// }) |
|||
|
|||
}, |
|||
async changeDeviceType(value) { |
|||
this.deviceType = value; |
|||
console.log('value', value) |
|||
this.sbOptions = await this.loadData(value); |
|||
}, |
|||
onAdd(id) { |
|||
this.tableData.push({ |
|||
deviceType: 1, |
|||
searchRule: 1, |
|||
qbb: '' |
|||
}) |
|||
}, |
|||
onDel(index) { |
|||
if (this.tableData.length <= 1) { |
|||
return Message.warning('最后一项不可删除!'); |
|||
} |
|||
this.tableData.splice(index, 1) |
|||
}, |
|||
clickQbb(index) { |
|||
this.index = index; |
|||
this.qbbData = this.tableData[index].dcInfoBoardTemplate; |
|||
if (this.type == 1) { |
|||
this.isShowDialog = true; |
|||
} |
|||
}, |
|||
onCloseDialog() { |
|||
this.isShowDialog = false; |
|||
}, |
|||
dialogSubmit(data) { |
|||
this.tableData[this.index].qbb = data.content; |
|||
this.tableData[this.index].otherConfig = JSON.stringify(data); |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.EventDetail { |
|||
display: flex; |
|||
gap: 9px; |
|||
width: 100%; |
|||
// height: 768px; |
|||
min-height: 50px; |
|||
margin-top: 5px; |
|||
flex-direction: column; |
|||
|
|||
::v-deep { |
|||
.el-table .el-table__cell { |
|||
padding: 0 5px; |
|||
} |
|||
} |
|||
|
|||
.mjs { |
|||
display: flex; |
|||
|
|||
>div { |
|||
margin-right: 10px; |
|||
} |
|||
} |
|||
|
|||
.ms { |
|||
width: 160px; |
|||
} |
|||
|
|||
.plhx { |
|||
display: flex; |
|||
} |
|||
|
|||
::v-deep { |
|||
.el-tag.el-tag--info { |
|||
max-width: 100px; |
|||
} |
|||
|
|||
.el-range-editor--medium .el-range__icon, |
|||
.el-range-editor--medium .el-range__close-icon { |
|||
display: none; |
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|||
.elButton { |
|||
background: #2ba8c3; |
|||
border-radius: 2px 2px 2px 2px; |
|||
color: #FFFFFF; |
|||
} |
|||
|
|||
.elButton:hover, |
|||
.elButton:focus { |
|||
background: #2ba8c3; |
|||
border-radius: 2px 2px 2px 2px; |
|||
border-color: #FFFFFF; |
|||
color: #FFFFFF; |
|||
} |
|||
</style> |
@ -0,0 +1,308 @@ |
|||
<template> |
|||
<Dialog v-model="modelVisible" title="情报板确认"> |
|||
<div class="EventAddPlanDialog"> |
|||
<h4>预案内容</h4> |
|||
<dev class="listBox disPid"> |
|||
<div class="tplItem"> |
|||
<!-- 模板内容 --> |
|||
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="{}"></BoardTplPreview> |
|||
<!-- 操作按钮 --> |
|||
<div class="infoBtnBox infoBtnBoxSm"> |
|||
<p class="btn"> |
|||
<!-- <el-radio v-model="radio1" :label="1" @input="changeRadio(1)" /> --> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</dev> |
|||
<h4>自动生成</h4> |
|||
<dev class="listBox disPid"> |
|||
<div class="tplItem"> |
|||
<!-- 模板内容 --> |
|||
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="{}"></BoardTplPreview> |
|||
<!-- 操作按钮 --> |
|||
<div class="infoBtnBox infoBtnBoxSm"> |
|||
<p class="btn"> |
|||
<!-- <el-radio v-model="radio1" :label="2" @input="changeRadio(2)" /> --> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</dev> |
|||
<h4>情报板模版</h4> |
|||
<vuescroll :ops="scrollOptions" class="listBox"> |
|||
<div v-for="(item) in templateAvailable" :key="item.dictValue"> |
|||
<!-- 原来是<el-collapse v-model="activeNames"> --> |
|||
<h5>{{ item.dictLabel }}</h5> |
|||
<div v-for="(itm, indx) in item.list" :key="indx" class="tplItem"> |
|||
<!-- 模板内容 --> |
|||
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="itm"></BoardTplPreview> |
|||
<!-- 操作按钮 --> |
|||
<div class="infoBtnBox infoBtnBoxSm"> |
|||
<p class="btn"> |
|||
<el-radio v-model="radio1" :label="itm.id" @input="changeRadio(itm)" /> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</vuescroll> |
|||
</div> |
|||
<template #footer> |
|||
<Button style="background: #C9C9C9;padding:0 24px;" |
|||
@click.native="modelVisible = false, submitting = false">取消</Button> |
|||
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">确认</Button> |
|||
</template> |
|||
</Dialog> |
|||
</template> |
|||
|
|||
<script> |
|||
import vuescroll from "vuescroll"; |
|||
import scrollOptions from "@/common/scrollbar.js"; |
|||
import BoardTplPreview from "@screen/components/infoBoard/BoardTplPreview.vue"; |
|||
import Dialog from "@screen/components/Dialog/index"; |
|||
import Button from '@screen/components/Buttons/Button.vue'; |
|||
import { getTemplateList } from "@/api/board/template"; |
|||
import DeviceControlDialog from '../../../../../Home/components/Dialogs/DrivingGuidance/components/DeviceControlDialog.vue'; |
|||
|
|||
export default { |
|||
name: 'qbbDialog', |
|||
components: { |
|||
Dialog, |
|||
Button, |
|||
vuescroll, |
|||
BoardTplPreview, |
|||
DeviceControlDialog |
|||
}, |
|||
model: { |
|||
prop: 'visible', |
|||
event: 'close' |
|||
}, |
|||
props: { |
|||
visible: Boolean, |
|||
type: Number, |
|||
info: { |
|||
type: Object, |
|||
default: () => { } |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
submitting: false, |
|||
selectedSize: "", |
|||
scrollOptions, |
|||
templateAvailable: null, |
|||
tplCategory: [], |
|||
templateAll: [], |
|||
radio1: '', |
|||
itmData: {} |
|||
} |
|||
}, |
|||
mounted() { |
|||
if (this.type == 1) { |
|||
this.initData(); |
|||
} |
|||
}, |
|||
computed: { |
|||
modelVisible: { |
|||
get() { |
|||
if (this.visible) { |
|||
if (this.info && this.info.id) { |
|||
this.radio1 = Number(this.info.id); |
|||
} |
|||
} |
|||
return this.visible; |
|||
}, |
|||
set(val) { |
|||
this.$emit('close', val) |
|||
} |
|||
}, |
|||
}, |
|||
methods: { |
|||
initData() { |
|||
if (this.tplCategory.length && this.templateAll.length) { |
|||
this.____setAvailableTemplate(); |
|||
} else { |
|||
Promise.all([ |
|||
this.____getTemplateCategory(), |
|||
this.____getAllTemplate(), |
|||
]).then((res) => { |
|||
this.____setAvailableTemplate(); |
|||
}); |
|||
} |
|||
|
|||
}, |
|||
// 获取信息模板分类 |
|||
____getTemplateCategory() { |
|||
return this.getDicts("iot_template_category").then((res) => { |
|||
this.tplCategory = res.data; |
|||
}); |
|||
}, |
|||
//获取全部模版 |
|||
____getAllTemplate() { |
|||
return getTemplateList().then((res) => { |
|||
this.templateAll = res.data; |
|||
}); |
|||
}, |
|||
// 设置当前设备可用的模板 |
|||
____setAvailableTemplate() { |
|||
this.templateAvailable = []; |
|||
this.tplCategory.forEach((item, index) => { |
|||
let arr = this.templateAll["" + index]; |
|||
if (arr.length > 0) { |
|||
let temp = []; |
|||
arr.forEach((tpl) => { |
|||
if (tpl.screenSize) { |
|||
temp.push(tpl); |
|||
} |
|||
}); |
|||
if (temp.length > 0) { |
|||
this.templateAvailable.push({ |
|||
...item, |
|||
list: temp, |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
changeRadio(data) { |
|||
this.itmData = data; |
|||
}, |
|||
handleSubmit() { |
|||
this.modelVisible = false; |
|||
this.$emit('dialogSubmit', this.itmData); |
|||
} |
|||
|
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.listBox { |
|||
padding: 20px; |
|||
|
|||
.tplItem { |
|||
margin-right: 14px; |
|||
display: flex; |
|||
align-items: stretch; |
|||
padding-bottom: 10px; |
|||
|
|||
.boardPreview { |
|||
border: 1px solid rgba(61, 232, 255, 0.5); |
|||
// width: 560px; |
|||
// height:80px; |
|||
flex: 1; |
|||
} |
|||
|
|||
.infoBtnBox { |
|||
&.infoBtnBoxSm { |
|||
width: 60px; |
|||
} |
|||
|
|||
width: 110px; |
|||
height: 80px; |
|||
display: flex; |
|||
margin-left: 10px; |
|||
/* // border: solid 1px #05afe3; */ |
|||
border: 1px solid rgba(61, 232, 255, 0.5); |
|||
display: flex; |
|||
justify-content: space-around; |
|||
align-items: center; |
|||
|
|||
.btn { |
|||
background-repeat: no-repeat; |
|||
background-size: 100% 100%; |
|||
width: 15px; |
|||
height: 30px; |
|||
|
|||
&.btnApply { |
|||
background-image: url(~@/assets/jihe/images/button/toLeft.svg); |
|||
} |
|||
|
|||
&.btnEdit { |
|||
background-image: url(~@/assets/jihe/images/button/edit.svg); |
|||
} |
|||
|
|||
&.btnDelete { |
|||
background-image: url(~@/assets/jihe/images/button/delete.svg); |
|||
} |
|||
} |
|||
|
|||
i { |
|||
font-size: 24px; |
|||
color: #666; |
|||
padding-left: 4px; |
|||
cursor: pointer; |
|||
caret-color: rgba(0, 0, 0, 0); |
|||
user-select: none; |
|||
} |
|||
|
|||
i:hover { |
|||
color: #05afe3; |
|||
} |
|||
|
|||
.disabledClass { |
|||
pointer-events: none; |
|||
cursor: auto !important; |
|||
color: #ccc; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.controlBox { |
|||
margin-top: 10px; |
|||
margin-bottom: 10px; |
|||
display: flex; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.el-collapse { |
|||
max-height: 100% !important; |
|||
overflow: auto; |
|||
border-bottom: none; |
|||
border-top: none; |
|||
padding: 0 0.5vw; |
|||
} |
|||
} |
|||
|
|||
.disPid { |
|||
padding: 0 20px !important; |
|||
} |
|||
|
|||
.fade-enter-active, |
|||
.fade-leave-active { |
|||
transition: opacity .24s; |
|||
} |
|||
|
|||
.fade-enter, |
|||
.fade-leave-to { |
|||
opacity: 0; |
|||
} |
|||
|
|||
.EventAddPlanDialog { |
|||
gap: 9px; |
|||
width: 650px; |
|||
height: 700px; |
|||
display: flex; |
|||
flex-direction: column; |
|||
|
|||
h4 { |
|||
margin: 0 0 5px 0; |
|||
} |
|||
|
|||
::v-deep { |
|||
.el-radio__label { |
|||
display: none; |
|||
} |
|||
} |
|||
|
|||
.form { |
|||
flex: 1; |
|||
overflow-y: auto; |
|||
} |
|||
|
|||
.footer { |
|||
display: flex; |
|||
justify-content: end; |
|||
gap: 15px; |
|||
} |
|||
} |
|||
</style> |
@ -1,197 +1,199 @@ |
|||
<template> |
|||
<div class='congestion'> |
|||
<div :style="{ width: dataList.length * 300 }"> |
|||
<div :class="selectIndex == index ? selectLine < 1 ? 'item action Abefore' : 'item action Aafter' : selectIndex + selectLine == index ? selectLine < 1 ? 'item action Aafter' : 'item action Abefore' : 'item'" |
|||
v-for="(item, index) in dataList" :key="index"> |
|||
<i class="after" @click="selectItem(index, -1)"></i> |
|||
<i class="before" @click="selectItem(index, +1)"></i> |
|||
<span></span> |
|||
<div>{{ item.title }}</div> |
|||
</div> |
|||
</div> |
|||
<div class="congestion"> |
|||
<div :style="{ width: dataList.length * 300 }"> |
|||
<div |
|||
:class=" |
|||
selectIndex == index |
|||
? selectLine < 1 |
|||
? 'item action Abefore' |
|||
: 'item action Aafter' |
|||
: selectIndex + selectLine == index |
|||
? selectLine < 1 |
|||
? 'item action Aafter' |
|||
: 'item action Abefore' |
|||
: 'item' |
|||
" |
|||
v-for="(item, index) in dataList" |
|||
:key="index" |
|||
> |
|||
<i class="after" @click="selectItem(index, -1)"></i> |
|||
<i class="before" @click="selectItem(index, +1)"></i> |
|||
<span></span> |
|||
<div>{{ item.title }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { number } from 'echarts'; |
|||
|
|||
|
|||
<script> |
|||
export default { |
|||
name: 'ProgressBar', |
|||
components: { |
|||
name: "ProgressBar", |
|||
components: {}, |
|||
props: { |
|||
dataList: { |
|||
type: Array, |
|||
default: () => { |
|||
return []; |
|||
}, |
|||
}, |
|||
props: { |
|||
dataList: { |
|||
type: Array, |
|||
default: () => { |
|||
return [] |
|||
} |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
selectIndex: 0, |
|||
selectLine: -1, |
|||
}; |
|||
}, |
|||
|
|||
created() {}, |
|||
methods: { |
|||
selectItem(index, num) { |
|||
this.selectIndex = index; |
|||
this.selectLine = num; |
|||
}, |
|||
data() { |
|||
return { |
|||
selectIndex: 0, |
|||
selectLine: -1, |
|||
} |
|||
}, |
|||
|
|||
created() { |
|||
|
|||
}, |
|||
methods: { |
|||
selectItem(index, num) { |
|||
this.selectIndex = index; |
|||
this.selectLine = num |
|||
} |
|||
}, |
|||
mounted() { |
|||
|
|||
}, |
|||
} |
|||
}, |
|||
mounted() {}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
|
|||
<style lang="scss" scoped> |
|||
.congestion { |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
> div { |
|||
position: relative; |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
>div { |
|||
> .item .after { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: -5px; |
|||
width: 45px !important; |
|||
height: 35px !important; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .after::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
> .item .before { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
right: 0px; |
|||
top: -5px; |
|||
width: 45px; |
|||
height: 35px; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .before::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
.item.action .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
.item.action.Aafter .after::after { |
|||
background-color: #c7c7c7 !important; |
|||
} |
|||
|
|||
> .item.action.Aafter .before::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .item.action.Abefore .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .bef::before { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .aft::after { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item.action span { |
|||
background-color: #72fdc9; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item.action span::after { |
|||
border-color: #72fdc9; |
|||
} |
|||
|
|||
> .action div { |
|||
color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item { |
|||
position: relative; |
|||
width: 180px; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
justify-items: center; |
|||
|
|||
> span { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 9px; |
|||
height: 9px; |
|||
background: #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
left: 53px; |
|||
} |
|||
|
|||
> div { |
|||
position: relative; |
|||
display: inline-flex; |
|||
width: 100%; |
|||
height: 35px; |
|||
align-items: center; |
|||
justify-content: center; |
|||
top: 5px; |
|||
margin-top: 10px; |
|||
font-size: 14px; |
|||
color: #c7c7c7; |
|||
} |
|||
|
|||
> span::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
>.item .after { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: -5px; |
|||
width: 45px !important; |
|||
height: 35px !important; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
>.item .after::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #C7C7C7; |
|||
} |
|||
|
|||
>.item .before { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
right: 0px; |
|||
top: -5px; |
|||
width: 45px; |
|||
height: 35px; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
>.item .before::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #C7C7C7; |
|||
} |
|||
|
|||
.item.action .after::after { |
|||
background-color: #72FDC9; |
|||
} |
|||
|
|||
.item.action.Aafter .after::after { |
|||
background-color: #C7C7C7 !important; |
|||
} |
|||
|
|||
>.item.action.Aafter .before::after { |
|||
background-color: #72FDC9; |
|||
} |
|||
|
|||
>.item.action.Abefore .after::after { |
|||
background-color: #72FDC9; |
|||
} |
|||
|
|||
>.bef::before { |
|||
background-color: #72FDC9 !important; |
|||
} |
|||
|
|||
>.aft::after { |
|||
background-color: #72FDC9 !important; |
|||
} |
|||
|
|||
>.item.action span { |
|||
background-color: #72FDC9; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
>.item.action span::after { |
|||
border-color: #72FDC9; |
|||
} |
|||
|
|||
>.action div { |
|||
color: #72FDC9 !important; |
|||
} |
|||
|
|||
|
|||
>.item { |
|||
position: relative; |
|||
width: 180px; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
justify-items: center; |
|||
|
|||
|
|||
>span { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 9px; |
|||
height: 9px; |
|||
background: #C7C7C7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
left: 53px; |
|||
} |
|||
|
|||
>div { |
|||
position: relative; |
|||
display: inline-flex; |
|||
width: 100%; |
|||
align-items: center; |
|||
justify-content: center; |
|||
top: 5px; |
|||
margin-top: 10px; |
|||
font-size: 14px; |
|||
color: #C7C7C7; |
|||
} |
|||
|
|||
>span::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 15px; |
|||
height: 15px; |
|||
border: 1px solid #C7C7C7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
top: -3.5px; |
|||
left: -3px; |
|||
} |
|||
} |
|||
width: 15px; |
|||
height: 15px; |
|||
border: 1px solid #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
top: -3.5px; |
|||
left: -3px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
|||
|
@ -1,148 +1,139 @@ |
|||
<template> |
|||
<div class='TrafficFlowMax'> |
|||
<el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs"> |
|||
<el-tab-pane label="综合指标分析" name="first"> |
|||
<IndicatorAnalysis /> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="综合指标查询" name="second"> |
|||
<IndicatorQuery /> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import IndicatorAnalysis from './components/IndicatorAnalysis'; |
|||
import IndicatorQuery from './components/IndicatorQuery'; |
|||
<div class="TrafficFlowMax"> |
|||
<el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs"> |
|||
<el-tab-pane label="综合指标分析" name="first"> |
|||
<IndicatorAnalysis /> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="综合指标查询" name="second"> |
|||
<IndicatorQuery /> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
|
|||
export default { |
|||
name: 'trafficSituation', |
|||
components: { |
|||
IndicatorAnalysis, |
|||
IndicatorQuery |
|||
}, |
|||
data(){ |
|||
return { |
|||
activeName:"first" |
|||
} |
|||
}, |
|||
methods:{ |
|||
changeTabs(){ |
|||
|
|||
} |
|||
} |
|||
|
|||
} |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
<script> |
|||
import IndicatorAnalysis from "./components/IndicatorAnalysis"; |
|||
import IndicatorQuery from "./components/IndicatorQuery"; |
|||
|
|||
::v-deep .el-tabs__item{ |
|||
display: inline-flex; |
|||
justify-content: center; |
|||
font-size: 16px; |
|||
font-family: PingFang SC, PingFang SC; |
|||
font-weight: 500; |
|||
color: #FFFFFF; |
|||
min-width:128px; |
|||
position: relative; |
|||
left:10px; |
|||
} |
|||
export default { |
|||
name: "trafficSituation", |
|||
components: { |
|||
IndicatorAnalysis, |
|||
IndicatorQuery, |
|||
}, |
|||
data() { |
|||
return { |
|||
activeName: "first", |
|||
}; |
|||
}, |
|||
methods: { |
|||
changeTabs() {}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
::v-deep .el-tabs__active-bar { |
|||
min-width:128px; |
|||
} |
|||
<style lang="scss" scoped> |
|||
::v-deep .el-tabs__item { |
|||
display: inline-flex; |
|||
justify-content: center; |
|||
font-size: 16px; |
|||
font-family: PingFang SC, PingFang SC; |
|||
font-weight: 500; |
|||
color: #ffffff; |
|||
min-width: 128px; |
|||
position: relative; |
|||
left: 10px; |
|||
} |
|||
|
|||
::v-deep .el-tabs__nav-wrap::after { |
|||
background-color: #133242; |
|||
opacity: 0.1; |
|||
} |
|||
::v-deep .el-tabs__active-bar { |
|||
min-width: 128px; |
|||
} |
|||
|
|||
::v-deep .el-tabs__header { |
|||
margin:0px !important; |
|||
} |
|||
::v-deep .el-tabs__nav-wrap::after { |
|||
background-color: #133242; |
|||
opacity: 0.1; |
|||
} |
|||
|
|||
.footTabs { |
|||
display: inline; |
|||
width:99%; |
|||
::v-deep .el-tabs__header { |
|||
margin: 0px !important; |
|||
} |
|||
|
|||
} |
|||
.footTabs { |
|||
display: inline; |
|||
width: 99%; |
|||
} |
|||
|
|||
.TrafficFlowMax { |
|||
width: 100%; |
|||
height: 100%; |
|||
position: relative; |
|||
z-index: 6; |
|||
color: white; |
|||
padding: 15px 25px; |
|||
|
|||
.head{ |
|||
width: 98%; |
|||
margin: auto; |
|||
margin-top: 15px; |
|||
.TrafficFlowMax { |
|||
width: 100%; |
|||
height: 100%; |
|||
position: relative; |
|||
z-index: 6; |
|||
color: white; |
|||
padding: 15px 25px; |
|||
|
|||
.head { |
|||
width: 98%; |
|||
margin: auto; |
|||
margin-top: 15px; |
|||
} |
|||
.content { |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 19px; |
|||
> div { |
|||
pointer-events: auto; |
|||
} |
|||
.content { |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 19px; |
|||
>div { |
|||
pointer-events: auto; |
|||
} |
|||
|
|||
.content-l { |
|||
width: calc(50%); |
|||
min-width:460px; |
|||
margin-right:20px; |
|||
|
|||
} |
|||
|
|||
|
|||
.content-m { |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
width: calc(100% / 4 ); |
|||
margin-right:20px; |
|||
.content-l { |
|||
width: calc(50%); |
|||
min-width: 460px; |
|||
margin-right: 20px; |
|||
} |
|||
|
|||
.content-m-t { |
|||
width:100%; |
|||
height:240px; |
|||
margin-bottom: 20px; |
|||
} |
|||
} |
|||
.content-r { |
|||
width: 49.4%; |
|||
.content-m { |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
width: calc(100% / 4); |
|||
margin-right: 20px; |
|||
|
|||
.content-m-t { |
|||
width: 100%; |
|||
height: 240px; |
|||
margin-bottom: 20px; |
|||
} |
|||
} |
|||
.foot{ |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 8px; |
|||
>div { |
|||
pointer-events: auto; |
|||
} |
|||
.content-r { |
|||
width: 49.4%; |
|||
} |
|||
} |
|||
.foot { |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 8px; |
|||
> div { |
|||
pointer-events: auto; |
|||
} |
|||
|
|||
.foot-w { |
|||
width:100%; |
|||
.foot-w { |
|||
width: 100%; |
|||
} |
|||
|
|||
} |
|||
|
|||
.foot-l { |
|||
width: 726px; |
|||
} |
|||
.foot-m { |
|||
width: 613px; |
|||
} |
|||
.foot-r { |
|||
width: 493px; |
|||
} |
|||
.foot-l { |
|||
width: 726px; |
|||
} |
|||
.foot-m { |
|||
width: 613px; |
|||
} |
|||
.foot-r { |
|||
width: 493px; |
|||
} |
|||
} |
|||
</style> |
|||
|
|||
} |
|||
</style> |
|||
|
Loading…
Reference in new issue