From f7c2dee2c5ee8a91d44a537d5613077cb21978cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 11 May 2023 09:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/index.vue | 2 +- .../carMonitoring/index.vue | 30 +++++++------------ .../vehicleMonitoring/index.vue | 2 +- 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index a13ec01..dd95f9a 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -609,7 +609,7 @@ export default { const userStore = useUserStore() const getWebsocket = () => { - let websocket = new WebSocket("ws://10.11.41.249:8080/websocket/message/" + userStore.name) + let websocket = new WebSocket("https://ticptest.tercelo.com/dev-api/websocket/message/" + userStore.name) websocket.onopen = function (event) { // console.log('onopen',event) }; diff --git a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue index 5dafb45..0aaf27a 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue @@ -270,6 +270,7 @@ const open = ref(false) let map = null const markers = ref(null) const tyreInfo = ref({}) +const childrenList = ref([]) const getTyreInfo = (e) => { let id = tyreList.value.filter(val => val.tyrePositionS === e)?.[0]?.tyreId || '' @@ -314,7 +315,6 @@ proxy.$nextTick(async () => { getList() } }) - // 总条数 const total = ref(0); const getList = async () => { @@ -327,8 +327,17 @@ const getList = async () => { }) total.value = tableData.value.length tableRef1.value.setCurrentRow(tableData.value[0]) + console.log(tableData.value) } + +const setChildrenList =async (e) => { + const {rows: list} = await listBaseCar({ + pageNum: 1, + pageSize: 10, + carLicense: '', + }) +} const tableChange = async (e) => { pageId.value = e.id const {data: info} = await getCarGpsList({id: pageId.value}) @@ -394,23 +403,7 @@ function reset() { /** 提交按钮 */ function submitForm() { - proxy.$refs["postRef"].validate(valid => { - if (valid) { - if (tyreInfo.value.id != undefined) { - // updateBaseDevice(tyreInfo.value).then(response => { - // proxy.$modal.msgSuccess(t('option.modificationSuccessful')); - open.value = false; - // getList(); - // }); - } else { - // addBaseDevice(tyreInfo.value).then(response => { - // proxy.$modal.msgSuccess(t('option.addedSuccessfully')); - open.value = false; - // getList(); - // }); - } - } - }); + open.value = false; } /** 搜索按钮操作 */ @@ -431,7 +424,6 @@ const resetQuery = () => { tableRef1.value.setCurrentRow() } const setMarker = (res) => { - console.log(res) let pathRow = [[res.longitude, res.latitude]] markers.value && map.remove(markers.value) AMap.convertFrom(pathRow, 'gps', function (status, result) { diff --git a/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue index e11dfae..0e4a6a9 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue @@ -110,7 +110,7 @@ AMapLoader.load({ }).catch(e => { }) -listBasetyre().then(e => { +listBasetyre({trailerNum:0}).then(e => { let res = JSON.stringify(e.rows) let newObj = JSON.parse(res.replace(/"carLicense":/g, '"title":')) treeData.value = newObj