浏览代码

合规性分析

maxiaoxiao 11 月之前
父节点
当前提交
aa80c682a6
共有 1 个文件被更改,包括 20 次插入4 次删除
  1. 20 4
      src/api/ghss/hgxfx.js

+ 20 - 4
src/api/ghss/hgxfx.js

@@ -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'
+        }
     })
 }