|
@@ -372,7 +372,7 @@
|
|
|
<span class="delButton" title="删除" @click="del(item)">X</span>
|
|
|
</span>
|
|
|
<img @dblclick="showAerial(item)"
|
|
|
- :src="`${domain }/static/file/`+item.imgId+`/showfile`">
|
|
|
+ :src="`${domain }/static/file/`+item.imgId+`/showfileFgw`">
|
|
|
<span class="detailbar">
|
|
|
<span class="time">{{item.aerialDate}}</span>
|
|
|
<span class="remark" :title="item.remark">{{item.remark}}</span>
|
|
@@ -521,7 +521,7 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- App.common.utils.uploadFile('#upFile', App.getUrl('static/file/upload'), {
|
|
|
+ App.common.utils.uploadFile('#upFile', App.getUrl('static/file/uploadFgw'), {
|
|
|
acceptMime: 'image/png,image/jpg,image/jpeg',
|
|
|
exts: 'png|jpg|jpeg'
|
|
|
}, function (index, file, result) {
|
|
@@ -533,12 +533,13 @@
|
|
|
});
|
|
|
|
|
|
|
|
|
- App.common.utils.uploadFile('#addPic', App.getUrl('/static/file/upload'), {
|
|
|
+ App.common.utils.uploadFile('#addPic', App.getUrl('/static/file/uploadFgw'), {
|
|
|
acceptMime: 'image/png,video/mp4,image/jpg,image/jpeg,application/pdf,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
|
exts: 'png|jpg|jpeg|pdf|xls|xlsx|doc|docx|mp4'
|
|
|
}, null, function (res) {
|
|
|
for (var i = 0; i < res.resultList.length; i++) {
|
|
|
var pic = {};
|
|
|
+ console.log(res.resultList[i])
|
|
|
pic.fileAddre = res.resultList[i].id;
|
|
|
pic.fileName = res.resultList[i].name;
|
|
|
pic.fileType = res.resultList[i].ftype;
|
|
@@ -548,7 +549,7 @@
|
|
|
});
|
|
|
|
|
|
|
|
|
- App.common.utils.uploadFile('#addPicPlus', App.getUrl('/static/file/upload'), {
|
|
|
+ App.common.utils.uploadFile('#addPicPlus', App.getUrl('/static/file/uploadFgw'), {
|
|
|
acceptMime: 'image/png,video/mp4,image/jpg,image/jpeg,application/pdf,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
|
exts: 'png|jpg|jpeg'
|
|
|
}, null, function (res) {
|
|
@@ -632,7 +633,7 @@
|
|
|
edit: function (item) {
|
|
|
this.editInfo = item;
|
|
|
if (item.imgId) {
|
|
|
- $("#upFile").attr("src", App.common.utils.imgShow(item.imgId));
|
|
|
+ $("#upFile").attr("src", App.getUrl("/static/file/"+fileId+"/showfileFgw"));
|
|
|
} else {
|
|
|
$("#upFile").attr("src", "${WebSite.asset }/css/images/jiahao.png");
|
|
|
}
|
|
@@ -646,7 +647,7 @@
|
|
|
del: function (item) {
|
|
|
var self = this;
|
|
|
App.msg.confirm("确认删除该照片吗?", function () {
|
|
|
- App.postJson("/api/aerial/del", {id: item.id}, function (res) {
|
|
|
+ App.postJson("/api/aerial/delFgw", {id: item.id}, function (res) {
|
|
|
if (res.success) {
|
|
|
self.getImgList();
|
|
|
}
|
|
@@ -683,13 +684,13 @@
|
|
|
getImgList: function () {
|
|
|
var self = this;
|
|
|
this.imgList = [];
|
|
|
- App.postJson("/api/aerial/list", {subId: self.yuebaoInfo.subId, type: "0"}, function (res) {
|
|
|
+ App.postJson("/api/aerial/listFgw", {subId: self.yuebaoInfo.subId, type: "0"}, function (res) {
|
|
|
if (res.success) {
|
|
|
self.imgList = res.data;
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- App.postJson("/api/aerial/list", {subId: self.yuebaoInfo.subId, type: "1"}, function (res) {
|
|
|
+ App.postJson("/api/aerial/listFgw", {subId: self.yuebaoInfo.subId, type: "1"}, function (res) {
|
|
|
if (res.success) {
|
|
|
self.imgLsPlus = res.data;
|
|
|
}
|
|
@@ -908,11 +909,11 @@
|
|
|
var mp4Url = "";
|
|
|
if (type == 8) {
|
|
|
<%--imageUrl= "${WebSite.asset}/css/images/pdf.png";--%>
|
|
|
- imageUrl = "${domain}/static/file/" + fileId + "/showfile";
|
|
|
+ imageUrl = "${domain}/static/file/" + fileId + "/showfileFgw";
|
|
|
//$(tempId).attr("realUrl", "${domain}/static/file/"+fileId+"/showfile");
|
|
|
} else if (type == null || type == "") {
|
|
|
} else if (type == 101 || type == 102 || type == 103 || type == 104 || type == 105) {
|
|
|
- imageUrl = "${domain}/static/file/" + fileId + "/showfile";
|
|
|
+ imageUrl = "${domain}/static/file/" + fileId + "/showfileFgw";
|
|
|
//$(tempId).attr("realUrl", "${domain}/static/file/"+fileId+"/showfile");
|
|
|
} else if (type == 4 || type == 5) {
|
|
|
imageUrl = "${WebSite.asset}/css/images/excel.png";
|
|
@@ -921,7 +922,7 @@
|
|
|
imageUrl = "${WebSite.asset}/css/images/word.png";
|
|
|
realUrl = "/static/file/download/" + fileId + "";
|
|
|
} else {
|
|
|
- imageUrl = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop"><source src="${domain}/static/file/' + fileId + '/showfile" type="video/mp4"></source></video>';
|
|
|
+ imageUrl = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop"><source src="${domain}/static/file/' + fileId + '/showfileFgw" type="video/mp4"></source></video>';
|
|
|
}
|
|
|
if (imageUrl) {
|
|
|
if (type == 2 || type == 3 || type == 4 || type == 5) {
|
|
@@ -972,7 +973,7 @@
|
|
|
showImagePlus: function (fileId) {
|
|
|
var imageUrl = "";
|
|
|
|
|
|
- imageUrl = "${domain}/static/file/" + fileId + "/showfile";
|
|
|
+ imageUrl = "${domain}/static/file/" + fileId + "/showfileFgw";
|
|
|
var type = "101";
|
|
|
var createTime = "";
|
|
|
if (imageUrl) {
|
|
@@ -1027,7 +1028,7 @@
|
|
|
return "${WebSite.asset}/css/images/pdf.png";
|
|
|
} else if (type == null || type == "") {
|
|
|
} else if (type == 101 || type == 102 || type == 103 || type == 104 || type == 105) {
|
|
|
- return "${domain}/static/file/" + fileId + "/showfile";
|
|
|
+ return "${domain}/static/file/" + fileId + "/showfileFgw";
|
|
|
} else if (type == 4 || type == 5) {
|
|
|
return "${WebSite.asset}/css/images/excel.png";
|
|
|
} else if (type == 2 || type == 3) {
|
|
@@ -1038,7 +1039,7 @@
|
|
|
|
|
|
},
|
|
|
picShowPlus(fileId) {
|
|
|
- return "${domain}/static/file/" + fileId + "/showfile";
|
|
|
+ return "${domain}/static/file/" + fileId + "/showfileFgw";
|
|
|
},
|
|
|
getData() {
|
|
|
var self = this;
|
|
@@ -1304,7 +1305,7 @@
|
|
|
});
|
|
|
|
|
|
|
|
|
- App.postJson("/api/aerial/saveNk", self.imgLsPlus, function (res) {
|
|
|
+ App.postJson("/api/aerial/saveFgwNk", self.imgLsPlus, function (res) {
|
|
|
|
|
|
});
|
|
|
},
|
|
@@ -1364,7 +1365,7 @@
|
|
|
date.setFullYear(row.kj_month.split("年")[0]);
|
|
|
date.setMonth(row.kj_month.split("年")[1].split("月")[0] - 1);
|
|
|
date.setDate(1);
|
|
|
- App.postJson("/api/monthReport/getByInfo", {
|
|
|
+ App.postJson("/api/monthReport/getByInfoFgw", {
|
|
|
subId: subId,
|
|
|
year: year,
|
|
|
startDate: date.format("yyyy-MM-dd")
|