mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56:46 +08:00
Merge branch 'zcwy-teacher-manage' of https://codeup.aliyun.com/648097ddb583fece2f059e59/vue/fe-manage into zcwy-teacher-manage
This commit is contained in:
@@ -82,8 +82,8 @@ export default {
|
|||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
AddContentList:{
|
AddContentList:{
|
||||||
type:Object,
|
type:Array,
|
||||||
default: true,
|
default: ()=>[],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
orgId: item.id,
|
orgId: item.id,
|
||||||
|
orgName: item.name,
|
||||||
affiliationId: item.id,
|
affiliationId: item.id,
|
||||||
...item
|
...item
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1235,7 +1235,7 @@ export default {
|
|||||||
state.formParam.orgLists = ids?.map((id, index) => ({
|
state.formParam.orgLists = ids?.map((id, index) => ({
|
||||||
name: names[index],
|
name: names[index],
|
||||||
id: id
|
id: id
|
||||||
}));
|
}))||[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div class="filter" >
|
<div class="filter" >
|
||||||
<a-form layout="inline" style="min-width: 1380px;">
|
<a-form layout="inline" style="min-width: 1380px;">
|
||||||
<a-form-item class="select">
|
<a-form-item class="select">
|
||||||
<a-select style="width: 276px" v-model:value="searchParam.trainorgId" placeholder="培训发生组织" allowClear
|
<a-select style="width: 276px" v-model:value="searchParam.trainOrgId" placeholder="培训发生组织" allowClear
|
||||||
:options="trainOrglist"
|
:options="trainOrglist"
|
||||||
v-on:keydown.enter="enterPressHadlerSearch">
|
v-on:keydown.enter="enterPressHadlerSearch">
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -296,7 +296,7 @@
|
|||||||
searchParam: {
|
searchParam: {
|
||||||
teacherNo:null,
|
teacherNo:null,
|
||||||
teacherName:null,
|
teacherName:null,
|
||||||
trainorgId:null,
|
trainOrgId:null,
|
||||||
id:null,
|
id:null,
|
||||||
levelId:null,
|
levelId:null,
|
||||||
courseType:null,
|
courseType:null,
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
let array = [];
|
let array = [];
|
||||||
arr.map((value) => {
|
arr.map((value) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
value: value.affiliationCode,
|
value: value.id,
|
||||||
label: value.affiliationName,
|
label: value.affiliationName,
|
||||||
};
|
};
|
||||||
array.push(obj);
|
array.push(obj);
|
||||||
@@ -907,7 +907,7 @@
|
|||||||
//导出功能
|
//导出功能
|
||||||
const handleExport = ()=>{
|
const handleExport = ()=>{
|
||||||
window.open (
|
window.open (
|
||||||
`${process.env.VUE_APP_BASE_API}/teachez/fee/exportTeacherFee?pageNo=${state.searchParam.pageNo}&pageSize=${state.searchParam.pageSize}&trainorgId=${state.searchParam.trainorgId ? state.searchParam.trainorgId : ""}&status=${ state.searchParam.status ? state.searchParam.status : ""}&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}&endTime=${ state.searchParam.endTime ? state.searchParam.endTime : ""}`
|
`${process.env.VUE_APP_BASE_API}/teachez/fee/exportTeacherFee?pageNo=${state.searchParam.pageNo}&pageSize=${state.searchParam.pageSize}&trainOrgId=${state.searchParam.trainOrgId ? state.searchParam.trainOrgId : ""}&status=${ state.searchParam.status ? state.searchParam.status : ""}&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}&endTime=${ state.searchParam.endTime ? state.searchParam.endTime : ""}`
|
||||||
);
|
);
|
||||||
// this.download('lesson_records/export', {
|
// this.download('lesson_records/export', {
|
||||||
// ...state.searchParam
|
// ...state.searchParam
|
||||||
|
|||||||
@@ -73,13 +73,13 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item> -->
|
</a-form-item> -->
|
||||||
<a-form-item class="select" v-if="moreid == 2">
|
<a-form-item class="select" v-if="moreid == 2">
|
||||||
<a-select style="width: 235px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemId" allowClear
|
<a-select style="width: 235px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.tSystemId" allowClear
|
||||||
:options="lecturerSystemList"
|
:options="lecturerSystemList"
|
||||||
v-on:keydown.enter="enterPressHadlerSearch">
|
v-on:keydown.enter="enterPressHadlerSearch">
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item class="select" v-if="moreid == 2">
|
<a-form-item class="select" v-if="moreid == 2">
|
||||||
<a-select style="width: 235px ;margin-bottom:20px" v-model:value="searchParam.levelId" placeholder="请选择讲师级别" allowClear
|
<a-select style="width: 235px ;margin-bottom:20px" v-model:value="searchParam.tLevelId" placeholder="请选择讲师级别" allowClear
|
||||||
:options="getLevelList"
|
:options="getLevelList"
|
||||||
v-on:keydown.enter="enterPressHadlerSearch">
|
v-on:keydown.enter="enterPressHadlerSearch">
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -118,9 +118,9 @@
|
|||||||
<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>
|
||||||
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
||||||
<a-button type="link" :disabled="record.createFrom!=1 ?false :true" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
<a-button type="link" v-if="record.status != 2&&record.status!=3" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||||
<!-- <a-button :disabled="record.status==='A20' || record.status==='A30'||record.status==='S20' ?true :false" type="link" @click="() => handleOperate(record, String(record.courseform))">提交</a-button>
|
<!-- <a-button :disabled="record.status==='A20' || record.status==='A30'||record.status==='S20' ?true :false" type="link" @click="() => handleOperate(record, String(record.courseform))">提交</a-button> -->
|
||||||
<a-button :disabled="record.status==='A10' && record.status!=='A20' || record.status==='A30'||record.status==='S20' ||record.status==='E10' ?true :false" type="link" @click="() => handleOperate(record, String(record.courseform))">撤回</a-button> -->
|
<a-button type="link" @click="handleOperate(record)">撤回</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>
|
||||||
@@ -532,8 +532,8 @@
|
|||||||
userNo:null,
|
userNo:null,
|
||||||
name:null,
|
name:null,
|
||||||
trainOrgId:null,
|
trainOrgId:null,
|
||||||
tsystemId:null,
|
tSystemId:null,
|
||||||
levelId:null,
|
tLevelId:null,
|
||||||
courseType:null,
|
courseType:null,
|
||||||
certStatus:null,
|
certStatus:null,
|
||||||
salaryName:null,
|
salaryName:null,
|
||||||
@@ -631,7 +631,7 @@ getAllLevelList().then((res) => {
|
|||||||
let array = [];
|
let array = [];
|
||||||
arr.map((value) => {
|
arr.map((value) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
value: value.levelName,
|
value: value.id,
|
||||||
label: value.levelName,
|
label: value.levelName,
|
||||||
};
|
};
|
||||||
array.push(obj);
|
array.push(obj);
|
||||||
@@ -736,13 +736,13 @@ getAllLevelList().then((res) => {
|
|||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// title: '讲师工号 ',
|
title: '讲师工号 ',
|
||||||
// dataIndex: 'userNo',
|
dataIndex: 'userNo',
|
||||||
// key: 'userNo',
|
key: 'userNo',
|
||||||
// ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
// width: 120,
|
width: 120,
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
title: '课程名称 ',
|
title: '课程名称 ',
|
||||||
dataIndex: 'courseName',
|
dataIndex: 'courseName',
|
||||||
@@ -751,27 +751,6 @@ getAllLevelList().then((res) => {
|
|||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '课程类型 ',
|
|
||||||
dataIndex: ' courseType',
|
|
||||||
key: ' courseType',
|
|
||||||
ellipsis: true,
|
|
||||||
align: "center",
|
|
||||||
width: 120,
|
|
||||||
customRender: (value) => {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{value.record. courseType == "1" || value.record. courseType == "2"|| value.record.courseTypeype == "3"
|
|
||||||
? {
|
|
||||||
"1": "项目开课",
|
|
||||||
"2": "路径开课",
|
|
||||||
"3": "面授开课",
|
|
||||||
}[value.record. courseType + ""] || ""
|
|
||||||
: "-"}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '培训发生组织',
|
title: '培训发生组织',
|
||||||
dataIndex: 'trainOrgName',
|
dataIndex: 'trainOrgName',
|
||||||
@@ -837,6 +816,20 @@ getAllLevelList().then((res) => {
|
|||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '参训人员',
|
||||||
|
dataIndex: 'studys',
|
||||||
|
key: 'studys',
|
||||||
|
ellipsis: true, align: "center",
|
||||||
|
width: 120,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '评分 ',
|
||||||
|
dataIndex: 'score',
|
||||||
|
key: 'score',
|
||||||
|
ellipsis: true, align: "center",
|
||||||
|
width: 120,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '状态 ',
|
title: '状态 ',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
@@ -847,7 +840,7 @@ getAllLevelList().then((res) => {
|
|||||||
customRender: (value) => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{value.record.status== "0" || value.record.status == "1" ||value.record.status == "2" ||value.record.status == "3"
|
{String(value.record.status)
|
||||||
? {
|
? {
|
||||||
"0": "待确认",
|
"0": "待确认",
|
||||||
"1": "待提交",
|
"1": "待提交",
|
||||||
@@ -862,18 +855,27 @@ getAllLevelList().then((res) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '参训人员',
|
title: '课程类型 ',
|
||||||
dataIndex: 'studys',
|
dataIndex: ' courseType',
|
||||||
key: 'studys',
|
key: ' courseType',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true,
|
||||||
width: 120,
|
align: "center",
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '评分 ',
|
|
||||||
dataIndex: 'score',
|
|
||||||
key: 'score',
|
|
||||||
ellipsis: true, align: "center",
|
|
||||||
width: 120,
|
width: 120,
|
||||||
|
customRender: (value) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{String(value.record. courseType)
|
||||||
|
? {
|
||||||
|
"0": "在线课",
|
||||||
|
"1": "面授课",
|
||||||
|
"2": "课程开发",
|
||||||
|
"3": "作业员入模培训",
|
||||||
|
"4": "其他",
|
||||||
|
}[value.record. courseType + ""]
|
||||||
|
: "-"}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '讲师组织',
|
title: '讲师组织',
|
||||||
@@ -911,8 +913,8 @@ getAllLevelList().then((res) => {
|
|||||||
endTime:null,
|
endTime:null,
|
||||||
beginTime:null,
|
beginTime:null,
|
||||||
userNo:null,
|
userNo:null,
|
||||||
tsystemId:null,
|
tSystemId:null,
|
||||||
levelId:null,
|
tLevelId:null,
|
||||||
courseType:null,
|
courseType:null,
|
||||||
certStatus:null,
|
certStatus:null,
|
||||||
salaryName:null,
|
salaryName:null,
|
||||||
@@ -1052,10 +1054,12 @@ getAllLevelList().then((res) => {
|
|||||||
// };
|
// };
|
||||||
//修改状态窗口
|
//修改状态窗口
|
||||||
const handleOperate = (record) => {
|
const handleOperate = (record) => {
|
||||||
state.handleOperate1=null
|
dialog({
|
||||||
state.handleOperate1 = record.status
|
content: "等待接口中...",
|
||||||
state.editTeacher = true
|
ok: () => {
|
||||||
state.id= record.id
|
|
||||||
|
}
|
||||||
|
})
|
||||||
};
|
};
|
||||||
// //确认删除
|
// //确认删除
|
||||||
const closeDeleteTeacher=()=>{
|
const closeDeleteTeacher=()=>{
|
||||||
@@ -1480,7 +1484,7 @@ const column = ref([
|
|||||||
const handleExport = ()=>{
|
const handleExport = ()=>{
|
||||||
window.open (
|
window.open (
|
||||||
`${process.env.VUE_APP_BASE_API}/admin/export/exportTeacherExpense?pageNo=${state.searchParam.pageNo}&pageSize=${state.searchParam.pageSize}&name=${state.searchParam.name ? state.searchParam.name : ""
|
`${process.env.VUE_APP_BASE_API}/admin/export/exportTeacherExpense?pageNo=${state.searchParam.pageNo}&pageSize=${state.searchParam.pageSize}&name=${state.searchParam.name ? state.searchParam.name : ""
|
||||||
}&trainOrgId=${ state.searchParam.trainOrgId ? state.searchParam.trainOrgId : ""}&type=${state.searchParam.type ? state.searchParam.type : ""}&tsystemId=${ state.searchParam.tsystemId ? state.searchParam.tsystemId : ""}&levelId=${ state.searchParam.levelId ? state.searchParam.levelId : ""}&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}&endTime=${state.searchParam.endTime ? state.searchParam.endTime : ""}`
|
}&trainOrgId=${ state.searchParam.trainOrgId ? state.searchParam.trainOrgId : ""}&type=${state.searchParam.type ? state.searchParam.type : ""}&tsystemId=${ state.searchParam.tSystemId ? state.searchParam.tSystemId : ""}&levelId=${ state.searchParam.tLevelId ? state.searchParam.tLevelId : ""}&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}&endTime=${state.searchParam.endTime ? state.searchParam.endTime : ""}`
|
||||||
);
|
);
|
||||||
// this.download('lesson_records/export', {
|
// this.download('lesson_records/export', {
|
||||||
// ...state.searchParam
|
// ...state.searchParam
|
||||||
|
|||||||
Reference in New Issue
Block a user