|
@@ -260,9 +260,9 @@ export default {
|
|
},
|
|
},
|
|
//上传
|
|
//上传
|
|
handleAvatarSuccess(res, file) {
|
|
handleAvatarSuccess(res, file) {
|
|
- this.pdfContent = window.location.href.split('://')[0]+'://'+localStorage.getItem('fileBrowseEnvironment')+res.data.url;
|
|
|
|
|
|
+ this.pdfContent = localStorage.getItem('fileBrowseEnvironment')+res.data.url;
|
|
this.form.content = res.data.url;
|
|
this.form.content = res.data.url;
|
|
- this.form.realContent = window.location.href.split('://')[0]+'://'+localStorage.getItem('fileBrowseEnvironmentExtranet')+res.data.url;
|
|
|
|
|
|
+ this.form.realContent = localStorage.getItem('fileBrowseEnvironmentExtranet')+res.data.url;
|
|
this.getNumPages();
|
|
this.getNumPages();
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
},
|
|
},
|
|
@@ -366,7 +366,7 @@ export default {
|
|
const id = row.id || this.ids
|
|
const id = row.id || this.ids
|
|
examSafeBook(id).then( response => {
|
|
examSafeBook(id).then( response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
- this.pdfContent = window.location.href.split('://')[0]+'://'+localStorage.getItem('fileBrowseEnvironment')+response.data.content;
|
|
|
|
|
|
+ this.pdfContent = localStorage.getItem('fileBrowseEnvironment')+response.data.content;
|
|
this.getNumPages();
|
|
this.getNumPages();
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "修改实验室安全制度";
|
|
this.title = "修改实验室安全制度";
|