diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/list.vue index 9d24936f5..df2d6de7f 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/list.vue @@ -21,10 +21,10 @@ {{ displayListItem(item, 'JTypeId') }} - + 日志内容: @@ -97,10 +97,10 @@ type: 'select', dataSource: '0' }, - JReceiveId: { - type: 'organize', - dataType: 'user' - }, + // JReceiveId: { + // type: 'organize', + // dataType: 'user' + // }, JContent: { type: 'textarea' }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/single.vue index d6879ea3d..c7dfb69b8 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/JournalSend/single.vue @@ -5,8 +5,8 @@ :disabled="!edit" title="日志主题" required /> - + @@ -82,11 +82,12 @@ dataSource: '0', verify: "NotNull" }, - JReceiveId: { - type: 'organize', - title: '接收人', - dataType: 'user' - }, + // JReceiveId: { + // type: 'organize', + // title: '接收人', + // dataType: 'user', + // verify: "NotNull" + // }, JContent: { type: 'textarea', title: '日志内容', @@ -176,7 +177,7 @@ this.LOADING('正在提交...') const postData = await this.getPostData(this.id) - this.HTTP_POST('learun/adms/EducationalAdministration/Journal/save', postData, '表单提交保存失败') + this.HTTP_POST('learun/adms/EducationalAdministration/Journal/savePt', postData, '表单提交保存失败') .then(success => { this.HIDE_LOADING() if (!success) { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/list.vue index 0240f441d..e880eb91f 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/list.vue @@ -171,10 +171,14 @@ type: "text" }, CheckUserNo: { - type: "text" + type: "select", + dataSource: '1', + dataSourceId: 'CheckUserNo' }, LeaveType: { - type: "select",dataSource: '1', dataSourceId: 'LeaveType' + type: "select", + dataSource: '1', + dataSourceId: 'LeaveType' }, StartTime: { type: "text" @@ -198,19 +202,19 @@ type: "text" }, ClassNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'ClassNo' }, DeptNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'DeptNo' }, MajorNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'MajorNo' }, ClassDiredctorNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'ClassDiredctorNo' }, ClassTutorNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'ClassTutorNo' } }, @@ -225,6 +229,12 @@ // 数据源 dataSource: { + ClassNo:[], + DeptNo:[], + MajorNo:[], + ClassDiredctorNo:[], + CheckUserNo:[], + ClassTutorNo:[], LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text @@ -266,7 +276,24 @@ // 拉取加载列表和数据源 await Promise.all([ - + this.FETCH_DATASOURCE('bjsj').then(result => { + this.dataSource.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.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.ClassTutorNo = 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.CheckUserNo = 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.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })); + }), + this.FETCH_DATASOURCE('CdMajorInfo').then(result => { + this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })); + }), ]); await this.fetchList(); // 初始化查询条件 @@ -387,16 +414,17 @@ return; case 'check': - await this.HTTP_GET('/Learun/adms/EducationalAdministration/StuLeaveManagement/ischeck', id).then(res=>{ - if(res){ - this.NAV_TO(`./single?type=edit&id=${id}`) - return - }else{ - return; - } - }) + await this.HTTP_GET('/Learun/adms/EducationalAdministration/StuLeaveManagement/ischeck', id) + .then(res => { + if (res) { + this.NAV_TO(`./single?type=edit&id=${id}`) + return + } else { + return; + } + }) return; - + default: return; } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/single.vue index d03b67a11..6e1c0e9ae 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/single.vue @@ -22,9 +22,10 @@ v-if="!edit" :disabled="!edit" /> - - - - - - ({ value: t.value, text: t.text })), CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) } @@ -229,9 +241,26 @@ export default { // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ - // 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('EmpInfo').then(result => { + this.dataSource.StuLeaveManagement.CheckUserNo = 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() diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/list.vue index b0c9f2d99..dc19ac20f 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/list.vue @@ -164,7 +164,7 @@ type: "text" }, CheckUserNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'CheckUserNo' }, LeaveType: { type: "select",dataSource: '1', dataSourceId: 'LeaveType' @@ -203,7 +203,7 @@ type: "select",dataSource: '1', dataSourceId: 'ClassDiredctorNo' }, ClassTutorNo: { - type: "text" + type: "select",dataSource: '1', dataSourceId: 'ClassTutorNo' } }, @@ -222,6 +222,8 @@ DeptNo:[], MajorNo:[], ClassDiredctorNo:[], + CheckUserNo:[], + ClassTutorNo:[], LeaveType: Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text @@ -269,12 +271,20 @@ this.FETCH_DATASOURCE('EmpInfo').then(result => { this.dataSource.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.ClassTutorNo = 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.CheckUserNo = 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.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })); }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })); }), + + ]); await this.fetchList(); // 初始化查询条件 diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue index 6f83fac29..4e9a5feab 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue @@ -16,9 +16,10 @@ v-if="!edit" :readonly="!edit" /> - - ({ value: t.value, text: t.text })), CheckStatus: Object.values(this.GET_GLOBAL('dataDictionary').LeaveCheck).map(t => ({ value: t.value, text: t.text })) } @@ -262,6 +264,9 @@ export default { 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('EmpInfo').then(result => { + this.dataSource.StuLeaveManagement.CheckUserNo = 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 })); }),