|
|
@@ -144,6 +144,35 @@ |
|
|
|
disabled |
|
|
|
v-if="!edit" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('StuLeaveManagement.Code', $event)" |
|
|
|
:value="getValue('StuLeaveManagement.Code')" |
|
|
|
:readonly="!edit" |
|
|
|
title="编号" |
|
|
|
:disabled="!edit" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('StuLeaveManagement.DistrictTeam', $event)" |
|
|
|
:value="getValue('StuLeaveManagement.DistrictTeam')" |
|
|
|
title="区队" |
|
|
|
:disabled="!edit" |
|
|
|
/> |
|
|
|
<l-select |
|
|
|
@input="setValue('StuLeaveManagement.IsCampus', $event)" |
|
|
|
:value="getValue('StuLeaveManagement.IsCampus')" |
|
|
|
:range="dataSource.StuLeaveManagement.IsCampus" |
|
|
|
title="是否校内" |
|
|
|
required |
|
|
|
:disabled="!edit" |
|
|
|
/> |
|
|
|
<l-select |
|
|
|
v-show="getValue('StuLeaveManagement.IsCampus') == '1'" |
|
|
|
@input="setValue('StuLeaveManagement.IsStay', $event)" |
|
|
|
:value="getValue('StuLeaveManagement.IsStay')" |
|
|
|
:range="dataSource.StuLeaveManagement.IsStay" |
|
|
|
title="是否过夜" |
|
|
|
:disabled="!edit" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="ready&&(origin.StuLeaveManagement.CheckStatus=='0'||edit)" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;"> |
|
|
@@ -224,7 +253,18 @@ export default { |
|
|
|
MajorNo: { type: 'select', title: '专业', dataSource: '1', }, |
|
|
|
ClassDiredctorNo: { type: 'select', title: '班主任',dataSource: '1', }, |
|
|
|
ClassTutorNo: { type: 'select', title: '辅导员',dataSource: '1', }, |
|
|
|
|
|
|
|
Code: { |
|
|
|
type: "text", title: '编号', |
|
|
|
}, |
|
|
|
DistrictTeam: { |
|
|
|
type: "text", title: '区队', |
|
|
|
}, |
|
|
|
IsCampus: { |
|
|
|
type: "select",dataSource: '1', title: '是否校内',verify:"NotNull" |
|
|
|
}, |
|
|
|
IsStay: { |
|
|
|
type: "select",dataSource: '1', title: '是否过夜', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
@@ -239,6 +279,11 @@ export default { |
|
|
|
ClassDiredctorNo:[], |
|
|
|
CheckUserNo:[], |
|
|
|
LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })), |
|
|
|
IsCampus:[{ text: "外出假", value: "1" }, { text: "校内假", value: "0" }], |
|
|
|
IsStay: Object.values(this.GET_GLOBAL('dataDictionary').YesOrNoInt).map(t => ({ |
|
|
|
value: t.value, |
|
|
|
text: t.text |
|
|
|
})), |
|
|
|
// CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) |
|
|
|
} |
|
|
|
} |
|
|
@@ -279,7 +324,6 @@ export default { |
|
|
|
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 })); |
|
|
|
}), |
|
|
|
]) |
|
|
|