-- 下载投票模板

This commit is contained in:
yuping
2022-12-06 12:30:12 +08:00
parent 36e6cacda6
commit ca04f9e2d8

View File

@@ -144,6 +144,8 @@
</span> </span>
</a-tag> </a-tag>
</div> </div>
<button class="xkbtn" @click="downloadTemplate">下载模板
</button>
</div> </div>
</div> </div>
<div class="main_item" style="margin-top: -25px"> <div class="main_item" style="margin-top: -25px">
@@ -470,8 +472,14 @@ export default {
state.ballotId = null; state.ballotId = null;
console.log(e); console.log(e);
}; };
function downloadTemplate() {
window.open('/manageApi/投票基础数据模版.xlsx')
}
return { return {
...toRefs(state), ...toRefs(state),
downloadTemplate,
showDrawerCreVote, showDrawerCreVote,
afterVisibleChange, afterVisibleChange,
closeDrawer, closeDrawer,
@@ -699,6 +707,7 @@ export default {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 32px; margin-bottom: 32px;
.textarea { .textarea {
width: 423px; width: 423px;