feat:编辑测评选择测评选项可以回显,修复删除后tag没清除,修改时间的传参;管理的催促提示修改

This commit is contained in:
Ggysh-7
2022-11-25 21:54:57 +08:00
parent 586d06148f
commit 142e923d05
10 changed files with 202 additions and 453 deletions

View File

@@ -31,8 +31,8 @@ http.interceptors.request.use(
console.log("当前请求页面无token,请执行操作!!!");
// 此处测试默认配置token
config.headers.token = "123456";
// config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkzMDA4MDksImV4cCI6MTY2OTMwODAwOSwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.bb3e0e031513761003d5c3bfeaf16e364bdf8fe7bc4cf691a05a74dc454afbfb";
// config.headers.token = "123456";
config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkzODQwMTIsImV4cCI6MTY2OTM5MTIxMiwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjAxNTU1M0RELTQ0NUUtNjlENC0zNTFGLUREOUExQTU2NDIwRSIsInVJZCI6Ijk2NTM0MTk5OTY0MzIzNDMwNCIsInBlcm1pc3Npb24iOiIifQ==.654058829fa6a65bf1477f6fc78cc6009304be484c9c49c0944147930c341f6c"
}
return config;
},

View File

@@ -57,6 +57,7 @@
/>
<div class="pa">
<a-pagination
v-if="tableDataTotal>10"
showSizeChanger="true"
showQuickJumper="true"
hideOnSinglePage="true"
@@ -308,7 +309,9 @@ export default {
};
//重置案例信息
const resetCase = () => {
state.inputV1 = "";
state.inputV1 = ""
state.selectedRowKeys=[]
state.currentPage = 1
getAllCaseText();
};
return {
@@ -468,8 +471,6 @@ export default {
.pa {
left: 0;
width: 100%;
// height: 20px;
// background-color: red;
display: flex;
justify-content: center;
position: absolute;

View File

@@ -54,7 +54,7 @@
<span style="margin-left: 10px">
<a-tag
class="tag-style"
v-if="evaluationTypeName != ''"
v-if="evaluationTypeName !== ''"
:closable="true"
@close="delTag"
>{{ evaluationTypeName }}</a-tag
@@ -97,6 +97,7 @@
</div>
<EvList
v-model:EvalListVisible="EvalListVisible"
v-model:evaluationTypeName="evaluationTypeName"
@getEvListData="checkFinish"
/>
<!-- <div class="aeLoading" :style="{display:addLoading?'flex':'none'}">
@@ -113,7 +114,6 @@ import * as apitaskadd from "../../api/indexTaskadd";
import { message } from "ant-design-vue";
import { RouterEditTask } from "@/api/indexTask";
import dayjs from "dayjs";
// const router = useRouter();
export default {
name: "AddEval",
components: {
@@ -165,15 +165,16 @@ export default {
time: undefined,
EvalId: null,
//子传回来的参数
evaluationTypeId: 0,
evaluationTypeName: "",
evaluationTypeId: null,
evaluationTypeName: '',
description: "",
EvalListVisible: false,
// addLoading:false,
});
const checkFinish = (value)=> {
state.evaluationTypeId = value.quiz_kid
state.evaluationTypeName = value.title
state.evaluationTypeId = value.quiz_kid ? value.quiz_kid : null
state.evaluationTypeName = value.title ? value.title : ""
console.log(state.evaluationTypeId,'state.evaluationTypeId',state.evaluationTypeName,'state.evaluationTypeName');
}
const closeDrawer = () => {
ctx.emit("update:addevalVisible", false);
@@ -264,15 +265,17 @@ export default {
api
.queryEvaluationDetailById(objqi)
.then((res) => {
console.log(res,'获取到的信息');
message.destroy()
message.success("获取测评信息成功");
state.inputV1 = res.data.data.evaluationName
state.evaluationTypeName = res.data.data.evaluationTypeName
state.evaluationTypeId = res.data.data.evaluationTypeId;
state.time = [
state.time = res.data.data.evaluationStartTime ? [
dayjs(res.data.data.evaluationStartTime, "YYYY-MM-DD"),
dayjs(res.data.data.evaluationEndTime, "YYYY-MM-DD"),
];
] : undefined ;
state.description = res.data.data.evaluationExplain
})
.catch((err) => {
message.destroy()
@@ -298,12 +301,12 @@ export default {
}
let objei = {
evaluationName: state.inputV1,
evaluationEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"),
evaluationEndTime: state.time ? dayjs(state.time[1]).format("YYYY-MM-DD") : "",
evaluationId: props.edit ? Number(props.EditEvalId) : 0,
evaluationStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
evaluationStartTime: state.time ? dayjs(state.time[0]).format("YYYY-MM-DD") : "",
evaluationTypeId: state.evaluationTypeId,
evaluationTypeName: state.evaluationTypeName,
evaluationFlag: "",
evaluationFlag: state.description,
evaluationPictureAddress: "",
evaluationTag: "",
updateTime: "",
@@ -315,8 +318,7 @@ export default {
closeDrawer();
ctx.emit("changeData", false);
})
.catch((err) => {
console.log(err,'errrrrrrrrrrrrrrrrrrrrr');
.catch(() => {
});
}
//创建测评信息
@@ -331,11 +333,12 @@ export default {
}
let obj = {
evaluationName: state.inputV1,
evaluationEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"),
evaluationEndTime: state.time ? dayjs(state.time[1]).format("YYYY-MM-DD") : "",
evaluationId: props.evaluationId ,
evaluationStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
evaluationStartTime: state.time ? dayjs(state.time[0]).format("YYYY-MM-DD") : "",
evaluationTypeId: state.evaluationTypeId,
evaluationTypeName: state.evaluationTypeName,
evaluationExplain:state.description,
evaluationFlag: "",
evaluationPictureAddress: "",
evaluationTag: "",

View File

@@ -23,7 +23,7 @@
<div class="ipt_name">测评信息</div>
<div class="fi_input">
<a-input
v-model:value="value1"
v-model:value="inputV1"
style="width: 240px; height: 40px; border-radius: 8px"
placeholder="请输入项目名称"
/>
@@ -31,7 +31,7 @@
</div>
</div>
<div class="mi_btns">
<div class="btn btn1">
<div class="btn btn1" @click="searchList">
<div class="search"></div>
<div class="btnText">搜索</div>
</div>
@@ -52,13 +52,13 @@
/>
<div class="pa">
<a-pagination
v-if="total > 10"
v-if="tableDataTotal > 10"
showSizeChanger="true"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
:current="currentPage"
:total="total"
:total="tableDataTotal"
class="pagination"
@change="changePagination"
/>
@@ -73,7 +73,7 @@
</a-drawer>
</template>
<script>
import { reactive, toRefs } from "vue";
import { reactive, toRefs } from "vue";
import * as api from "../../api/indexEval";
export default {
name: "EvList",
@@ -96,7 +96,8 @@
currentPage: 1,
tableDataTotal: 0,
pageSize: 10,
vlue1:"",
inputV1:"",
searching:false,
evaluationTypeId:null,
evaluationTypeName:"",
tableData: [],
@@ -111,7 +112,7 @@
align: "center",
},
{
title: "title",
title: "课程名称",
width: "20%",
dataIndex: "title",
key: "title",
@@ -153,9 +154,13 @@
}
state.selectedRowKeys = selectedRowKeys
state.evListData = selectedRows[0] ? selectedRows[0] : []
console.log('state.evListData',state.evListData);
}
const closeDrawer = () => {
ctx.emit("update:EvalListVisible", false);
state.selectedRowKeys = []
state.evListData = {}
state.inputV1 = ""
};
const afterVisibleChange = (bol) => {
if ( bol == true ) {
@@ -169,12 +174,53 @@
const changePagination = (page) => {
state.currentPage = page;
};
//如果编辑情况会通过父亲传回来evaluationTypeId遍历出相同的那个选项 再将那个选项的key值赋给state.selectRowKeys
const getTableDataList = (tableData) => {
let data = tableData;
let array = [];
data.map((value) => {
let arrayKey = [];
if(props.evaluationTypeName != ""){
data.map((value,index) => {
let obj = {
key:index+1,
status:value.status,
quiz_code:value.quiz_code,
quiz_kid:value.quiz_kid,
title:value.title,
theme_desc:value.theme_desc,
quiz_price:value.quiz_price,
quiz_range:value.quiz_range,
};
array.push(obj)
if(obj.title == props.evaluationTypeName){
arrayKey.push(obj.key);
}
});
state.tableData = array;
state.selectedRowKeys = arrayKey;
}else if (state.searching){
data.map((value,index) => {
let obj = {
key:index+1,
status:value.status,
quiz_code:value.quiz_code,
quiz_kid:value.quiz_kid,
title:value.title,
theme_desc:value.theme_desc,
quiz_price:value.quiz_price,
quiz_range:value.quiz_range,
};
if(state.inputV1 == obj.title)
{
array.push(obj);
}
});
state.tableData = array;
}
else{
data.map((value,index) => {
let obj = {
key:index+1,
status:value.status,
quiz_code:value.quiz_code,
quiz_kid:value.quiz_kid,
@@ -186,13 +232,14 @@
array.push(obj);
});
state.tableData = array;
}
};
//获取测评列表
const getAllEvalText = ()=> {
let objael = {
"keyword": "",
"user_id": 0,
"user_id": 965341999643234304,
}
api
.choiceEvaluation(objael)
@@ -202,13 +249,16 @@
.catch(()=>{
})
}
//
const searchList = ()=> {
state.searching = true
getAllEvalText()
}
//重置测评列表
const resetData = ()=> {
state.currentPage = 1;
state.tableData = [];
state.selectedRowKeys = [];
state.evaluationTypeId = null;
state.evaluationTypeName = "";
state.evListData = {}
getAllEvalText();
}
return {
@@ -219,6 +269,7 @@
getTableDataList,
checkFinish,
changePagination,
searchList,
resetData,
};
},
@@ -384,8 +435,6 @@
.pa {
left: 0;
width: 100%;
// height: 20px;
// background-color: red;
display: flex;
justify-content: center;
position: absolute;

View File

@@ -58,7 +58,7 @@
<div class="btnss" style="margin-top: 20px">
<div class="btn btn1" style="margin-right: 20px" @click="godie">
<div class="img1"></div>
<div class="wz">催促学习</div>
<div class="wz">催促{{title}}</div>
</div>
<div class="btn btn2" @click="allStuOver">
<div class="wz">批量标注完成</div>
@@ -342,11 +342,14 @@ export default {
);
}
});
// state.tabledata = arr;
};
ListOpera();
const closeDrawer = () => {
ctx.emit("update:Fvisible", false);
state.name = ""
state.projectName = ""
state.selectedRowKeys = []
state.currentPage = 1
};
const afterVisibleChange = (bol) => {
if ( bol == true ) {
@@ -373,9 +376,9 @@ export default {
//催促学员学习
const godie = () => {
message.destroy()
message.success("催促学员成功")
message.success("催促"+props.title+"成功")
};
//清空所选
//表头清空
const clearLine = ()=> {
state.selectedRowKeys=[]
}
@@ -455,10 +458,11 @@ export default {
//重置任务列表
const resetTaskList = () => {
state.name = "";
state.projectName = "";
state.tabledata = [];
//getManageList();
state.name = ""
state.projectName = ""
state.selectedRowKeys = []
state.currentPage = 1
getManageList();
};

View File

@@ -64,7 +64,7 @@
style="margin-right: 20px; cursor: pointer"
>
<div class="img2"></div>
<div class="wz">催促考试</div>
<div class="wz">催促{{title}}</div>
</div>
<div class="btn btn2">
<div class="img1"></div>
@@ -72,14 +72,6 @@
</div>
</div>
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
<!-- <a-table
style="border: 1px solid #f2f6fe"
:columns="tableDataFunc()"
:data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false"
:scroll="{ x: 900 }"
:pagination="false"
/> -->
<div v-if="itemsType == 5">
<a-table
style="border: 1px solid #f2f6fe"
@@ -163,7 +155,6 @@ export default {
setup(props, ctx) {
const state = reactive({
name: null,
open: false,
CQvisible:false, //查看答卷抽屉
pageNo: 1,
pageSize: 10,
@@ -395,6 +386,10 @@ export default {
}
const closeDrawer = () => {
ctx.emit("update:TMvisible", false);
state.name = ""
state.currentPage = 1
state.projectName = ""
state.selectedRowKeys = []
};
const afterVisibleChange = (bol) => {
if ( bol == true ) {
@@ -408,7 +403,7 @@ export default {
//催促
const godie = () => {
message.destroy()
message.success("催促考试成功")
message.success("催促"+props.title+"成功")
};
//换页
const onChange = (pageNumber) => {
@@ -491,10 +486,11 @@ export default {
//重置任务列表
const resetTaskList = () => {
state.name = "";
state.projectName = "";
state.tabledata = [];
// getManageList();
state.name = ""
state.currentPage = 1
state.projectName = ""
state.selectedRowKeys = []
getManageList();
};
return {

View File

@@ -60,7 +60,7 @@
<div class="btnss" style="margin-top: 20px">
<div class="btn btn1" @click="godie" style="margin-right: 20px">
<div class="img1"></div>
<div class="wz">催促学习</div>
<div class="wz">催促{{title}}</div>
</div>
<div class="btn btn2">
<div class="img2"></div>
@@ -135,7 +135,6 @@ export default {
visible: props.Tvisible,
CVvisible:false, //查看投票抽屉
name: "",
open: false,
pageNo: 1,
pageSize: 10,
currentPage: 1,
@@ -344,6 +343,10 @@ export default {
ListOpera();
const closeDrawer = () => {
ctx.emit("update:Tvisible", false);
state.currentPage = 1
state.name = ""
state.projectName = ""
state.tabledata = []
};
const afterVisibleChange = (bol) => {
if ( bol == true ) {
@@ -356,11 +359,43 @@ export default {
//催促
const godie = () => {
message.destroy()
message.success("催促学习成功")
message.success("催促"+props.title+"成功")
};
const onChange = (pageNumber) => {
console.log("Page: ", pageNumber);
};
//渲染到列表中
const getTableDate = (tableData) => {
let data = tableData;
let array = [];
data.map((value, index) => {
if(props.itemsType ==12 ){
let obj = {
key: index+1,
workNum:"",
userName:value.useInfoBo.userName,
deptName:value.useInfoBo.deptName,
jobName:value.useInfoBo.jobName,
time:"",
status:"",
operation:"",
};
array.push(obj);
}else{
let obj = {
key: index+1,
workNum:"",
userName:value.userName,
deptName:value.deptName,
jobName:value.jobName,
time:"",
status:"",
};
array.push(obj);
}
});
state.tabledata = array;
};
//获取任务管理列表
const getManageList = () => {
let obj = {
@@ -376,10 +411,10 @@ export default {
.then((res) => {
state.pageNo = res.data.data.pageNo;
state.pageSize = res.data.data.pageSize;
for (let i = 0; i < res.data.data.rows.length; i++) {
state.tabledata.push(res.data.data.rows[i].userInfoBo);
}
ListOpera();
// for (let i = 0; i < res.data.data.rows.length; i++) {
// state.tabledata.push(res.data.data.rows[i].userInfoBo);
// }
getTableDate(res.data.data.rows)
})
.catch((err) => {
console.log(err,'sss');

View File

@@ -298,6 +298,9 @@ export default {
ListOpera();
const closeDrawer = () => {
ctx.emit("update:Wvisible", false);
state.name = ""
state.currentPage = 1
state.projectName = ""
};
const afterVisibleChange = (bol) => {
if ( bol == true ) {
@@ -319,7 +322,38 @@ export default {
const onChange = (pageNumber) => {
console.log("Page: ", pageNumber);
};
//渲染到列表中
const getTableDate = (tableData) => {
let data = tableData;
let array = [];
data.map((value, index) => {
if(props.itemsType ==12 ){
let obj = {
key: index+1,
workNum:"",
userName:value.useInfoBo.userName,
deptName:value.useInfoBo.deptName,
jobName:value.useInfoBo.jobName,
time:"",
status:"",
operation:"",
};
array.push(obj);
}else{
let obj = {
key: index+1,
workNum:"",
userName:value.userName,
deptName:value.deptName,
jobName:value.jobName,
time:"",
status:"",
};
array.push(obj);
}
});
state.tabledata = array;
};
//获取任务管理列表
const getManageList = () => {
let obj = {
@@ -335,10 +369,10 @@ export default {
.then((res) => {
state.pageNo = res.data.data.pageNo;
state.pageSize = res.data.data.pageSize;
state.pageSize = res.data.data.pageSize;
for (let i = 0; i < res.data.data.rows.length; i++) {
state.tabledata.push(res.data.data.rows[i].userInfoBo);
}
// for (let i = 0; i < res.data.data.rows.length; i++) {
// state.tabledata.push(res.data.data.rows[i].userInfoBo);
// }
getTableDate(res.data.data.rows)
})
.catch(() => {
});
@@ -377,10 +411,10 @@ export default {
//重置任务列表
const resetTaskList = () => {
state.name = "";
state.projectName = "";
state.tabledata = [];
// getManageList();
state.name = ""
state.currentPage = 1
state.projectName = ""
getManageList();
};
return {

View File

@@ -1348,7 +1348,7 @@ export default {
//在线抽屉
const showDrawerAddOnline = (id, eleId) => {
state.addonlinevisible = true;
state.EditWorkId = id;
state.EditOnlineId = id;
state.routerTaskId = eleId;
};
//面授抽屉
@@ -1360,12 +1360,11 @@ export default {
//案例抽屉
const showDrawerAddCase = (id, eleId) => {
state.addcasevisible = true;
state.EditWorkId = id;
state.EditCaseId = id;
state.routerTaskId = eleId;
};
// 作业抽屉
const showDrawerAddHomework = (id, eleId) => {
console.log("homework==============", id, state.isactive);
state.addhomeworkvisible = true;
state.EditWorkId = id;
state.routerTaskId = eleId;
@@ -1390,7 +1389,6 @@ export default {
};
//投票抽屉
const showDrawerAddVote = (id, eleId) => {
// state.addhomeworkvisible = true;
state.addvotevisible = true;
state.EditVoteId = id;
state.routerTaskId = eleId;
@@ -1432,10 +1430,6 @@ export default {
if (state.level[i].chapterId === id) {
let array = [];
state.chooseProjectList = JSON.stringify(state.level[i].taskList);
// console.log(
// "goggoo",
// Object.prototype.toString.call(state.chooseProjectList)
// );
state.level[i].taskList.forEach((element) => {
let obj = {
id: element.routerTaskId,
@@ -1465,7 +1459,6 @@ export default {
const getDetail = () => {
GetRouterDetail(state.routerId)
.then((res) => {
console.log("res.data.data.chapterList", res.data.data.chapterList);
//给level赋初始值
state.level = res.data.data.chapterList;
state.styTitle = res.data.data.routerInfo.name;
@@ -1526,7 +1519,6 @@ export default {
{
title: "姓名",
dataIndex: "name",
// width: "30%",
key: "name",
width: 60,
align: "left",

View File

@@ -10,19 +10,11 @@
@click="showCancel"
/>
</div>
<!-- @click="showModal" -->
<div class="btn btn3" @click="showModal()" style="margin-left: 19px">
<div class="search"></div>
<div class="btnText">添加阶段</div>
</div>
<div class="maincon" style="background-color: #fff">
<!-- <div
class="items"
:class="{ active: isActive == true }"
@click="changebgc"
v-for="item in level"
:key="item.id"
> -->
<draggable
v-model="level"
@@ -691,12 +683,6 @@
</div> -->
</div>
</div>
<!-- 编辑在线侧弹窗 -->
<div>
<edit-online v-model:editonlineVisible="editonlinevisible" />
</div>
<!-- 编辑在线侧弹窗 -->
</div>
</div>
</div>
@@ -1034,7 +1020,6 @@
<script>
import { reactive, toRefs, onMounted, onUnmounted, onUpdated } from "vue";
import AddOnline from "../../components/drawers/AddOnline.vue";
import EditOnline from "../../components/drawers/EditOnline.vue";
import AddFaceteach from "../../components/drawers/AddFaceteach.vue";
import AddCase from "../../components/drawers/AddCase.vue";
import AddHomework from "../../components/drawers/AddHomework.vue";
@@ -1055,50 +1040,11 @@ import { storage } from "../../api/storage";
import UnlockMode from "../../components/drawers/UnlockMode.vue";
// import * as api1 from "../../api/index1";
const drawercolumns = [
{
title: "项目名称",
dataIndex: "projectName",
key: "projectName",
width: 200,
// align: "center",
ellipsis: true,
// scopedSlots: { customRender: "action" }, //引入的插槽
// customRender: (text, record) => {
// console.log(text, record);
// return <span>{text.text}</span>;
// },
},
{
title: "项目经理",
dataIndex: "manager",
key: "manager",
width: 100,
align: "center",
},
{
title: "创建人",
dataIndex: "creater",
// width: "30%",
key: "creater",
width: 100,
align: "center",
},
{
title: "创建时间",
dataIndex: "time",
key: "time",
width: 180,
align: "center",
},
];
export default {
name: "TaskAdd",
components: {
draggable,
AddOnline,
EditOnline,
AddFaceteach,
AddCase,
AddHomework,
@@ -1136,45 +1082,11 @@ export default {
EditOnlineId: null, //要编辑的在线id
EditFaceTeach: null,
EditFaceId: null,
EditEvalId: null,
EditEvalId: null, //要编辑的测评id
EditInvistId: null,
EditVoteId: null, //编辑需要投票的id
ballotId: "", //编辑需要的题干id
projectTaskId: null, // 要编辑的具体任务id
projectNameList: [
{
id: 1,
value: "项目一",
label: "项目一",
},
{
id: 2,
value: "项目二",
label: "项目二",
},
{
id: 3,
value: "项目三",
label: "项目三",
},
{
id: 4,
value: "项目四",
label: "项目四",
},
],
projectNameList2: [
{
id: 1,
value: "删除任务",
label: "删除任务",
},
{
id: 2,
value: "移动任务到关卡",
label: "移动任务到关卡",
},
],
//阶段数据
level: [],
@@ -1182,93 +1094,12 @@ export default {
picUrl: null,
//任务数据
tableData: [],
drawertableData: [
{
key: 1,
projectName: "管理者进阶",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
children: [
{
key: "1-1",
projectName: "管理者进阶-腾飞班",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
children: [
{
key: "1-1-1",
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
],
},
],
},
{
key: 2,
projectName: "管理者进阶",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
children: [
{
key: "2-1",
projectName: "管理者进阶-腾飞班",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
children: [
{
key: "2-1-1",
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
],
},
],
},
{
key: 3,
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
{
key: 4,
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
{
key: 5,
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
{
key: "1-1-1",
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
],
currentPage: 1,
tableDataTotal: 100,
pageSize: 10,
addonlinevisible: false,
addfaceteachvisible: false,
addcasevisible: false,
editonlinevisible: false,
addhomeworkvisible: false,
addtestvisible: false,
addlivevisible: false,
@@ -1488,7 +1319,6 @@ export default {
<div class="opacation">
<span
onClick={() => {
state.editonlinevisible = true;
console.log(text, "编辑text");
}}
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
@@ -1600,8 +1430,7 @@ export default {
api
.deleteTask(obj)
.then((res) => {
console.log(res, "gggggggggggggggg");
// deleteVoteText();
console.log(res);
})
.catch((err) => {
console.log(err);
@@ -1850,7 +1679,6 @@ export default {
state.projectTaskId = eleId;
state.adddiscussvisible = true;
};
const showDrawerAddActive = (id, eleId) => {
state.addactivevisible = true;
state.EditActiveId = id;
@@ -1859,8 +1687,7 @@ export default {
};
const showDrawerAddEval = (id, eleId) => {
state.addevalvisible = true;
// state.EditEvalId = id;
state.evaluationId = id;
state.EditEvalId = id;
state.projectTaskId = eleId;
};
const showDrawerAddInvist = (id, eleId) => {
@@ -1869,7 +1696,6 @@ export default {
state.projectTaskId = eleId;
};
const showDrawerAddVote = (id, eleId) => {
state.addvotevisible = true;
state.EditVoteId = id;
state.projectTaskId = eleId;
@@ -1985,13 +1811,6 @@ export default {
message.warning("修改失败");
});
};
//打开测评的弹窗
const showEditEvalDrawer = (id, eleId) => {
state.addevalvisible = true;
state.projectTaskId = eleId;
state.EditEvalId = id;
};
//编辑的按钮
const decideType = (type, id, eleId) => {
state.edit = true;
@@ -2001,7 +1820,7 @@ export default {
} else if (type == "直播") {
showDrawerAddLive(id, eleId);
} else if (type == "测评") {
showEditEvalDrawer(id, eleId);
showDrawerAddEval(id, eleId);
} else if (type == "评估") {
showDrawerAddInvist(id, eleId);
} else if (type == "投票") {
@@ -2049,9 +1868,7 @@ export default {
tableDataFunc,
showModal,
closeModal,
// showDrawer,
afterVisibleChange,
drawercolumns,
onSelectChange,
showDrawerOnline,
showDrawerFaceteach,
@@ -2063,7 +1880,6 @@ export default {
showDrawerAddDiscuss,
showDrawerAddActive,
showDrawerAddEval,
showEditEvalDrawer,
showDrawerAddInvist,
showDrawerAddVote,
showConfirm,
@@ -2104,12 +1920,6 @@ export default {
</script>
<style lang="scss">
// .ant-input {
// border-radius: 8px;
// // height: 120%;
// width: 384px;
// height: 88px;
// }
.ConfirmModal {
.ant-modal {
width: 424px !important;
@@ -2128,10 +1938,6 @@ export default {
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
border-radius: 4px;
// position: absolute;
// left: 50%;
// top: 10%;
// transform: translate(-50%, -50%);
.del_header {
position: absolute;
width: calc(100%);
@@ -2174,7 +1980,6 @@ export default {
justify-content: center;
align-items: center;
flex-direction: column;
// background-color: red;
position: relative;
.back {
position: absolute;
@@ -2248,12 +2053,9 @@ export default {
.name {
width: 78%;
// background-color: lightcoral;
display: flex;
margin-top: 20px;
align-items: center;
//height: 40px;
// border: 1px solid black;
.namebox {
width: 120px;
display: flex;
@@ -2287,7 +2089,6 @@ export default {
left: 50%;
top: 50%;
height: 50px;
//margin-left: -5px;
margin-top: -25px;
border-left: 2px solid rgba(78, 166, 255, 1);
}
@@ -2300,16 +2101,12 @@ export default {
.in {
margin-left: 14px;
flex: 1;
// .ant-radio-wrapper {
// }
.ant-input-affix-wrapper {
width: 384px;
border-radius: 8px;
}
.ant-input {
border-radius: 8px;
// height: 120%;
//width: 384px;
height: 30px;
}
}
@@ -2327,7 +2124,6 @@ export default {
width: 549px !important;
height: 245px !important;
.con {
// background-color: #bfa;
width: 100%;
height: 100%;
@@ -2416,133 +2212,20 @@ export default {
}
}
}
// .info {
// width: 78%;
// // background-color: lightcoral;
// display: flex;
// margin-top: 30px;
// // align-items: center;
// // height: 40px;
// // border: 1px solid black;
// .inname {
// color: #6f6f6f;
// font-size: 14px;
// margin-left: 26px;
// margin-top: 15px;
// }
// .in {
// margin-left: 14px;
// width: 81%;
// position: relative;
// .ant-input {
// border-radius: 5px;
// // height: 120%;
// width: 100%;
// height: 130px;
// resize: none;
// }
// }
// }
// .drawerStyle {
// .ant-drawer-content-wrapper {
// // max-width: 1000px;
// .ant-drawer-header {
// display: none !important;
// }
// .ant-drawer-body {
// padding: 0;
// }
// }
// .drawerMain {
// min-width: 600px;
// margin: 0px 32px 0px 32px;
// overflow-x: auto;
// display: flex;
// flex-direction: column;
// .header {
// height: 73px;
// border-bottom: 1px solid #e8e8e8;
// display: flex;
// justify-content: space-between;
// align-items: center;
// // background-color: red;
// margin-bottom: 20px;
// .headerTitle {
// font-size: 18px;
// font-weight: 600;
// color: #333333;
// line-height: 25px;
// // margin-left: 24px;
// }
// }
// .drawerbox {
// margin: 20px 38px 30px;
// th {
// background-color: #eff4fc !important;
// }
// .ant-table-tbody
// > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
// > td {
// background: #f6f9fd;
// }
// }
// .btnn {
// height: 72px;
// width: 100%;
// position: absolute;
// bottom: 0;
// left: 0;
// display: flex;
// align-items: center;
// justify-content: center;
// box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
// .btn1 {
// width: 100px;
// height: 40px;
// border: 1px solid #4ea6ff;
// border-radius: 8px;
// color: #4ea6ff;
// background-color: #fff;
// cursor: pointer;
// }
// .btn2 {
// cursor: pointer;
// width: 100px;
// height: 40px;
// background: #4ea6ff;
// border-radius: 8px;
// border: 0;
// margin-left: 15px;
// color: #fff;
// }
// }
// }
// }
.taskadd {
width: 100%;
display: flex;
flex-direction: column;
min-width: 933px;
// min-width: 1200px;
// overflow-x: hidden;
// min-width: 1400px;
// overflow: scroll;
background-color: rgba(245, 247, 250, 1);
.left {
margin-right: 20px;
width: 208px;
// height: 100%;
// flex: 1;
// height: 100%;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
display: flex;
justify-content: center;
.leftmain {
// width: 86%;
margin-top: 20px;
.tit {
margin-left: 20px;
@@ -2550,17 +2233,14 @@ export default {
color: #363636;
}
// flex-wrap: wrap;
.btn {
margin-top: 20px;
// padding: 0px 26px 0px 26px;
height: 38px;
background: #fff6e8;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
// margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.search {
@@ -2570,7 +2250,6 @@ export default {
font-size: 14px;
font-weight: 400;
color: #ffb64e;
// line-height: 38px;
margin-top: 4px;
margin-left: 5px;
}
@@ -2594,12 +2273,10 @@ export default {
align-items: center;
.ghost {
// background-color: red;
opacity: 0 !important;
}
.items {
width: 171px;
// height: 83px;
background: rgba(255, 182, 78, 0.1);
border: 1px solid #ffb64e;
opacity: 0.45;
@@ -2647,9 +2324,6 @@ export default {
.items2 {
.nname {
width: 140px;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
font-weight: bold;
overflow: hidden;
@@ -2662,21 +2336,16 @@ export default {
}
.active {
opacity: 1;
// transition: all 0.5s;
}
}
}
}
.right {
flex: 1;
// background-color: #fff;
display: flex;
flex-direction: column;
.addhead {
width: 100%;
// min-width: 500px;
// height: 130px;
// flex: 1;
background-color: #fff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.07);
display: flex;
@@ -2692,7 +2361,6 @@ export default {
.le {
display: flex;
align-items: center;
// margin-bottom: 10px;
.leftimg {
width: 151px;
height: 100px;
@@ -2719,11 +2387,7 @@ export default {
}
.rightt {
// width: 500px;
height: 100%;
// background-color: red;
// position: absolute;
// right: 0;
display: flex;
align-items: center;
.select {
@@ -2849,7 +2513,6 @@ export default {
.mid {
width: 100%;
// height: 130px;
margin-top: 20px;
margin-bottom: 20px;
background-color: #fff;
@@ -2859,7 +2522,6 @@ export default {
flex-wrap: wrap;
.item {
height: 115px;
// width: 7.7%;
display: flex;
align-items: center;
.itcon {
@@ -2900,8 +2562,6 @@ export default {
justify-content: center;
.boomcen {
width: 95%;
// height: 100%;
// background-color: #bfa;
.onerow {
width: 100%;
display: flex;
@@ -3011,7 +2671,6 @@ export default {
height: 50px;
background: #f5faff;
border: 1px solid #4ea6ff;
// opacity: 0.22;
display: flex;
align-items: center;
.im {
@@ -3045,15 +2704,11 @@ export default {
opacity: 1;
}
.ghost {
// background-color: red;
opacity: 0;
}
.tableRow:hover {
background-color: #f2f6fc;
}
// .tableRow: {
// background-color: #f2f6fc;
// }
.classify {
margin-left: 10px !important;
padding-left: 9px !important;
@@ -3081,8 +2736,6 @@ export default {
.pa {
left: 0;
width: 100%;
// height: 20px;
// background-color: red;
display: flex;
justify-content: center;
position: absolute;
@@ -3092,18 +2745,6 @@ export default {
}
}
}
// .drawerbox {
// // margin: 20px 38px 30px;
// th.h {
// background-color: #eff4fc !important;
// }
// .ant-table-tbody
// > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
// > td {
// background: #f6f9fd;
// }
// }
}
.opat {
@@ -3115,13 +2756,11 @@ export default {
background-color: #5dc988;
}
.showt {
// margin-top: 10px;
display: flex;
margin-left: 10px;
height: 23px;
position: relative;
.bi {
// margin-top: 10px;
width: 63px;
height: 23;
background-color: #5dc988;
@@ -3136,7 +2775,6 @@ export default {
height: 23px;
background-color: #f2f6fc;
line-height: 23px;
// display: none;
position: absolute;
z-index: 998;
color: #5dc988;
@@ -3153,8 +2791,6 @@ export default {
width: 17px;
height: 14px;
background-image: url("../../assets/images/leveladd/z1.png");
// position: absolute;
// left: -40px;
}
.ch {
margin-left: 10px;
@@ -3164,7 +2800,6 @@ export default {
width: 100%;
height: 80px;
margin-top: 16px;
// flex: 1;
background-color: #fff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.07);
display: flex;