|
@@ -160,11 +160,11 @@
|
|
|
// 切换按钮
|
|
|
lookDocumentListCheck(val){
|
|
|
let type = '';
|
|
|
- if(this.lookDocumentList[val].name.split('.')[1] == 'docx'){
|
|
|
+ if(this.lookDocumentList[val].url.split('.')[1] == 'docx'){
|
|
|
type = 'docx'
|
|
|
- }else if(this.lookDocumentList[val].name.split('.')[1] == 'xlsx'){
|
|
|
+ }else if(this.lookDocumentList[val].url.split('.')[1] == 'xlsx'){
|
|
|
type = 'excel'
|
|
|
- }else if(this.lookDocumentList[val].name.split('.')[1] == 'pdf'){
|
|
|
+ }else if(this.lookDocumentList[val].url.split('.')[1] == 'pdf'){
|
|
|
type = 'pdf'
|
|
|
}
|
|
|
let url = this.fileBrowseEnvironment + this.lookDocumentList[val].url;
|