Преглед на файлове

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

新疆警官学校中职
lb01 преди 2 години
родител
ревизия
8711a77650
променени са 1 файла, в които са добавени 35 реда и са изтрити 8 реда
  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 Целия файл

@@ -94,30 +94,34 @@
disabled disabled
v-if="!edit" v-if="!edit"
/> />
<l-input
<l-select
@input="setValue('StuLeaveManagement.ClassNo', $event)" @input="setValue('StuLeaveManagement.ClassNo', $event)"
:value="getValue('StuLeaveManagement.ClassNo')" :value="getValue('StuLeaveManagement.ClassNo')"
:range="dataSource.StuLeaveManagement.ClassNo"
title="班级" title="班级"
disabled disabled
v-if="!edit" v-if="!edit"
/> />
<l-input
<l-select
@input="setValue('StuLeaveManagement.DeptNo', $event)" @input="setValue('StuLeaveManagement.DeptNo', $event)"
:value="getValue('StuLeaveManagement.DeptNo')" :value="getValue('StuLeaveManagement.DeptNo')"
:range="dataSource.StuLeaveManagement.DeptNo"
title="系部" title="系部"
disabled disabled
v-if="!edit" v-if="!edit"
/> />
<l-input
<l-select
@input="setValue('StuLeaveManagement.MajorNo', $event)" @input="setValue('StuLeaveManagement.MajorNo', $event)"
:value="getValue('StuLeaveManagement.MajorNo')" :value="getValue('StuLeaveManagement.MajorNo')"
:range="dataSource.StuLeaveManagement.MajorNo"
title="专业" title="专业"
disabled disabled
v-if="!edit" v-if="!edit"
/> />
<l-input
<l-select
@input="setValue('StuLeaveManagement.ClassDiredctorNo', $event)" @input="setValue('StuLeaveManagement.ClassDiredctorNo', $event)"
:value="getValue('StuLeaveManagement.ClassDiredctorNo')" :value="getValue('StuLeaveManagement.ClassDiredctorNo')"
:range="dataSource.StuLeaveManagement.ClassDiredctorNo"
title="班主任" title="班主任"
disabled disabled
v-if="!edit" v-if="!edit"
@@ -125,6 +129,7 @@
<l-input <l-input
@input="setValue('StuLeaveManagement.ClassTutorNo', $event)" @input="setValue('StuLeaveManagement.ClassTutorNo', $event)"
:value="getValue('StuLeaveManagement.ClassTutorNo')" :value="getValue('StuLeaveManagement.ClassTutorNo')"
:range="dataSource.StuLeaveManagement.ClassTutorNo"
title="辅导员" title="辅导员"
disabled disabled
v-if="!edit" v-if="!edit"
@@ -204,10 +209,10 @@ export default {
CheckUserNo: { type: 'text', title: '学号' }, CheckUserNo: { type: 'text', title: '学号' },
CreateUserName: { type: 'text', title: '姓名' }, CreateUserName: { type: 'text', title: '姓名' },
CreateTime: { 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: '辅导员' }, ClassTutorNo: { type: 'text', title: '辅导员' },
}, },
@@ -217,6 +222,11 @@ export default {
// 数据源 // 数据源
dataSource: { dataSource: {
StuLeaveManagement:{ StuLeaveManagement:{
ClassNo:[],
DeptNo:[],
MajorNo:[],
ClassTutorNo:[],
ClassDiredctorNo:[],
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })), 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 })) 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.FETCH_DATASOURCE('ConferenceRoom').then(result => {
// this.dataSource.StuLeaveManagement.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id })) // 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() await this.fetchForm()




Зареждане…
Отказ
Запис