diff --git a/ruoyi-ui/src/api/event/perceiveEvent.js b/ruoyi-ui/src/api/event/perceiveEvent.js index 7a147f24..c8336aa6 100644 --- a/ruoyi-ui/src/api/event/perceiveEvent.js +++ b/ruoyi-ui/src/api/event/perceiveEvent.js @@ -165,7 +165,7 @@ export function geTwarningTotal(query) { export function getRoadSectionList(query) { //system/status/tablist return request({ - url: '/business/roadSection/list', + url: '/business/roadSection/listAll', method: 'get', params: { ...query, diff --git a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss index 6d8b2f91..87fb830d 100644 --- a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss +++ b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss @@ -133,7 +133,8 @@ .el-radio__label{ color: #fff; } &.is-checked{ .el-radio__label { - color: #3de8ff; + // color: #3de8ff; + color: #fff; } } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 16ae2971..7f61b9c2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -41,6 +41,24 @@ export const source = { }, }; +export const releaseChannel = { + label: "发布渠道:", + key: "channel", + type: "CheckboxGroup", + isAlone: true, + default: [], + options: { + options: [ + { key: "1", label: "微博" }, + { key: "3", label: "微信小程序" }, + { key: "4", label: "服务网站" }, + { key: "5", label: "情报板" }, + { key: "6", label: "手机短信" }, + { key: "7", label: "微信公众号" }, + ], + }, +}; + export const illegalTriggeringType = { label: "类型:", key: "eventSubclass", @@ -100,7 +118,7 @@ export const station = { }; export const startStation = { - label: "开始桩号:", + label: "起始桩号:", key: "startStakeMark", required: false, type: "MultipleLabelItem", @@ -205,15 +223,30 @@ export const startEndStation = { }, }; +// export const direction = { +// label: "方向:", +// key: "direction", +// required: true, +// type: "select", +// options: { +// options: [ +// // { key: "济南方向", label: "济南方向" }, +// // { key: "菏泽方向", label: "菏泽方向" }, +// ], +// }, +// }; + export const direction = { - label: "方向:", + label: "路段方向:", key: "direction", - required: true, - type: "select", + type: "CheckboxGroup", + isAlone: true, + default: [], options: { options: [ - // { key: "济南方向", label: "济南方向" }, - // { key: "菏泽方向", label: "菏泽方向" }, + { key: "1", label: "济南方向" }, + { key: "3", label: "菏泽方向" }, + { key: "2", label: "双向" }, ], }, }; @@ -290,6 +323,7 @@ export const eventLevel = { }, }; + export const laneOccupancy = { label: "车道占用:", key: "lang", diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index copy.vue b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index copy.vue new file mode 100644 index 00000000..4bf9d6b3 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index copy.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue index 5f402fb4..2521e363 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue @@ -1,109 +1,179 @@ - diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue index 6126f45b..e0acb02b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue @@ -2,7 +2,7 @@
- +
@@ -15,10 +15,10 @@
-
@@ -82,7 +82,7 @@ export default { ]) } }, - data(){ + data() { return { picUrl: './test.png' } @@ -94,6 +94,19 @@ export default { }, created() { this.statusMap = statusMap; + }, + methods: { + getFirstBtnText(state) { + let text = '详情'; + if(state == 5) text = '去确认' + if(state == 4) text = '详情' + if(state == 3) text = '处置记录' + return text; + }, + getLastBtnText(state) { + let text = '去处置'; + return text; + }, } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue index a47c01f4..83f0da7e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue @@ -1,6 +1,6 @@ @@ -29,6 +40,9 @@ import Pagination from '@screen/components/Pagination.vue'; import InputSearch from '@screen/components/InputSearch/index.vue'; import Card from './components/Card'; import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue'; +import AddNEditDialog from "./components/AddNEditDialog.vue"; + +import { searchFormList } from './data'; export default { name: 'PublishingChannelManagement', @@ -36,8 +50,28 @@ export default { Pagination, InputSearch, Card, - ButtonGradient + ButtonGradient, + AddNEditDialog }, + data() { + return { + searchFormList, + data: [], + addNEditDialogVisible: false, + dialogData: null + } + }, + methods: { + handleOpenDialogAddEdit(data) { + console.log('data', data); + this.addNEditDialogVisible = true; + this.dialogData = data; + }, + handleSearch(data) { + // this.searchData = data; + // this.getData(); + }, + } } @@ -56,6 +90,10 @@ export default { height: 60px; display: flex; justify-content: space-between; + div { + display: flex; + gap: 6px; + } } .body { diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue index 4166759c..ac7d4437 100644 --- a/ruoyi-ui/src/views/websocket.vue +++ b/ruoyi-ui/src/views/websocket.vue @@ -30,8 +30,8 @@ export default { // console.log(location.hostname ) // 建立 websocket 连接 this.socket.initialize({ - // url: 'ws://' + location.hostname + ':' + port + path, - url: "ws://10.7.179.15" + ":" + port + path, + url: 'ws://' + location.hostname + ':' + port + path, + // url: "ws://10.7.179.15" + ":" + port + path, // url: "ws://10.168.64.171" + ":" + port + path, // url: 'ws://10.168.78.127'+ ':' + port + path,