mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
feat:评估获取全部信息接口调用,并渲染到评估抽屉列表
This commit is contained in:
@@ -18,23 +18,20 @@
|
||||
</div>
|
||||
<div class="contentMain">
|
||||
<div class="main_item">
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 3px">投票名称</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input
|
||||
v-model:value="inputV1"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入投票名称"
|
||||
/>
|
||||
</div>
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
|
||||
</div>
|
||||
<span style="margin-right: 3px">投票名称</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input
|
||||
v-model:value="inputV1"
|
||||
style="width: 424px; height: 32px"
|
||||
placeholder="请输入投票名称"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box" @click="showDrawerCreVote">
|
||||
<button class="cjtpbtn" @click="addQue()">创建题干</button>
|
||||
</div>
|
||||
@@ -112,7 +109,7 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
inputV1: "",
|
||||
creVote:true,
|
||||
creVote: true,
|
||||
questions: [
|
||||
{
|
||||
inputV: "",
|
||||
@@ -170,35 +167,32 @@ export default {
|
||||
// return message.info("请输入选项");
|
||||
// }
|
||||
console.log(state.questions[0].inputV);
|
||||
let obj = {
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionDto: [
|
||||
{
|
||||
optionId: 0,
|
||||
optionName: "",
|
||||
optionPictureAddress: "",
|
||||
},
|
||||
],
|
||||
optionId: 0,
|
||||
optionName: "",
|
||||
optionPictureAddress: "",
|
||||
stem: state.questions[0].inputV,
|
||||
stemId: 0,
|
||||
updateTime: "",
|
||||
updateUser: 0,
|
||||
};
|
||||
api
|
||||
.createOptionMessage(obj)
|
||||
.then((res) => {
|
||||
console.log("创建成功", res);
|
||||
message.success("创建成功");
|
||||
ctx.emit("getData",state.creVote);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
let obj = {
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionDto: [
|
||||
{
|
||||
optionId: 0,
|
||||
optionName: "",
|
||||
optionPictureAddress: "",
|
||||
},
|
||||
],
|
||||
stemName: "",
|
||||
updateTime: "",
|
||||
updateUser: 0,
|
||||
voteStemId: 0,
|
||||
};
|
||||
api
|
||||
.createOptionMessage(obj)
|
||||
.then((res) => {
|
||||
console.log("创建成功", res);
|
||||
message.success("创建成功");
|
||||
ctx.emit("getData", state.creVote);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
|
||||
Reference in New Issue
Block a user