mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 20:36:45 +08:00
fix:修改投票信息获取接口问题
This commit is contained in:
@@ -82,7 +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 = (voteID) => http.post(`/vote/queryVoteDetailById?voteId=${voteID}`)
|
||||||
|
|
||||||
// 测试方法
|
// 测试方法
|
||||||
// import * as api from '../../api/index'
|
// import * as api from '../../api/index'
|
||||||
|
|||||||
@@ -1,83 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-drawer
|
<a-drawer :visible="addvoteVisible" class="drawerStyle addvoteDrawer" width="80%" title="添加投票" placement="right"
|
||||||
:visible="addvoteVisible"
|
@after-visible-change="afterVisibleChange">
|
||||||
class="drawerStyle addvoteDrawer"
|
|
||||||
width="80%"
|
|
||||||
title="添加投票"
|
|
||||||
placement="right"
|
|
||||||
@after-visible-change="afterVisibleChange"
|
|
||||||
>
|
|
||||||
<div class="drawerMain">
|
<div class="drawerMain">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div v-if="edit" class="headerTitle">编辑投票</div>
|
<div v-if="edit" class="headerTitle">编辑投票</div>
|
||||||
<div v-else class="headerTitle">添加投票</div>
|
<div v-else 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="contentMain">
|
<div class="contentMain">
|
||||||
<div class="main_left">
|
<div class="main_left">
|
||||||
<div class="main_item">
|
<div class="main_item">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<div class="sign">
|
<div class="sign">
|
||||||
<img
|
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
|
||||||
src="@/assets/images/coursewareManage/asterisk.png"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<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="inputV1" style="width: 424px; height: 32px" placeholder="请输入投票名称"
|
||||||
v-model:value="inputV1"
|
maxlength="20" />
|
||||||
style="width: 424px; height: 32px"
|
|
||||||
placeholder="请输入投票名称"
|
|
||||||
maxlength="20"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_item">
|
<div class="main_item">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<div class="sign">
|
<div class="sign">
|
||||||
<img
|
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
|
||||||
src="@/assets/images/coursewareManage/asterisk.png"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<span>创建投票:</span>
|
<span>创建投票:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<button
|
<button class="xkbtn" @click="showDrawerCreVote">
|
||||||
class="xkbtn"
|
{{ ballotId ? "编辑" : "添加" }}投票
|
||||||
|
|
||||||
@click="showDrawerCreVote"
|
|
||||||
>
|
|
||||||
{{ ballotId ? "编辑" : "添加" }}投票
|
|
||||||
|
|
||||||
</button>
|
</button>
|
||||||
<div v-if = "ballotId>0">
|
<div v-if="ballotId > 0">
|
||||||
<a-tag closable color="processing" @close="log">
|
<a-tag closable color="processing" @close="log">
|
||||||
<span style="font-size:14px;line-height: 33px;" >删除投票</span>
|
<span style="font-size:14px;line-height: 33px;">删除投票</span>
|
||||||
</a-tag></div>
|
</a-tag>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<CreateVote
|
<CreateVote v-model:createVoteVisible="createVoteVisible" v-model:ballotId="ballotId"
|
||||||
v-model:createVoteVisible="createVoteVisible"
|
v-model:editChild="editChild" />
|
||||||
v-model:ballotId="ballotId"
|
</div>
|
||||||
v-model:editChild="editChild"
|
<button class="xkbtn" :style="{ display: creVote ? 'block' : 'none' }" @click="showDrawerCreVote">
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="xkbtn"
|
|
||||||
:style="{ display: creVote ? 'block' : 'none' }"
|
|
||||||
@click="showDrawerCreVote"
|
|
||||||
>
|
|
||||||
编辑投票
|
编辑投票
|
||||||
</button>
|
</button>
|
||||||
<div :style="{ display: creVote ? 'block' : 'none' }">
|
<div :style="{ display: creVote ? 'block' : 'none' }">
|
||||||
<div class="fileTigan">
|
<div class="fileTigan">
|
||||||
<span style="color: #388be1">{{ballotName}}</span>
|
<span style="color: #388be1">{{ ballotName }}</span>
|
||||||
<div class="delBox" @click="dleVoteStem()"></div>
|
<div class="delBox" @click="dleVoteStem()"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -85,11 +56,7 @@
|
|||||||
|
|
||||||
<!-- 创建投票侧弹窗 -->
|
<!-- 创建投票侧弹窗 -->
|
||||||
<div>
|
<div>
|
||||||
<create-vote
|
<create-vote v-model:crevoteVisible="crevotevisible" @getData="getStemId" v-model:ballotId="ballotId" />
|
||||||
v-model:crevoteVisible="crevotevisible"
|
|
||||||
@getData="getStemId"
|
|
||||||
v-model:ballotId="ballotId"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 创建投票侧弹窗 -->
|
<!-- 创建投票侧弹窗 -->
|
||||||
</div>
|
</div>
|
||||||
@@ -98,11 +65,7 @@
|
|||||||
<span style="margin-right: 3px">起止时间:</span>
|
<span style="margin-right: 3px">起止时间:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-range-picker
|
<a-range-picker style="width: 424px" v-model:value="time" :placeholder="[' 开始时间', ' 结束时间']" />
|
||||||
style="width: 424px"
|
|
||||||
v-model:value="time"
|
|
||||||
:placeholder="[' 开始时间', ' 结束时间']"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_item">
|
<div class="main_item">
|
||||||
@@ -110,15 +73,12 @@
|
|||||||
<span style="margin-right: 3px">基础投票数:</span>
|
<span style="margin-right: 3px">基础投票数:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-upload
|
<a-upload @change="handleChange" :multiple="true" :max-count="1" action="/manageApi/vote/baseVoteupload"
|
||||||
@change="handleChange"
|
v-model:file-list="fileList">
|
||||||
:multiple="true"
|
<button class="xkbtn">点击上传</button></a-upload>
|
||||||
:max-count="1"
|
<div v-if="voteCount > 0"><a-tag color="processing"> <span style="font-size:14px;line-height: 33px;">{{
|
||||||
action="/manageApi/vote/baseVoteupload"
|
voteCount
|
||||||
v-model:file-list="fileList"
|
}}票</span></a-tag></div>
|
||||||
>
|
|
||||||
<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>
|
</div>
|
||||||
<div class="main_item" style="margin-top: -25px">
|
<div class="main_item" style="margin-top: -25px">
|
||||||
@@ -132,12 +92,7 @@
|
|||||||
<span style="margin-right: 3px">投票说明:</span>
|
<span style="margin-right: 3px">投票说明:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="textarea">
|
<div class="textarea">
|
||||||
<a-textarea
|
<a-textarea v-model:value="textV1" placeholder="请输入投票说明" allow-clear maxlength="150" />
|
||||||
v-model:value="textV1"
|
|
||||||
placeholder="请输入投票说明"
|
|
||||||
allow-clear
|
|
||||||
maxlength="150"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -150,7 +105,7 @@
|
|||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs} from "vue";
|
import { reactive, toRefs } from "vue";
|
||||||
import CreateVote from "./CreateVote.vue";
|
import CreateVote from "./CreateVote.vue";
|
||||||
import * as api from "../../api/indexVote";
|
import * as api from "../../api/indexVote";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
@@ -206,7 +161,7 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
projectTemplateId:{
|
projectTemplateId: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
}
|
}
|
||||||
@@ -219,101 +174,101 @@ export default {
|
|||||||
textV1: "",
|
textV1: "",
|
||||||
createVoteVisible: false,
|
createVoteVisible: false,
|
||||||
time: undefined,
|
time: undefined,
|
||||||
startTime:"",
|
startTime: "",
|
||||||
endTime:"",
|
endTime: "",
|
||||||
basevote: "",
|
basevote: "",
|
||||||
ascriptionId: "",
|
ascriptionId: "",
|
||||||
voteStemId: null,
|
voteStemId: null,
|
||||||
EditVoteId:"",
|
EditVoteId: "",
|
||||||
voteStemName:"",
|
voteStemName: "",
|
||||||
ballotName: "",
|
ballotName: "",
|
||||||
editStem: false, //编辑状态
|
editStem: false, //编辑状态
|
||||||
ballotId: 0, //题干id
|
ballotId: 0, //题干id
|
||||||
optionId: "", //删除,修改选项id
|
optionId: "", //删除,修改选项id
|
||||||
addStemVisible:false, //
|
addStemVisible: false, //
|
||||||
editChild:false,
|
editChild: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
voteCount:null,
|
voteCount: null,
|
||||||
projectTemplateId:null,
|
projectTemplateId: null,
|
||||||
|
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
state.inputV1 = "",
|
state.inputV1 = "",
|
||||||
state.textV1 = "",
|
state.textV1 = "",
|
||||||
state.time = undefined,
|
state.time = undefined,
|
||||||
state.basevote = "",
|
state.basevote = "",
|
||||||
state.ballotId ="",
|
state.ballotId = "",
|
||||||
ctx.emit("update:addvoteVisible", false);
|
ctx.emit("update:addvoteVisible", false);
|
||||||
ctx.emit("update:edit", false);
|
ctx.emit("update:edit", false);
|
||||||
};
|
};
|
||||||
const afterVisibleChange = (bool) => {
|
const afterVisibleChange = (bool) => {
|
||||||
if(props.edit&&bool){
|
if (props.edit && bool) {
|
||||||
queryVoteInfo();
|
queryVoteInfo();
|
||||||
}
|
}
|
||||||
state.projectTemplateId = props.projectTemplateId;
|
state.projectTemplateId = props.projectTemplateId;
|
||||||
console.log("projectTemplateId visible====",state.projectTemplateId);
|
console.log("projectTemplateId visible====", state.projectTemplateId);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const showDrawerCreVote = () => {
|
const showDrawerCreVote = () => {
|
||||||
state.createVoteVisible = true;
|
state.createVoteVisible = true;
|
||||||
state.editChild = props.edit;
|
state.editChild = props.edit;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleChange = info => {
|
const handleChange = info => {
|
||||||
let resFileList = [...info.fileList];
|
let resFileList = [...info.fileList];
|
||||||
|
|
||||||
|
|
||||||
resFileList.map(file => {
|
resFileList.map(file => {
|
||||||
if (file.response) {
|
if (file.response) {
|
||||||
// Component will show file.url as link
|
// Component will show file.url as link
|
||||||
file.url = file.response.url;
|
file.url = file.response.url;
|
||||||
console.log("file========",file);
|
console.log("file========", file);
|
||||||
console.log("file========",file.response);
|
console.log("file========", file.response);
|
||||||
state.voteCount = file.response.data;
|
state.voteCount = file.response.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
//fileList.value = resFileList;
|
//fileList.value = resFileList;
|
||||||
};
|
};
|
||||||
|
|
||||||
//删除题干信息接口
|
//删除题干信息接口
|
||||||
const dleVoteStem = () => {
|
const dleVoteStem = () => {
|
||||||
api.deleteVoteStem({voteStemId:state.ballotId})
|
api.deleteVoteStem({ voteStemId: state.ballotId })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success('删除题干信息成功')
|
message.success('删除题干信息成功')
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//根据投票id获取投票信息
|
//根据投票id获取投票信息
|
||||||
const queryVoteInfo = ()=>{
|
const queryVoteInfo = () => {
|
||||||
|
|
||||||
api.queryVoteDetailById({voteId:props.EditVoteId})
|
api.queryVoteDetailById(props.EditVoteId)
|
||||||
.then((res)=>{
|
.then((res) => {
|
||||||
console.log('获取投票信息成功',res);
|
console.log('获取投票信息成功', res);
|
||||||
state.inputV1 = res.data.data.voteName;
|
state.inputV1 = res.data.data.voteName;
|
||||||
state.textV1 = res.data.data.voteExplain;
|
state.textV1 = res.data.data.voteExplain;
|
||||||
state.baseVote = res.data.data.baseVote;
|
state.baseVote = res.data.data.baseVote;
|
||||||
state.ascriptionId = res.data.data.ascriptionId;
|
state.ascriptionId = res.data.data.ascriptionId;
|
||||||
state.ballotId = res.data.data.ballotId;
|
state.ballotId = res.data.data.ballotId;
|
||||||
state.time = [
|
state.time = [
|
||||||
dayjs(res.data.data.voteStartTime, "YYYY-MM-DD"),
|
dayjs(res.data.data.voteStartTime, "YYYY-MM-DD"),
|
||||||
dayjs(res.data.data.voteEndTime, "YYYY-MM-DD"),
|
dayjs(res.data.data.voteEndTime, "YYYY-MM-DD"),
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
.catch((err)=>{
|
.catch((err) => {
|
||||||
console.log('获取投票信息失败',err);
|
console.log('获取投票信息失败', err);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
const updateToTask =(res)=>{
|
const updateToTask = (res) => {
|
||||||
console.log("props.isLevel=====",props.isLevel);
|
console.log("props.isLevel=====", props.isLevel);
|
||||||
if(props.isLevel ==1){
|
if (props.isLevel == 1) {
|
||||||
RouterEditTask({
|
RouterEditTask({
|
||||||
chapterId: props.isactive,
|
chapterId: props.isactive,
|
||||||
courseId: res.data.data.voteId,
|
courseId: res.data.data.voteId,
|
||||||
@@ -325,15 +280,15 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
//message.success(`${props.edit ? '编辑' : '新增'}关卡任务成功`)
|
//message.success(`${props.edit ? '编辑' : '新增'}关卡任务成功`)
|
||||||
ctx.emit("changeData", false);
|
ctx.emit("changeData", false);
|
||||||
state.addLoading = false;
|
state.addLoading = false;
|
||||||
})
|
})
|
||||||
.catch(( ) => {
|
.catch(() => {
|
||||||
//message.error(`${props.edit ? '编辑' : '新增'}关卡任务失败`)
|
//message.error(`${props.edit ? '编辑' : '新增'}关卡任务失败`)
|
||||||
});
|
});
|
||||||
}else if(props.isLevel ==2){
|
} else if (props.isLevel == 2) {
|
||||||
apiTask
|
apiTask
|
||||||
.addTask({
|
.addTask({
|
||||||
courseId:res.data.data.voteId,
|
courseId: res.data.data.voteId,
|
||||||
name: res.data.data.voteName,
|
name: res.data.data.voteName,
|
||||||
projectId: props.projectId,
|
projectId: props.projectId,
|
||||||
projectTaskId: props.projectTaskId || 0,
|
projectTaskId: props.projectTaskId || 0,
|
||||||
@@ -342,13 +297,13 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
//message.success(`${props.edit ? '编辑' : '新增'}阶段任务成功`)
|
//message.success(`${props.edit ? '编辑' : '新增'}阶段任务成功`)
|
||||||
ctx.emit("changeData", false);
|
ctx.emit("changeData", false);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
////message.error(`${props.edit ? '编辑' : '新增'}阶段任务失败`)
|
////message.error(`${props.edit ? '编辑' : '新增'}阶段任务失败`)
|
||||||
});
|
});
|
||||||
}else if (props.isLevel == 3) {
|
} else if (props.isLevel == 3) {
|
||||||
|
|
||||||
addTempTask({
|
addTempTask({
|
||||||
courseId: res.data.data.voteId,
|
courseId: res.data.data.voteId,
|
||||||
name: res.data.data.voteName,
|
name: res.data.data.voteName,
|
||||||
@@ -371,7 +326,7 @@ export default {
|
|||||||
if (!state.inputV1) {
|
if (!state.inputV1) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
return message.info("请输入投票名称");
|
return message.info("请输入投票名称");
|
||||||
}
|
}
|
||||||
if (!state.ballotId) {
|
if (!state.ballotId) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
return message.info("请创建题干信息");
|
return message.info("请创建题干信息");
|
||||||
@@ -380,50 +335,50 @@ export default {
|
|||||||
if (state.basevote == "") {
|
if (state.basevote == "") {
|
||||||
state.basevote = 1;
|
state.basevote = 1;
|
||||||
}
|
}
|
||||||
if(state.time != undefined){
|
if (state.time != undefined) {
|
||||||
state.startTime = dayjs(state.time[0]).format("YYYY-MM-DD");
|
state.startTime = dayjs(state.time[0]).format("YYYY-MM-DD");
|
||||||
state.endTime = dayjs(state.time[1]).format("YYYY-MM-DD");
|
state.endTime = dayjs(state.time[1]).format("YYYY-MM-DD");
|
||||||
}
|
}
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
voteId: props.edit?props.EditVoteId : 0,
|
voteId: props.edit ? props.EditVoteId : 0,
|
||||||
voteName: state.inputV1,
|
voteName: state.inputV1,
|
||||||
voteStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
|
voteStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
|
||||||
voteEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"),
|
voteEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"),
|
||||||
ballotId: state.ballotId,
|
ballotId: state.ballotId,
|
||||||
baseVote: state.basevote,
|
baseVote: state.basevote,
|
||||||
voteExplain: state.textV1,
|
voteExplain: state.textV1,
|
||||||
|
|
||||||
}
|
}
|
||||||
if(props.edit){
|
if (props.edit) {
|
||||||
api
|
api
|
||||||
.editVote(obj)
|
.editVote(obj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("updte======");
|
console.log("updte======");
|
||||||
updateToTask(res);
|
updateToTask(res);
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.success("修改投票信息成功")
|
message.success("修改投票信息成功")
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.error("修改投票信息失败")
|
message.error("修改投票信息失败")
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
api
|
api
|
||||||
.createVote(obj)
|
.createVote(obj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
updateToTask(res);
|
updateToTask(res);
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.success("创建投票信息成功")
|
message.success("创建投票信息成功")
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.error("创建投票信息失败")
|
message.error("创建投票信息失败")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
const queryStem = () => {
|
const queryStem = () => {
|
||||||
state.addStemVisible = true;
|
state.addStemVisible = true;
|
||||||
@@ -432,7 +387,7 @@ export default {
|
|||||||
state.addStemVisible = false;
|
state.addStemVisible = false;
|
||||||
};
|
};
|
||||||
const log = e => {
|
const log = e => {
|
||||||
state.ballotId=null;
|
state.ballotId = null;
|
||||||
console.log(e);
|
console.log(e);
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
@@ -456,13 +411,16 @@ export default {
|
|||||||
.ant-modal {
|
.ant-modal {
|
||||||
width: 424px !important;
|
width: 424px !important;
|
||||||
height: 258px !important;
|
height: 258px !important;
|
||||||
|
|
||||||
.ant-modal-content {
|
.ant-modal-content {
|
||||||
width: 424px !important;
|
width: 424px !important;
|
||||||
height: 258px !important;
|
height: 258px !important;
|
||||||
|
|
||||||
.ant-modal-body {
|
.ant-modal-body {
|
||||||
width: 424px !important;
|
width: 424px !important;
|
||||||
height: 258px !important;
|
height: 258px !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|
||||||
.delete {
|
.delete {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
width: 424px;
|
width: 424px;
|
||||||
@@ -470,24 +428,26 @@ export default {
|
|||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
.del_header {
|
.del_header {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: calc(100%);
|
width: calc(100%);
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background: linear-gradient(
|
background: linear-gradient(rgba(78, 166, 255, 0.2) 0%,
|
||||||
rgba(78, 166, 255, 0.2) 0%,
|
rgba(78, 166, 255, 0) 100%);
|
||||||
rgba(78, 166, 255, 0) 100%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.del_main {
|
.del_main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-left: 26px;
|
padding-left: 26px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
@@ -495,6 +455,7 @@ export default {
|
|||||||
background-image: url(@/assets/images/coursewareManage/QR.png);
|
background-image: url(@/assets/images/coursewareManage/QR.png);
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close_exit {
|
.close_exit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 42px;
|
right: 42px;
|
||||||
@@ -505,6 +466,7 @@ export default {
|
|||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
.body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 34px auto 56px auto;
|
margin: 34px auto 56px auto;
|
||||||
@@ -513,6 +475,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.back {
|
.back {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
@@ -521,10 +484,12 @@ export default {
|
|||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.del_btnbox {
|
.del_btnbox {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 30px auto;
|
margin: 30px auto;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.del_btn {
|
.del_btn {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -535,17 +500,20 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.btnText {
|
.btnText {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn1 {
|
.btn1 {
|
||||||
border: 1px solid rgba(64, 158, 255, 1);
|
border: 1px solid rgba(64, 158, 255, 1);
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
margin-right: 14px;
|
margin-right: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn2 {
|
.btn2 {
|
||||||
background-color: #4ea6ff;
|
background-color: #4ea6ff;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
@@ -557,9 +525,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-table-striped :deep(.table-striped) td {
|
.ant-table-striped :deep(.table-striped) td {
|
||||||
background-color: #fafafa !important;
|
background-color: #fafafa !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addvoteDrawer {
|
.addvoteDrawer {
|
||||||
.drawerMain {
|
.drawerMain {
|
||||||
.header {
|
.header {
|
||||||
@@ -569,6 +539,7 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
.headerTitle {
|
.headerTitle {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -577,31 +548,38 @@ export default {
|
|||||||
margin-left: 24px;
|
margin-left: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentMain {
|
.contentMain {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.main_left {
|
.main_left {
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
border-right: 1px solid #e8e8e8;
|
border-right: 1px solid #e8e8e8;
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
|
|
||||||
.main_item {
|
.main_item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
|
|
||||||
.signbox {
|
.signbox {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.sign {
|
.sign {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnbox {
|
.btnbox {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.xkbtn {
|
.xkbtn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 130px;
|
width: 130px;
|
||||||
@@ -613,14 +591,17 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fileTigan {
|
.fileTigan {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
background-color: rgba(42, 103, 209, 0.4);
|
background-color: rgba(42, 103, 209, 0.4);
|
||||||
|
|
||||||
span {
|
span {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delBox {
|
.delBox {
|
||||||
width: 13px;
|
width: 13px;
|
||||||
height: 13px;
|
height: 13px;
|
||||||
@@ -631,28 +612,34 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main_item2 {
|
.main_item2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
|
|
||||||
.signbox {
|
.signbox {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.sign {
|
.sign {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.kqszbox {
|
.kqszbox {
|
||||||
.qdqtbox {
|
.qdqtbox {
|
||||||
margin-left: 56px;
|
margin-left: 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setbox {
|
.setbox {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
|
||||||
.timerbox {
|
.timerbox {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
margin-right: 32px;
|
margin-right: 32px;
|
||||||
@@ -662,10 +649,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnbox2 {
|
.btnbox2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
||||||
.xkbtn {
|
.xkbtn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 130px;
|
width: 130px;
|
||||||
@@ -682,6 +671,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main_btns {
|
.main_btns {
|
||||||
height: 72px;
|
height: 72px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -691,6 +681,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||||
|
|
||||||
.btn1 {
|
.btn1 {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -700,6 +691,7 @@ export default {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn2 {
|
.btn2 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
|||||||
Reference in New Issue
Block a user