mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
feat:创建题干接口
This commit is contained in:
@@ -167,27 +167,46 @@ export default {
|
||||
// return message.info("请输入选项");
|
||||
// }
|
||||
console.log(state.questions[0].inputV);
|
||||
let obj = {
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionDto: [
|
||||
{
|
||||
optionId: 0,
|
||||
optionName: "",
|
||||
optionPictureAddress: "",
|
||||
},
|
||||
],
|
||||
stemName: "",
|
||||
updateTime: "",
|
||||
updateUser: 0,
|
||||
voteStemId: 0,
|
||||
};
|
||||
let obj = [
|
||||
{
|
||||
ascriptionId: 0,
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionDetailList: [
|
||||
{
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionId: 0,
|
||||
optionName: "",
|
||||
optionOrderNum: "",
|
||||
optionPictureAddress: "",
|
||||
stem: "",
|
||||
updateTime: "",
|
||||
updateUser: 0,
|
||||
voteStemId: 0,
|
||||
},
|
||||
],
|
||||
orderNumber: "",
|
||||
updateTime: "",
|
||||
updateUser: 0,
|
||||
voteStemFlag: "",
|
||||
voteStemId: 0,
|
||||
voteStemName: "",
|
||||
},
|
||||
];
|
||||
api
|
||||
.createOptionMessage(obj)
|
||||
.then((res) => {
|
||||
console.log("创建成功", res);
|
||||
console.log('res.data.data[0].ascriptionId',res.data.data[0].ascriptionId);
|
||||
console.log('res.data.data[0].voteStemId',res.data.data[0].voteStemId);
|
||||
message.success("创建成功");
|
||||
ctx.emit("getData", state.creVote);
|
||||
let stemData = {
|
||||
creVote: state.creVote,
|
||||
ascriptionId: res.data.data[0].ascriptionId,
|
||||
voteStemId:res.data.data[0].voteStemId
|
||||
};
|
||||
ctx.emit("getData", stemData);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user