Browse Source

bug

wangqin
zhoule 9 months ago
parent
commit
69e8493cbd
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js
  2. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue
  3. 23
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js
  4. 11
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

3
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js

@ -262,9 +262,10 @@ export const laneOccupancy = {
export const eventSources = { export const eventSources = {
label: "事件源:", label: "事件源:",
key: "eventSources", key: "eventSource",
type: "select", type: "select",
options: { options: {
clearable: true,
options: [ options: [
{ {
key: "1", key: "1",

5
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue

@ -173,6 +173,9 @@ export default {
// eventType: Number(this.index) + 1, // eventType: Number(this.index) + 1,
// stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '', // stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '',
// }) // })
// this.modelVisible = false;
// this.submitting = false;
// this.$emit('queryData',true)
// return; // return;
request({ request({
@ -181,6 +184,7 @@ export default {
data: { data: {
...formData, ...formData,
eventType: Number(this.index) + 1, eventType: Number(this.index) + 1,
eventState: 0,
stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '', stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '',
} }
}).then((result) => { }).then((result) => {
@ -191,6 +195,7 @@ export default {
Message.error("提交失败"); Message.error("提交失败");
}).finally(() => { }).finally(() => {
this.submitting = false; this.submitting = false;
this.$emit('queryData',true);
}) })
}) })

23
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js

@ -58,6 +58,7 @@ export const gjSearchFormList = [
key: "warningSource", key: "warningSource",
type: "select", type: "select",
options: { options: {
clearable: true,
options: [ options: [
{ {
key: "1", key: "1",
@ -113,6 +114,7 @@ export const gjSearchFormList = [
required: false, required: false,
type: "datePicker", type: "datePicker",
options: { options: {
style: 'width: 250px',
type: "datetimerange", type: "datetimerange",
format: "yyyy-MM-dd HH:mm:ss", format: "yyyy-MM-dd HH:mm:ss",
valueFormat: "yyyy-MM-dd HH:mm:ss", valueFormat: "yyyy-MM-dd HH:mm:ss",
@ -123,25 +125,16 @@ export const gjSearchFormList = [
label: "桩号:", label: "桩号:",
required: false, required: false,
}, },
// merge(cloneDeep(PresetFormItems.station), {
// options: {
// options: [
// {
// key: "endStakeMark[0]",
// },
// {
// key: "endStakeMark[1]",
// },
// ],
// },
// label: "结束桩号:",
// required: false,
// }),
]; ];
export const gzSearchFormList = [ export const gzSearchFormList = [
PresetFormItems.eventSources, PresetFormItems.eventSources,
PresetFormItems.eventType, merge(PresetFormItems.eventType, {
options: {
clearable: true,
},
}),
// PresetFormItems.eventType,
{ {
label: "方向:", label: "方向:",
key: "direction", key: "direction",

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

@ -5,7 +5,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click="onAddNew" v-if="activeName != '1' && activeName != '2'"> <ButtonGradient @click="onAddNew" v-if="activeName == '0'">
<template #prefix> <template #prefix>
<img src="./images/insert.svg" /> <img src="./images/insert.svg" />
</template> </template>
@ -43,9 +43,10 @@
</div> </div>
<!-- "详情"弹出框 --> <!-- "详情"弹出框 -->
<EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" :activeName="activeName" @update:value="handleClose" @queryData="queryData"/> <EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" :activeName="activeName"
@update:value="handleClose" @queryData="queryData" />
<!-- "新增"弹出框 --> <!-- "新增"弹出框 -->
<FormEvent :visible="isShowAddNew" @close="onCloseAddNew" /> <FormEvent :visible="isShowAddNew" @close="onCloseAddNew" @queryData="queryData" />
</div> </div>
</template> </template>
@ -176,7 +177,7 @@ export default {
lastBtnText: text, lastBtnText: text,
}; };
}, },
queryData(flag){ queryData(flag) {
this.getData() this.getData()
}, },
getData() { getData() {
@ -353,7 +354,7 @@ export default {
this.searchData = { this.searchData = {
...this.searchData, ...this.searchData,
eventType: data.eventType, eventType: data.eventType,
eventSources: data.eventSources, eventSource: data.eventSource,
warningSource: data?.warningSource || '', warningSource: data?.warningSource || '',
direction: data.direction, direction: data.direction,
startTime: daterange && daterange.length > 0 ? daterange[0] : "", startTime: daterange && daterange.length > 0 ? daterange[0] : "",

Loading…
Cancel
Save