Browse Source

修改按天请假字段对应数据源展示

新疆警官学校中职
lb01 2 years ago
parent
commit
8711a77650
1 changed files with 35 additions and 8 deletions
  1. +35
    -8
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue

+ 35
- 8
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue View File

@@ -94,30 +94,34 @@
disabled
v-if="!edit"
/>
<l-input
<l-select
@input="setValue('StuLeaveManagement.ClassNo', $event)"
:value="getValue('StuLeaveManagement.ClassNo')"
:range="dataSource.StuLeaveManagement.ClassNo"
title="班级"
disabled
v-if="!edit"
/>
<l-input
<l-select
@input="setValue('StuLeaveManagement.DeptNo', $event)"
:value="getValue('StuLeaveManagement.DeptNo')"
:range="dataSource.StuLeaveManagement.DeptNo"
title="系部"
disabled
v-if="!edit"
/>
<l-input
<l-select
@input="setValue('StuLeaveManagement.MajorNo', $event)"
:value="getValue('StuLeaveManagement.MajorNo')"
:range="dataSource.StuLeaveManagement.MajorNo"
title="专业"
disabled
v-if="!edit"
/>
<l-input
<l-select
@input="setValue('StuLeaveManagement.ClassDiredctorNo', $event)"
:value="getValue('StuLeaveManagement.ClassDiredctorNo')"
:range="dataSource.StuLeaveManagement.ClassDiredctorNo"
title="班主任"
disabled
v-if="!edit"
@@ -125,6 +129,7 @@
<l-input
@input="setValue('StuLeaveManagement.ClassTutorNo', $event)"
:value="getValue('StuLeaveManagement.ClassTutorNo')"
:range="dataSource.StuLeaveManagement.ClassTutorNo"
title="辅导员"
disabled
v-if="!edit"
@@ -204,10 +209,10 @@ export default {
CheckUserNo: { type: 'text', title: '学号' },
CreateUserName: { type: 'text', title: '姓名' },
CreateTime: { type: 'text', title: '申请时间' },
ClassNo: { type: 'text', title: '班级' },
DeptNo: { type: 'text', title: '系部' },
MajorNo: { type: 'text', title: '专业' },
ClassDiredctorNo: { type: 'text', title: '班主任' },
ClassNo: { type: 'select', title: '班级', dataSource: '1', dataSourceId: 'bjsj,classname,classno' },
DeptNo: { type: 'select', title: '系部', dataSource: '1', },
MajorNo: { type: 'select', title: '专业', dataSource: '1', },
ClassDiredctorNo: { type: 'select', title: '班主任',dataSource: '1', },
ClassTutorNo: { type: 'text', title: '辅导员' },
},
@@ -217,6 +222,11 @@ export default {
// 数据源
dataSource: {
StuLeaveManagement:{
ClassNo:[],
DeptNo:[],
MajorNo:[],
ClassTutorNo:[],
ClassDiredctorNo:[],
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })),
CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text }))
}
@@ -242,6 +252,23 @@ export default {
// this.FETCH_DATASOURCE('ConferenceRoom').then(result => {
// this.dataSource.StuLeaveManagement.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id }))
// }),
this.FETCH_DATASOURCE('bjsj').then(result => {
console.log(result)
this.dataSource.StuLeaveManagement.ClassNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.classname, value: t.classno }))
}),
this.FETCH_DATASOURCE('EmpInfo').then(result => {
this.dataSource.StuLeaveManagement.ClassDiredctorNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.empname, value: t.empno }));
}),
this.FETCH_DATASOURCE('EmpInfo').then(result => {
this.dataSource.StuLeaveManagement.ClassTutorNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.empname, value: t.empno }));
}),
this.FETCH_DATASOURCE('CdDeptInfo').then(result => {
this.dataSource.StuLeaveManagement.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno }));
}),
this.FETCH_DATASOURCE('CdMajorInfo').then(result => {
console.log()
this.dataSource.StuLeaveManagement.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno }));
}),
])
await this.fetchForm()



Loading…
Cancel
Save