mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
feat:面授课修改记录增加
This commit is contained in:
@@ -44,3 +44,6 @@ export const courseAuditView = (obj) => http.post('/admin/offcourse/auditView',
|
|||||||
|
|
||||||
//项目修改记录
|
//项目修改记录
|
||||||
export const editRecord = (chooseProject) => http.get(`/modifyRecord/page?id=${chooseProject}&type=1&size=2`)
|
export const editRecord = (chooseProject) => http.get(`/modifyRecord/page?id=${chooseProject}&type=1&size=2`)
|
||||||
|
|
||||||
|
// 面授课的修改记录
|
||||||
|
export const editCourseRecord = (chooseCourse) => http.get(`/modifyRecord/page?id=${chooseCourse}&type=2&size=100`)
|
||||||
|
|||||||
@@ -94,6 +94,27 @@
|
|||||||
<div class="close_exit" @click="closeCourAuditModal"></div>
|
<div class="close_exit" @click="closeCourAuditModal"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
<div class="item">
|
||||||
|
<div class="left" style="color:#4ea6ff;">修改意见</div>
|
||||||
|
<div class="rig">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 修改记录详情 -->
|
||||||
|
<div v-if="openDetailVisibie" style="display: flex;width: 100%;margin-top: 12px;">
|
||||||
|
<a-table
|
||||||
|
:columns="columns2"
|
||||||
|
:data-source="tableData2"
|
||||||
|
:loading="loading2"
|
||||||
|
expandRowByClick="true"
|
||||||
|
@expand="expandTable"
|
||||||
|
:scroll="{ y: 250 }"
|
||||||
|
:pagination="false" />
|
||||||
|
</div>
|
||||||
|
<div style="display: flex;justify-content: center;align-items: center;height: 70px;">
|
||||||
|
<div @click="openDetail" style="cursor:pointer;padding: 2px 12px;border-radius: 4px;background: #4ea6ff;color: #fff;font-size: 14px;">
|
||||||
|
{{ openDetailVisibie?"详情折叠":"详情展开" }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="left">审核:</div>
|
<div class="left">审核:</div>
|
||||||
<div class="rig">
|
<div class="rig">
|
||||||
@@ -121,6 +142,7 @@
|
|||||||
<div class="btnText">确定</div>
|
<div class="btnText">确定</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="height:20px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
@@ -234,6 +256,7 @@ import { message } from "ant-design-vue";
|
|||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import SeeModal from "../courselibrary/components/seeModal.vue";
|
import SeeModal from "../courselibrary/components/seeModal.vue";
|
||||||
import { iframeUrl } from "../../api/method";
|
import { iframeUrl } from "../../api/method";
|
||||||
|
import { editCourseRecord } from "../../api/indexAudit";
|
||||||
import {useStore} from "vuex";
|
import {useStore} from "vuex";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
@@ -246,6 +269,7 @@ export default {
|
|||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
loading: false,
|
loading: false,
|
||||||
|
loading2: false,
|
||||||
optionsproj: [
|
optionsproj: [
|
||||||
{
|
{
|
||||||
value: "jack",
|
value: "jack",
|
||||||
@@ -415,9 +439,38 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
columns2: [
|
||||||
|
{
|
||||||
|
title: "修改人",
|
||||||
|
dataIndex: "updateName",
|
||||||
|
key: "updateName",
|
||||||
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "修改时间",
|
||||||
|
dataIndex: "updateTime",
|
||||||
|
key: "updateTime",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "修改前",
|
||||||
|
dataIndex: "beforeValue",
|
||||||
|
key: "beforeValue",
|
||||||
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "修改后",
|
||||||
|
dataIndex: "afterValue",
|
||||||
|
key: "afterValue",
|
||||||
|
align: "center",
|
||||||
|
}
|
||||||
|
],
|
||||||
// 待审核课程的数据
|
// 待审核课程的数据
|
||||||
tableData1: [],
|
tableData1: [],
|
||||||
|
// 修改记录数据
|
||||||
|
tableData2: [],
|
||||||
//审核在线课嵌套页面
|
//审核在线课嵌套页面
|
||||||
onlineClassesVisible: false,
|
onlineClassesVisible: false,
|
||||||
iframeUrl: iframeUrl,
|
iframeUrl: iframeUrl,
|
||||||
@@ -564,8 +617,13 @@ export default {
|
|||||||
result:"",
|
result:"",
|
||||||
remarks:"",
|
remarks:"",
|
||||||
times:"",
|
times:"",
|
||||||
}
|
},
|
||||||
|
openDetailVisibie:false,
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
|
|
||||||
const sysTypeOptions = computed(() => store.state.content_type);
|
const sysTypeOptions = computed(() => store.state.content_type);
|
||||||
@@ -739,7 +797,8 @@ export default {
|
|||||||
state.createId = createId;
|
state.createId = createId;
|
||||||
state.chooseCreater = creater;
|
state.chooseCreater = creater;
|
||||||
state.chooseOffId = offId;
|
state.chooseOffId = offId;
|
||||||
getFaceList();
|
{/* 获取当前课程的审核记录 */}
|
||||||
|
getCourseRecord(offId);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 显示邀请审核弹框
|
// 显示邀请审核弹框
|
||||||
@@ -794,6 +853,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const closeCourAuditModal = () => {
|
const closeCourAuditModal = () => {
|
||||||
|
state.openDetailVisibie = false;
|
||||||
state.courAuditModal = false;
|
state.courAuditModal = false;
|
||||||
state.valueSugg = null;
|
state.valueSugg = null;
|
||||||
state.valuepass = "1";
|
state.valuepass = "1";
|
||||||
@@ -827,6 +887,7 @@ export default {
|
|||||||
state.valueSugg = null;
|
state.valueSugg = null;
|
||||||
state.valuepass = "1";
|
state.valuepass = "1";
|
||||||
getFaceList();
|
getFaceList();
|
||||||
|
state.openDetailVisibie = false;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
@@ -834,6 +895,7 @@ export default {
|
|||||||
message.warning("审核提交失败");
|
message.warning("审核提交失败");
|
||||||
state.valueSugg = null;
|
state.valueSugg = null;
|
||||||
state.valuepass = "1";
|
state.valuepass = "1";
|
||||||
|
state.openDetailVisibie = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
@@ -844,6 +906,30 @@ export default {
|
|||||||
const onEditorFocus = (event) => {
|
const onEditorFocus = (event) => {
|
||||||
event.enable(false);
|
event.enable(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
{/* 产看审核记录详情 */}
|
||||||
|
const openDetail = () => {
|
||||||
|
state.openDetailVisibie = !state.openDetailVisibie;
|
||||||
|
}
|
||||||
|
|
||||||
|
{/* 获取课程审核记录 */}
|
||||||
|
const getCourseRecord = (courseId) => {
|
||||||
|
state.loading2.value = true;
|
||||||
|
editCourseRecord(courseId)
|
||||||
|
.then((res) => {
|
||||||
|
console.log("获取修改记录", res);
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
state.tableData2 = res.data.data.records;
|
||||||
|
// console.log("state.tableData", state.tableData);
|
||||||
|
}
|
||||||
|
state.loading2.value = false;
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log("获取修改记录失败", err);
|
||||||
|
state.loading2.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
getFaceList,
|
getFaceList,
|
||||||
@@ -868,7 +954,9 @@ export default {
|
|||||||
sceneist11,
|
sceneist11,
|
||||||
onEditorFocus,
|
onEditorFocus,
|
||||||
sHX,
|
sHX,
|
||||||
sysTypeOptions
|
sysTypeOptions,
|
||||||
|
openDetail,
|
||||||
|
getCourseRecord
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -898,21 +986,21 @@ export default {
|
|||||||
.courAuditModal {
|
.courAuditModal {
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
width: 640px !important;
|
width: 640px !important;
|
||||||
height: 400px !important;
|
height: auto;
|
||||||
|
|
||||||
.ant-modal-content {
|
.ant-modal-content {
|
||||||
width: 640px !important;
|
width: 640px !important;
|
||||||
height: 400px !important;
|
height: auto;
|
||||||
|
|
||||||
.ant-modal-body {
|
.ant-modal-body {
|
||||||
width: 640px !important;
|
width: 640px !important;
|
||||||
height: 400px !important;
|
height: auto;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|
||||||
.delete {
|
.delete {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
width: 640px;
|
width: 640px;
|
||||||
height: 400px;
|
height: auto;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
Reference in New Issue
Block a user