feat:合并

This commit is contained in:
lixg
2022-12-05 21:57:14 +08:00
13 changed files with 687 additions and 496 deletions

View File

@@ -13,6 +13,7 @@
"ant-design-vue": "^3.2.12", "ant-design-vue": "^3.2.12",
"axios": "^1.1.3", "axios": "^1.1.3",
"core-js": "^3.8.3", "core-js": "^3.8.3",
"dayjs": "^1.11.6",
"element-plus": "^2.2.17", "element-plus": "^2.2.17",
"element-resize-detector": "^1.2.4", "element-resize-detector": "^1.2.4",
"html2canvas": "^1.4.1", "html2canvas": "^1.4.1",

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-21 14:32:52 * @Date: 2022-11-21 14:32:52
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2022-12-05 17:39:23 * @LastEditTime: 2022-12-05 21:56:56
* @FilePath: /fe-manage/src/api/config.js * @FilePath: /fe-manage/src/api/config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@@ -55,10 +55,10 @@ http.interceptors.response.use(
if (code === 0 || code === 200) { if (code === 0 || code === 200) {
return response; return response;
} else { } else {
if (code === 1000) { // if (code === 1000) {
// window.open("https://u-pre.boe.com/web/", '_self'); // window.open("https://u-pre.boe.com/web/", '_self');
// window.open("http://111.231.196.214:12013/manage/login", '_self'); // // window.open("http://111.231.196.214:12013/manage/login", '_self');
} // }
console.log("api %o", msg); console.log("api %o", msg);
} }
return response; return response;

View File

@@ -1,7 +1,7 @@
import http from "./config"; import http from "./config";
//获取面授课开课详情 //获取面授课开课详情
export const queryFaceDetailById = (offcoursePlanId) => http.post(`http://localhost:8080/manageApi/admin/offcourse/detailPlan?offcoursePlanId=` + offcoursePlanId + ``) export const queryFaceDetailById = (offcoursePlanId) => http.post(`/admin/offcourse/detailPlan?offcoursePlanId=` + offcoursePlanId + ``)
//新建或编辑面授课开课 //新建或编辑面授课开课
export const editPlan = (obj) => http.post('/admin/offcourse/editPlan', obj) export const editPlan = (obj) => http.post('/admin/offcourse/editPlan', obj)

View File

@@ -216,6 +216,7 @@ export default {
state.apiTaskList = selectedRows; state.apiTaskList = selectedRows;
}; };
const handelChangePage = (page, pageSize) => { const handelChangePage = (page, pageSize) => {
state.selectedRowKeys = []
state.currentPage = page; state.currentPage = page;
state.pageSize = pageSize; state.pageSize = pageSize;
getAllCaseText(); getAllCaseText();
@@ -250,7 +251,14 @@ export default {
isTop: "", isTop: "",
}) })
.then((res) => { .then((res) => {
console.log('案例列表',res)
if (res.status === 200) { if (res.status === 200) {
state.selectedRowKeys=[0]
for(let i=0;i<res.data.data.length;i++){
if(Number(res.data.data[i].casesId) == props.EditCaseId){
state.selectedRowKeys = [i]
}
}
getTableDate(res.data.data); getTableDate(res.data.data);
} }
}) })

View File

@@ -32,7 +32,7 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<button class="xkbtn" @click="showDrawerSelFacet"> <button class="xkbtn" @click="showDrawerSelFacet">
{{ chooseCourse == null ? "选择" : "" }}面授课 {{ chooseCourseName ? chooseCourseName : "择面授课" }}
</button> </button>
<div v-if="chooseCourse"> <div v-if="chooseCourse">
<a-tag closable color="processing" @close="logC"> <a-tag closable color="processing" @close="logC">
@@ -43,7 +43,8 @@
</div> </div>
<!-- 选择面授侧弹窗 --> <!-- 选择面授侧弹窗 -->
<div> <div>
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse" v-model:chooseCourseName="chooseCourseName"/> <sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse"
v-model:chooseCourseName="chooseCourseName"/>
</div> </div>
<!-- 选择面授侧弹窗 --> <!-- 选择面授侧弹窗 -->
</div> </div>
@@ -52,7 +53,8 @@
<span style="margin-right: 3px">面授说明</span> <span style="margin-right: 3px">面授说明</span>
</div> </div>
<div class="textarea"> <div class="textarea">
<a-textarea v-model:value="description" placeholder="请输入说明" allow-clear show-count :maxlength="200" :rows="6"/> <a-textarea v-model:value="description" placeholder="请输入说明" allow-clear show-count :maxlength="200"
:rows="6"/>
</div> </div>
</div> </div>
<div class="main_item"> <div class="main_item">
@@ -408,6 +410,7 @@ export default {
}; };
const closeDrawer = () => { const closeDrawer = () => {
ctx.emit("update:addfaceteachVisible", false); ctx.emit("update:addfaceteachVisible", false);
ctx.emit("update:edit", false);
localStorage.setItem("stageId", props.chooseStageId); localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive); localStorage.setItem("chapterId", props.isactive);
state.fileList = [] state.fileList = []
@@ -796,6 +799,7 @@ export default {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 32px; margin-bottom: 32px;
.textarea { .textarea {
width: 423px; width: 423px;
@@ -817,6 +821,7 @@ export default {
border-radius: 8px; border-radius: 8px;
} }
} }
.signbox { .signbox {
width: 120px; width: 120px;
display: flex; display: flex;

View File

@@ -66,8 +66,10 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-range-picker <a-range-picker
show-time
style="width: 424px" style="width: 424px"
v-model:value="time" v-model:value="time"
format="YYYY/MM/DD HH:mm"
:placeholder="[' 开始时间', ' 结束时间']" :placeholder="[' 开始时间', ' 结束时间']"
/> />
</div> </div>
@@ -492,9 +494,11 @@ export default {
console.log("获取的数据",res) console.log("获取的数据",res)
state.inputV1 = res.data.data.liveName; state.inputV1 = res.data.data.liveName;
state.time = [ state.time = [
dayjs(res.data.data.liveStartTime, "YYYY-MM-DD"), dayjs(res.data.data.liveStartTime, "YYYY-MM-DD HH:mm"),
dayjs(res.data.data.liveEndTime, "YYYY-MM-DD"), dayjs(res.data.data.liveEndTime, "YYYY-MM-DD HH:mm"),
]; ];
console.log(state.time)
state.inputV2 = res.data.data.liveDuration; state.inputV2 = res.data.data.liveDuration;
state.inputV3 = res.data.data.liveTeacherId; state.inputV3 = res.data.data.liveTeacherId;
//state.fileList= res.data.data //state.fileList= res.data.data
@@ -632,11 +636,11 @@ export default {
} }
let startTime = toDate( let startTime = toDate(
new Date(state.time[0].$d).getTime() / 1000, new Date(state.time[0].$d).getTime() / 1000,
"Y-M-D" "Y-M-D h:m"
); );
let endTime = toDate( let endTime = toDate(
new Date(state.time[1].$d).getTime() / 1000, new Date(state.time[1].$d).getTime() / 1000,
"Y-M-D" "Y-M-D h:m"
); );
state.obj = { state.obj = {
afterSignIn: state.inputV6, afterSignIn: state.inputV6,
@@ -661,6 +665,7 @@ export default {
isEvaluate: state.needEval ? "1" : "0", isEvaluate: state.needEval ? "1" : "0",
}; };
console.log('我是要更新的数据',state.obj ) console.log('我是要更新的数据',state.obj )
if (props.edit) { if (props.edit) {
api api
.updateLiveBroadcastMessage(state.obj) .updateLiveBroadcastMessage(state.obj)

View File

@@ -79,24 +79,7 @@
<div class="main_table"> <div class="main_table">
<!-- 编辑的表格 --> <!-- 编辑的表格 -->
<div v-if="edit"> <div v-if="edit">
<div <div>
v-if="choicecourse"
class="main_btns"
style="justify-content: flex-start"
>
<div
class="btn2"
style="
display: flex;
justify-content: center;
align-items: center;
"
@click="ChoiceCourse"
>
选择在线课
</div>
</div>
<div v-else>
<a-table <a-table
class="ant-table-striped" class="ant-table-striped"
:row-class-name=" :row-class-name="
@@ -338,6 +321,7 @@ export default {
}; };
const handelChangePage = (page) => { const handelChangePage = (page) => {
state.currentPage = page; state.currentPage = page;
state.selectedRowKeys = []
getAllOnlineText(); getAllOnlineText();
}; };
const getTableDate = (tableData) => { const getTableDate = (tableData) => {
@@ -381,6 +365,11 @@ export default {
state.tableDataTotal = res.data.data.count; state.tableDataTotal = res.data.data.count;
if (res.status === 200) { if (res.status === 200) {
console.log("获取在线课列表数据", res); console.log("获取在线课列表数据", res);
for(let i=0;i<res.data.data.list.length;i++){
if(Number(res.data.data.list[i].onlineClassesId) == props.EditOnlineId){
state.selectedRowKeys = [i+1]
}
}
getTableDate(arr); getTableDate(arr);
} }
}) })

View File

@@ -68,7 +68,8 @@
has-feedback has-feedback
label="考试说明" label="考试说明"
name="examinationExplain" name="examinationExplain"
><div class="textarea"> >
<div class="textarea">
<a-textarea <a-textarea
v-model:value="formState.examinationExplain" v-model:value="formState.examinationExplain"
placeholder="请输入考试说明" placeholder="请输入考试说明"
@@ -76,7 +77,8 @@
:rows="6" :rows="6"
style="margin-left: 35px" style="margin-left: 35px"
show-count :maxlength="200" show-count :maxlength="200"
/></div> />
</div>
</a-form-item> </a-form-item>
</div> </div>
<div class="main_item"> <div class="main_item">
@@ -126,9 +128,6 @@
</div> </div>
<div class="main_item"> <div class="main_item">
<div class="btnbox"> <div class="btnbox">
<a-form-item has-feedback label="考试时间" name="choosedTime"> <a-form-item has-feedback label="考试时间" name="choosedTime">
@@ -195,13 +194,15 @@
v-model:checked="checked" v-model:checked="checked"
:value="1" :value="1"
@click="cloradio1" @click="cloradio1"
>允许查看</a-radio >允许查看
</a-radio
> >
<a-radio <a-radio
v-model:checked="checked" v-model:checked="checked"
:value="2" :value="2"
@click="cloradio1" @click="cloradio1"
>不允许查看</a-radio >不允许查看
</a-radio
> >
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
@@ -218,13 +219,15 @@
v-model:checked="checked" v-model:checked="checked"
:value="1" :value="1"
@click="cloradio2" @click="cloradio2"
>允许查看</a-radio >允许查看
</a-radio
> >
<a-radio <a-radio
v-model:checked="checked" v-model:checked="checked"
:value="2" :value="2"
@click="cloradio2" @click="cloradio2"
>不允许查看</a-radio >不允许查看
</a-radio
> >
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
@@ -241,13 +244,15 @@
v-model:checked="checked" v-model:checked="checked"
:value="1" :value="1"
@click="cloradio3" @click="cloradio3"
>最高一次</a-radio >最高一次
</a-radio
> >
<a-radio <a-radio
v-model:checked="checked" v-model:checked="checked"
:value="2" :value="2"
@click="cloradio3" @click="cloradio3"
>最后一次</a-radio >最后一次
</a-radio
> >
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
@@ -280,19 +285,22 @@
v-model:checked="checked" v-model:checked="checked"
:value="1" :value="1"
@click="cloradio4" @click="cloradio4"
>试题乱序</a-radio >试题乱序
</a-radio
> >
<a-radio <a-radio
v-model:checked="checked" v-model:checked="checked"
:value="2" :value="2"
@click="cloradio4" @click="cloradio4"
>试题排序</a-radio >试题排序
</a-radio
> >
<a-radio <a-radio
v-model:checked="checked" v-model:checked="checked"
:value="3" :value="3"
@click="cloradio4" @click="cloradio4"
>全部乱序</a-radio >全部乱序
</a-radio
> >
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
@@ -367,7 +375,8 @@
:rows="6" :rows="6"
style="margin-left: 35px" style="margin-left: 35px"
show-count :maxlength="200" show-count :maxlength="200"
/></div> />
</div>
</a-form-item> </a-form-item>
</div> </div>
</div> </div>
@@ -398,6 +407,7 @@ import STest from "./SelectTest.vue";
import {ProjectEditTask, RouterEditTask} from "@/api/indexTask"; import {ProjectEditTask, RouterEditTask} from "@/api/indexTask";
import {addTempTask} from "../../api/indexTaskadd"; import {addTempTask} from "../../api/indexTaskadd";
import dayjs from "dayjs"; import dayjs from "dayjs";
export default { export default {
name: "AddTest", name: "AddTest",
components: { components: {
@@ -642,6 +652,7 @@ export default {
console.log(args); console.log(args);
}; };
const closeDrawer = () => { const closeDrawer = () => {
console.log('closeDrawer')
formState.choosedTime = ""; formState.choosedTime = "";
ctx.emit("update:addtestVisible", false); ctx.emit("update:addtestVisible", false);
ctx.emit("update:edit", false); ctx.emit("update:edit", false);
@@ -652,10 +663,12 @@ export default {
}; };
const closeDrawer2 = () => { const closeDrawer2 = () => {
formState.choosedTime = ""; formState.choosedTime = "";
ctx.emit("update:edit", false);
ctx.emit("update:addtestVisible", false); ctx.emit("update:addtestVisible", false);
resetForm(); resetForm();
}; };
const afterVisibleChange = () => { const afterVisibleChange = () => {
console.log('props', props)
if (props.addtestVisible && props.edit) { if (props.addtestVisible && props.edit) {
// 该页面显示同时 edit为true 时,发送查询请求, // 该页面显示同时 edit为true 时,发送查询请求,
queryTest(); queryTest();
@@ -897,6 +910,7 @@ export default {
.ant-table-striped :deep(.table-striped) td { .ant-table-striped :deep(.table-striped) td {
background-color: #fafafa !important; background-color: #fafafa !important;
} }
.outer { .outer {
background-color: #4ea6ff; background-color: #4ea6ff;
color: #fff; color: #fff;
@@ -905,6 +919,7 @@ export default {
height: 36px; height: 36px;
margin-right: 10px; margin-right: 10px;
} }
.notOuter { .notOuter {
color: #000; color: #000;
border-radius: 5px; border-radius: 5px;
@@ -913,10 +928,12 @@ export default {
margin-right: 10px; margin-right: 10px;
padding: 3px; padding: 3px;
} }
.tag-style { .tag-style {
color: rgb(113, 113, 237); color: rgb(113, 113, 237);
background-color: #d7d1f7; background-color: #d7d1f7;
} }
.addtestDrawer { .addtestDrawer {
.drawerMain { .drawerMain {
.header { .header {
@@ -926,6 +943,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;
@@ -934,31 +952,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;
.main_item { .main_item {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 32px; margin-top: 32px;
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;
@@ -971,10 +996,12 @@ export default {
} }
} }
} }
.main_item2 { .main_item2 {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 32px; margin-bottom: 32px;
.textarea { .textarea {
width: 423px; width: 423px;
@@ -996,24 +1023,29 @@ export default {
border-radius: 8px; border-radius: 8px;
} }
} }
.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;
@@ -1023,10 +1055,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;
@@ -1043,6 +1077,7 @@ export default {
} }
} }
} }
.main_btns { .main_btns {
height: 72px; height: 72px;
width: 100%; width: 100%;
@@ -1052,6 +1087,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;
@@ -1061,6 +1097,7 @@ export default {
background-color: #fff; background-color: #fff;
cursor: pointer; cursor: pointer;
} }
.btn2 { .btn2 {
cursor: pointer; cursor: pointer;
width: 100px; width: 100px;

View File

@@ -134,6 +134,7 @@
import {toRefs, reactive} from "vue"; import {toRefs, reactive} from "vue";
import * as api from "../../api/index1"; import * as api from "../../api/index1";
import {message} from "ant-design-vue"; import {message} from "ant-design-vue";
export default { export default {
name: "ProjPowerList", name: "ProjPowerList",
props: { props: {
@@ -271,9 +272,8 @@ export default {
align: "center", align: "center",
scopedSlots: {customRender: "action"}, //引入的插槽 scopedSlots: {customRender: "action"}, //引入的插槽
customRender: (text) => { customRender: (text) => {
return ( return (text.record.state === '归属权' ? '' : <div
<div className="opa"
class="opa"
onClick={() => { onClick={() => {
console.log("text.record.id", text.record.id); console.log("text.record.id", text.record.id);
showCancelModal(text.record); showCancelModal(text.record);
@@ -430,16 +430,19 @@ export default {
.ant-drawer-header { .ant-drawer-header {
display: none !important; display: none !important;
} }
.ant-drawer-body { .ant-drawer-body {
padding: 0; padding: 0;
} }
} }
.drawerMain { .drawerMain {
min-width: 550px; min-width: 550px;
margin: 0px 32px 0px 32px; margin: 0px 32px 0px 32px;
// overflow-x: auto; // overflow-x: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.header { .header {
height: 73px; height: 73px;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
@@ -449,6 +452,7 @@ export default {
// background-color: red; // background-color: red;
margin-bottom: 20px; margin-bottom: 20px;
flex-shrink: 0; flex-shrink: 0;
.headerTitle { .headerTitle {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
@@ -457,11 +461,13 @@ export default {
// margin-left: 24px; // margin-left: 24px;
} }
} }
.main { .main {
width: 100%; width: 100%;
height: 100%; height: 100%;
// background-color: #bfa; // background-color: #bfa;
overflow-y: auto; overflow-y: auto;
.search { .search {
width: 100%; width: 100%;
display: flex; display: flex;
@@ -471,14 +477,17 @@ export default {
.leftchoose { .leftchoose {
display: flex; display: flex;
margin-right: 20px; margin-right: 20px;
.namecon { .namecon {
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
margin-bottom: 10px; margin-bottom: 10px;
.name { .name {
margin-top: 8px; margin-top: 8px;
white-space: nowrap; white-space: nowrap;
} }
// .name { // .name {
// margin-top: 8px; // margin-top: 8px;
@@ -501,6 +510,7 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.img1 { .img1 {
width: 15px; width: 15px;
height: 17px; height: 17px;
@@ -508,6 +518,7 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
margin-right: 7px; margin-right: 7px;
} }
.img2 { .img2 {
width: 16px; width: 16px;
height: 18px; height: 18px;
@@ -522,6 +533,7 @@ export default {
color: #ffffff; color: #ffffff;
} }
.btn2 { .btn2 {
background: #ffffff; background: #ffffff;
@@ -539,17 +551,21 @@ export default {
// padding-left: 9px !important; // padding-left: 9px !important;
padding-left: 20px !important; padding-left: 20px !important;
} }
.ant-checkbox-wrapper { .ant-checkbox-wrapper {
align-items: center; align-items: center;
margin-top: -2px; margin-top: -2px;
} }
.ant-table-selection-column { .ant-table-selection-column {
padding: 0px !important; padding: 0px !important;
// padding-left: 45px !important; // padding-left: 45px !important;
} }
.ant-table-thead > tr > th { .ant-table-thead > tr > th {
background-color: rgba(239, 244, 252, 1); background-color: rgba(239, 244, 252, 1);
} }
th.h { th.h {
background-color: #eff4fc !important; background-color: #eff4fc !important;
} }
@@ -559,6 +575,7 @@ export default {
> td { > td {
background: #f6f9fd; background: #f6f9fd;
} }
.opa { .opa {
// background-color: #bfa; // background-color: #bfa;
font-size: 14px; font-size: 14px;
@@ -567,6 +584,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.pa { .pa {
// left: 0; // left: 0;
margin-top: 25px; margin-top: 25px;
@@ -585,6 +603,7 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
// .tab { // .tab {
// .ant-table-thead > tr > th { // .ant-table-thead > tr > th {
// background-color: rgba(239, 244, 252, 1) !important; // background-color: rgba(239, 244, 252, 1) !important;
@@ -602,6 +621,7 @@ export default {
// } // }
} }
} }
// .botm { // .botm {
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
@@ -619,6 +639,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;
@@ -628,6 +649,7 @@ export default {
background-color: #fff; background-color: #fff;
cursor: pointer; cursor: pointer;
} }
.btn2 { .btn2 {
cursor: pointer; cursor: pointer;
width: 100px; width: 100px;

View File

@@ -69,7 +69,7 @@ export default {
onMounted(() => { onMounted(() => {
console.log('onMounted') console.log('onMounted')
init() // init()
}) })
function getMember() { function getMember() {

View File

@@ -2924,7 +2924,11 @@
</div> </div>
</a-modal> </a-modal>
<!-- 预览弹窗 --> <!-- 预览弹窗 -->
<!-- <SeeModal :show="lookCourseModal" /> --> <SeeModal
:visible="lookCourseModal"
:detail="faceDetailObj"
@cancel="ft_exit_see"
/>
<!--删除 复制 停用弹窗 --> <!--删除 复制 停用弹窗 -->
<!-- 学员管理课程库-归属权抽屉 --> <!-- 学员管理课程库-归属权抽屉 -->
<!-- <own-power v-model:ownpowervisible="ownpowervisible" /> --> <!-- <own-power v-model:ownpowervisible="ownpowervisible" /> -->
@@ -3037,7 +3041,7 @@ import "@wangeditor/editor/dist/css/style.css";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue"; import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
import ProjectManager from "@/components/project/ProjectManager"; import ProjectManager from "@/components/project/ProjectManager";
// import SeeModal from "./components/seeModal.vue"; import SeeModal from "./components/seeModal.vue";
//列表表格 //列表表格
const columns1 = [ const columns1 = [
@@ -3090,7 +3094,17 @@ const columns1 = [
{ {
title: " 所属项目", title: " 所属项目",
width: 250, width: 250,
dataIndex: "project", dataIndex: "projectName",
key: "3",
align: "center",
ellipsis: true,
customRender: ({ text }) => {
return text ? text : "-";
},
},{
title: " 所属路径",
width: 250,
dataIndex: "routerName",
key: "3", key: "3",
align: "center", align: "center",
ellipsis: true, ellipsis: true,
@@ -3498,6 +3512,7 @@ export default defineComponent({
// Corpowerlist, // Corpowerlist,
Editor, Editor,
Toolbar, Toolbar,
SeeModal,
// StuAdd, // StuAdd,
ProjectManager, ProjectManager,
ProjOwnerShip, ProjOwnerShip,
@@ -4770,10 +4785,13 @@ export default defineComponent({
score: state.lrcj_inputV1, score: state.lrcj_inputV1,
studentIds: [state.studentId], studentIds: [state.studentId],
type: 1, type: 1,
}); }).then((res) => {
if (res.data.code === 200) {
getTableDate2(); getTableDate2();
delete_exit1(); delete_exit1();
} }
});
}
} }
}; };
const handleJie = async () => { const handleJie = async () => {
@@ -4783,10 +4801,13 @@ export default defineComponent({
score: "", score: "",
studentIds: [state.studentId], studentIds: [state.studentId],
type: 2, type: 2,
}); }).then((res) => {
if (res.data.code === 200) {
getTableDate2(); getTableDate2();
delete_exit1(); delete_exit1();
} }
});
}
}; };
//确认复制 //确认复制
const handleAgreeTrue = async () => { const handleAgreeTrue = async () => {
@@ -4796,21 +4817,27 @@ export default defineComponent({
score: "", score: "",
studentIds: [state.studentId], studentIds: [state.studentId],
type: 3, type: 3,
}); }).then((res) => {
if (res.data.code === 200) {
getTableDate2(); getTableDate2();
delete_exit1(); delete_exit1();
state.addLoading = false; state.addLoading = false;
} }
});
}
if (state.rejectstudy_hs) { if (state.rejectstudy_hs) {
handleStudent({ handleStudent({
offcoursePlanId: state.offcoursePlanId, offcoursePlanId: state.offcoursePlanId,
score: "", score: "",
studentIds: [state.studentId], studentIds: [state.studentId],
type: 4, type: 4,
}); }).then((res) => {
if (res.data.code === 200) {
getTableDate2(); getTableDate2();
delete_exit1(); delete_exit1();
} }
});
}
}; };
//确认复制课程 //确认复制课程
const handleDeleteExit = async () => { const handleDeleteExit = async () => {
@@ -4825,16 +4852,22 @@ export default defineComponent({
score: "", score: "",
studentIds: [state.studentId], studentIds: [state.studentId],
type: 5, type: 5,
}); }).then((res) => {
if (res.data.code === 200) {
getTableDate2(); getTableDate2();
delete_exit1(); delete_exit1();
}
});
} else if (state.offcourseId && state.offcoursePlanId) { } else if (state.offcourseId && state.offcoursePlanId) {
console.log(2222222); console.log(2222222);
deletePlan({ deletePlan({
offcoursePlanId: state.offcoursePlanId, offcoursePlanId: state.offcoursePlanId,
}); }).then((res) => {
if (res.data.code === 200) {
getTableDate3(); getTableDate3();
delete_exit1(); delete_exit1();
}
});
} else if (state.offcourseId) { } else if (state.offcourseId) {
console.log(3333333); console.log(3333333);
handle({ handle({
@@ -5086,7 +5119,6 @@ export default defineComponent({
state.lookCourseModal = false; state.lookCourseModal = false;
}; };
const handleLook = async (itm, type) => { const handleLook = async (itm, type) => {
state.lookCourseModal = true;
// state.isEdit = 0; // state.isEdit = 0;
console.log(45555); console.log(45555);
console.log(itm); console.log(itm);
@@ -5100,12 +5132,14 @@ export default defineComponent({
}).then((res) => { }).then((res) => {
if (res.data.code === 200) return res.data.data; if (res.data.code === 200) return res.data.data;
}); });
state.lookCourseModal = true;
state.faceDetailObj = item; state.faceDetailObj = item;
// heroImg.value.src = item.picUrl; // heroImg.value.src = item.picUrl;
// valueHtmlRef.value = item.outline; // valueHtmlRef.value = item.outline;
// attachMap.value = item.attach == "" ? [] : item.attach.split(","); // attachMap.value = item.attach == "" ? [] : item.attach.split(",");
console.log("res222222222"); console.log("res222222222");
console.log(item); console.log(item);
console.log(state.lookCourseModal);
// state.qdms_inputV1 = item.name; // state.qdms_inputV1 = item.name;
// state.imageUrl = item.picUrl; // state.imageUrl = item.picUrl;

View File

@@ -2,14 +2,14 @@
<template> <template>
<!-- 预览弹窗 --> <!-- 预览弹窗 -->
<a-modal <a-modal
v-model:visible="showM" :visible="visible"
title="查看" title="查看"
@ok="handleCancel"
:footer="null" :footer="null"
:closable="false" :closable="false"
wrapClassName="modalStyle lookCourseModal" wrapClassName="modalStyle lookCourseModal"
width="80%" width="80%"
@cancel="handleCancel" @cancel="handleCancel"
@ok="handleCancel"
> >
<div class="modalHeader"> <div class="modalHeader">
<div class="headerLeft"> <div class="headerLeft">
@@ -37,7 +37,7 @@
<div class="asterisk_icon"> <div class="asterisk_icon">
<img <img
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt="img"
/> />
</div> </div>
<span style="margin-right: 14px">课程名称</span> <span style="margin-right: 14px">课程名称</span>
@@ -48,7 +48,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="i2_cz"> <!-- <div class="i2_cz">
<div class="i2_top"> <div class="i2_top">
<div <div
class="i2_right" class="i2_right"
@@ -58,13 +58,13 @@
<div class="b_icon"></div> <div class="b_icon"></div>
</div> </div>
</div> </div>
</div> </div> -->
<div class="mbl_items2"> <div class="mbl_items2">
<div class="item_nam"> <div class="item_nam">
<div class="asterisk_icon"> <div class="asterisk_icon">
<img <img
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt="img"
/> />
</div> </div>
<span style="margin-right: 14px">封面图</span> <span style="margin-right: 14px">封面图</span>
@@ -82,7 +82,7 @@
<img <img
style="width: 10px; height: 10px" style="width: 10px; height: 10px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt="img"
/> />
</div> </div>
<span style="margin-right: 14px">目标人群</span> <span style="margin-right: 14px">目标人群</span>
@@ -193,10 +193,10 @@
</div> </div>
</div> </div>
<div class="mbl_items"> <div class="mbl_items">
<div v-if="attachMap.length > 0" class="item_nam"> <!-- <div v-if="attachMap.length > 0" class="item_nam">
<span style="margin-right: 10px">附件</span> <span style="margin-right: 10px">附件</span>
</div> </div> -->
<div <!-- <div
class="item_inp" class="item_inp"
v-for="(value, index) in attachMap" v-for="(value, index) in attachMap"
:key="index" :key="index"
@@ -216,6 +216,7 @@
<a style="margin-left: 120px" :src="value" :href="value"> <a style="margin-left: 120px" :src="value" :href="value">
查看 查看
</a> </a>
</div>-->
<!-- <a-upload multiple :show-upload-list="false" :before-upload="beforeUpload2"> <!-- <a-upload multiple :show-upload-list="false" :before-upload="beforeUpload2">
<div class="accessory" style="cursor: pointer"> <div class="accessory" style="cursor: pointer">
<div class="accessory_icon"> <div class="accessory_icon">
@@ -228,7 +229,6 @@
支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip 支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip
</span> --> </span> -->
</div> </div>
</div>
<div class="mbl_items12"> <div class="mbl_items12">
<div <div
class="i12_box1" class="i12_box1"
@@ -253,13 +253,13 @@
</div> </div>
</div> </div>
</div> </div>
<div class="file_operation"> <!-- <div class="file_operation">
<div class="fobox"> <div class="fobox">
<span style="color: #4ea6ff" @click="handleDel(index)"> <span style="color: #4ea6ff" @click="handleDel(index)">
删除 删除
</span> </span>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
@@ -301,11 +301,11 @@
</a-modal> </a-modal>
</template> </template>
<script> <script>
import { reactive, toRefs, defineComponent } from "vue"; import { reactive, toRefs, defineComponent, toRef, watch } from "vue";
export default defineComponent({ export default defineComponent({
props: { props: {
show: { visible: {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
@@ -316,10 +316,18 @@ export default defineComponent({
}, },
setup(props, { emit }) { setup(props, { emit }) {
console.log(props); console.log(props);
// const showM = ref(props.show); const detailWatch = toRef(props, "detail");
const state = reactive({ const state = reactive({
showM: false, imgList: [],
}); });
watch(
() => detailWatch,
(newValue) => {
console.log(78787878);
console.log(newValue);
},
{ deep: true }
);
const filterTxt = (txt) => { const filterTxt = (txt) => {
if (txt) { if (txt) {
@@ -329,7 +337,6 @@ export default defineComponent({
} }
}; };
const handleCancel = () => { const handleCancel = () => {
console.log(6767767);
emit("cancel"); emit("cancel");
}; };

View File

@@ -377,7 +377,7 @@
<img src="../../assets/images/taskpage/right2.png"/> <img src="../../assets/images/taskpage/right2.png"/>
</div> </div>
<div class="centerbox" style="color: rgba(78, 166, 255, 1)"> <div class="centerbox" style="color: rgba(78, 166, 255, 1)">
单层项目 单层{{projectInfo.parentId?'子':''}}项目
</div> </div>
<div class="centermain"> <div class="centermain">
不包含子项目直接填写项目基础信息后创建任务 不包含子项目直接填写项目基础信息后创建任务
@@ -402,10 +402,10 @@
<img src="../../assets/images/taskpage/right3.png"/> <img src="../../assets/images/taskpage/right3.png"/>
</div> </div>
<div class="centerbox1" style="color: rgba(93, 201, 136, 1)"> <div class="centerbox1" style="color: rgba(93, 201, 136, 1)">
多层项目 多层{{projectInfo.parentId?'子':''}}项目
</div> </div>
<div class="centermain1"> <div class="centermain1">
包含子项目分为多层子项目和单层子项目多层子项目可创建班级通过班级填写基础信息并创建任务 {{projectInfo.parentId?'可创建班级,通过班级填写基础信息并创建任务':'包含子项目,分为多层子项目和单层子项目多层子项目可创建班级通过班级填写基础信息并创建任务'}}
</div> </div>
</div> </div>
</div> </div>
@@ -644,6 +644,37 @@
</div> </div>
</div> </div>
</a-modal> </a-modal>
<!-- 撤回结束弹窗-->
<a-modal
v-model:visible="backFinashModal"
:footer="null"
:closable="closeBack"
wrapClassName="CopyModal"
centered="true"
>
<div class="delete">
<div class="del_header"></div>
<div class="del_main">
<div class="header">
<div class="icon"></div>
<span>提示</span>
<div class="close_exit" @click="closeBackFinashModal"></div>
</div>
<div class="body">
<span>是否撤回结束</span>
<div class="back">项目撤回结束后学员可继续学习</div>
</div>
<div class="del_btnbox">
<div class="del_btn btn1" @click="closeBackFinashModal">
<div class="btnText">取消</div>
</div>
<div class="del_btn btn2" @click="reFinashedProject">
<div class="btnText">确定</div>
</div>
</div>
</div>
</div>
</a-modal>
<!-- 创建项目提示框 --> <!-- 创建项目提示框 -->
<a-modal <a-modal
v-model:visible="reminderModal" v-model:visible="reminderModal"
@@ -778,6 +809,8 @@ import {storage} from "../../api/storage";
import ProjectManager from "@/components/project/ProjectManager"; import ProjectManager from "@/components/project/ProjectManager";
import ProjectClass from "@/components/project/ProjectClass"; import ProjectClass from "@/components/project/ProjectClass";
import OrgClass from "@/components/project/OrgClass"; import OrgClass from "@/components/project/OrgClass";
import dayjs from "dayjs";
export default { export default {
name: "projectManage", name: "projectManage",
@@ -848,6 +881,7 @@ export default {
projectClass: [], projectClass: [],
managerList: [], managerList: [],
managerLoading: false, managerLoading: false,
backFinashModal:false,
memberParam: { memberParam: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
@@ -965,16 +999,11 @@ export default {
api api
.getProjectCount(object.projectId) .getProjectCount(object.projectId)
.then((res) => { .then((res) => {
if (res.status === 200) {
console.log("获取关卡、任务、学员统计数据", res.data); console.log("获取关卡、任务、学员统计数据", res.data);
state.projectStudentsNum = res.data.students; state.projectStudentsNum = res.data.students;
state.projectStages = res.data.stages; state.projectStages = res.data.stages;
state.projectTasks = res.data.tasks; state.projectTasks = res.data.tasks;
}
}) })
.catch((err) => {
console.log("err", err);
});
// //获取学员总数 // //获取学员总数
// let obj = { // let obj = {
// pageNo: 0, // pageNo: 0,
@@ -1003,8 +1032,7 @@ export default {
projectId: state.releaseProjectId, projectId: state.releaseProjectId,
type: 4, type: 4,
}; };
api api.handleProject(obj)
.handleProject(obj)
.then((res) => { .then((res) => {
console.log("发布成功", res); console.log("发布成功", res);
message.destroy(); message.destroy();
@@ -1012,19 +1040,21 @@ export default {
state.projectPub = false; state.projectPub = false;
getTableDate(); getTableDate();
}) })
.catch((err) => {
console.log("发布失败", err);
});
}; };
//关闭发布弹窗 //关闭发布弹窗
const closeProjectPub = () => { const closeProjectPub = () => {
state.projectPub = false; state.projectPub = false;
}; };
//打开撤回弹窗 //打开撤回发布弹窗
const showBackModal = (projectId) => { const showBackModal = (projectId) => {
state.backModal = true; state.backModal = true;
state.recallProjectId = projectId; state.recallProjectId = projectId;
}; };
//打开撤回结束弹窗
const showBackFinashModal = (projectId) => {
state.backFinashModal = true;
state.recallProjectId = projectId;
};
//确认撤回发布 //确认撤回发布
const recallProject = () => { const recallProject = () => {
let obj = { let obj = {
@@ -1044,10 +1074,32 @@ export default {
console.log("撤回失败", err); console.log("撤回失败", err);
}); });
}; };
//确认撤回结束
const reFinashedProject = () => {
let obj = {
projectId: state.recallProjectId,
type: -6,
};
api
.handleProject(obj)
.then((res) => {
console.log("撤回成功", res);
message.destroy();
message.success("撤回成功");
state.backFinashModal = false;
getTableDate();
})
.catch((err) => {
console.log("撤回失败", err);
});
};
//关闭撤回弹窗 //关闭撤回弹窗
const closeBackModal = () => { const closeBackModal = () => {
state.backModal = false; state.backModal = false;
}; };
const closeBackFinashModal = () => {
state.backFinashModal = false;
};
//打开结束弹窗 //打开结束弹窗
const showStopModal = (projectId) => { const showStopModal = (projectId) => {
state.stopModal = true; state.stopModal = true;
@@ -1250,24 +1302,15 @@ export default {
customRender: (value) => { customRender: (value) => {
return ( return (
<div> <div>
{value.record.status == 0 || {value.record.type === 3 ? {
value.record.status == 1 || '0': () => '草稿',
value.record.status == 2 || '1': () => '草稿',
value.record.status == -2 '2': () => '草稿',
? "草稿" '3': () => dayjs().isBefore(value.record.beginTime) ? '未开始' : '进行中',
: value.record.status == 3 && '4': () => dayjs().isBefore(value.record.end) ? '进行中' : '已结束',
Number(value.record.beginTime) < '-1': () => '已结束',
Math.ceil(new Date().getTime() / 1000) '-5': () => '草稿'
? "进行中" }[value.record.status + '']() || '' : '-'}
: value.record.status == 3 &&
Number(value.record.beginTime) >
Math.ceil(new Date().getTime() / 1000) &&
value.record.type !== 1 &&
value.record.type !== 2
? "未开始"
: value.record.status == -1
? "已结束"
: "-"}
</div> </div>
); );
}, },
@@ -1290,19 +1333,15 @@ export default {
customRender: (value) => { customRender: (value) => {
return ( return (
<div> <div>
{value.record.type !== 3 {value.record.type === 3 ? {
? "-" '0': '未审核',
: value.record.status == 0 '1': '审核中',
? "未审核" '2': '已审核',
: value.record.status == 1 '3': '已审核',
? "审核中" '4': '已审核',
: value.record.status == 2 || '-1': '已审核',
value.record.status == 3 || '-5': '拒绝'
value.record.status == -1 }[value.record.status + ''] || '' : '-'}
? "已审核"
: value.record.status == -2
? "未通过"
: "-"}
</div> </div>
); );
}, },
@@ -1325,7 +1364,7 @@ export default {
// console.log("value", value.record.type, value.record.status); // console.log("value", value.record.type, value.record.status);
return ( return (
<div className="operation"> <div className="operation">
{value.record.status === 0 || value.record.status === -2 ? ( {value.record.status === 0 || value.record.status === -5 ? (
<span <span
onClick={() => { onClick={() => {
if (value.record.type === 1 || value.record.type === 2) { if (value.record.type === 1 || value.record.type === 2) {
@@ -1351,7 +1390,7 @@ export default {
) : ( ) : (
"" ""
)} )}
{(value.record.status === 0 || value.record.status === -2) && {(value.record.status === 0 || value.record.status === -5) &&
value.record.type === 3 ? ( value.record.type === 3 ? (
<span <span
onClick={() => { onClick={() => {
@@ -1365,7 +1404,7 @@ export default {
) : ( ) : (
"" ""
)} )}
{value.record.status === 1 && value.record.type !== 1 ? ( {value.record.status === 1 && value.record.type === 3 ? (
<span <span
onClick={() => { onClick={() => {
showRecallReviewModal(value.record.projectId); showRecallReviewModal(value.record.projectId);
@@ -1378,10 +1417,10 @@ export default {
) : ( ) : (
"" ""
)} )}
{value.record.status === 2 ? ( {value.record.status === 2 && value.record.type === 3 ? (
<span <span
onClick={() => { onClick={() => {
let time = value.record.beginTime + "-" + value.record.beginTime; let time = value.record.beginTime + "-" + value.record.endTime;
let obj = { let obj = {
projectId: value.record.projectId, projectId: value.record.projectId,
name: value.record.name, name: value.record.name,
@@ -1397,6 +1436,19 @@ export default {
) : ( ) : (
"" ""
)} )}
{value.record.status === 3 && value.record.type === 3 ? (
<span
onClick={() => {
showBackModal(value.record.projectId);
}}
style="cursor:pointer"
class="operation3"
>
撤回发布
</span>
) : (
""
)}
<div className="tableSelect"> <div className="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -1519,6 +1571,33 @@ export default {
) : ( ) : (
"" ""
)} )}
{value.record.status === 3 && value.record.type === 3 ? (
<a-select-option value="结束" label="结束">
<div
onClick={() => {
showStopModal(value.record.projectId);
}}
>
结束
</div>
</a-select-option>
) : (
""
)}
{value.record.status === -1 && value.record.type === 3 ? (
<a-select-option value="撤回" label="撤回">
<div
onClick={() => {
showBackFinashModal(value.record.projectId);
}}
>
撤回
</div>
</a-select-option>
) : (
""
)}
{value.record.type === 3 ? ( {value.record.type === 3 ? (
<a-select-option value="基础信息" label="基础信息"> <a-select-option value="基础信息" label="基础信息">
<div <div
@@ -1664,6 +1743,9 @@ export default {
); );
return { return {
...toRefs(state), ...toRefs(state),
dayjs,
reFinashedProject,
showBackFinashModal,
timeChange, timeChange,
expandTable, expandTable,
showModal, showModal,
@@ -1684,6 +1766,7 @@ export default {
closeStartModal, closeStartModal,
showBackModal, showBackModal,
closeBackModal, closeBackModal,
closeBackFinashModal,
getTableDate, getTableDate,
showProjOwner, showProjOwner,
showProjPrower, showProjPrower,