Commit d5ad1d17 authored by zhengke's avatar zhengke

修改

parent 242ca67f
......@@ -123,7 +123,9 @@
else if (this.uploadType == 3) {
fileArray.forEach(item => {
html += this.getIconContent(item);
html += this.audioIframeStr(item);
})
}
if (html && html != '') {
this.ue.execCommand('inserthtml', html);
......@@ -177,6 +179,14 @@
}
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() {
const _this = this;
//上传附件
......
......@@ -81,6 +81,7 @@ export default {
//域名管理对象
Vue.prototype.domainManager = function () {
let domainUrl = 'http://192.168.1.13:8083';
let autoUrl = 'http://192.168.1.36:8140';
let locationName = window.location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com";
......@@ -98,6 +99,8 @@ export default {
LocalTemplateFileDownLoadUrl: domainUrl,
//本站文件流下载地址
LocalFileStreamDownLoadUrl: domainUrl + "/api/file/GetFileFromWebApi",
autoUrl:autoUrl
};
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