mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
fix:修改投票信息不显示问题
This commit is contained in:
@@ -74,12 +74,7 @@ export const deleteVoteStemOption = (obj) => http.post('/vote/deleteVoteStemOpti
|
|||||||
export const editVote = (obj) => http.post('/vote/editVote', obj)
|
export const editVote = (obj) => http.post('/vote/editVote', obj)
|
||||||
|
|
||||||
//根据题干ID获取题干信息
|
//根据题干ID获取题干信息
|
||||||
export const queryStemByStemId = (obj) => http.post('/vote/queryStemByStemId', obj,{
|
export const queryStemByStemId = (ballotId) => http.post(`/vote/queryStemByStemId?ballotId=${ballotId}`)
|
||||||
headers: {
|
|
||||||
'token': '123',
|
|
||||||
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
//修改题干信息接口
|
//修改题干信息接口
|
||||||
export const updateStemMessage = (obj) => http.post('/vote/updateStemMessage', obj);
|
export const updateStemMessage = (obj) => http.post('/vote/updateStemMessage', obj);
|
||||||
@@ -87,12 +82,7 @@ export const updateStemMessage = (obj) => http.post('/vote/updateStemMessage', o
|
|||||||
//上传组件
|
//上传组件
|
||||||
export const fileUp = (obj) => http.post('/file/upload', obj, qs.stringify({ obj }));
|
export const fileUp = (obj) => http.post('/file/upload', obj, qs.stringify({ obj }));
|
||||||
//根据题干ID获取投票任务
|
//根据题干ID获取投票任务
|
||||||
export const queryVoteDetailById = (obj) => http.post('/vote/queryVoteDetailById', obj,{
|
export const queryVoteDetailById = (obj) => http.post('/vote/queryVoteDetailById', obj)
|
||||||
headers: {
|
|
||||||
'token': '123',
|
|
||||||
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// 测试方法
|
// 测试方法
|
||||||
// import * as api from '../../api/index'
|
// import * as api from '../../api/index'
|
||||||
|
|||||||
@@ -1,20 +1,12 @@
|
|||||||
<!-- 评估管理-创建评估页面 -->
|
<!-- 评估管理-创建评估页面 -->
|
||||||
<template>
|
<template>
|
||||||
<a-drawer
|
<a-drawer :visible="createVoteVisible" class="drawerStyle createvoteDrawer" width="100%" placement="right"
|
||||||
:visible="createVoteVisible"
|
@after-visible-change="afterVisibleChange">
|
||||||
class="drawerStyle createvoteDrawer"
|
|
||||||
width="100%"
|
|
||||||
placement="right"
|
|
||||||
@after-visible-change="afterVisibleChange"
|
|
||||||
>
|
|
||||||
<div class="researchadd">
|
<div class="researchadd">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="headerTitle">创建投票</div>
|
<div class="headerTitle">创建投票</div>
|
||||||
<img
|
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
|
||||||
style="width: 29px; height: 29px; cursor: pointer"
|
@click="closeDrawer" />
|
||||||
src="../../assets/images/basicinfo/close.png"
|
|
||||||
@click="closeDrawer"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="main_left">
|
<div class="main_left">
|
||||||
<div class="main_item">
|
<div class="main_item">
|
||||||
@@ -25,12 +17,8 @@
|
|||||||
<span style="margin-right: 3px">投票名称:</span>
|
<span style="margin-right: 3px">投票名称:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-input
|
<a-input v-model:value="ballotName" style="width: 424px; height: 32px" placeholder="请输入任务名称"
|
||||||
v-model:value="ballotName"
|
maxlength="20" />
|
||||||
style="width: 424px; height: 32px"
|
|
||||||
placeholder="请输入任务名称"
|
|
||||||
maxlength="20"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_item">
|
<div class="main_item">
|
||||||
@@ -52,29 +40,20 @@
|
|||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<a-button
|
<a-button type="primary" style="
|
||||||
type="primary"
|
|
||||||
style="
|
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: #409eff;
|
background-color: #409eff;
|
||||||
"
|
" @click="handleSave">
|
||||||
@click="handleSave"
|
|
||||||
>
|
|
||||||
保存
|
保存
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button type="primary" ghost style="
|
||||||
type="primary"
|
|
||||||
ghost
|
|
||||||
style="
|
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
"
|
" @click="handleAllCancel">
|
||||||
@click="handleAllCancel"
|
|
||||||
>
|
|
||||||
取消
|
取消
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +109,7 @@ export default {
|
|||||||
});
|
});
|
||||||
// const router = useRouter();
|
// const router = useRouter();
|
||||||
const afterVisibleChange = () => {
|
const afterVisibleChange = () => {
|
||||||
if(state.ballotId>0){
|
if (props.ballotId) {
|
||||||
getInfoDate();
|
getInfoDate();
|
||||||
} else {
|
} else {
|
||||||
handleTypes();
|
handleTypes();
|
||||||
@@ -146,10 +125,10 @@ export default {
|
|||||||
// 详情
|
// 详情
|
||||||
const getInfoDate = async () => {
|
const getInfoDate = async () => {
|
||||||
console.log("props.editChild=====", props.editChild);
|
console.log("props.editChild=====", props.editChild);
|
||||||
if (props.ballotId>0) {
|
if (props.ballotId) {
|
||||||
console.log("props.editChild2=====", props.editChild);
|
console.log("props.editChild2=====", props.editChild);
|
||||||
let res = await api
|
let res = await api
|
||||||
.queryStemByStemId({ballotId:props.ballotId})
|
.queryStemByStemId(props.ballotId)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user