From 5e58b948c03058c3fbbccac9165d23e5cd9769cb Mon Sep 17 00:00:00 2001 From: skjia <106962133@qq.com> Date: Thu, 22 Aug 2024 18:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=BE=E8=83=9C=E5=87=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hxy-web/js/public/public.js | 1 + hxy-web/js/wireManager/staff/staffAdd.js | 2 +- hxy-web/js/wireManager/viewResult/normalInspectionUpload.js | 2 +- hxy-web/js/wireManager/viewResult/patrolOutsideAdd.js | 2 +- hxy-web/js/wireManager/viewResult/specialPatrolAdd.js | 2 +- hxy-web/js/wireManager/viewResult/uploadPhoto.js | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hxy-web/js/public/public.js b/hxy-web/js/public/public.js index 8030690..5eb58ae 100644 --- a/hxy-web/js/public/public.js +++ b/hxy-web/js/public/public.js @@ -1,5 +1,6 @@ //系统请求路径 let PATH_URL="http://127.0.0.1:1917/line" +let FILE_URL="http://127.0.0.1:1909/file" //系统请求路径 let IMG_URL="http://127.0.0.1:1911/bmw/" // let PATH_URL=getContextPath(); diff --git a/hxy-web/js/wireManager/staff/staffAdd.js b/hxy-web/js/wireManager/staff/staffAdd.js index 03c9333..5877cd1 100644 --- a/hxy-web/js/wireManager/staff/staffAdd.js +++ b/hxy-web/js/wireManager/staff/staffAdd.js @@ -56,7 +56,7 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun //文件上传 var uploadInst = upload.render({ elem: '#contractFile' //绑定元素 - ,url: PATH_URL + "/personbase/upload" //上传接口 + ,url: FILE_URL + "/file/uploadmake" //上传接口 ,auto: false //选择文件后不自动上传 ,multiple: true //是否允许多文件上传,默认未false ,dataType: "json" diff --git a/hxy-web/js/wireManager/viewResult/normalInspectionUpload.js b/hxy-web/js/wireManager/viewResult/normalInspectionUpload.js index 8623f84..61bdc98 100644 --- a/hxy-web/js/wireManager/viewResult/normalInspectionUpload.js +++ b/hxy-web/js/wireManager/viewResult/normalInspectionUpload.js @@ -22,7 +22,7 @@ layui.use(['upload','laydate','form'], function () { var uploadListIns = upload.render({ elem: '#ID-upload-demo-files', elemList: $('#ID-upload-demo-files-list'), // 列表元素对象 - url: PATH_URL + "/makeInfo/upload", // 实际使用时改成您自己的上传接口即可。 + url: FILE_URL + "/file/uploadmake" , // 实际使用时改成您自己的上传接口即可。 multiple: true, //是否允许多文件上传,默认未false dataType: "json", // exts: 'jpg|png|jpeg|txt|pdf|xlsx|xls|docx|doc|ppt|pptx|mp4|avi|flv', diff --git a/hxy-web/js/wireManager/viewResult/patrolOutsideAdd.js b/hxy-web/js/wireManager/viewResult/patrolOutsideAdd.js index 7b08032..15ff6aa 100644 --- a/hxy-web/js/wireManager/viewResult/patrolOutsideAdd.js +++ b/hxy-web/js/wireManager/viewResult/patrolOutsideAdd.js @@ -129,7 +129,7 @@ var ysurl=""; function uploadFile(){ var uploadcom = upload.render({ elem: '#test', - url: PATH_URL + "/makeInfo/upload", //改成您自己的上传接口 + url: FILE_URL + "/file/uploadmake" , //改成您自己的上传接口 multiple: true, //是否允许多文件上传,默认未false dataType: "json", // data: {"pickId": id}, diff --git a/hxy-web/js/wireManager/viewResult/specialPatrolAdd.js b/hxy-web/js/wireManager/viewResult/specialPatrolAdd.js index 7c5d9e4..56c8916 100644 --- a/hxy-web/js/wireManager/viewResult/specialPatrolAdd.js +++ b/hxy-web/js/wireManager/viewResult/specialPatrolAdd.js @@ -62,7 +62,7 @@ var filenum=0; function uploadFile(){ var uploadcom = upload.render({ elem: '#test', - url: PATH_URL + "/makeInfo/upload", //改成您自己的上传接口 + url: FILE_URL + "/file/uploadmake" , //改成您自己的上传接口 multiple: true, //是否允许多文件上传,默认未false dataType: "json", // data: {"pickId": id}, diff --git a/hxy-web/js/wireManager/viewResult/uploadPhoto.js b/hxy-web/js/wireManager/viewResult/uploadPhoto.js index b3c1702..8f1ac7e 100644 --- a/hxy-web/js/wireManager/viewResult/uploadPhoto.js +++ b/hxy-web/js/wireManager/viewResult/uploadPhoto.js @@ -41,7 +41,7 @@ var urls=""; function uploadFile(){ var uploadcom = upload.render({ elem: '#test', - url: PATH_URL + "/makeInfo/upload", //改成您自己的上传接口 + url: FILE_URL + "/file/uploadmake" , //上传接口 //改成您自己的上传接口 multiple: true, //是否允许多文件上传,默认未false dataType: "json", exts: 'jpg|png',