mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
授课记录修改时间调整
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<!-- 搜索框及按钮 -->
|
<!-- 搜索框及按钮 -->
|
||||||
<div class="filter" style="min-width: 1380px;">
|
<div class="filter" >
|
||||||
<a-form layout="inline">
|
<a-form layout="inline" style="min-width: 1380px;">
|
||||||
<a-form-item class="select">
|
<a-form-item class="select">
|
||||||
<!-- v-model:value="searchParam.name" -->
|
<!-- v-model:value="searchParam.name" -->
|
||||||
<!-- <a-input v-model:value="searchParam.userNo" style="width: 276px; height: 40px; border-radius: 8px"
|
<!-- <a-input v-model:value="searchParam.userNo" style="width: 276px; height: 40px; border-radius: 8px"
|
||||||
@@ -98,8 +98,7 @@
|
|||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<div style="padding: 10px 0">
|
<div style="padding: 10px 0">
|
||||||
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="columns"
|
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="columns"
|
||||||
: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 === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space >
|
<a-space >
|
||||||
@@ -121,8 +120,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 弹窗组件 -->
|
<!-- 弹窗组件 -->
|
||||||
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true" style="min-width: 1380px"
|
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true" width="60%" :title="teacherdialogtitle">
|
||||||
dropdown-style="drawaer" width="60%" :title="teacherdialogtitle">
|
|
||||||
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
|
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
|
||||||
<!--讲师名称 teacherName 内容分类 coursetypeid -->
|
<!--讲师名称 teacherName 内容分类 coursetypeid -->
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
@@ -357,7 +355,8 @@ export default {
|
|||||||
formParam: {
|
formParam: {
|
||||||
status: 1,
|
status: 1,
|
||||||
entryType:1,
|
entryType:1,
|
||||||
teaching:null
|
teaching:null,
|
||||||
|
teachingDate:null,
|
||||||
},
|
},
|
||||||
searchdate: undefined, //选择时间
|
searchdate: undefined, //选择时间
|
||||||
searchParam: {
|
searchParam: {
|
||||||
@@ -775,6 +774,7 @@ export default {
|
|||||||
const TeacherSystem = () => {
|
const TeacherSystem = () => {
|
||||||
getTeacherCourseList({id:state.lookTeacherId}).then((res) => {
|
getTeacherCourseList({id:state.lookTeacherId}).then((res) => {
|
||||||
state.formParam = res.data.data
|
state.formParam = res.data.data
|
||||||
|
state.teachingDate=dayjs(res.data.data.teachingDate, 'YYYY-MM-DD'),
|
||||||
console.log( state.formParam);
|
console.log( state.formParam);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
@@ -145,8 +145,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 弹窗组件 -->
|
<!-- 弹窗组件 -->
|
||||||
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true" style="min-width: 1380px"
|
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true"
|
||||||
dropdown-style="drawaer" width="60%" :title="teacherdialogtitle">
|
width="60%" :title="teacherdialogtitle">
|
||||||
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
|
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
|
||||||
<!-- 讲师姓名 teacher 组织 orgName-->
|
<!-- 讲师姓名 teacher 组织 orgName-->
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
@@ -209,8 +209,8 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="课程名称:" name="coursename">
|
<a-form-item label="课程名称:" name="courseName">
|
||||||
<a-input class="draitem" v-model:value="formParam.coursename" placeholder="请输入后搜索面授课" allowClear showSearch>
|
<a-input class="draitem" v-model:value="formParam.courseName" placeholder="请输入后搜索面授课" allowClear showSearch>
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -304,7 +304,7 @@
|
|||||||
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '' }}</a-descriptions-item>
|
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '' }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '项目开课' : formParam.type == 2 ? '路径开课' : formParam.type == 3
|
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '项目开课' : formParam.type == 2 ? '路径开课' : formParam.type == 3
|
||||||
? '面授开课' : '' }}</a-descriptions-item>
|
? '面授开课' : '' }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="课程名称">{{ formParam.coursename }}</a-descriptions-item>
|
<a-descriptions-item label="课程名称">{{ formParam.courseName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 1? '未开课' : formParam.courseStatus == 0
|
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 1? '未开课' : formParam.courseStatus == 0
|
||||||
? '已开课' : '' }}</a-descriptions-item>
|
? '已开课' : '' }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="授课时长 "><span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{
|
<a-descriptions-item label="授课时长 "><span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{
|
||||||
@@ -448,11 +448,12 @@ export default {
|
|||||||
levelVoList: []
|
levelVoList: []
|
||||||
},
|
},
|
||||||
formParam: {
|
formParam: {
|
||||||
courseStatus: 1,
|
courseStatus: '1',
|
||||||
createFrom: 1,
|
createFrom: 1,
|
||||||
teaching: null,
|
teaching: null,
|
||||||
name:null,
|
name:null,
|
||||||
teacherName: null
|
teacherName: null,
|
||||||
|
teachingDate:null
|
||||||
},
|
},
|
||||||
startTime:null,
|
startTime:null,
|
||||||
searchParam:
|
searchParam:
|
||||||
@@ -654,11 +655,10 @@ export default {
|
|||||||
customRender: (value) => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{value.record.type == "1" || value.record.type == "2" || value.record.type == "3"
|
{value.record.type == "1" || value.record.type == "0"
|
||||||
? {
|
? {
|
||||||
"1": "项目开课",
|
"1": "在线课",
|
||||||
"2": "路径开课",
|
"0": "面授课",
|
||||||
"3": "面授开课",
|
|
||||||
}[value.record.type + ""] || ""
|
}[value.record.type + ""] || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
@@ -760,7 +760,7 @@ export default {
|
|||||||
else if (state.moreid == 2) {
|
else if (state.moreid == 2) {
|
||||||
state.moreid = 1
|
state.moreid = 1
|
||||||
state.searchParam.createFrom = null
|
state.searchParam.createFrom = null
|
||||||
state.searchParam.courseStatus = '0'
|
state.searchParam.courseStatus =null
|
||||||
state.searchParam.orgId = null
|
state.searchParam.orgId = null
|
||||||
state.searchParam.tSystemId = null
|
state.searchParam.tSystemId = null
|
||||||
state.searchParam.id = null
|
state.searchParam.id = null
|
||||||
@@ -936,7 +936,7 @@ export default {
|
|||||||
const cancel = () => {
|
const cancel = () => {
|
||||||
state.formParam = {
|
state.formParam = {
|
||||||
recordType: 1,
|
recordType: 1,
|
||||||
courseStatus:1,
|
courseStatus:'1',
|
||||||
teacher: null,
|
teacher: null,
|
||||||
orgName: null,
|
orgName: null,
|
||||||
tsystemName: null,
|
tsystemName: null,
|
||||||
@@ -1024,6 +1024,7 @@ export default {
|
|||||||
state.formParam.tlevelId = res.data.data.tlevelId
|
state.formParam.tlevelId = res.data.data.tlevelId
|
||||||
state.formParam.name = res.data.data.teacherName+'/'+res.data.data.userNo
|
state.formParam.name = res.data.data.teacherName+'/'+res.data.data.userNo
|
||||||
state.formParam.orgLists = res.data.data.expertiseNames?.split(',').map(item=>({ name: item }))
|
state.formParam.orgLists = res.data.data.expertiseNames?.split(',').map(item=>({ name: item }))
|
||||||
|
state.teachingDate=dayjs(res.data.data.teachingDate, 'YYYY-MM-DD'),
|
||||||
console.log( state.formParam);
|
console.log( state.formParam);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
@@ -1091,14 +1092,14 @@ export default {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '操作 ',
|
// title: '操作 ',
|
||||||
dataIndex: 'operation',
|
// dataIndex: 'operation',
|
||||||
key: 'operation',
|
// key: 'operation',
|
||||||
elipsis: true, align: "right",
|
// elipsis: true, align: "right",
|
||||||
width: 400,
|
// width: 400,
|
||||||
scopedSlots: { customRender: "action" },
|
// scopedSlots: { customRender: "action" },
|
||||||
},
|
// },
|
||||||
])
|
])
|
||||||
const gettableDatas = (record) => {
|
const gettableDatas = (record) => {
|
||||||
getTeacherFeeDetail({ id: record.id })
|
getTeacherFeeDetail({ id: record.id })
|
||||||
|
|||||||
@@ -133,9 +133,9 @@ import {
|
|||||||
import { getOrganization } from "../../api/Teaching";
|
import { getOrganization } from "../../api/Teaching";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import {getTrainOrg} from "../../api/lecturerFeeManagement";
|
import {getTrainOrg} from "../../api/lecturerFeeManagement";
|
||||||
import { queryTeacherFeeTotalList, queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacherFeeListByTeacherNo ,getPreviousTeacherfee} from "../../api/lecturerFeeStatistics";
|
import {queryTeacherFeeMonthly} from "../../api/lecturerFeeStatistics";
|
||||||
import {CostDetails} from "../lecturer/CostDetails.vue"
|
import {CostDetails} from "../lecturer/CostDetails.vue"
|
||||||
import * as api from '@/api/Lecturer'
|
// import * as api from '@/api/Lecturer'
|
||||||
export default {
|
export default {
|
||||||
name: "MonthlyStatistics",
|
name: "MonthlyStatistics",
|
||||||
components: {
|
components: {
|
||||||
@@ -168,9 +168,6 @@ export default {
|
|||||||
payrollPlaceId: null,
|
payrollPlaceId: null,
|
||||||
departId: null,
|
departId: null,
|
||||||
summaryDate:null,
|
summaryDate:null,
|
||||||
id: '5',
|
|
||||||
name: '李玉冰',
|
|
||||||
trainOrgId: '1820781519658237968',
|
|
||||||
},
|
},
|
||||||
teacherNo:null,
|
teacherNo:null,
|
||||||
drawer: {
|
drawer: {
|
||||||
@@ -308,7 +305,7 @@ export default {
|
|||||||
// List接口数据
|
// List接口数据
|
||||||
const getTableDate = (obj) => {
|
const getTableDate = (obj) => {
|
||||||
state.tableLoading = true
|
state.tableLoading = true
|
||||||
api.expenseSummaryById(state.searchParam)
|
queryTeacherFeeMonthly(state.searchParam)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res,'resssss')
|
console.log(res,'resssss')
|
||||||
tableData.value = res.data.data.records
|
tableData.value = res.data.data.records
|
||||||
|
|||||||
Reference in New Issue
Block a user