|
@@ -5,9 +5,25 @@ const hgxfxApi = {
|
|
|
GetFxjg: '/apply/hgxfx/GetFxjg',
|
|
|
GetPage: '/apply/hgxfx/GetPage',
|
|
|
GetScx: '/apply/hgxfx/GetScxList',
|
|
|
- UpdateScx: '/apply/hgxfx/UpdateScx'
|
|
|
+ UpdateScx: '/apply/hgxfx/UpdateScx',
|
|
|
+ ShapeUpload:'/file/uploadShpZip'
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 上传SHP文件
|
|
|
+ * @param parameter
|
|
|
+ * @returns {*}
|
|
|
+ */
|
|
|
+export function ShapeUpload(parameter) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: hgxfxApi.ShapeUpload,
|
|
|
+ data: parameter,
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
/**
|
|
|
* 登录
|
|
|
* @param parameter
|
|
@@ -20,9 +36,9 @@ export function Add(parameter) {
|
|
|
url: hgxfxApi.Add,
|
|
|
method: 'post',
|
|
|
data: parameter,
|
|
|
- // headers: {
|
|
|
- // 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
- // }
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|