Browse Source

更改

wangqin
zhangzhang 1 year ago
parent
commit
097d74f724
  1. 462
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue
  2. 77
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/heightway/index.vue

462
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue

@ -4,35 +4,65 @@
<ElForm :model="formData" inline :rules="rules" ref="ruleForm"> <ElForm :model="formData" inline :rules="rules" ref="ruleForm">
<div class="first"> <div class="first">
<el-form-item prop="eventCategory"> <el-form-item prop="eventCategory">
<el-radio-group v-model="formData.eventCategory" @input="changeRadio"> <el-radio-group
v-model="formData.eventCategory"
@input="changeRadio"
>
<el-radio-button :label="1">交通事件</el-radio-button> <el-radio-button :label="1">交通事件</el-radio-button>
<el-radio-button :label="2">感知事件</el-radio-button> <el-radio-button :label="2">感知事件</el-radio-button>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item required label="预案名称:" prop="planName"> <el-form-item required label="预案名称:" prop="planName">
<el-input v-model="formData.planName" placeholder="请输入预案名称"></el-input> <el-input
v-model="formData.planName"
placeholder="请输入预案名称"
></el-input>
</el-form-item> </el-form-item>
<el-form-item required label="事件类型:" prop="eventType"> <el-form-item required label="事件类型:" prop="eventType">
<el-select v-model="formData.eventType" placeholder="请选择事件类型" @change="changeEventType"> <el-select
<el-option v-for="item in eventOptions" :key="item.value" :label="item.label" v-model="formData.eventType"
:value="item.value"> placeholder="请选择事件类型"
@change="changeEventType"
>
<el-option
v-for="item in eventOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="(formData.eventCategory == 1 && formData.eventType !== 8) || formData.eventCategory == 2" v-if="
label="触发类型:" prop="triggerMechanism"> (formData.eventCategory == 1 && formData.eventType !== 8) ||
formData.eventCategory == 2
"
label="触发类型:"
prop="triggerMechanism"
>
<el-select <el-select
v-if="(formData.eventCategory == 1 && formData.eventType !== 6) || formData.eventCategory == 2" v-if="
v-model="formData.triggerMechanism" placeholder="请选择触发类型"> (formData.eventCategory == 1 && formData.eventType !== 6) ||
<el-option v-for="item in mechanismOptions" :key="item.value" :label="item.label" formData.eventCategory == 2
:value="item.value"> "
v-model="formData.triggerMechanism"
placeholder="请选择触发类型"
>
<el-option
v-for="item in mechanismOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
<el-select v-if="formData.eventCategory == 1 && formData.eventType == 6" <el-select
v-model="formData.triggerMechanism" placeholder="请选择触发类型"> v-if="formData.eventCategory == 1 && formData.eventType == 6"
v-model="formData.triggerMechanism"
placeholder="请选择触发类型"
>
<el-option-group label="主线"> <el-option-group label="主线">
<el-option label="主线封闭" value="1"></el-option> <el-option label="主线封闭" value="1"></el-option>
<el-option label="主线限行" value="2"></el-option> <el-option label="主线限行" value="2"></el-option>
@ -50,7 +80,6 @@
<el-option label="服务区限行" value="8"></el-option> <el-option label="服务区限行" value="8"></el-option>
</el-option-group> </el-option-group>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
@ -60,7 +89,10 @@
<div class="text">执行操作:</div> <div class="text">执行操作:</div>
</el-col> </el-col>
<el-col :span="22"> <el-col :span="22">
<FormTable ref="secondFormTable" :tableData="secondFormData"></FormTable> <FormTable
ref="secondFormTable"
:tableData="secondFormData"
></FormTable>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -70,7 +102,10 @@
<div class="text">恢复操作:</div> <div class="text">恢复操作:</div>
</el-col> </el-col>
<el-col :span="22"> <el-col :span="22">
<FormTable ref="thirdFormTable" :tableData="thirdFormData"></FormTable> <FormTable
ref="thirdFormTable"
:tableData="thirdFormData"
></FormTable>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -78,19 +113,27 @@
</div> </div>
<template #footer> <template #footer>
<Button style="background: #C9C9C9;padding:0 24px;" <Button
@click.native="modelVisible = false, submitting = false">取消</Button> style="background: #c9c9c9; padding: 0 24px"
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">保存</Button> @click.native="(modelVisible = false), (submitting = false)"
>取消</Button
>
<Button
style="padding: 0 24px"
@click.native="handleSubmit"
:loading="submitting"
>保存</Button
>
</template> </template>
</Dialog> </Dialog>
</template> </template>
<script> <script>
import Dialog from "@screen/components/Dialog/index"; import Dialog from "@screen/components/Dialog/index";
import Form from '@screen/components/FormConfig'; import Form from "@screen/components/FormConfig";
import FormTable from '../formTable/index'; import FormTable from "../formTable/index";
import Button from '@screen/components/Buttons/Button.vue'; import Button from "@screen/components/Buttons/Button.vue";
import request from '@/utils/request'; import request from "@/utils/request";
import { Message } from "element-ui"; import { Message } from "element-ui";
const optionsMap = { const optionsMap = {
@ -98,290 +141,296 @@ const optionsMap = {
1: [ 1: [
{ {
value: 1, value: 1,
label: '雨' label: "雨",
}, },
{ {
value: 2, value: 2,
label: '雪' label: "雪",
}, },
{ {
value: 3, value: 3,
label: '雾' label: "雾",
}, },
{ {
value: 4, value: 4,
label: '大风' label: "大风",
}, },
{ {
value: 5, value: 5,
label: '低温寒潮' label: "低温寒潮",
}, },
{ {
value: 6, value: 6,
label: '路面积雪' label: "路面积雪",
}, },
{ {
value: 7, value: 7,
label: '路面结冰' label: "路面结冰",
}, },
{ {
value: 8, value: 8,
label: '路面积水' label: "路面积水",
}, },
{ {
value: 9, value: 9,
label: '其他' label: "其他",
} },
], ],
2: [ 2: [
{ {
value: 1, value: 1,
label: '侧翻' label: "侧翻",
}, },
{ {
value: 2, value: 2,
label: '撞障碍物' label: "撞障碍物",
}, },
{ {
value: 3, value: 3,
label: '货物洒落' label: "货物洒落",
}, },
{ {
value: 4, value: 4,
label: '撞护栏' label: "撞护栏",
}, },
{ {
value: 5, value: 5,
label: '自燃' label: "自燃",
}, },
{ {
value: 6, value: 6,
label: '追尾' label: "追尾",
} },
], ],
3: [ 3: [
{ {
value: 1, value: 1,
label: '行人' label: "行人",
}, },
{ {
value: 2, value: 2,
label: '非机动车' label: "非机动车",
}, },
{ {
value: 3, value: 3,
label: '摩托车' label: "摩托车",
}, },
{ {
value: 4, value: 4,
label: '其他' label: "其他",
} },
], ],
4: [ 4: [
{ {
value: 1, value: 1,
label: '高速主线' label: "高速主线",
}, },
{ {
value: 2, value: 2,
label: '服务区' label: "服务区",
}, },
{ {
value: 3, value: 3,
label: '立交桥' label: "立交桥",
}, },
{ {
value: 4, value: 4,
label: '收费站' label: "收费站",
} },
], ],
5: [ 5: [
{ {
value: 1, value: 1,
label: '道路拥堵' label: "道路拥堵",
}, },
{ {
value: 2, value: 2,
label: '立交拥堵' label: "立交拥堵",
}, },
{ {
value: 3, value: 3,
label: '收费站拥堵' label: "收费站拥堵",
}, },
{ {
value: 4, value: 4,
label: '收费站服务区拥堵' label: "收费站服务区拥堵",
} },
],
6: [
], ],
6: [],
7: [ 7: [
{ {
value: 1, value: 1,
label: '封闭、暂停营业' label: "封闭、暂停营业",
}, },
{ {
value: 2, value: 2,
label: '重要设施停用' label: "重要设施停用",
}, },
{ {
value: 3, value: 3,
label: '其他异常' label: "其他异常",
} },
], ],
8: [], 8: [],
9: [ 9: [
{ {
value: 1, value: 1,
label: '烟雾' label: "烟雾",
}, },
{ {
value: 2, value: 2,
label: '倒伏树木' label: "倒伏树木",
}, },
{ {
value: 3, value: 3,
label: '洒落物' label: "洒落物",
}, },
{ {
value: 4, value: 4,
label: '动物' label: "动物",
}, },
{ {
value: 5, value: 5,
label: '其他' label: "其他",
} },
] ],
}, },
2: { 2: {
1: [{ 1: [
{
value: 1, value: 1,
label: '雾' label: "雾",
}], },
],
2: [], 2: [],
3: [], 3: [],
4: [], 4: [],
5: [], 5: [],
6: [], 6: [],
7: [], 7: [],
} },
}; };
export default { export default {
name: 'addAndEditDialog', name: "addAndEditDialog",
components: { components: {
Dialog, Dialog,
Form, Form,
Button, Button,
FormTable FormTable,
}, },
model: { model: {
prop: 'visible', prop: "visible",
event: 'close' event: "close",
}, },
props: { props: {
visible: Boolean, visible: Boolean,
detail: { detail: {
type: Object, type: Object,
default: () => { } default: () => {},
} },
}, },
data() { data() {
return { return {
title: '新增预案', title: "新增预案",
dialogType: 1, dialogType: 1,
planId: 0, planId: 0,
submitting: false, submitting: false,
formData: { formData: {
eventCategory: 1, eventCategory: 1,
eventType: 1, eventType: 1,
triggerMechanism: 1 triggerMechanism: 1,
}, },
secondFormData: [{ secondFormData: [
{
deviceType: 1, deviceType: 1,
searchRule: 1, searchRule: 1,
qbb: '' qbb: "",
}], },
thirdFormData: [{ ],
thirdFormData: [
{
deviceType: 1, deviceType: 1,
searchRule: 1, searchRule: 1,
qbb: '' qbb: "",
}], },
],
eventOptions: [ eventOptions: [
{ {
value: 1, value: 1,
label: '异常天气' label: "异常天气",
}, },
{ {
value: 2, value: 2,
label: '交通事故' label: "交通事故",
}, },
{ {
value: 3, value: 3,
label: '非法上路' label: "非法上路",
}, },
{ {
value: 4, value: 4,
label: '车辆故障' label: "车辆故障",
}, },
{ {
value: 5, value: 5,
label: '交通拥堵' label: "交通拥堵",
}, },
{ {
value: 6, value: 6,
label: '交通管制' label: "交通管制",
}, },
{ {
value: 7, value: 7,
label: '服务区异常' label: "服务区异常",
}, },
{ {
value: 8, value: 8,
label: '施工建设' label: "施工建设",
}, },
{ {
value: 9, value: 9,
label: '路障清除' label: "路障清除",
} },
], ],
mechanismOptions: [{ mechanismOptions: [
{
value: 1, value: 1,
label: '雨' label: "雨",
}, },
{ {
value: 2, value: 2,
label: '雪' label: "雪",
}, },
{ {
value: 3, value: 3,
label: '雾' label: "雾",
}, },
{ {
value: 4, value: 4,
label: '大风' label: "大风",
}, },
{ {
value: 5, value: 5,
label: '低温寒潮' label: "低温寒潮",
}, },
{ {
value: 6, value: 6,
label: '路面积雪' label: "路面积雪",
}, },
{ {
value: 7, value: 7,
label: '路面结冰' label: "路面结冰",
}, },
{ {
value: 8, value: 8,
label: '路面积水' label: "路面积水",
}, },
{ {
value: 9, value: 9,
label: '其他' label: "其他",
}], },
],
conditionOptions: [ conditionOptions: [
// { // {
// value: 1, // value: 1,
@ -389,47 +438,41 @@ export default {
// }, // },
{ {
value: 1, value: 1,
label: '小于(<)' label: "小于(<)",
}, },
], ],
rules: { rules: {
planName: [ planName: [{ required: true, message: "请输入预案名称" }],
{ required: true, message: '请输入预案名称', trigger: 'blur' },
],
eventType: [ eventType: [
{ required: true, message: '请选择事件类型', trigger: 'change' } { required: true, message: "请选择事件类型", trigger: "change" },
], ],
}
}
}, },
mounted() { };
}, },
mounted() {},
computed: { computed: {
modelVisible: { modelVisible: {
get() { get() {
if (this.visible) { if (this.visible) {
if (Object.keys(this.detail).length > 0) { if (Object.keys(this.detail).length > 0) {
this.title = '修改预案'; this.title = "修改预案";
this.dialogType = 2; this.dialogType = 2;
this.initData(this.detail.id); this.initData(this.detail.id);
} else { } else {
this.title = '新增预案'; this.title = "新增预案";
this.dialogType = 1; this.dialogType = 1;
this.formData = { this.formData = {
eventCategory: 1, eventCategory: 1,
eventType: 1, eventType: 1,
triggerMechanism: 1 triggerMechanism: 1,
} };
} }
} }
return this.visible; return this.visible;
}, },
set(val) { set(val) {
this.$emit('close', val) this.$emit("close", val);
} },
}, },
}, },
methods: { methods: {
@ -437,7 +480,8 @@ export default {
request({ request({
url: `/business/plans/list/${id}`, url: `/business/plans/list/${id}`,
method: "get", method: "get",
}).then((result) => { })
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
let data = result.data; let data = result.data;
let dcExecuteAction = result.data.dcExecuteAction; let dcExecuteAction = result.data.dcExecuteAction;
@ -448,209 +492,217 @@ export default {
planName: data.planName, planName: data.planName,
eventType: data.eventType, eventType: data.eventType,
triggerMechanism: data.triggerMechanism, triggerMechanism: data.triggerMechanism,
} };
this.secondFormData = []; this.secondFormData = [];
this.thirdFormData = []; this.thirdFormData = [];
dcExecuteAction.forEach(it => { dcExecuteAction.forEach((it) => {
if (it.deviceList) { if (it.deviceList) {
it.deviceList = it.deviceList.split(','); it.deviceList = it.deviceList.split(",");
} }
if (it.actionType == 1) { if (it.actionType == 1) {
this.secondFormData.push(it); this.secondFormData.push(it);
} else if (it.actionType == 2) { } else if (it.actionType == 2) {
this.thirdFormData.push(it); this.thirdFormData.push(it);
} }
});
}) })
.catch((err) => {
}).catch((err) => { console.log(err);
console.log(err)
Message.error("查询事件预案列表失败", err); Message.error("查询事件预案列表失败", err);
}) });
}, },
changeEventType(value = 1) { changeEventType(value = 1) {
this.mechanismOptions = optionsMap[this.formData.eventCategory || 1][value]; this.mechanismOptions =
optionsMap[this.formData.eventCategory || 1][value];
}, },
changeRadio(value = 1) { changeRadio(value = 1) {
const optionsMap = { const optionsMap = {
1: [{ 1: [
{
value: 1, value: 1,
label: '异常天气' label: "异常天气",
}, },
{ {
value: 2, value: 2,
label: '交通事故' label: "交通事故",
}, },
{ {
value: 3, value: 3,
label: '非法上路' label: "非法上路",
}, },
{ {
value: 4, value: 4,
label: '车辆故障' label: "车辆故障",
}, },
{ {
value: 5, value: 5,
label: '交通拥堵' label: "交通拥堵",
}, },
{ {
value: 6, value: 6,
label: '交通管制' label: "交通管制",
}, },
{ {
value: 7, value: 7,
label: '服务区异常' label: "服务区异常",
}, },
{ {
value: 8, value: 8,
label: '施工建设' label: "施工建设",
}, },
{ {
value: 9, value: 9,
label: '路障清除' label: "路障清除",
}], },
2: [{ ],
2: [
{
value: 1, value: 1,
label: '异常天气' label: "异常天气",
}, },
{ {
value: 2, value: 2,
label: '拥堵' label: "拥堵",
}, },
{ {
value: 3, value: 3,
label: '非机动车' label: "非机动车",
}, },
{ {
value: 4, value: 4,
label: '行人' label: "行人",
}, },
{ {
value: 5, value: 5,
label: '烟火' label: "烟火",
}, },
{ {
value: 6, value: 6,
label: '抛洒物' label: "抛洒物",
}, },
{ {
value: 7, value: 7,
label: '逆行' label: "逆行",
}, },
] ],
} };
this.eventOptions = optionsMap[value]; this.eventOptions = optionsMap[value];
this.changeEventType(); this.changeEventType();
}, },
handleChange() { handleChange() {},
},
formatData(it, value = 1) { formatData(it, value = 1) {
let data = { ...it, actionType: value } let data = { ...it, actionType: value };
if (it.deviceList && typeof it.deviceList !== 'string' && it.deviceList.length > 0) { if (
data.deviceList = it.deviceList.join(','); it.deviceList &&
typeof it.deviceList !== "string" &&
it.deviceList.length > 0
) {
data.deviceList = it.deviceList.join(",");
} else { } else {
data.deviceList = ''; data.deviceList = "";
} }
if (it.content) { if (it.content) {
data.otherConfig = JSON.stringify({ content: it.content }) data.otherConfig = JSON.stringify({ content: it.content });
} }
if (it.controlModel) { if (it.controlModel) {
let other = { let other = {
controlModel: it.controlModel, controlModel: it.controlModel,
state: it.state, state: it.state,
} };
if (it.time && it?.time[0]) { if (it.time && it?.time[0]) {
other = { other = {
controlModel: it.controlModel, controlModel: it.controlModel,
state: it.state, state: it.state,
startTime: it.time[0], startTime: it.time[0],
endTime: it.time[1] endTime: it.time[1],
};
} }
} data.otherConfig = JSON.stringify(other);
data.otherConfig = JSON.stringify(other)
} }
if (it.gzms) { if (it.gzms) {
data.otherConfig = JSON.stringify({ data.otherConfig = JSON.stringify({
state: it.gzms, state: it.gzms,
operationDuration: it.operationDuration, operationDuration: it.operationDuration,
}) });
} }
return data; return data;
}, },
handleSubmit() { handleSubmit() {
this.$refs['ruleForm'].validate((valid) => { this.$refs["ruleForm"].validate((valid) => {
if (valid) { if (valid) {
// this.submitting = false; // this.submitting = false;
let secondFormTable = this.$refs['secondFormTable'].tableData || []; let secondFormTable = this.$refs["secondFormTable"].tableData || [];
let thirdFormTable = this.$refs['thirdFormTable'].tableData || []; let thirdFormTable = this.$refs["thirdFormTable"].tableData || [];
let dcArr = []; let dcArr = [];
secondFormTable.forEach(it => { secondFormTable.forEach((it) => {
dcArr.push(this.formatData(it, 1)); dcArr.push(this.formatData(it, 1));
}) });
thirdFormTable.forEach(it => { thirdFormTable.forEach((it) => {
dcArr.push(this.formatData(it, 2)); dcArr.push(this.formatData(it, 2));
}) });
console.log({ console.log({
...this.formData, ...this.formData,
dcExecuteAction: dcArr dcExecuteAction: dcArr,
}) });
// return; // return;
if (this.dialogType == 1) {// if (this.dialogType == 1) {
//
request({ request({
url: `/business/plans`, url: `/business/plans`,
method: "post", method: "post",
data: { data: {
...this.formData, ...this.formData,
dcExecuteAction: dcArr dcExecuteAction: dcArr,
} },
}).then((result) => { })
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
Message.success("提交成功"); Message.success("提交成功");
this.modelVisible = false; this.modelVisible = false;
}).catch(() => { })
.catch(() => {
Message.error("提交失败"); Message.error("提交失败");
}).finally(() => {
this.submitting = false;
this.$emit('reInitData', true);
}) })
} else if (this.dialogType == 2) {// .finally(() => {
this.submitting = false;
this.$emit("reInitData", true);
});
} else if (this.dialogType == 2) {
//
request({ request({
url: `/business/plans`, url: `/business/plans`,
method: "put", method: "put",
data: { data: {
...this.formData, ...this.formData,
id: this.planId, id: this.planId,
dcExecuteAction: dcArr dcExecuteAction: dcArr,
} },
}).then((result) => { })
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
Message.success("提交成功"); Message.success("提交成功");
this.modelVisible = false; this.modelVisible = false;
}).catch(() => {
Message.error("提交失败");
}).finally(() => {
this.submitting = false;
this.$emit('reInitData', true);
}) })
.catch(() => {
} Message.error("提交失败");
}
}) })
.finally(() => {
this.submitting = false;
this.$emit("reInitData", true);
});
} }
} }
} });
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.fade-enter-active, .fade-enter-active,
.fade-leave-active { .fade-leave-active {
transition: opacity .24s; transition: opacity 0.24s;
} }
.fade-enter, .fade-enter,

77
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/heightway/index.vue

@ -3,24 +3,45 @@
<WgtTitle :title="'交通路段状态'"></WgtTitle> <WgtTitle :title="'交通路段状态'"></WgtTitle>
<div class="board"> <div class="board">
<div class="searchPanel"> <div class="searchPanel">
<div>起始桩号k</div> <el-form :inline="true" :model="ruleForm" ref="ruleForm">
<el-input class="inputZh" v-model="start" placeholder="55"></el-input> <el-form-item label="起始桩号:k" prop="start">
<!-- <div>起始桩号k</div> -->
<el-input
class="inputZh"
v-model="ruleForm.start"
placeholder="55"
></el-input>
<span>+</span> <span>+</span>
</el-form-item>
<el-form-item label="" prop="start1">
<el-input <el-input
class="inputZh inputJl" class="inputZh inputJl"
v-model="start1" v-model="ruleForm.start1"
placeholder="378" placeholder="378"
></el-input> ></el-input>
<div>结束桩号k</div> </el-form-item>
<el-input class="inputZh" v-model="start2" placeholder="208"></el-input> <el-form-item label="结束桩号:k" prop="start2">
<!-- <div>结束桩号k</div> -->
<el-input
class="inputZh"
v-model="ruleForm.start2"
placeholder="208"
></el-input>
<span>+</span> <span>+</span>
</el-form-item>
<el-form-item label="" prop="start3">
<el-input <el-input
class="inputZh inputJl" class="inputZh inputJl"
v-model="start3" v-model="ruleForm.start3"
placeholder="153" placeholder="153"
></el-input> ></el-input>
<div>路段方向</div> </el-form-item>
<el-select v-model="area" class="selectRoad" placeholder="请选择"> <el-form-item label="路段方向:" prop="area">
<el-select
v-model="ruleForm.area"
class="selectRoad"
placeholder="请选择"
>
<el-option <el-option
v-for="item in areaOptions" v-for="item in areaOptions"
:key="item.value" :key="item.value"
@ -29,10 +50,18 @@
> >
</el-option> </el-option>
</el-select> </el-select>
<el-button type="primary" class="btnSearch" @click="onSubmit" </el-form-item>
<el-form-item
><el-button type="primary" class="btnSearch" @click="onSubmit"
>搜索</el-button >搜索</el-button
> >
<el-button class="btnReset">重置</el-button> <el-button class="btnReset" @click="onClose"
>重置</el-button
></el-form-item
>
</el-form>
<!-- <div>路段方向</div> -->
</div> </div>
<div class="tblResult"> <div class="tblResult">
<div class="tblTd"> <div class="tblTd">
@ -66,10 +95,13 @@ export default {
}, },
data() { data() {
return { return {
ruleForm: {
start: "", start: "",
start1: "", start1: "",
start2: "", start2: "",
start3: "", start3: "",
area: "济南",
},
areaOptions: [ areaOptions: [
{ {
value: "济南", value: "济南",
@ -80,7 +112,7 @@ export default {
label: "菏泽", label: "菏泽",
}, },
], ],
area: "济南",
list: [ list: [
{ {
name: "大学城-长清", name: "大学城-长清",
@ -131,7 +163,11 @@ export default {
created() {}, created() {},
methods: { methods: {
onSubmit() { onSubmit() {
console.log("submit!"); console.log("submit!", this.ruleForm);
},
onClose() {
this.$refs.ruleForm.resetFields();
console.log("submit!", this.ruleForm);
}, },
}, },
}; };
@ -149,6 +185,17 @@ export default {
color: #9f9f9f; color: #9f9f9f;
font-size: 12px; font-size: 12px;
} }
::v-deep .searchPanel .el-form-item__label {
color: #fff;
font-weight: normal;
white-space: nowrap;
margin-left: -2px;
margin-right: -5px;
font-size: 13px;
line-height: 36px;
}
.heightway { .heightway {
width: 100%; width: 100%;
.board { .board {
@ -192,8 +239,8 @@ export default {
} }
.inputJl { .inputJl {
// width: 60px; // width: 60px;
margin-left: 5px; // margin-left: 5px;
margin-right: 10px; // margin-right: 10px;
} }
.selectRoad { .selectRoad {
width: 87px; width: 87px;
@ -207,7 +254,7 @@ export default {
} }
.btnSearch { .btnSearch {
background-color: #00b3cc; background-color: #00b3cc;
margin-left: 10px; // margin-left: 10px;
padding: 6px 15px; padding: 6px 15px;
font-size: 13px; font-size: 13px;
} }

Loading…
Cancel
Save