|
@@ -231,12 +231,11 @@
|
|
|
:data="noticeList"
|
|
:data="noticeList"
|
|
|
height="50%"
|
|
height="50%"
|
|
|
style="width: 100%; height: 100vh;"
|
|
style="width: 100%; height: 100vh;"
|
|
|
- @row-click="DownloadFile"
|
|
|
|
|
>
|
|
>
|
|
|
<el-table-column prop="Name" label="通知标题">
|
|
<el-table-column prop="Name" label="通知标题">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <i class="el-icon-caret-right"></i>
|
|
|
|
|
- <a style="margin-left: 5px">{{ scope.row.Name }}</a>
|
|
|
|
|
|
|
+ <!--<i class="el-icon-caret-right"></i>-->
|
|
|
|
|
+ <el-link :href="getDownloadFile(scope.row.FileURL)" target="_blank" type="primary">{{ scope.row.Name }}</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="CreateOn" label="时间" width="141">
|
|
<el-table-column prop="CreateOn" label="时间" width="141">
|
|
@@ -254,12 +253,11 @@
|
|
|
:data="fileList"
|
|
:data="fileList"
|
|
|
height="50%"
|
|
height="50%"
|
|
|
style="width: 100%; height: 100vh;"
|
|
style="width: 100%; height: 100vh;"
|
|
|
- @row-click="DownloadFile"
|
|
|
|
|
>
|
|
>
|
|
|
<el-table-column prop="Name" label="文件名">
|
|
<el-table-column prop="Name" label="文件名">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <i class="el-icon-caret-right"></i>
|
|
|
|
|
- <a style="margin-left: 5px">{{ scope.row.Name }}</a>
|
|
|
|
|
|
|
+ <!--<i class="el-icon-caret-right"></i>-->
|
|
|
|
|
+ <el-link :href="getDownloadFile(scope.row.FileURL)" target="_blank" type="primary">{{ scope.row.Name }}</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="CreateOn" label="时间" width="141">
|
|
<el-table-column prop="CreateOn" label="时间" width="141">
|
|
@@ -424,6 +422,16 @@ import api from "@/api/rtxservice/rtx";
|
|
|
let urlArr = val.split("|");
|
|
let urlArr = val.split("|");
|
|
|
location.href = "http://" + urlArr[0];
|
|
location.href = "http://" + urlArr[0];
|
|
|
},
|
|
},
|
|
|
|
|
+ getDownloadFile(val) {
|
|
|
|
|
+ let urlArr = val.split("|")
|
|
|
|
|
+ let retUrl = urlArr[0]
|
|
|
|
|
+ //内网服务器专用
|
|
|
|
|
+ if (process.client && retUrl.indexOf('/upfile') === 0) {
|
|
|
|
|
+ const myDomain = window.location.host
|
|
|
|
|
+ retUrl = myDomain + '/' + retUrl
|
|
|
|
|
+ }
|
|
|
|
|
+ return "http://" + retUrl
|
|
|
|
|
+ },
|
|
|
//格式化时间
|
|
//格式化时间
|
|
|
jstimehandle(val) {
|
|
jstimehandle(val) {
|
|
|
if (val === "") {
|
|
if (val === "") {
|