| | |
| | | .filter((item) => item.perms == currentPerms) |
| | | .map((item) => (this.btnStatus[item.tag.substr(1)] = true)); |
| | | }, |
| | | ShowWindowFly(res) { |
| | | console.log(res); |
| | | if (res == '') return; |
| | | if (res.indexOf('.xls') != -1) { |
| | | this.showMetadata(res, true); |
| | | } else if (res.indexOf('.doc') != -1) { |
| | | this.showMetadata(res, true); |
| | | } else if (res.indexOf('.png') != -1) { |
| | | this.showMetadata(res, true); |
| | | } else if (res.indexOf('.jpg') != -1) { |
| | | this.showMetadata(res, true); |
| | | } else if (res.indexOf('.pdf') != -1) { |
| | | this.showMetadata(res, true); |
| | | } else if (res.indexOf('.fly') != -1) { |
| | | this.showMetadata(res, false); |
| | | } else if (res.indexOf('.mpt') != -1) { |
| | | this.showMetadata(res, false); |
| | | } |
| | | }, |
| | | showMetadata(res, flag) { |
| | | var metaUrl; |
| | | if (flag == true) { |
| | | metaUrl = res; |
| | | } else if (flag == false) { |
| | | metaUrl = ifreamUrl + '/LFWeb/MetaPop.html?name=' + res; |
| | | } |
| | | window.open( |
| | | metaUrl, |
| | | '', |
| | | 'height=800, width=1500, top=150, left=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no' |
| | | ); |
| | | }, |
| | | // ShowWindowFly(res) { |
| | | // console.log(res); |
| | | // if (res == '') return; |
| | | // if (res.indexOf('.xls') != -1) { |
| | | // this.showMetadata(res, true); |
| | | // } else if (res.indexOf('.doc') != -1) { |
| | | // this.showMetadata(res, true); |
| | | // } else if (res.indexOf('.png') != -1) { |
| | | // this.showMetadata(res, true); |
| | | // } else if (res.indexOf('.jpg') != -1) { |
| | | // this.showMetadata(res, true); |
| | | // } else if (res.indexOf('.pdf') != -1) { |
| | | // this.showMetadata(res, true); |
| | | // } else if (res.indexOf('.fly') != -1) { |
| | | // this.showMetadata(res, false); |
| | | // } else if (res.indexOf('.mpt') != -1) { |
| | | // this.showMetadata(res, false); |
| | | // } |
| | | // }, |
| | | // showMetadata(res, flag) { |
| | | // var metaUrl; |
| | | // if (flag == true) { |
| | | // metaUrl = res; |
| | | // } else if (flag == false) { |
| | | // metaUrl = ifreamUrl + '/LFWeb/MetaPop.html?name=' + res; |
| | | // } |
| | | // window.open( |
| | | // metaUrl, |
| | | // '', |
| | | // 'height=800, width=1500, top=150, left=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no' |
| | | // ); |
| | | // }, |
| | | // 请求数据内容 |
| | | getMetaData() { |
| | | select_meta_ByPageAndCount(this.listData).then((res) => { |