我的工具下载

main
lijingyu007 7 months ago
parent 0e7aa962e3
commit d4b3de2298
  1. 24
      src/page/personalpage/testmanagement/mytool.vue

@ -12,7 +12,6 @@
</el-radio-group>
<div v-loading="loading" v-if="currentool == '当前工具'" style="display: flex; flex-wrap: wrap">
<div v-for="(tool, key) of onTools" :key="key" class="contrl">
<img :src="tool.icon" style="width: 120px; object-fit: contain; margin: -10px 25px" alt="" />
<div style="text-align: left">
<p style="font-weight: bold; color: #1a1a1a; font-size: 18px">{{ tool.name }}</p>
@ -24,10 +23,7 @@
>
剩余次数{{ tool.remains }}
</p>
<p
v-if="tool.deliver_type == 'SaaS' && tool.remark == 'month'"
style="font-size: 14px"
>
<p v-if="tool.deliver_type == 'SaaS' && tool.remark == 'month'" style="font-size: 14px">
过期时间{{ dateFormat(new Date(tool.expire_time), 'yyyy-MM-dd') }}
</p>
<p v-if="tool.deliver_type == 'License'" style="font-size: 14px">
@ -89,7 +85,10 @@
<p style="font-weight: bold; color: #1a1a1a; font-size: 18px">{{ tool.name }}</p>
<!-- <p style="font-size: 14px">规格{{ tool.deliverType == 'License' ? '按月' : '按次' }}</p> -->
<p style="font-size: 14px">交付方式{{ tool.deliver_type }}</p>
<p v-if="tool.deliver_type == 'SaaS' && (tool.remark == 'times' || tool.remark == 'time')" style="font-size: 14px">
<p
v-if="tool.deliver_type == 'SaaS' && (tool.remark == 'times' || tool.remark == 'time')"
style="font-size: 14px"
>
剩余次数{{ tool.remains }}
</p>
<p v-if="tool.deliver_type == 'SaaS' && tool.remark == 'month'" style="font-size: 14px">
@ -180,7 +179,8 @@ export default {
//
zhangmiOpen: false,
zhangcode: '123123',
base: process.env.VUE_APP_BASE_API
base: process.env.VUE_APP_BASE_API,
baseurl: process.env.VUE_APP_BASE_TARGET,
}
},
computed: {
@ -196,7 +196,13 @@ export default {
//
downLoad(url) {
if (url) {
window.open(url)
if (url.indexOf('http') == -1) {
window.open(this.baseurl + url)
} else {
window.open(url)
}
} else {
this.$message.warning('下载失败,请联系管理员')
}
},
@ -242,7 +248,7 @@ export default {
MyToolslist() {
listMyTools().then((response) => {
this.myToolList = response.data
this.myToolList.forEach(it => {
this.myToolList.forEach((it) => {
if (it.icon.indexOf('http') == -1) {
it.icon = this.base + it.icon
}

Loading…
Cancel
Save