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