Commit d5ad1d17 authored by zhengke's avatar zhengke

修改

parent 242ca67f
...@@ -123,7 +123,9 @@ ...@@ -123,7 +123,9 @@
else if (this.uploadType == 3) { else if (this.uploadType == 3) {
fileArray.forEach(item => { fileArray.forEach(item => {
html += this.getIconContent(item); html += this.getIconContent(item);
html += this.audioIframeStr(item);
}) })
} }
if (html && html != '') { if (html && html != '') {
this.ue.execCommand('inserthtml', html); this.ue.execCommand('inserthtml', html);
...@@ -177,6 +179,14 @@ ...@@ -177,6 +179,14 @@
} }
return obj; return obj;
}, },
audioIframeStr(data) {
var fileUrl = encodeURIComponent(data.fileUrl);
return '<p><iframe height="62px" width="auto" frameborder="0" allowtransparency="true" ' +
' style="background-color:transparent;border-radius: 3px;overflow: hidden;z-index: 0;" scrolling="no" ' +
' src="http://192.168.1.36:8140/index.html?fileName='+data.fileName+'&url='+ fileUrl +
'" class="ans-insertaudio-module" module="_insertaudio">' + ' </iframe></p>';
},
loadUe() { loadUe() {
const _this = this; const _this = this;
//上传附件 //上传附件
......
...@@ -81,6 +81,7 @@ export default { ...@@ -81,6 +81,7 @@ export default {
//域名管理对象 //域名管理对象
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = 'http://192.168.1.13:8083'; let domainUrl = 'http://192.168.1.13:8083';
let autoUrl = 'http://192.168.1.36:8140';
let locationName = window.location.hostname; let locationName = window.location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) { if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com"; domainUrl = "http://testapi.oytour.com";
...@@ -98,6 +99,8 @@ export default { ...@@ -98,6 +99,8 @@ export default {
LocalTemplateFileDownLoadUrl: domainUrl, LocalTemplateFileDownLoadUrl: domainUrl,
//本站文件流下载地址 //本站文件流下载地址
LocalFileStreamDownLoadUrl: domainUrl + "/api/file/GetFileFromWebApi", LocalFileStreamDownLoadUrl: domainUrl + "/api/file/GetFileFromWebApi",
autoUrl:autoUrl
}; };
return obj; return obj;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment