|
@@ -43,6 +43,7 @@ import {
|
|
|
proUpdateXyxxBwl
|
|
|
} from "@/service/policy-and-regulation-manage/memorandum-manage/memorandum-manage";
|
|
|
import {InsertSyslog} from "@/units/use-method/user-log";
|
|
|
+import {baseUrl} from "@/service/config";
|
|
|
export default {
|
|
|
name: "MemorandumManageSettingDialog",
|
|
|
components:{DiyElForm},
|
|
@@ -107,10 +108,10 @@ export default {
|
|
|
formData.append("file",file.value.raw);
|
|
|
formData.append("fileName",fileName + suffixName);
|
|
|
formData.append("type","bwl")
|
|
|
- axios.post('http://10.90.7.241:9443/data-business-prod' +'/XyxxApi/xypt',formData,{'Content-type':'multipart/form-data'}).then(res =>{
|
|
|
+ axios.post(baseUrl +'/XyxxApi/xypt',formData,{'Content-type':'multipart/form-data'}).then(res =>{
|
|
|
console.log(res);
|
|
|
if(res.data[0].success=='true'){
|
|
|
- insertBwl(fileName,suffixName)
|
|
|
+ insertBwl(fileName,suffixName,res.data[0].message)
|
|
|
}else{
|
|
|
elAlert("文件上传失败")
|
|
|
}
|
|
@@ -121,12 +122,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- function insertBwl(fileName,suffixName){
|
|
|
+ function insertBwl(fileName,suffixName,filePath){
|
|
|
proInsertXyxxBwl({
|
|
|
wenhao: form.value.WENHAO,
|
|
|
name: form.value.NAME,
|
|
|
username: localStorage.getItem("xyxx_username"),
|
|
|
suffixName: suffixName,
|
|
|
+ filePath:filePath,
|
|
|
fileName: fileName,
|
|
|
}).then(res =>{
|
|
|
handleMes(res,() => {
|