Commit c93e21d4 authored by qzhxx's avatar qzhxx

测试迭代

parent 43db30da
......@@ -134,7 +134,7 @@
</el-button>
</el-tooltip>
<el-tooltip content="详情" placement="top">
<el-button :disabled="(scope.row.published)||(scope.row.auditStatus === 'TBC')||(scope.row.auditStatus === 'TBCA')" circle @click="learnDetails(scope.row)">
<el-button circle @click="learnDetails(scope.row)">
<i class="icon-table icon-detail"></i>
</el-button>
</el-tooltip>
......
......@@ -281,7 +281,7 @@ export default {
)
.then(
(res) => {
if (res.data.resultCode == 200 || res.data.resultCode == 201) {
if (res.data.resultCode === "200" || res.data.resultCode === "201") {
_this.$message({
type: "success",
message: res.data.message,
......@@ -296,7 +296,7 @@ export default {
} else {
_this.$message({
type: "error",
message: res.data.msg,
message: res.data.message,
});
}
},
......
......@@ -54,6 +54,7 @@
</div>
<div class="table-content">
<div class="btn-group">
<el-button type="primary" @click="downloadCipher()">导出加密秘钥</el-button>
<el-button type="primary" @click="multipleRemitGet()">汇出</el-button>
<!-- <el-button type="primary" @click="multipleRemit()">汇出</el-button> -->
</div>
......@@ -374,6 +375,40 @@ export default {
// loading.close();
// }, 2000);
},
// 导出机顶盒文件加密秘钥
downloadCipher(){
const loading = this.$loading({
lock: true,
text: '下载中,请稍候。。。',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
axios({
method: "get",
url: 'http://111.203.232.175:8088/mall/asset/downloadCipher',
params: {
// idList:str
},
headers: {
"Authorization": localStorage.getItem("backToken") || "",
},
responseType: "blob",
}).then(res => {
console.log(res)
loading.close();
let blobUrl = window.URL.createObjectURL(res.data);
const aElement = document.createElement("a");
aElement.href = blobUrl;
// aElement.download = res.data.fileName;
aElement.download = '密钥.zip';
aElement.click();
window.URL.revokeObjectURL(blobUrl);
})
},
// get测试
multipleRemitGet() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment