mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
添加面授任务
This commit is contained in:
@@ -51,12 +51,16 @@
|
||||
<div class="btnbox">
|
||||
<button
|
||||
class="xkbtn"
|
||||
:style="{ display: creVote ? 'none' : 'block' }"
|
||||
|
||||
@click="showDrawerCreVote"
|
||||
>
|
||||
创建投票
|
||||
{{ ballotId ? "编辑" : "添加" }}投票
|
||||
|
||||
</button>
|
||||
<a @click="queryStem">查看投票</a>
|
||||
<div v-if = "ballotId>0">
|
||||
<a-tag closable color="processing" @close="log">
|
||||
<span style="font-size:14px;line-height: 33px;" >删除投票</span>
|
||||
</a-tag></div>
|
||||
<div>
|
||||
<CreateVote
|
||||
v-model:createVoteVisible="createVoteVisible"
|
||||
@@ -78,9 +82,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 创建投票侧弹窗 -->
|
||||
<div>
|
||||
@@ -111,10 +112,13 @@
|
||||
<div class="btnbox">
|
||||
<a-upload
|
||||
@change="handleChange"
|
||||
action="/vote/baseVoteupload"
|
||||
:multiple="true"
|
||||
:max-count="1"
|
||||
action="/manageApi/vote/baseVoteupload"
|
||||
v-model:file-list="fileList"
|
||||
>
|
||||
<button class="xkbtn">点击上传</button></a-upload>
|
||||
<div v-if="voteCount > 0"><a-tag color="processing"> <span style="font-size:14px;line-height: 33px;" >{{voteCount}}票</span></a-tag></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item" style="margin-top: -25px">
|
||||
@@ -159,7 +163,7 @@ export default {
|
||||
name: "AddVote",
|
||||
components: {
|
||||
CreateVote
|
||||
|
||||
|
||||
},
|
||||
props: {
|
||||
addvoteVisible: {
|
||||
@@ -225,6 +229,8 @@ export default {
|
||||
addStemVisible:false, //
|
||||
editChild:false,
|
||||
fileList: [],
|
||||
voteCount:null,
|
||||
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
state.inputV1 = "",
|
||||
@@ -240,6 +246,8 @@ export default {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
const showDrawerCreVote = () => {
|
||||
state.createVoteVisible = true;
|
||||
state.editChild = props.edit;
|
||||
@@ -248,12 +256,22 @@ export default {
|
||||
};
|
||||
|
||||
const handleChange = info => {
|
||||
if (info.file.status !== "uploading") {
|
||||
|
||||
console.log("基础票数rinfo======",info);
|
||||
}
|
||||
};
|
||||
let resFileList = [...info.fileList];
|
||||
|
||||
|
||||
resFileList.map(file => {
|
||||
if (file.response) {
|
||||
// Component will show file.url as link
|
||||
file.url = file.response.url;
|
||||
console.log("file========",file);
|
||||
console.log("file========",file.response);
|
||||
state.voteCount = file.response.data;
|
||||
}
|
||||
|
||||
});
|
||||
//fileList.value = resFileList;
|
||||
};
|
||||
|
||||
//删除题干信息接口
|
||||
const dleVoteStem = () => {
|
||||
api.deleteVoteStem({voteStemId:state.ballotId})
|
||||
@@ -400,6 +418,10 @@ export default {
|
||||
const closeStem = () => {
|
||||
state.addStemVisible = false;
|
||||
};
|
||||
const log = e => {
|
||||
state.ballotId=null;
|
||||
console.log(e);
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
showDrawerCreVote,
|
||||
@@ -411,11 +433,117 @@ export default {
|
||||
queryStem,
|
||||
closeStem,
|
||||
handleChange,
|
||||
log,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.ConfirmModal {
|
||||
.ant-modal {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
.ant-modal-content {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
.ant-modal-body {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
padding: 0 !important;
|
||||
.delete {
|
||||
z-index: 999;
|
||||
width: 424px;
|
||||
height: 258px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
border-radius: 4px;
|
||||
.del_header {
|
||||
position: absolute;
|
||||
width: calc(100%);
|
||||
height: 40px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
.del_main {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 20px;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 10px;
|
||||
background-image: url(@/assets/images/coursewareManage/QR.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.close_exit {
|
||||
position: absolute;
|
||||
right: 42px;
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-image: url(@/assets/images/coursewareManage/close.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
.body {
|
||||
width: 100%;
|
||||
margin: 34px auto 56px auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
.back {
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
.del_btnbox {
|
||||
display: flex;
|
||||
margin: 30px auto;
|
||||
justify-content: center;
|
||||
.del_btn {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: rgba(64, 158, 255, 0);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
.btn1 {
|
||||
border: 1px solid rgba(64, 158, 255, 1);
|
||||
color: #4ea6ff;
|
||||
margin-right: 14px;
|
||||
}
|
||||
.btn2 {
|
||||
background-color: #4ea6ff;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ant-table-striped :deep(.table-striped) td {
|
||||
background-color: #fafafa !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user