mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
feat:删除投票信息接口 获取题干信息接口
This commit is contained in:
@@ -157,6 +157,7 @@ export default {
|
||||
console.log("state", bool);
|
||||
};
|
||||
|
||||
//创建题干接口
|
||||
const createQueTit = () => {
|
||||
if (!state.questions[0].inputV) {
|
||||
message.destroy();
|
||||
@@ -170,11 +171,9 @@ export default {
|
||||
let obj = [
|
||||
{
|
||||
ascriptionId: 0,
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionDetailList: [
|
||||
{
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
optionId: 0,
|
||||
optionName: "",
|
||||
@@ -201,6 +200,20 @@ export default {
|
||||
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("创建成功");
|
||||
//获取题干信息
|
||||
let objstem = {
|
||||
stemId: res.data.data[0].ascriptionId,
|
||||
ascriptionId: res.data.data[0].voteStemId,
|
||||
}
|
||||
api
|
||||
.queryStemByStemId(objstem)
|
||||
.then((res) => {
|
||||
console.log("获取成功", res);
|
||||
message.success("获取成功");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
let stemData = {
|
||||
creVote: state.creVote,
|
||||
ascriptionId: res.data.data[0].ascriptionId,
|
||||
|
||||
Reference in New Issue
Block a user