mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 16:26:45 +08:00
feat:合并
This commit is contained in:
@@ -305,34 +305,98 @@
|
|||||||
<!-- 查看面授课弹框 end -->
|
<!-- 查看面授课弹框 end -->
|
||||||
<!-- 确定新建面授课弹窗 -->
|
<!-- 确定新建面授课弹窗 -->
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<div style="padding:10px 35px">
|
<div style="padding: 10px 35px">
|
||||||
<a-table
|
<a-table
|
||||||
:header-cell-style="{'text-align':'center'}"
|
:header-cell-style="{ 'text-align': 'center' }"
|
||||||
style="border: 1px solid #f2f6fe"
|
style="border: 1px solid #f2f6fe"
|
||||||
:columns="columns1"
|
:columns="columns1"
|
||||||
:data-source="tableData1"
|
:data-source="tableData1"
|
||||||
:loading="tableLoading"
|
:loading="tableLoading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x:'max-content'}"
|
:scroll="{ x: 'max-content' }"
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ record, column }">
|
<template #bodyCell="{ record, column }">
|
||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button v-if="(record.status===0 || record.status===-1 || !record.kkty) && checkPer(record.permissions)" @click="() => handleEdit(record, String(record.courseform))" type="link">编辑</a-button>
|
<a-button
|
||||||
<a-button v-if="record.status===2 && checkPer(record.permissions)" @click="() => handleStart(record, String(record.courseform))" type="link">开课</a-button>
|
v-if="
|
||||||
<a-button v-if="record.status===2 && checkPer(record.permissions)" @click="() => handleLook(record, String(record.courseform))" type="link">查看</a-button>
|
(record.status === 0 ||
|
||||||
<a-button v-if="record.status===2 && checkPer(record.permissions)" @click="() => handleGuan22(record, String(record.courseform))" type="link">管理</a-button>
|
record.status === -1 ||
|
||||||
<DropDown v-if="checkPer(record.permissions)" value="授权">
|
!record.kkty) &&
|
||||||
<OwnerTableModelStudent :types="[10,11,12]" :id="record.offcourseId">权限名单</OwnerTableModelStudent>
|
checkPer(record.permissions)
|
||||||
<CommonStudent :type="10" :id="record.offcourseId" title="查看权">查看权</CommonStudent>
|
"
|
||||||
<CommonStudent :type="11" :id="record.offcourseId" title="管理权">管理权</CommonStudent>
|
@click="() => handleEdit(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
>编辑</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="record.status === 2 && checkPer(record.permissions)"
|
||||||
|
@click="() => handleStart(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
>开课</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="record.status === 2 && checkPer(record.permissions)"
|
||||||
|
@click="() => handleLook(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
>查看</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="record.status === 2 && checkPer(record.permissions)"
|
||||||
|
@click="() => handleGuan22(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
>管理</a-button
|
||||||
|
>
|
||||||
|
<DropDown v-if="checkPer(record.permissions)" value="授权">
|
||||||
|
<OwnerTableModelStudent
|
||||||
|
:types="[10, 11, 12]"
|
||||||
|
:id="record.offcourseId"
|
||||||
|
>权限名单</OwnerTableModelStudent
|
||||||
|
>
|
||||||
|
<CommonStudent
|
||||||
|
:type="10"
|
||||||
|
:id="record.offcourseId"
|
||||||
|
title="查看权"
|
||||||
|
>查看权</CommonStudent
|
||||||
|
>
|
||||||
|
<CommonStudent
|
||||||
|
:type="11"
|
||||||
|
:id="record.offcourseId"
|
||||||
|
title="管理权"
|
||||||
|
>管理权</CommonStudent
|
||||||
|
>
|
||||||
</DropDown>
|
</DropDown>
|
||||||
<DropDown v-if="checkPer(record.permissions)" value="更多">
|
<DropDown v-if="checkPer(record.permissions)" value="更多">
|
||||||
<a-button @click="() => handleCopy(record, String(record.courseform))" type="link">复制</a-button>
|
<a-button
|
||||||
<a-button @click="() => handleRejectExit(record, String(record.courseform))" type="link">撤回</a-button>
|
@click="() => handleCopy(record, String(record.courseform))"
|
||||||
<a-button v-if="record.status===2 && record.kkty" @click="() => handleStop(record, String(record.courseform))" type="link">停用</a-button>
|
type="link"
|
||||||
<a-button v-if="record.status===2 && !record.kkty" @click="() => handleOpen(record, String(record.courseform))" type="link">启用</a-button>
|
>复制</a-button
|
||||||
<a-button @click="() => handleDelete(record, String(record.courseform))" type="link" danger>删除</a-button>
|
>
|
||||||
|
<a-button
|
||||||
|
@click="
|
||||||
|
() => handleRejectExit(record, String(record.courseform))
|
||||||
|
"
|
||||||
|
type="link"
|
||||||
|
>撤回</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="record.status === 2 && record.kkty"
|
||||||
|
@click="() => handleStop(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
>停用</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="record.status === 2 && !record.kkty"
|
||||||
|
@click="() => handleOpen(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
>启用</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
@click="() => handleDelete(record, String(record.courseform))"
|
||||||
|
type="link"
|
||||||
|
danger
|
||||||
|
>删除</a-button
|
||||||
|
>
|
||||||
</DropDown>
|
</DropDown>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -1107,9 +1171,42 @@
|
|||||||
:isgetStudent="isgetStudent"
|
:isgetStudent="isgetStudent"
|
||||||
>
|
>
|
||||||
<template #extension="{ data: { record } }">
|
<template #extension="{ data: { record } }">
|
||||||
<a-button v-if="record.source === 4 && record.status === 1" @click="() => {record.status = 0;auditStudent(record);}" type="link">审核通过</a-button>
|
<a-button
|
||||||
<a-button v-if="record.source === 4 && record.status === 1" @click="() => {record.status = 2;auditStudent(record);}" type="link">拒绝</a-button>
|
v-if="record.source === 4 && record.status === 1"
|
||||||
<a-button v-if="record.source === 4 && (record.status === 0 || record.status === 2)" @click="() => {record.status = 1;auditStudent(record);}" type="link">撤回</a-button>
|
@click="
|
||||||
|
() => {
|
||||||
|
record.status = 0;
|
||||||
|
auditStudent(record);
|
||||||
|
}
|
||||||
|
"
|
||||||
|
type="link"
|
||||||
|
>审核通过</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="record.source === 4 && record.status === 1"
|
||||||
|
@click="
|
||||||
|
() => {
|
||||||
|
record.status = 2;
|
||||||
|
auditStudent(record);
|
||||||
|
}
|
||||||
|
"
|
||||||
|
type="link"
|
||||||
|
>拒绝</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
v-if="
|
||||||
|
record.source === 4 &&
|
||||||
|
(record.status === 0 || record.status === 2)
|
||||||
|
"
|
||||||
|
@click="
|
||||||
|
() => {
|
||||||
|
record.status = 1;
|
||||||
|
auditStudent(record);
|
||||||
|
}
|
||||||
|
"
|
||||||
|
type="link"
|
||||||
|
>撤回</a-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</TableStudent>
|
</TableStudent>
|
||||||
</div>
|
</div>
|
||||||
@@ -1514,7 +1611,8 @@ import {
|
|||||||
addStudent,
|
addStudent,
|
||||||
studentExport,
|
studentExport,
|
||||||
handleStudent,
|
handleStudent,
|
||||||
getMemberInfoApi, copyCoursePlan,
|
getMemberInfoApi,
|
||||||
|
copyCoursePlan,
|
||||||
// listReview,
|
// listReview,
|
||||||
// studyRecordList,
|
// studyRecordList,
|
||||||
} from "@/api/indexCourse";
|
} from "@/api/indexCourse";
|
||||||
@@ -1547,7 +1645,7 @@ import FJUpload from "@/components/common/FJUpload";
|
|||||||
import { updateStudent } from "@/api/indexProjStu";
|
import { updateStudent } from "@/api/indexProjStu";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import DropDown from "@/components/common/DropDown";
|
import DropDown from "@/components/common/DropDown";
|
||||||
import {checkPer} from "@/utils/utils";
|
import { checkPer } from "@/utils/utils";
|
||||||
|
|
||||||
//列表表格
|
//列表表格
|
||||||
const columns1 = [
|
const columns1 = [
|
||||||
@@ -2131,7 +2229,7 @@ export default defineComponent({
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tableLoading:false,
|
tableLoading: false,
|
||||||
//新加
|
//新加
|
||||||
stuColumns: [
|
stuColumns: [
|
||||||
{
|
{
|
||||||
@@ -2904,7 +3002,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
// 渲染列表1操作
|
// 渲染列表1操作
|
||||||
const getTableDate = async () => {
|
const getTableDate = async () => {
|
||||||
state.tableLoading = true
|
state.tableLoading = true;
|
||||||
console.log("我是点击搜索的数据", state.sysTypeId);
|
console.log("我是点击搜索的数据", state.sysTypeId);
|
||||||
// let datas = state.tableData1;
|
// let datas = state.tableData1;
|
||||||
let startTime = "";
|
let startTime = "";
|
||||||
@@ -2966,7 +3064,7 @@ export default defineComponent({
|
|||||||
findClassFullName(sysTypeOptions.value, itm.sysTypeId) || "-";
|
findClassFullName(sysTypeOptions.value, itm.sysTypeId) || "-";
|
||||||
});
|
});
|
||||||
state.tableData1 = datas;
|
state.tableData1 = datas;
|
||||||
state.tableLoading = false
|
state.tableLoading = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
function findClassFullName(list, classify, name = "") {
|
function findClassFullName(list, classify, name = "") {
|
||||||
@@ -3980,13 +4078,15 @@ export default defineComponent({
|
|||||||
if (state.copy_hs) {
|
if (state.copy_hs) {
|
||||||
console.log(2222222);
|
console.log(2222222);
|
||||||
if (state.offcourseId && state.offcoursePlanId) {
|
if (state.offcourseId && state.offcoursePlanId) {
|
||||||
copyCoursePlan({offcoursePlanId:state.offcoursePlanId}).then(() => {
|
copyCoursePlan({ offcoursePlanId: state.offcoursePlanId }).then(
|
||||||
message.destroy();
|
() => {
|
||||||
message.success("复制成功");
|
message.destroy();
|
||||||
getTableDate3();
|
message.success("复制成功");
|
||||||
delete_exit1();
|
getTableDate3();
|
||||||
rest();
|
delete_exit1();
|
||||||
});
|
rest();
|
||||||
|
}
|
||||||
|
);
|
||||||
} else if (state.offcourseId) {
|
} else if (state.offcourseId) {
|
||||||
console.log(87887);
|
console.log(87887);
|
||||||
// 拿数据
|
// 拿数据
|
||||||
@@ -4155,8 +4255,6 @@ export default defineComponent({
|
|||||||
if (res.data.code === 200) return res.data.data;
|
if (res.data.code === 200) return res.data.data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
state.statusJuJue = Number(item.auditStatus) === -1 ? 1 : 0;
|
state.statusJuJue = Number(item.auditStatus) === -1 ? 1 : 0;
|
||||||
|
|
||||||
if (Number(item.auditStatus) === 2 && Number(item.status) === 1) {
|
if (Number(item.auditStatus) === 2 && Number(item.status) === 1) {
|
||||||
@@ -4219,7 +4317,7 @@ export default defineComponent({
|
|||||||
if (type === "1") {
|
if (type === "1") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state.offcourseId = itm.offcourseId;
|
state.offcourseId = itm.id;
|
||||||
|
|
||||||
const item = await detail({
|
const item = await detail({
|
||||||
offcourseId: Number(state.offcourseId),
|
offcourseId: Number(state.offcourseId),
|
||||||
@@ -4297,11 +4395,12 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const handleStart = (item, type) => {
|
const handleStart = (item, type) => {
|
||||||
console.log(item);
|
console.log("点击开课item", item);
|
||||||
|
// console.log(item);
|
||||||
if (type === "1") {
|
if (type === "1") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state.offcourseId = item.offcourseId;
|
state.offcourseId = item.id;
|
||||||
state.newCourseName = item.name;
|
state.newCourseName = item.name;
|
||||||
getTableDate3();
|
getTableDate3();
|
||||||
|
|
||||||
@@ -4637,7 +4736,9 @@ export default defineComponent({
|
|||||||
name: record.name ? record.name : "",
|
name: record.name ? record.name : "",
|
||||||
url:
|
url:
|
||||||
type == 1
|
type == 1
|
||||||
? window.location.protocol + process.env.VUE_APP_COURSE_STUDY + record.offcourseId
|
? window.location.protocol +
|
||||||
|
process.env.VUE_APP_COURSE_STUDY +
|
||||||
|
record.offcourseId
|
||||||
: process.env.VUE_APP_BASE_API +
|
: process.env.VUE_APP_BASE_API +
|
||||||
`/admin/student/studentSign?taskId=${
|
`/admin/student/studentSign?taskId=${
|
||||||
record.offcoursePlanId
|
record.offcoursePlanId
|
||||||
|
|||||||
Reference in New Issue
Block a user