Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yuping
2022-12-30 19:38:39 +08:00
12 changed files with 557 additions and 502 deletions

View File

@@ -44,7 +44,7 @@ export default defineComponent({
const store = useStore(); const store = useStore();
const isLogin = ref(false); const isLogin = ref(false);
// console.log("router", router.getRoutes(), route); // console.log("router", router.getRoutes(), route);
console.log("版本1.10------------"); console.log("版本1.12------------");
const routes = computed(() => { const routes = computed(() => {
return router.getRoutes().filter((e) => e.meta?.isLink); return router.getRoutes().filter((e) => e.meta?.isLink);
}); });

View File

@@ -77,7 +77,7 @@ export default {
{ {
id: 1, id: 1,
name: "管理员", name: "管理员",
go: "/learningpath", go: "/manage/learningpath",
}, },
{ {
id: 2, id: 2,

View File

@@ -722,7 +722,7 @@ export default {
console.log(e); console.log(e);
state.isClick = false; state.isClick = false;
message.destroy(); message.destroy();
message.error(`添加失败`); // message.error(`添加失败`);
}); });
} }
}; };
@@ -840,8 +840,9 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
console.log(err)
message.destroy(); message.destroy();
message.error("获取员工失败" + err); // message.error("获取员工失败" + err);
}); });
}; };
const handleSearch = debounce((memberValue) => { const handleSearch = debounce((memberValue) => {

View File

@@ -437,8 +437,8 @@ export default {
ctx.emit("update:addtestVisible", false); ctx.emit("update:addtestVisible", false);
ctx.emit("update:edit", false); ctx.emit("update:edit", false);
ctx.emit("update:EditTestId", state.EditTestId); ctx.emit("update:EditTestId", state.EditTestId);
ctx.emit("update:testName", state.testName); ctx.emit("update:testName", state.test.examinationName);
console.log("statetestName", state.testName); console.log("statetestName", state.test.examinationName);
localStorage.setItem("stageId", props.chooseStageId); localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive); localStorage.setItem("chapterId", props.isactive);
state.addLoading = false; state.addLoading = false;
@@ -687,7 +687,8 @@ export default {
state.paperId = value.paperId; state.paperId = value.paperId;
state.paperName = value.testName; state.paperName = value.testName;
state.id = value.id; state.id = value.id;
state.testName = value.testName; //state.testName = value.testName;
console.log("value",value);
}; };
const range = (start, end) => { const range = (start, end) => {

View File

@@ -1,472 +1,480 @@
<template> <template>
<a-drawer <a-drawer :visible="EvalListVisible" class="drawerStyle addonlineDrawer" width="80%" title="选择测评" placement="right"
:visible="EvalListVisible" @after-visible-change="afterVisibleChange">
class="drawerStyle addonlineDrawer" <div class="drawerMain">
width="80%" <div class="header">
title="选择测评" <div class="headerTitle">选择测评</div>
placement="right" <img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
@after-visible-change="afterVisibleChange" @click="closeDrawer" />
> </div>
<div class="drawerMain"> <div class="contentMain">
<div class="header"> <div class="main_items">
<div class="headerTitle">选择测评</div> <div class="mi_ipts">
<img <div class="mii_ipt">
style="width: 29px; height: 29px; cursor: pointer" <div class="ipt_name"></div>
src="../../assets/images/basicinfo/close.png" <div class="fi_input">
@click="closeDrawer" <a-input v-model:value="inputV1" style="width: 424px; height: 40px; border-radius: 8px"
/> placeholder="请输入项目名称" />
</div> </div>
<div class="contentMain"> </div>
<div class="main_items"> </div>
<div class="mi_ipts"> <div class="mi_btns">
<div class="mii_ipt"> <div class="btn btn1" @click="searchList">
<div class="ipt_name"></div> <div class="search"></div>
<div class="fi_input"> <div class="btnText">搜索</div>
<a-input </div>
v-model:value="inputV1" <div class="btn btn2" @click="resetData">
style="width: 424px; height: 40px; border-radius: 8px" <div class="search"></div>
placeholder="请输入项目名称" <div class="btnText">重置</div>
/> </div>
</div> </div>
</div> </div>
</div> <div class="main_table">
<div class="mi_btns"> <a-table style="border: 1px solid #f2f6fe" :columns="columns" :data-source="tableData"
<div class="btn btn1" @click="searchList"> :loading="tableDataTotal === -1 ? true : false" :pagination="false" :row-selection="{
<div class="search"></div> type: 'radio',
<div class="btnText">搜索</div> selectedRowKeys: selectedRowKeys,
</div> onChange: onSelectChange,
<div class="btn btn2" @click="resetData"> }" />
<div class="search"></div> <div class="tableBox" style="margin-top: 85px">
<div class="btnText">重置</div> <div class="pa">
</div> <a-pagination v-if="tableDataTotal > 10" :showSizeChanger="false" showQuickJumper="true"
</div> hideOnSinglePage="true" :pageSize="pageSize" :current="currentPage" :total="tableDataTotal"
</div> class="pagination" @change="changePagination" />
<div class="main_table"> </div>
<a-table </div>
style="border: 1px solid #f2f6fe" </div>
:columns="columns" </div>
:data-source="tableData" <div class="main_btns">
:loading="tableDataTotal === -1 ? true : false" <button class="btn1" @click="closeDrawer">取消</button>
:pagination="false" <button class="btn2" @click="checkFinish">确定</button>
:row-selection="{ </div>
type: 'radio', </div>
selectedRowKeys: selectedRowKeys, </a-drawer>
onChange: onSelectChange,
}"
/>
<div class="tableBox" style="margin-top: 85px">
<div class="pa">
<a-pagination
v-if="tableDataTotal > 10"
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
:current="currentPage"
:total="tableDataTotal"
class="pagination"
@change="changePagination"
/>
</div>
</div>
</div>
</div>
<div class="main_btns">
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2" @click="checkFinish">确定</button>
</div>
</div>
</a-drawer>
</template> </template>
<script> <script>
import { reactive, toRefs } from "vue"; import { reactive, toRefs } from "vue";
import * as api from "../../api/indexEval"; import * as api from "../../api/indexEval";
export default { export default {
name: "EvList", name: "EvList",
props: { props: {
EvalListVisible: { EvalListVisible: {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
evaluationTypeId: { evaluationTypeId: {
type: Number, type: Number,
default: null, default: null,
}, },
evaluationTypeName: { evaluationTypeName: {
type: String, type: String,
default: "", default: "",
}, },
}, },
setup(props, ctx) { setup(props, ctx) {
const state = reactive({ const state = reactive({
currentPage: 1, currentPage: 1,
tableDataTotal: 0, tableDataTotal: 0,
pageSize: 10, pageSize: 10,
inputV1: "", inputV1: "",
evaluationTypeId: null, evaluationTypeId: null,
evaluationTypeName: "", evaluationTypeName: "",
tableData: [], tableData: [],
selectedRowKeys: [], selectedRowKeys: [],
evListData: {}, evListData: {},
columns: [ columns: [
{ {
title: "测评编号", title: "测评编号",
width: "20%", width: "20%",
dataIndex: "quiz_code", dataIndex: "quiz_code",
key: "code", key: "code",
ellipsis: true, ellipsis: true,
}, },
{ {
title: "测评名称", title: "测评名称",
width: "20%", width: "20%",
dataIndex: "title", dataIndex: "title",
key: "title", key: "title",
align: "center", align: "center",
ellipsis: true, ellipsis: true,
}, },
{ {
title: "备注", title: "备注",
width: "40%", width: "40%",
dataIndex: "theme_desc", dataIndex: "theme_desc",
key: "content", key: "content",
align: "center", align: "center",
ellipsis: true, ellipsis: true,
}, },
// { // {
// title: "状态", // title: "状态",
// width: "13%", // width: "13%",
// dataIndex: "status", // dataIndex: "status",
// key: "status", // key: "status",
// align: "center", // align: "center",
// }, // },
// { // {
// title: "价格", // title: "价格",
// width: "13%", // width: "13%",
// dataIndex: "quiz_price", // dataIndex: "quiz_price",
// key: "price", // key: "price",
// align: "center", // align: "center",
// }, // },
{ {
title: "可答题人数", title: "可答题人数",
width: "20%", width: "20%",
dataIndex: "quiz_range", dataIndex: "quiz_range",
key: "time", key: "time",
align: "center", align: "center",
ellipsis: true, ellipsis: true,
}, },
], ],
}); });
const onSelectChange = (selectedRowKeys, selectedRows) => { const onSelectChange = (selectedRowKeys, selectedRows) => {
if (selectedRowKeys.length > 1) { if (selectedRowKeys.length > 1) {
return; return;
} }
state.selectedRowKeys = selectedRowKeys; state.selectedRowKeys = selectedRowKeys;
state.evListData = selectedRows[0] ? selectedRows[0] : {}; state.evListData = selectedRows[0] ? selectedRows[0] : {};
console.log("state.evListData", state.evListData); console.log("state.evListData", state.evListData);
}; };
const closeDrawer = () => { const closeDrawer = () => {
state.selectedRowKeys = []; state.selectedRowKeys = [];
state.evListData = {}; state.evListData = {};
state.inputV1 = ""; state.inputV1 = "";
ctx.emit("update:EvalListVisible", false); ctx.emit("update:EvalListVisible", false);
}; };
const afterVisibleChange = (bol) => { const afterVisibleChange = (bol) => {
if (bol == true) { if (bol == true) {
getAllEvalText(); getAllEvalText();
} }
}; };
const checkFinish = () => { const checkFinish = () => {
ctx.emit("getEvListData", state.evListData); ctx.emit("getEvListData", state.evListData);
closeDrawer(); closeDrawer();
}; };
const changePagination = (page) => { const changePagination = (page) => {
state.currentPage = page; state.currentPage = page;
getAllEvalText(); getAllEvalText();
}; };
//如果编辑情况会通过父亲传回来evaluationTypeId遍历出相同的那个选项 再将那个选项的key值赋给state.selectRowKeys //如果编辑情况会通过父亲传回来evaluationTypeId遍历出相同的那个选项 再将那个选项的key值赋给state.selectRowKeys
const getTableDataList = (tableData) => { const getTableDataList = (tableData) => {
let data = tableData; let data = tableData;
let array = []; let array = [];
let arrayKey = []; let arrayKey = [];
if (props.evaluationTypeName != "") { if (props.evaluationTypeName != "") {
data.map((value, index) => { data.map((value, index) => {
let obj = { let obj = {
key: index + 1, key: index + 1,
status: value.status, status: value.status,
quiz_code: value.quiz_code, quiz_code: value.quiz_code,
quiz_kid: value.quiz_kid, quiz_kid: value.quiz_kid,
title: value.title, title: value.title,
theme_desc: value.theme_desc, theme_desc: value.notes,
quiz_price: value.quiz_price, quiz_price: value.quiz_price,
quiz_range: value.quiz_range, quiz_range: value.limit_number,
quiz_type: value.quiz_type, quiz_type: value.quiz_type,
}; };
array.push(obj); array.push(obj);
if (obj.title == props.evaluationTypeName) { if (obj.title == props.evaluationTypeName) {
arrayKey.push(obj.key); arrayKey.push(obj.key);
} }
}); });
state.tableData = array; state.tableData = array;
state.selectedRowKeys = arrayKey; state.selectedRowKeys = arrayKey;
} else { } else {
data.map((value, index) => { data.map((value, index) => {
let obj = { let obj = {
key: index + 1, key: index + 1,
status: value.status, status: value.status,
quiz_code: value.quiz_code, quiz_code: value.quiz_code,
quiz_kid: value.quiz_kid, quiz_kid: value.quiz_kid,
title: value.title, title: value.title,
theme_desc: value.theme_desc, theme_desc: value.notes,
quiz_price: value.quiz_price, quiz_price: value.quiz_price,
quiz_range: value.quiz_range, quiz_range: value.limit_number,
quiz_type: value.quiz_type, quiz_type: value.quiz_type,
}; };
array.push(obj); array.push(obj);
}); });
state.tableData = array; state.tableData = array;
} }
}; };
//获取测评列表 //获取测评列表
const getAllEvalText = () => { const getAllEvalText = () => {
let objael = { let objael = {
keyword: state.inputV1, keyword: state.inputV1,
}; };
api api
.choiceEvaluation(objael) .choiceEvaluation(objael)
.then((res) => { .then((res) => {
state.tableDataTotal = 9; state.tableDataTotal = 9;
// console.log("测评列表", res.data.data); console.log("测评列表", res.data.data);
getTableDataList(res.data.data); getTableDataList(res.data.data);
}) })
.catch(() => {}); .catch(() => { });
}; };
//搜索测评列表 //搜索测评列表
const searchList = () => { const searchList = () => {
state.selectedRowKeys = []; state.selectedRowKeys = [];
if (state.inputV1 !== "") { if (state.inputV1 !== "") {
getAllEvalText(); getAllEvalText();
} else { } else {
resetData(); resetData();
} }
}; };
//重置测评列表 //重置测评列表
const resetData = () => { const resetData = () => {
state.currentPage = 1; state.currentPage = 1;
state.selectedRowKeys = []; state.selectedRowKeys = [];
state.evListData = {}; state.evListData = {};
getAllEvalText(); getAllEvalText();
}; };
return { return {
...toRefs(state), ...toRefs(state),
afterVisibleChange, afterVisibleChange,
closeDrawer, closeDrawer,
onSelectChange, onSelectChange,
getTableDataList, getTableDataList,
checkFinish, checkFinish,
changePagination, changePagination,
searchList, searchList,
resetData, resetData,
}; };
}, },
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
.ant-table-striped :deep(.table-striped) td { .ant-table-striped :deep(.table-striped) td {
background-color: #fafafa !important; background-color: #fafafa !important;
} }
.addonlineDrawer { .addonlineDrawer {
.drawerMain { .drawerMain {
.header { .header {
height: 73px; height: 73px;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-shrink: 0; flex-shrink: 0;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-left: 24px;
}
}
.contentMain {
padding-right: 12px;
.main_items {
display: flex;
margin-bottom: 12px; .headerTitle {
flex-wrap: wrap; font-size: 18px;
.mi_ipts { font-weight: 600;
display: flex; color: #333333;
margin-bottom: 20px; line-height: 25px;
.mii_ipt { margin-left: 24px;
display: flex; }
align-items: center; }
margin-right: 24px;
.ipt_name {
white-space: nowrap;
}
}
}
.mi_btns {
display: flex;
cursor: pointer; .contentMain {
.btn { padding-right: 12px;
padding: 0px 26px 0px 26px;
height: 38px;
border-radius: 8px;
border: 1px solid rgba(64, 158, 255, 1);
display: flex;
align-items: center;
justify-content: center;
margin-left: 14px;
flex-shrink: 0;
.search {
background-size: 100%;
}
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 36px;
margin-left: 5px;
}
}
.btn1 {
background: rgb(64, 158, 255);
.search {
width: 15px;
height: 17px;
background-image: url("@/assets/images/coursewareManage/search0.png");
}
.btnText {
color: rgb(255, 255, 255);
}
}
.btn2 {
background: rgb(255, 255, 255);
.search {
width: 15px;
height: 17px;
background-image: url("@/assets/images/coursewareManage/reset1.png");
}
.btnText {
color: rgb(64, 158, 255);
}
}
.btn1:hover {
background: rgb(255, 255, 255);
.search {
background-image: url("@/assets/images/courseManage/search1.png");
}
.btnText {
color: #4ea6ff;
}
}
.btn2:hover {
background: rgba(64, 158, 255, 1);
.search {
background-image: url("@/assets/images/courseManage/reset0.png");
}
.btnText {
color: #ffffff;
}
}
}
}
.main_notice {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
height: 40px;
background-color: #e9f6fe;
.mntc_left {
display: flex;
align-items: center;
.notice_icon {
width: 14px;
height: 14px;
margin-right: 9px;
margin-left: 9px;
background-image: url(@/assets/images/coursewareManage/gan.png);
background-size: 100% 100%;
}
}
.mntc_right {
cursor: pointer;
}
}
.main_table {
position: relative;
padding-bottom: 80px;
.classify {
margin-left: 10px !important;
padding-left: 9px !important;
}
.ant-checkbox-wrapper {
align-items: center;
margin-top: -2px;
}
.ant-table-selection-column {
padding: 0px !important;
padding-left: 5px !important;
}
.ant-table-thead > tr > th {
background-color: rgba(239, 244, 252, 1);
}
th.h {
background-color: #eff4fc !important;
}
.ant-table-tbody .main_items {
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) display: flex;
> td {
background: #f6f9fd;
}
.pa {
left: 0;
width: 100%;
display: flex;
justify-content: center;
position: absolute;
bottom: 20px;
}
}
}
.main_btns { margin-bottom: 12px;
height: 72px; flex-wrap: wrap;
width: 100%;
bottom: 0; .mi_ipts {
left: 0; display: flex;
display: flex; margin-bottom: 20px;
align-items: center;
justify-content: center; .mii_ipt {
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16); display: flex;
.btn1 { align-items: center;
width: 100px; margin-right: 24px;
height: 40px;
border: 1px solid #4ea6ff; .ipt_name {
border-radius: 8px; white-space: nowrap;
color: #4ea6ff; }
background-color: #fff; }
cursor: pointer; }
}
.btn2 { .mi_btns {
cursor: pointer; display: flex;
width: 100px;
height: 40px; cursor: pointer;
background: #4ea6ff;
border-radius: 8px; .btn {
border: 0; padding: 0px 26px 0px 26px;
margin-left: 15px; height: 38px;
color: #fff; border-radius: 8px;
} border: 1px solid rgba(64, 158, 255, 1);
} display: flex;
} align-items: center;
justify-content: center;
margin-left: 14px;
flex-shrink: 0;
.search {
background-size: 100%;
}
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 36px;
margin-left: 5px;
}
}
.btn1 {
background: rgb(64, 158, 255);
.search {
width: 15px;
height: 17px;
background-image: url("@/assets/images/coursewareManage/search0.png");
}
.btnText {
color: rgb(255, 255, 255);
}
}
.btn2 {
background: rgb(255, 255, 255);
.search {
width: 15px;
height: 17px;
background-image: url("@/assets/images/coursewareManage/reset1.png");
}
.btnText {
color: rgb(64, 158, 255);
}
}
.btn1:hover {
background: rgb(255, 255, 255);
.search {
background-image: url("@/assets/images/courseManage/search1.png");
}
.btnText {
color: #4ea6ff;
}
}
.btn2:hover {
background: rgba(64, 158, 255, 1);
.search {
background-image: url("@/assets/images/courseManage/reset0.png");
}
.btnText {
color: #ffffff;
}
}
}
}
.main_notice {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
height: 40px;
background-color: #e9f6fe;
.mntc_left {
display: flex;
align-items: center;
.notice_icon {
width: 14px;
height: 14px;
margin-right: 9px;
margin-left: 9px;
background-image: url(@/assets/images/coursewareManage/gan.png);
background-size: 100% 100%;
}
}
.mntc_right {
cursor: pointer;
}
}
.main_table {
position: relative;
padding-bottom: 80px;
.classify {
margin-left: 10px !important;
padding-left: 9px !important;
}
.ant-checkbox-wrapper {
align-items: center;
margin-top: -2px;
}
.ant-table-selection-column {
padding: 0px !important;
padding-left: 5px !important;
}
.ant-table-thead>tr>th {
background-color: rgba(239, 244, 252, 1);
}
th.h {
background-color: #eff4fc !important;
}
.ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td {
background: #f6f9fd;
}
.pa {
left: 0;
width: 100%;
display: flex;
justify-content: center;
position: absolute;
bottom: 20px;
}
}
}
.main_btns {
height: 72px;
width: 100%;
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;
}
}
}
} }
</style> </style>

View File

@@ -1,3 +1,4 @@
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
<template> <template>
<a-drawer <a-drawer
:visible="Seevisible" :visible="Seevisible"
@@ -47,6 +48,7 @@
<span class="total">/{{ totalReqCnt }}</span> <span class="total">/{{ totalReqCnt }}</span>
</div> </div>
</div> </div>
<!--
<a-divider <a-divider
type="vertical" type="vertical"
style=" style="
@@ -61,13 +63,11 @@
<span class="nub1">{{ certCnt }}</span> <span class="nub1">{{ certCnt }}</span>
</div> </div>
</div> </div>
-->
</div> </div>
<div class="secondrow"> <div class="secondrow">
<div class="rowleft">{{ name }}</div> <div class="rowleft">{{ name }}</div>
<div class="rowbox" @click="showProMess">
<div class="shuom">说明</div>
<div><img src="../../assets/images/studentimg/chak.png" /></div>
</div>
</div> </div>
<div class="mainbox"> <div class="mainbox">
<a-collapse v-model:activeKey="stageListActive"> <a-collapse v-model:activeKey="stageListActive">
@@ -86,12 +86,28 @@
v-for="value in stageList" v-for="value in stageList"
:key="value.stageId" :key="value.stageId"
:header="value.stageName" :header="value.stageName"
>
<div >
<template #extra >
<div @click.stop="">
<div class="rowbox">
<a-popover title="阶段说明">
<template #content>
<p>{{value.remark}}</p>
</template>
<div class="shuom">说明</div>
</a-popover>
<div><img src="../../assets/images/studentimg/chak.png" /></div>
</div>
</div>
</template>
<div
class="rowclass" class="rowclass"
v-for="(item, key) in value.taskProcessList" v-for="(item, key) in value.taskProcessList"
:key="key" :key="key"
> >
<div class="leftclass"> <div class="leftclass">
<div> <div>
<img <img
@@ -141,6 +157,7 @@
</div> </div>
<div class="altext">{{ item.complete }}</div> <div class="altext">{{ item.complete }}</div>
</div> </div>
</div> </div>
</a-collapse-panel> </a-collapse-panel>
</a-collapse> </a-collapse>
@@ -304,14 +321,32 @@ export default {
const setStageList = (tableData) => { const setStageList = (tableData) => {
let data = tableData; let data = tableData;
let array = []; let array = [];
data.map((value) => { //无阶段任务
if(data?.length ==1 && data[0].stageId ==0){
data.map((value) => {
let obj = { let obj = {
stageName: value.stageName, stageName:"无阶段任务",
stageId: value.stageId, stageId:0,
remark:value.remark,
taskProcessList: taskProcessList(value.taskProcessList), taskProcessList: taskProcessList(value.taskProcessList),
}; };
array.push(obj); array.push(obj);
}); });
}else{ //有阶段
data.map((value) => {
let obj = {
stageName: value.stageName,
stageId: value.stageId,
remark:value.remark,
taskProcessList: taskProcessList(value.taskProcessList),
};
if(value.stageId >0){
array.push(obj);
}
});
}
state.stageList = array; state.stageList = array;
}; };
const check = () => { const check = () => {
@@ -444,6 +479,14 @@ export default {
color: rgba(51, 51, 51, 1); color: rgba(51, 51, 51, 1);
font-size: 16px; font-size: 16px;
} }
}
.mainbox {
// height: 463px;
margin-right: 37px;
margin-top: 32px;
//border: 1px solid rgba(221, 238, 255, 1);
//border-radius: 6px;
.rowbox { .rowbox {
width: 64px; width: 64px;
height: 24px; height: 24px;
@@ -453,6 +496,7 @@ export default {
margin-left: 24px; margin-left: 24px;
border: 1px solid rgba(64, 158, 255, 1); border: 1px solid rgba(64, 158, 255, 1);
background: rgba(64, 158, 255, 0.1); background: rgba(64, 158, 255, 0.1);
margin-right: 480px;
cursor: pointer; cursor: pointer;
.shuom { .shuom {
color: rgba(64, 158, 255, 1); color: rgba(64, 158, 255, 1);
@@ -461,13 +505,6 @@ export default {
margin-right: 5px; margin-right: 5px;
} }
} }
}
.mainbox {
// height: 463px;
margin-right: 37px;
margin-top: 32px;
//border: 1px solid rgba(221, 238, 255, 1);
//border-radius: 6px;
.ant-collapse { .ant-collapse {
background-color: #ffffff; background-color: #ffffff;
border: 0; border: 0;

View File

@@ -420,7 +420,7 @@ export default {
const getClassData = (tabledata) => { const getClassData = (tabledata) => {
let data = tabledata; let data = tabledata;
let array = []; let array = [];
let options = state.options2222; // let options = state.options2222;
data.map((value) => { data.map((value) => {
let obj = { let obj = {
key: value.offcourseId, key: value.offcourseId,
@@ -430,30 +430,31 @@ export default {
creator: value.createName || "-", creator: value.createName || "-",
time: value.publishTime, time: value.publishTime,
categoryId: value.categoryId, categoryId: value.categoryId,
category: "", category: changeTreeSelectValue(String(value.categoryId)),
//需要判断content //需要判断content
}; };
console.log("obj", obj); console.log("obj", obj);
var breaked = false; // var breaked = false;
// obj.category = changeTreeSelectValue(String(value.categoryId))
for (let i = 0; i < options.length; i++) { // for (let i = 0; i < options.length; i++) {
for (let j = 0; j < options[i].children.length; j++) { // for (let j = 0; j < options[i].children.length; j++) {
if ( // if (
String(options[i].children[j].value) === // String(options[i].children[j].value) ===
String(obj.categoryId) // String(obj.categoryId)
) { // ) {
obj.category = changeTreeSelectValue(String(obj.categoryId)) // obj.category = changeTreeSelectValue(String(obj.categoryId))
// console.log("obj.categoryId", obj.categoryId); // // console.log("obj.categoryId", obj.categoryId);
// obj.category = options[i].children[j].title; // // obj.category = options[i].children[j].title;
// console.log("obj. obj.category ", obj.category); // // console.log("obj. obj.category ", obj.category);
breaked = true; // breaked = true;
break; // break;
} // }
} // }
if (breaked) { // if (breaked) {
break; // break;
} // }
} // }
if (!obj.category) { if (!obj.category) {
obj.category = "-"; obj.category = "-";
} }

View File

@@ -165,9 +165,10 @@ const tablecolumns = ref([
title: "姓名", title: "姓名",
dataIndex: "studentName", dataIndex: "studentName",
key: "studentName", key: "studentName",
width: "8%", width: "12%",
align: "left", align: "left",
className: "h", className: "h",
ellipsis: true,
customRender: ({record: {studentName, topFlag}}) => (topFlag ? <div customRender: ({record: {studentName, topFlag}}) => (topFlag ? <div
style={{ style={{
display: "flex", display: "flex",
@@ -188,7 +189,7 @@ const tablecolumns = ref([
title: "工号", title: "工号",
dataIndex: "studentUserNo", dataIndex: "studentUserNo",
key: "studentUserNo", key: "studentUserNo",
width: "20%", width: "15%",
align: "center", align: "center",
className: "h", className: "h",
ellipsis: true, ellipsis: true,

View File

@@ -111,6 +111,9 @@
</div> </div>
<div class="mbl_items2" v-if="detail.intro"> <div class="mbl_items2" v-if="detail.intro">
<div class="item_nam"> <div class="item_nam">
<div class="asterisk_icon">
<img src="@/assets/images/coursewareManage/asterisk.png" alt="asterisk" />
</div>
<span style="margin-right: 14px">课程简介</span> <span style="margin-right: 14px">课程简介</span>
</div> </div>
<div class="item_inp"> <div class="item_inp">

View File

@@ -283,7 +283,7 @@
<div class="fotnam"> <div class="fotnam">
<span>课程大纲</span> <span>课程大纲</span>
</div> </div>
<div class="fotarea"> <div v-if="ft_hs" class="fotarea">
<div style="border: 1px solid #ccc"> <div style="border: 1px solid #ccc">
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig" <Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig"
:mode="mode" /> :mode="mode" />

View File

@@ -217,7 +217,7 @@ export default {
width: "10%", width: "10%",
ellipsis: true, ellipsis: true,
customRender: (time) => { customRender: (time) => {
return <div style="color:#387DF7">{time.record.time}</div>; return <div>{time.record.time}</div>;
}, },
}, },
{ {

View File

@@ -1490,7 +1490,8 @@ export default {
state.deleteModal = false; state.deleteModal = false;
}) })
.catch((err) => { .catch((err) => {
message.error(err); console.log(err)
// message.error(err);
}); });
}; };
@@ -1697,6 +1698,7 @@ export default {
deleteStudyTask({ routerTaskIds: state.deleteID }) deleteStudyTask({ routerTaskIds: state.deleteID })
.then((res) => { .then((res) => {
state.deleteModal = false; state.deleteModal = false;
message.destroy();
message.success("删除成功"); message.success("删除成功");
state.selectRow = []; //选择行 state.selectRow = []; //选择行
state.selectAll = 0; //0未选择1全选2部分选择 state.selectAll = 0; //0未选择1全选2部分选择
@@ -1704,6 +1706,7 @@ export default {
console.log("删除成功", res); console.log("删除成功", res);
}) })
.catch((err) => { .catch((err) => {
message.destroy();
message.error("删除失败"); message.error("删除失败");
console.log(err); console.log(err);
}); });