mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
授课记录调整
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import http from "./config";
|
||||
//内部授课页面 -- 讲师费详情
|
||||
export const getExpenseByCourseId = (obj) => http.get('/admin/teacherExpense/getExpenseByCourseId', {params: obj})
|
||||
// 获取讲师费列表
|
||||
export const getTeacherFeeList = (obj) => http.get('/admin/teacherExpense/list', {params: obj})
|
||||
//获取讲师费详情
|
||||
|
||||
@@ -242,8 +242,8 @@
|
||||
? '已开课' : '' }}</a-descriptions-item>
|
||||
<a-descriptions-item label="内容分类 ">{{ formParam.courseTypeName }}</a-descriptions-item>
|
||||
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate }}</a-descriptions-item>
|
||||
<a-descriptions-item label="授课时长 ">{{ formParam.teaching }} 分钟
|
||||
<span style="margin-left: 10px ;" v-if="formParam.teaching != null">({{ (formParam.teaching / 60
|
||||
<a-descriptions-item label="授课时长 "> <span > {{ formParam.teaching }} 分钟</span>
|
||||
<span style="margin-left: 10px ;" v-if="formParam.teaching != '0'">({{ (formParam.teaching / 60
|
||||
).toFixed(2) }}小时)</span>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="评分 ">{{ formParam.score }}</a-descriptions-item>
|
||||
@@ -297,9 +297,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="jsx">
|
||||
import { reactive, toRefs, ref, computed } from "vue";
|
||||
import { reactive, toRefs, ref, computed,onMounted } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useStore } from "vuex";
|
||||
import { useStore ,useRoute} from "vuex";
|
||||
import {
|
||||
RightOutlined,
|
||||
UpOutlined,
|
||||
@@ -328,6 +328,15 @@ export default {
|
||||
ImportWork,
|
||||
},
|
||||
setup() {
|
||||
onMounted(() => {
|
||||
const search = sessionStorage.getItem('searchLecturer')
|
||||
if(route.query.activeKey == 1){
|
||||
state.moreid = 2
|
||||
state.searchParam = JSON.parse(search)
|
||||
}
|
||||
searchSubmit()
|
||||
})
|
||||
const route = useRoute()
|
||||
const formRef = ref();
|
||||
const store = useStore();
|
||||
const router = useRouter();
|
||||
|
||||
@@ -186,6 +186,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-item label="初始授课时长" name="defaultTeachingTime">
|
||||
<a-input v-model:value="formParam.defaultTeachingTime" style="width:80%; height: 40px; border-radius: 8px; "
|
||||
:maxLength="8"
|
||||
@blur="clearNonNumber" placeholder="0" allowClear suffix="分钟">
|
||||
</a-input>
|
||||
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime === null">0.00小时</span>
|
||||
|
||||
@@ -133,11 +133,16 @@
|
||||
:scroll="{ x: 1500 }" :data-source="tableData" :loading="tableLoading" @expand="expandTable"
|
||||
:pagination="false">
|
||||
<template #bodyCell="{ record, column }">
|
||||
<template v-if="column.key === 'teaching'">
|
||||
<a-space style="display:flex ;justify-content: space-around; ">
|
||||
<span>{{ record.teaching }} 分钟</span>
|
||||
</a-space>
|
||||
</template>
|
||||
<template v-if="column.key === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||
<a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1 && record.courseStatus == 0 ">修改 </a-button>
|
||||
<a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||
<a-button type="link" v-if="record.createFrom == 1" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
||||
</a-space>
|
||||
</template>
|
||||
@@ -322,8 +327,10 @@
|
||||
<a-descriptions-item label="课程名称">{{ formParam.courseName }}</a-descriptions-item>
|
||||
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 0? '未开课' : formParam.courseStatus == 1
|
||||
? '已开课' : '' }}</a-descriptions-item>
|
||||
<a-descriptions-item label="授课时长 "><span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{
|
||||
(formParam.teaching / 60).toFixed(2) }}小时</span> </a-descriptions-item>
|
||||
<a-descriptions-item label="授课时长 ">
|
||||
<span > {{ formParam.teaching }} 分钟</span>
|
||||
<span style="margin-left: 10px ;" v-if="formParam.teaching != '0'">({{ (formParam.teaching / 60
|
||||
).toFixed(2) }}小时)</span> </a-descriptions-item>
|
||||
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate }}</a-descriptions-item>
|
||||
<a-descriptions-item label="参训人数 ">{{ formParam.studys }}</a-descriptions-item>
|
||||
<a-descriptions-item label="评分 ">{{ formParam.score }}</a-descriptions-item>
|
||||
@@ -391,9 +398,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="jsx">
|
||||
import { reactive, toRefs, ref,computed ,watch} from "vue";
|
||||
import { reactive, toRefs, ref,computed ,watch ,onMounted} from "vue";
|
||||
import moment, { Moment } from 'moment';
|
||||
import { useRouter } from "vue-router";
|
||||
import { useRouter,useRoute } from "vue-router";
|
||||
import {
|
||||
RightOutlined,
|
||||
UpOutlined,
|
||||
@@ -407,7 +414,7 @@ import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import { message } from "ant-design-vue";
|
||||
import { getTeacherSystemList, infoteacher, getTeacherExpertise } from "../../api/Lecturer";
|
||||
import { getNewInTeacherCourseList, getOrganization, getTeacherCourseList, insertInTeacherCourse, updateInTeacherCourse, deleteInTeacherCourse } from "../../api/Teaching";
|
||||
import{getTeacherFeeDetail} from "../../api/lecturerFeeManagement";
|
||||
import{getExpenseByCourseId} from "../../api/lecturerFeeManagement";
|
||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||
import ImportWork from "../../components/lecturer/ImportWork.vue";
|
||||
import { fileUp } from "../../api/Lecturer";
|
||||
@@ -431,6 +438,15 @@ export default {
|
||||
FolderAddOutlined,//图标--新增
|
||||
},
|
||||
setup() {
|
||||
onMounted(() => {
|
||||
const search = sessionStorage.getItem('searchLecturer')
|
||||
if(route.query.activeKey == 1){
|
||||
state.moreid = 2
|
||||
state.searchParam = JSON.parse(search)
|
||||
}
|
||||
searchSubmit()
|
||||
})
|
||||
const route = useRoute()
|
||||
const formRef = ref();
|
||||
const router = useRouter();
|
||||
const state = reactive({
|
||||
@@ -724,7 +740,8 @@ export default {
|
||||
dataIndex: 'teaching',
|
||||
key: 'teaching',
|
||||
elipsis: true, align: "center",
|
||||
width: 120,
|
||||
scopedSlots: { customRender: "teaching" },
|
||||
width: 400,
|
||||
},
|
||||
{
|
||||
title: '参训人数',
|
||||
@@ -931,7 +948,7 @@ export default {
|
||||
console.log( state.formParam)
|
||||
if (state.vf == false) {
|
||||
updateInTeacherCourse(state.formParam).then(response => {
|
||||
message.success("修改成功");
|
||||
message.success("编辑成功");
|
||||
state.teacherdialog = false;
|
||||
cancel()
|
||||
getTableDate();
|
||||
@@ -1155,7 +1172,7 @@ export default {
|
||||
// },
|
||||
])
|
||||
const gettableDatas = (record) => {
|
||||
getTeacherFeeDetail({ id: record.id })
|
||||
getExpenseByCourseId({ id: record.id })
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
tableDatas.value = res.data.data.records
|
||||
|
||||
Reference in New Issue
Block a user