feat: There is no way the, 企标技术标准 会签意见 创建条款 加载文档添加loading
This commit is contained in:
@@ -490,6 +490,7 @@
|
|||||||
:label="item.name"
|
:label="item.name"
|
||||||
:name="item.id"
|
:name="item.id"
|
||||||
>
|
>
|
||||||
|
<loading :loading="iframeLoading">正在加载文档</loading>
|
||||||
<iframe width="100%" height="100%" wframeborder="0" ref="iframe" v-bind:src="iframeUrl"></iframe>
|
<iframe width="100%" height="100%" wframeborder="0" ref="iframe" v-bind:src="iframeUrl"></iframe>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -977,6 +978,7 @@
|
|||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
iframeLoading:false,
|
||||||
iframeUrl:"",
|
iframeUrl:"",
|
||||||
showForm:{
|
showForm:{
|
||||||
modelNum: '',
|
modelNum: '',
|
||||||
@@ -1431,6 +1433,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
previewShow(attId) {
|
previewShow(attId) {
|
||||||
|
this.iframeLoading = true
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getBusStandFileByAttId({
|
getBusStandFileByAttId({
|
||||||
attId
|
attId
|
||||||
@@ -1447,6 +1450,7 @@
|
|||||||
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||||
this.iframeUrl = kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl));
|
this.iframeUrl = kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl));
|
||||||
}
|
}
|
||||||
|
this.iframeLoading = false
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
resolve(history)
|
resolve(history)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user