Browse Source

bug

wangqin
zhoule 8 months ago
parent
commit
0c9441b7b2
  1. 11
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/eventPlanDialog/index.vue
  2. 59
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/qbbDialog/index.vue
  3. 27
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

11
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/eventPlanDialog/index.vue

@ -200,6 +200,7 @@ export default {
this.planName = this.info[0]?.planName || '';
this.planInfo = this.info[0];
this.initData(this.info[0]);
// this.getPlanHf(this.eventFormData.id);
}
}
return this.visible;
@ -330,6 +331,16 @@ export default {
}
return this.boardOriginalData;
},
getPlanHf(id) {
request({
url: `/business/plans/event/assoc/${id}`,
method: "get",
}).then((result) => {
if (result.code != 200) return Message.error(result?.msg);
}).catch(() => {
Message.error("查询失败");
})
},
changeRadio(value) {
let plan = this.info.find(it => it.planName == value);
this.planInfo = plan;

59
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/qbbDialog/index.vue

@ -1,4 +1,7 @@
<template>
<div>
<Dialog v-model="modelVisible" title="情报板确认">
<div v-if="type == 1" class="EventAddPlanDialog">
<h4>预案内容</h4>
@ -7,8 +10,9 @@
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="automaticData"></BoardTplPreview>
<div class="infoBtnBox infoBtnBoxSm">
<p class="btn">
<!-- <el-radio v-model="radio1" :label="1" @input="changeRadio(1)" /> -->
<el-radio v-model="radio1" :label="1" @input="changeRadio(automaticData)" />
</p>
<!-- <p @click="____onEditTemplate(automaticData)" class="btn btnEdit" /> -->
</div>
</div>
</dev>
@ -18,8 +22,9 @@
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="automaticData"></BoardTplPreview>
<div class="infoBtnBox infoBtnBoxSm">
<p class="btn">
<!-- <el-radio v-model="radio1" :label="2" @input="changeRadio(2)" /> -->
<el-radio v-model="radio1" :label="2" @input="changeRadio(automaticData)" />
</p>
<!-- <p @click="____onEditTemplate(automaticData)" class="btn btnEdit" /> -->
</div>
</div>
</dev>
@ -30,9 +35,10 @@
<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">
<!-- <p class="btn">
<el-radio v-model="radio1" :label="itm.id" @input="changeRadio(itm)" />
</p>
</p> -->
<p @click="____onEditTemplate(itm)" class="btn btnEdit" />
</div>
</div>
</div>
@ -55,12 +61,17 @@
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">确认</Button>
</template>
</Dialog>
<BoardInfoEditor @afterSubmit="____onEditSubmit" :mode="editDialog.mode" :type="editDialog.type"
:visible.sync="editDialog.visible" :screenSize="selectedSize" :tpl="editDialog.tpl"></BoardInfoEditor>
</div>
</template>
<script>
import vuescroll from "vuescroll";
import scrollOptions from "@/common/scrollbar.js";
import BoardTplPreview from "@screen/components/infoBoard/BoardTplPreview.vue";
import BoardInfoEditor from "@screen/components/infoBoard/BoardInfoEditor";
import Dialog from "@screen/components/Dialog/index";
import Button from '@screen/components/Buttons/Button.vue';
import { getTemplateList } from "@/api/board/template";
@ -72,6 +83,7 @@ export default {
Button,
vuescroll,
BoardTplPreview,
BoardInfoEditor
},
model: {
prop: 'visible',
@ -101,6 +113,12 @@ export default {
itmData: {},
automaticData: {},
originalData: {},
editDialog: {
mode: "",
type: "",
visible: false,
tpl: {},
},
}
},
mounted() {
@ -174,6 +192,39 @@ export default {
}
});
},
____onEditTemplate(tpl) {
this.editDialog = {
visible: true,
mode: "edit",
type: "template",
tpl,
};
},
//
____onEditSubmit(para) {
this.editDialog.tpl = {};
this.editDialog.visible = false;
if (para.type == "device") {
if (para.mode == "edit") {
this.selectedBdMsg[this.boardItemEdtingIndex] = para.data;
} else {
this.selectedBdMsg.push(_.cloneDeep(para.data));
}
} else if (para.mode == "toDevice") {
this.selectedBdMsg.push(_.cloneDeep(para.data));
} else {
this.____refreshPageData(para);
}
},
____refreshPageData(para) {
if (para.type == "template") {
this.____getAllTemplate().then((res) => {
this.____setAvailableTemplate();
});
} else {
}
},
async getTemplateAutomatic() {
let data = await this.getAutomatic();
console.log('dataaaa', data);

27
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

@ -93,16 +93,16 @@ export default {
name: "扫码报警",
percent: 0.1,
},
{
average: 0,
name: "非机预警",
percent: 0.1,
},
// {
// average: 0,
// name: "",
// name: "",
// percent: 0.1,
// },
{
average: 0,
name: "气象监测器",
percent: 0.1,
},
];
data.forEach((it) => {
if (it.warningSource == 1) {
@ -120,12 +120,12 @@ export default {
if (it.warningSource == 5) {
chartData[4].average += it.number;
}
if (it.warningSource == 6) {
// if (it.warningSource == 6) {
// chartData[5].average += it.number;
// }
if (it.warningSource == 7) {
chartData[5].average += it.number;
}
// if (it.warningSource == 7) {
// chartData[6].average += it.number;
// }
// total ++;
// drawRoundRect(context, 231, 37 + (index * 27), 138, 20, 12, gr);
});
@ -239,12 +239,9 @@ export default {
border-radius: 5px 5px 5px 5px;
opacity: 1;
border: 1px solid;
border-image: linear-gradient(
360deg,
border-image: linear-gradient(360deg,
rgba(55, 231, 255, 0.3),
rgba(55, 231, 255, 0)
)
1 1;
rgba(55, 231, 255, 0)) 1 1;
display: flex;
justify-content: center;
align-items: center;

Loading…
Cancel
Save