Переглянути джерело

解决禅道上的问题

临城职教中职
杨晓琪 2 роки тому
джерело
коміт
7f1125806c
5 змінених файлів з 50 додано та 29 видалено
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue
  2. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/list.vue
  3. +5
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/single.vue
  4. +26
    -14
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MeetingMy/list.vue
  5. +16
    -7
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MeetingMy/single.vue

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue Переглянути файл

@@ -109,7 +109,7 @@ export default {
SENDER: { type: 'text', title: '发件人' }, SENDER: { type: 'text', title: '发件人' },
TITLE: { type: 'text', title: '主题' }, TITLE: { type: 'text', title: '主题' },
// READFLAG: { type: 'select', title: '状态', dataSource: '0' }, // READFLAG: { type: 'select', title: '状态', dataSource: '0' },
SENDTIME: { type: 'datetime', title: '收件时间', dateformat: '0' },
SENDTIME: { type: 'datetime', title: '收件时间', dateformat: '1' },
URL: { type: 'upload', title: '附件上传' }, URL: { type: 'upload', title: '附件上传' },
CONTENTS: { type: 'textarea', title: '邮件内容' }, CONTENTS: { type: 'textarea', title: '邮件内容' },
}, },


+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/list.vue Переглянути файл

@@ -101,8 +101,8 @@ export default {
// Date: { type: 'datetime', dateformat: '0' }, // Date: { type: 'datetime', dateformat: '0' },
// Person: { type: 'text' }, // Person: { type: 'text' },
Remark: { type: 'textarea' }, Remark: { type: 'textarea' },
StartTime: { type: 'datetime', dateformat: '0' },
EndTime: { type: 'datetime', dateformat: '0' },
StartTime: { type: 'datetime', dateformat: '1' },
EndTime: { type: 'datetime', dateformat: '1' },
F_RealName: { type: 'text' }, F_RealName: { type: 'text' },
}, },


+ 5
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/single.vue Переглянути файл

@@ -1,13 +1,13 @@
<template> <template>
<view class="page"> <view class="page">
<view v-if="ready"> <view v-if="ready">
<l-date-picker
<l-datetime-picker
@input="setValue('DutySchedule.StartTime', $event)" @input="setValue('DutySchedule.StartTime', $event)"
:value="getValue('DutySchedule.StartTime')" :value="getValue('DutySchedule.StartTime')"
:disabled="!edit" :disabled="!edit"
title="开始时间" title="开始时间"
/> />
<l-date-picker
<l-datetime-picker
@input="setValue('DutySchedule.EndTime', $event)" @input="setValue('DutySchedule.EndTime', $event)"
:value="getValue('DutySchedule.EndTime')" :value="getValue('DutySchedule.EndTime')"
:disabled="!edit" :disabled="!edit"
@@ -94,9 +94,9 @@ export default {
scheme: { scheme: {
DutySchedule: { DutySchedule: {
// Date: { type: 'datetime', title: '时间', dateformat: '0' }, // Date: { type: 'datetime', title: '时间', dateformat: '0' },
StartTime: { type: 'datetime', dateformat: '0' },
EndTime: { type: 'datetime', dateformat: '0' },
Person: { type: 'text', title: '值班人' },
StartTime: { type: 'datetime', dateformat: '1' },
EndTime: { type: 'datetime', dateformat: '1' },
Person: { type: 'text', title: '值班人',verify: 'NotNull' },
Remark: { type: 'textarea', title: '备注' }, Remark: { type: 'textarea', title: '备注' },
}, },


+ 26
- 14
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MeetingMy/list.vue Переглянути файл

@@ -56,18 +56,18 @@
{{ displayListItem(item, "Content") }} {{ displayListItem(item, "Content") }}
</view> </view>


<view class="customlist-item-field">
<!-- <view class="customlist-item-field">
<text class="customlist-item-field-title">附件上传:</text> <text class="customlist-item-field-title">附件上传:</text>
{{ displayListItem(item, "Files") }} {{ displayListItem(item, "Files") }}
</view>
</view> -->


<l-customlist-action <l-customlist-action
showButton
:showButton="false"
buttonText="会议纪要" buttonText="会议纪要"
@join="action('join', item.Id)" @join="action('join', item.Id)"
showEdit
:showEdit="false"
@edit="action('edit', item.Id)" @edit="action('edit', item.Id)"
showDelete
:showDelete="false"
@delete="action('delete', item.Id)" @delete="action('delete', item.Id)"
@view="action('view', item.Id)" @view="action('view', item.Id)"
/> />
@@ -88,19 +88,26 @@
<!-- 侧边栏,用于设置查询条件 --> <!-- 侧边栏,用于设置查询条件 -->
<scroll-view :class="sideOpen ? 'show' : ''" class="sidepage" scroll-y> <scroll-view :class="sideOpen ? 'show' : ''" class="sidepage" scroll-y>
<view v-if="ready" class="padding"> <view v-if="ready" class="padding">
<l-select
v-model="hasInternalParticipants"
@change="searchChange"
:range="[{value:0,text:'我申请的会议'},{value:1,text:'我参加的会议'}]"
title="会议类型"
placeholder="按会议类型查询"
/>
<l-input <l-input
v-model="queryData.MeetingTitle" v-model="queryData.MeetingTitle"
@change="searchChange" @change="searchChange"
title="会议主题" title="会议主题"
placeholder="按会议主题查询" placeholder="按会议主题查询"
/> />
<l-select
<!-- <l-select
v-model="queryData.MeetingPlace" v-model="queryData.MeetingPlace"
@change="searchChange" @change="searchChange"
:range="dataSource.MeetingPlace" :range="dataSource.MeetingPlace"
title="会议地点" title="会议地点"
placeholder="按会议地点查询" placeholder="按会议地点查询"
/>
/> -->
<l-organize-picker <l-organize-picker
v-model="queryData.CreateUser" v-model="queryData.CreateUser"
@change="searchChange" @change="searchChange"
@@ -118,7 +125,7 @@
</view> </view>
</scroll-view> </scroll-view>


<l-customlist-add v-if="!sideOpen" @click="action('add')" />
<!-- <l-customlist-add v-if="!sideOpen" @click="action('add')" /> -->
</view> </view>
</template> </template>


@@ -153,11 +160,11 @@ export default {
scheme: { scheme: {
MeetingTitle: { type: "text" }, MeetingTitle: { type: "text" },
MeetingPlace: { type: "select", dataSource: "0" }, MeetingPlace: { type: "select", dataSource: "0" },
BeginTime: { type: "datetime", dateformat: "0" },
EndTime: { type: "datetime", dateformat: "0" },
BeginTime: { type: "datetime", dateformat: "1" },
EndTime: { type: "datetime", dateformat: "1" },
RecordPerson: { type: "organize", dataType: "user" }, RecordPerson: { type: "organize", dataType: "user" },
Content: { type: "texteditor" }, Content: { type: "texteditor" },
Files: { type: "upload" },
// Files: { type: "upload" },
CreateUser: { type: "organize", dataType: "user" }, CreateUser: { type: "organize", dataType: "user" },
}, },


@@ -166,9 +173,10 @@ export default {
defaultQueryData: {}, defaultQueryData: {},
queryData: { queryData: {
MeetingTitle: "", MeetingTitle: "",
MeetingPlace: "",
CreateUser: "",
// MeetingPlace: "",
// CreateUser: "",
}, },
hasInternalParticipants:0,


// 数据源 // 数据源
dataSource: { dataSource: {
@@ -218,7 +226,11 @@ export default {
} }


var userInfo = this.GET_GLOBAL("loginUser"); var userInfo = this.GET_GLOBAL("loginUser");
this.searchData.CreateUser = userInfo.userId;
if(this.hasInternalParticipants) {
this.searchData.InternalParticipants = userInfo.userId
}else{
this.searchData.CreateUser = userInfo.userId;
}
const result = await this.HTTP_GET( const result = await this.HTTP_GET(
"learun/adms/PersonnelManagement/MeetingManagement/pagelist", "learun/adms/PersonnelManagement/MeetingManagement/pagelist",
{ {


+ 16
- 7
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MeetingMy/single.vue Переглянути файл

@@ -39,13 +39,20 @@
:readonly="!edit" :readonly="!edit"
title="会议内容" title="会议内容"
/> />
<l-upload-file
<!-- <l-upload-file
@input="setValue('MeetingManagement.Files', $event)" @input="setValue('MeetingManagement.Files', $event)"
:value="getValue('MeetingManagement.Files')" :value="getValue('MeetingManagement.Files')"
:readonly="!edit" :readonly="!edit"
:number="9" :number="9"
title="附件上传" title="附件上传"
/>
/> -->
<!-- <l-upload-file
v-if="ready"
:value="fileList"
:readonly="!edit"
:number="9"
title="附件上传"
/> -->
<l-organize-picker <l-organize-picker
@input="setValue('MeetingManagement.CreateUser', $event)" @input="setValue('MeetingManagement.CreateUser', $event)"
:value="getValue('MeetingManagement.CreateUser')" :value="getValue('MeetingManagement.CreateUser')"
@@ -55,7 +62,7 @@
/> />
</view> </view>


<view v-if="ready" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;">
<!-- <view v-if="ready" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;">
<l-button v-if="edit" @click="action('save')" size="lg" color="green" class="block margin-top" block> <l-button v-if="edit" @click="action('save')" size="lg" color="green" class="block margin-top" block>
提交保存 提交保存
</l-button> </l-button>
@@ -68,7 +75,7 @@
<l-button v-if="!edit && mode !== 'create'" @click="action('delete')" size="lg" line="red" class="block margin-top" block> <l-button v-if="!edit && mode !== 'create'" @click="action('delete')" size="lg" line="red" class="block margin-top" block>
删除 删除
</l-button> </l-button>
</view>
</view> -->
</view> </view>
</template> </template>


@@ -110,17 +117,18 @@ export default {
// 表单数据 // 表单数据
current: {}, current: {},
origin: {}, origin: {},
fileList:[],


// 表单项数据结构 // 表单项数据结构
scheme: { scheme: {
MeetingManagement: { MeetingManagement: {
MeetingTitle: { type: 'text', title: '会议主题' }, MeetingTitle: { type: 'text', title: '会议主题' },
MeetingPlace: { type: 'select', title: '会议地点', dataSource: '0' }, MeetingPlace: { type: 'select', title: '会议地点', dataSource: '0' },
BeginTime: { type: 'datetime', title: '开始时间', dateformat: '0' },
EndTime: { type: 'datetime', title: '结束时间', dateformat: '0' },
BeginTime: { type: 'datetime', title: '开始时间', dateformat: '1' },
EndTime: { type: 'datetime', title: '结束时间', dateformat: '1' },
RecordPerson: { type: 'organize', title: '会议记录者', dataType: 'user' }, RecordPerson: { type: 'organize', title: '会议记录者', dataType: 'user' },
Content: { type: 'texteditor', title: '会议内容' }, Content: { type: 'texteditor', title: '会议内容' },
Files: { type: 'upload', title: '附件上传' },
// Files: { type: 'upload', title: '附件上传' },
CreateUser: { type: 'organize', title: '申请人', dataType: 'user' }, CreateUser: { type: 'organize', title: '申请人', dataType: 'user' },
}, },


@@ -167,6 +175,7 @@ export default {
this.origin = await this.getDefaultForm() this.origin = await this.getDefaultForm()
} else { } else {
const result = await this.HTTP_GET('learun/adms/PersonnelManagement/MeetingManagement/form', this.id) const result = await this.HTTP_GET('learun/adms/PersonnelManagement/MeetingManagement/form', this.id)
// this.fileList = await this.getFileListById(result.MeetingManagement.FilePath)
this.origin = await this.formatFormData(result) this.origin = await this.formatFormData(result)
} }
this.current = this.COPY(this.origin) this.current = this.COPY(this.origin)


Завантаження…
Відмінити
Зберегти