|
|
|
@ -49,14 +49,23 @@ function showShareMessage(row:{uuid:string,code:string,name:string,expireTime:st |
|
|
|
h(ElText,{style:{'align-self':'flex-start'}},()=>row.name), |
|
|
|
h(ElText,{style:{'align-self':'flex-start'}},()=>"失效时间:"+row.expireTime), |
|
|
|
h(ElText,{style:{'align-self':'flex-start'}},()=>"链接:"+_shareURL), |
|
|
|
h(ElButton, { |
|
|
|
type: 'primary', |
|
|
|
style: { width: '20%' }, |
|
|
|
onClick: () => { |
|
|
|
let _url=apiURL+`/share/zip?shareUuid=${row.uuid}&code=${row.code}&puuid=root&rootUuid=root` |
|
|
|
window.open(_url) |
|
|
|
} |
|
|
|
},()=>'下载') |
|
|
|
h('div',[ |
|
|
|
h(ElButton, { |
|
|
|
type: 'primary', |
|
|
|
style: { width: '100px' }, |
|
|
|
onClick: () => { |
|
|
|
let _url=apiURL+`/share/zip?shareUuid=${row.uuid}&code=${row.code}&puuid=root&rootUuid=root` |
|
|
|
window.open(_url) |
|
|
|
} |
|
|
|
},()=>'下载'), |
|
|
|
h(ElButton, { |
|
|
|
type: 'primary', |
|
|
|
style: { width: '100px',margin:'0 10px' }, |
|
|
|
onClick: () => { |
|
|
|
onShareView(row) |
|
|
|
} |
|
|
|
},()=>'预览') |
|
|
|
]) |
|
|
|
]), |
|
|
|
confirmButtonText: '复制分享链接', |
|
|
|
showCancelButton: true |
|
|
|
@ -103,7 +112,7 @@ function onShareMember(row:matterInfo){ |
|
|
|
|
|
|
|
//文件预览 |
|
|
|
function onShareView(row:matterInfo){ |
|
|
|
let a=row.name; |
|
|
|
let a = row.name ?? ''; |
|
|
|
if(a.endsWith('...')){ |
|
|
|
a=`${row.uuid}-${row.code}.zip` |
|
|
|
} |
|
|
|
|