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