mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
-- bug 面授选择课程
This commit is contained in:
@@ -28,11 +28,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<span style="margin-right: 3px">选择课程:</span>
|
<span style="margin-right: 3px">选择课程:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox" @click="showDrawerSelFacet">
|
<div class="btnbox">
|
||||||
<button class="xkbtn">
|
<button class="xkbtn" @click="showDrawerSelFacet">
|
||||||
{{ chooseCourse == null ? "选择" : "修改" }}面授课
|
{{ chooseCourse == null ? "选择" : chooseCourseName }}面授课
|
||||||
</button>
|
</button>
|
||||||
<div v-if="chooseCourse > 0">
|
<div v-if="chooseCourse">
|
||||||
<a-tag closable color="processing" @close="logC">
|
<a-tag closable color="processing" @close="logC">
|
||||||
<span style="font-size:14px;line-height: 33px;">删除课程</span>
|
<span style="font-size:14px;line-height: 33px;">删除课程</span>
|
||||||
</a-tag>
|
</a-tag>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 选择面授侧弹窗 -->
|
<!-- 选择面授侧弹窗 -->
|
||||||
<div>
|
<div>
|
||||||
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse"/>
|
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse" v-model:chooseCourseName="chooseCourseName"/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 选择面授侧弹窗 -->
|
<!-- 选择面授侧弹窗 -->
|
||||||
</div>
|
</div>
|
||||||
@@ -371,6 +371,7 @@ export default {
|
|||||||
chooseTime: [],
|
chooseTime: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
chooseCourse: null, //选择的在线课程
|
chooseCourse: null, //选择的在线课程
|
||||||
|
chooseCourseName: null, //选择的在线课程
|
||||||
assessmentId: null,
|
assessmentId: null,
|
||||||
EditTestId: null,
|
EditTestId: null,
|
||||||
EditWorkId: null,
|
EditWorkId: null,
|
||||||
@@ -419,6 +420,7 @@ export default {
|
|||||||
|
|
||||||
const logC = e => {
|
const logC = e => {
|
||||||
state.chooseCourse = null;
|
state.chooseCourse = null;
|
||||||
|
state.chooseCourseName = null;
|
||||||
console.log(e);
|
console.log(e);
|
||||||
};
|
};
|
||||||
const logW = e => {
|
const logW = e => {
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
//import { ApiFilled } from "@ant-design/icons-vue";
|
//import { ApiFilled } from "@ant-design/icons-vue";
|
||||||
import { reactive, toRefs, ref } from "vue";
|
import {reactive, toRefs, ref, computed} from "vue";
|
||||||
// import { planList } from "../../api/indexTaskadd";
|
// import { planList } from "../../api/indexTaskadd";
|
||||||
import {detail} from "../../api/indexCourse";
|
import {detail} from "../../api/indexCourse";
|
||||||
import {list} from "../../api/indexTaskadd";
|
import {list} from "../../api/indexTaskadd";
|
||||||
@@ -196,6 +196,10 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
chooseCourseName: {
|
||||||
|
type: String,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
titleTag: {
|
titleTag: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
@@ -225,37 +229,53 @@ export default {
|
|||||||
offcourse: null,
|
offcourse: null,
|
||||||
auditStatus: null,
|
auditStatus: null,
|
||||||
name: null,
|
name: null,
|
||||||
|
courseInfo:[]
|
||||||
|
|
||||||
});
|
});
|
||||||
const rowSelection = {
|
|
||||||
|
const rowSelection = computed(() => {
|
||||||
|
console.log(3333333333)
|
||||||
|
console.log(state.selectedRows)
|
||||||
|
return {
|
||||||
type: "radio",
|
type: "radio",
|
||||||
|
selectedRowKeys: state.selectedRows,
|
||||||
onSelect: (selectedRows) => {
|
onSelect: (selectedRows) => {
|
||||||
|
console.log('select')
|
||||||
state.chooseCourse = selectedRows.num;
|
state.chooseCourse = selectedRows.num;
|
||||||
|
state.chooseCourseName = selectedRows.name;
|
||||||
console.log(selectedRows, "==========", state.chooseCourse);
|
console.log(selectedRows, "==========", state.chooseCourse);
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
},
|
},
|
||||||
};
|
onChange: (selectedRows) => {
|
||||||
|
console.log('onChange')
|
||||||
|
state.selectedRows = selectedRows
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:selfacetVisible", false);
|
ctx.emit("update:selfacetVisible", false);
|
||||||
ctx.emit("update:chooseCourse", state.chooseCourse);
|
state.chooseCourse && ctx.emit("update:chooseCourse", state.chooseCourse);
|
||||||
|
state.chooseCourseName && ctx.emit("update:chooseCourseName", state.chooseCourseName);
|
||||||
};
|
};
|
||||||
const afterVisibleChange = (bool) => {
|
const afterVisibleChange = (bool) => {
|
||||||
if (bool) {
|
if (bool) {
|
||||||
state.chooseCourse = props.chooseCourse;
|
state.chooseCourse = props.chooseCourse;
|
||||||
|
state.chooseCourseName = props.chooseCourseName;
|
||||||
|
state.selectedRows = props.chooseCourse ? [props.chooseCourse] : [];
|
||||||
getClassList();
|
getClassList();
|
||||||
getFaceInfo();
|
// getFaceInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
// const showDrawerSelFacet = () => {
|
// const showDrawerSelFacet = () => {
|
||||||
// state.selfacetvisible = true;
|
// state.selfacetvisible = true;
|
||||||
// };
|
// };
|
||||||
const getFaceInfo =()=>{
|
// const getFaceInfo = () => {
|
||||||
detail({offcourseId:36}).then((res) => {
|
// detail({offcourseId: 36}).then((res) => {
|
||||||
state.chooseCourse = res.data.data;
|
// state.courseInfo = res.data.data;
|
||||||
}).catch();
|
// }).catch();
|
||||||
}
|
// }
|
||||||
//获取面授课列表
|
//获取面授课列表
|
||||||
const getClassList = (obj) => {
|
const getClassList = (obj) => {
|
||||||
let objn = obj || {
|
let objn = obj || {
|
||||||
@@ -366,6 +386,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.headerTitle {
|
.headerTitle {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -374,6 +395,7 @@ export default {
|
|||||||
margin-left: 24px;
|
margin-left: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentMain {
|
.contentMain {
|
||||||
.main_items {
|
.main_items {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -381,23 +403,28 @@ export default {
|
|||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
.mi_ipts {
|
.mi_ipts {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
.mii_ipt {
|
.mii_ipt {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-right: 24px;
|
margin-right: 24px;
|
||||||
|
|
||||||
.ipt_name {
|
.ipt_name {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mi_btns {
|
.mi_btns {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: 38px;
|
margin-left: 38px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
padding: 0px 26px 0px 26px;
|
padding: 0px 26px 0px 26px;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
@@ -408,9 +435,11 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnText {
|
.btnText {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -418,48 +447,61 @@ export default {
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn1 {
|
.btn1 {
|
||||||
background: rgb(64, 158, 255);
|
background: rgb(64, 158, 255);
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 17px;
|
height: 17px;
|
||||||
background-image: url("@/assets/images/coursewareManage/search0.png");
|
background-image: url("@/assets/images/coursewareManage/search0.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnText {
|
.btnText {
|
||||||
color: rgb(255, 255, 255);
|
color: rgb(255, 255, 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn2 {
|
.btn2 {
|
||||||
background: rgb(255, 255, 255);
|
background: rgb(255, 255, 255);
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 17px;
|
height: 17px;
|
||||||
background-image: url("@/assets/images/coursewareManage/reset1.png");
|
background-image: url("@/assets/images/coursewareManage/reset1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnText {
|
.btnText {
|
||||||
color: rgb(64, 158, 255);
|
color: rgb(64, 158, 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn1:hover {
|
.btn1:hover {
|
||||||
background: rgb(255, 255, 255);
|
background: rgb(255, 255, 255);
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
background-image: url("@/assets/images/courseManage/search1.png");
|
background-image: url("@/assets/images/courseManage/search1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnText {
|
.btnText {
|
||||||
color: #388be1;
|
color: #388be1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn2:hover {
|
.btn2:hover {
|
||||||
background: rgba(64, 158, 255, 1);
|
background: rgba(64, 158, 255, 1);
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
background-image: url("@/assets/images/courseManage/reset0.png");
|
background-image: url("@/assets/images/courseManage/reset0.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnText {
|
.btnText {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main_notice {
|
.main_notice {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -467,16 +509,20 @@ export default {
|
|||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background-color: #e9f6fe;
|
background-color: #e9f6fe;
|
||||||
|
|
||||||
.mntc_left {
|
.mntc_left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: rgba(0, 0, 0, 0.65);
|
color: rgba(0, 0, 0, 0.65);
|
||||||
margin-right: 17px;
|
margin-right: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data {
|
.data {
|
||||||
color: #388be1;
|
color: #388be1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice_icon {
|
.notice_icon {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
@@ -486,6 +532,7 @@ export default {
|
|||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mntc_right {
|
.mntc_right {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -501,6 +548,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;
|
||||||
@@ -510,6 +558,7 @@ export default {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn2 {
|
.btn2 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
|||||||
Reference in New Issue
Block a user