From 78373d33ee569b5e48508edbdf8d60026062e622 Mon Sep 17 00:00:00 2001 From: Zhufu <1176354795@qq.com> Date: Fri, 23 Aug 2024 09:00:18 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E4=B8=AD=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=92=8Cpdf=E6=96=87=E4=BB=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=89=93=E5=BC=80=E4=B8=8D=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Upload/src/components/FileUpload.vue | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/src/components/Upload/src/components/FileUpload.vue b/src/components/Upload/src/components/FileUpload.vue index 788d3002..1ea312a1 100644 --- a/src/components/Upload/src/components/FileUpload.vue +++ b/src/components/Upload/src/components/FileUpload.vue @@ -31,6 +31,9 @@ + @@ -45,6 +48,7 @@ InboxOutlined, DeleteOutlined, CloudDownloadOutlined, + FolderOpenOutlined, } from '@ant-design/icons-vue'; import type { UploadFile, UploadProps } from 'ant-design-vue'; import { Modal, UploadDragger } from 'ant-design-vue'; @@ -58,6 +62,7 @@ import { isImgTypeByName } from '../helper'; import { UploadResultStatus } from '@/components/Upload/src/types/typing'; import { fileUploadApi } from '@/api/sys/upload'; + import axios from 'axios'; defineOptions({ name: 'ImageUpload' }); @@ -129,7 +134,41 @@ }); }, ); - + const openFile = (url) => { + console.log(url) + if(url.indexOf('.pdf') !== -1){ + axios({ + method: 'get', + url: url, + responseType: 'blob', + headers: { + 'Content-Disposition': 'inline', + } + }) + .then(response => { + let blob = new Blob([response.data], {type: 'application/pdf'}); + let pdfUrl = window.URL.createObjectURL(blob) + window.open(pdfUrl); + }) + .catch(error => { + console.error(error); + }); + }else{ + window.open(url, '_blank'); + } + + } + const showIcon = (url) => { + if( + url.indexOf('.png') !== -1 || + url.indexOf('.pdf') !== -1 || + url.indexOf('.jpg') !== -1 || + url.indexOf('.jpeg') !== -1 + ){ + return true; + } + return false + } function getBase64(file: File) { return new Promise((resolve, reject) => { const reader = new FileReader(); From 748dbc8ebcde8752aa8f409cf25292f71cdc2497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Fri, 23 Aug 2024 09:56:03 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E4=BA=91=E6=9F=A5=E8=AF=A2=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AE=8C=E6=88=90=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/cloudManagement/Modal/modal.vue | 97 +++++++++------ .../demo/system/cloudManagement/index.vue | 114 +++++++++++++++--- src/views/demo/system/cloudManagement/util.ts | 42 +++++-- 3 files changed, 189 insertions(+), 64 deletions(-) diff --git a/src/views/demo/system/cloudManagement/Modal/modal.vue b/src/views/demo/system/cloudManagement/Modal/modal.vue index 9acfa25e..a97c0aa8 100644 --- a/src/views/demo/system/cloudManagement/Modal/modal.vue +++ b/src/views/demo/system/cloudManagement/Modal/modal.vue @@ -1,7 +1,7 @@ diff --git a/src/views/demo/system/cloudManagement/util.ts b/src/views/demo/system/cloudManagement/util.ts index 4e8b0e8f..f1b121fe 100644 --- a/src/views/demo/system/cloudManagement/util.ts +++ b/src/views/demo/system/cloudManagement/util.ts @@ -9,32 +9,32 @@ export const columns = [ { title: '名称', dataIndex: 'name', - width: 100, + width: 80, }, { title: '云查询分类', - dataIndex: 'overlay', - width: 100, + dataIndex: 'code', + width: 80, }, { title: '图层', dataIndex: 'layer', - width: 100, + // width: 100, }, { title: '数据表', dataIndex: 'tableName', - width: 100, + // width: 120, }, { title: '叠加图层', dataIndex: 'overlayList', - width: 100, + width: 150, }, { title: '是否分类', dataIndex: 'isClass', - width: 100, + width: 80, }, { title: '分类字段', @@ -49,14 +49,20 @@ export const columns = [ { title: '选择面积计算字段', dataIndex: 'areaField', - width: 100, + // width: 100, }, { title: '是否合计', dataIndex: 'isSum', - width: 100, + width: 80, + }, + { + title: '创建时间', + dataIndex: 'createTime', + // width: 100, } ]; + export const emptyTreeItem = { itemName: '', itemValue: '', @@ -66,7 +72,7 @@ export const emptyTableItem = { name: '', layer: undefined, tableName: '', - overlayList: ['1'], + overlayList: ['天地图'], isClass: false, classField: undefined, className: undefined, @@ -77,21 +83,31 @@ export const emptyTableItem = { export const searchFormSchema_1 = [ { field: 'key', - label: '关键字', + label: '名称', component: 'Input', colProps: { span: 8 }, }, + { + field: '[StartTime, EndTime]', + label: '日期范围', + component: 'RangePicker', + colProps: { span: 8 }, + componentProps: { + format: 'YYYY-MM-DD', + placeholder: ['开始日期', '结束日期'], + }, + }, ]; export const searchFormSchema_2 = [ { field: 'key', - label: '关键字', + label: '名称', component: 'Input', colProps: { span: 8 }, }, { - field: '[startTime, endTime]', + field: '[StartTime, EndTime]', helpMessage: '查询范围只包含时序影像大类', label: '日期范围', component: 'RangePicker', From 6e86ba1f8355599ba0cc9388dd2963f5d7d5346c Mon Sep 17 00:00:00 2001 From: Zhufu <1176354795@qq.com> Date: Fri, 23 Aug 2024 10:06:46 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=99=84=E4=BB=B6=20?= =?UTF-8?q?=E5=BD=93=E6=97=B6=E5=9B=BE=E7=89=87=E6=97=B6=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MapList/ShowInfoModal/index.vue | 277 +++++++++--- .../MapList/ShowInfoModal/index.vue | 394 +++++++++++++----- .../MapList/ShowInfoModal/index.vue | 153 ++++--- 3 files changed, 604 insertions(+), 220 deletions(-) diff --git a/src/views/demo/degraining/curbspotcity/MapList/ShowInfoModal/index.vue b/src/views/demo/degraining/curbspotcity/MapList/ShowInfoModal/index.vue index b3b8588e..72880e57 100644 --- a/src/views/demo/degraining/curbspotcity/MapList/ShowInfoModal/index.vue +++ b/src/views/demo/degraining/curbspotcity/MapList/ShowInfoModal/index.vue @@ -2,6 +2,7 @@
- + + + - + + + {{ getLabel('qita_use_to', qita_use_to) }} - + + + {{ pandingyijushuoming @@ -151,18 +179,20 @@
@@ -189,16 +219,25 @@ getLabel('measure_name', measure_name) }} - + + +
@@ -225,17 +264,25 @@
- - + + +
@@ -338,15 +385,18 @@ diff --git a/src/views/demo/system/geoservermanagement/clound/clound.data.ts b/src/views/demo/system/geoservermanagement/clound/clound.data.ts index 2bdca197..e26e7917 100644 --- a/src/views/demo/system/geoservermanagement/clound/clound.data.ts +++ b/src/views/demo/system/geoservermanagement/clound/clound.data.ts @@ -20,23 +20,23 @@ export const indexColumns: BasicColumn[] = [ { title: '空间参考', dataIndex: 'spatialRef', - width: 70, + width: 100, }, { title: '数据源类型', dataIndex: 'dataSourceType', ifShow: false, - width: 90, + width: 100, }, { title: '数据类型', dataIndex: 'dataType', - width: 50, + width: 100, }, { title: '数据表名', dataIndex: 'dataTable', - width: 120, + width: 150, }, { title: 'shp或者xls地址', @@ -53,12 +53,12 @@ export const indexColumns: BasicColumn[] = [ { title: '创建时间', dataIndex: 'createTime', - width: 120, + width: 150, }, { title: '修改时间', dataIndex: 'updateTime', - width: 120, + width: 150, }, ]; @@ -67,7 +67,7 @@ export const indexSearchFormSchema: FormSchema[] = [ field: 'SererName', label: '服务名称', component: 'Input', - colProps: { span: 8 }, + colProps: { span: 12 }, }, ]; diff --git a/src/views/demo/system/geoservermanagement/clound/mapComponent.vue b/src/views/demo/system/geoservermanagement/clound/mapComponent.vue index 92fcf163..d5599cd3 100644 --- a/src/views/demo/system/geoservermanagement/clound/mapComponent.vue +++ b/src/views/demo/system/geoservermanagement/clound/mapComponent.vue @@ -175,9 +175,10 @@ // console.log(chooseRow); getGeomData({ dataTable: chooseRow.dataTable }) .then((res) => { - let st = res.slice(6, -1); + let st: any = 'POINT(, )'.slice(6, -1); st = st.split(' '); handlerLocation([st[0], st[1]], 11); + // handlerLocation([118.32113719388846, 35.64528587987562], 11); raster(chooseRow); }) .catch((error) => { @@ -195,6 +196,8 @@ '&styles=&bbox={bbox-epsg-3857}&width=256&height=256&srs=' + chooseRow.spatialRef + '&format=image/png&TRANSPARENT=TRUE', + // 'http://192.168.10.131:8080/geoserver/my_workspace/wms?service=WMS&version=1.1.0&request=GetMap&layers=my_workspace:parse_shpinfo_text3&styles=&bbox=118.32113719388846%2C35.64528587987562%2C118.89333296872105%2C36.17725393199594&width=256&height=256&srs=EPSG:4326&format=image/png&TRANSPARENT=TRUE&exceptions=application%2Fvnd.ogc.se_inimage', + // 'http://175.27.168.120:8080/geoserver/yinanxian/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fjpeg&TRANSPARENT=true&LAYERS=yinanxian%3Ayingxiang_01&exceptions=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4548&STYLES=&WIDTH=529&HEIGHT=769&BBOX=607366.3276808303%2C3919435.438766631%2C612405.5241015075%2C3926765.179014889', ], tileSize: 256, }); diff --git a/src/views/demo/system/geoservermanagement/index.vue b/src/views/demo/system/geoservermanagement/index.vue index 09ad692d..98bc433a 100644 --- a/src/views/demo/system/geoservermanagement/index.vue +++ b/src/views/demo/system/geoservermanagement/index.vue @@ -136,7 +136,7 @@