Quellcode durchsuchen

app2.0 收件箱

临城职教中职
杨晓琪 vor 2 Jahren
Ursprung
Commit
1723331ce6
4 geänderte Dateien mit 66 neuen und 18 gelöschten Zeilen
  1. +5
    -4
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue
  2. +50
    -11
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue
  3. +4
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue
  4. +7
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/single.vue

+ 5
- 4
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue Datei anzeigen

@@ -33,7 +33,7 @@
<l-customlist-action @view="action('view', item.MESSAGEID)" />
<l-customlist-action @view="action('view', item.MESSAGEID)" showDelete @delete="action('delete', item.MESSAGEID)" showEdit="true" @edit="action('edit', item.MESSAGEID)" />
</view> </view>
</l-customlist> </l-customlist>
</l-scroll-list> </l-scroll-list>
@@ -70,7 +70,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>
@@ -107,7 +107,7 @@ export default {
SENDER: { type: 'text' }, SENDER: { type: 'text' },
TITLE: { type: 'text' }, TITLE: { type: 'text' },
READFLAG: { type: 'select', dataSource: '0' }, READFLAG: { type: 'select', dataSource: '0' },
SENDTIME: { type: 'datetime', dateformat: '0' },
SENDTIME: { type: 'datetime', dateformat: '1' },
URL: { type: 'upload' }, URL: { type: 'upload' },
CONTENTS: { type: 'textarea' }, CONTENTS: { type: 'textarea' },
}, },
@@ -174,7 +174,7 @@ export default {
{ {
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) // 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序)
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 // 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序
pagination: { rows: 10, page: this.page, sidx: 'MESSAGEID', sord: 'DESC' },
pagination: { rows: 10, page: this.page, sidx: 'SENDTIME', sord: 'DESC' },
queryJson: JSON.stringify(this.searchData) queryJson: JSON.stringify(this.searchData)
}, },
'加载数据时出错' '加载数据时出错'
@@ -235,6 +235,7 @@ export default {
async action(type, id = '') { async action(type, id = '') {
switch (type) { switch (type) {
case 'view': case 'view':
this.HTTP_POST(`learun/adms/EducationalAdministration/SYS_ReceiveMessage/read`,{keyValue:id})
this.NAV_TO(`./single?type=view&id=${id}`) this.NAV_TO(`./single?type=view&id=${id}`)
return return


+ 50
- 11
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue Datei anzeigen

@@ -13,35 +13,43 @@
:disabled="!edit" :disabled="!edit"
title="主题" title="主题"
/> />
<l-select
<!-- <l-select
@input="setValue('SYS_ReceiveMessage.READFLAG', $event)" @input="setValue('SYS_ReceiveMessage.READFLAG', $event)"
:value="getValue('SYS_ReceiveMessage.READFLAG')" :value="getValue('SYS_ReceiveMessage.READFLAG')"
:disabled="!edit" :disabled="!edit"
:range="dataSource.SYS_ReceiveMessage.READFLAG" :range="dataSource.SYS_ReceiveMessage.READFLAG"
title="状态" title="状态"
/>
/> -->
<l-date-picker <l-date-picker
@input="setValue('SYS_ReceiveMessage.SENDTIME', $event)" @input="setValue('SYS_ReceiveMessage.SENDTIME', $event)"
:value="getValue('SYS_ReceiveMessage.SENDTIME')" :value="getValue('SYS_ReceiveMessage.SENDTIME')"
:disabled="!edit" :disabled="!edit"
title="收件时间" title="收件时间"
/> />
<!-- [API + '/learun/adms/annexes/wxdown?' + URL_QUERY(setValue('SYS_ReceiveMessage.URL', $event), true)] -->
<!-- getValue('SYS_ReceiveMessage.URL',$event) getValue('SYS_ReceiveMessage.URL') -->
<!-- @input="fileList" -->
<l-upload-file <l-upload-file
@input="setValue('SYS_ReceiveMessage.URL', $event)"
:value="getValue('SYS_ReceiveMessage.URL')"
v-if="ready"
:value="fileList"
@input="(e)=>{fileList = e}"
:readonly="!edit" :readonly="!edit"
:number="9" :number="9"
title="附件上传" title="附件上传"
/> />
<l-textarea
<!-- <l-textarea
@input="setValue('SYS_ReceiveMessage.CONTENTS', $event)" @input="setValue('SYS_ReceiveMessage.CONTENTS', $event)"
:value="getValue('SYS_ReceiveMessage.CONTENTS')" :value="getValue('SYS_ReceiveMessage.CONTENTS')"
:readonly="!edit" :readonly="!edit"
title="邮件内容" title="邮件内容"
/>
/> -->
<view class="bg-white" style="padding: 15px;color: #333333;font-size: 15px;">邮件内容</view>
<view class="bg-white" style="padding: 15px;padding-top: 0px;">
<u-parse v-if="ready" :imageProp="{ domain: apiRoot }" :content="getValue('SYS_ReceiveMessage.CONTENTS')" noData="暂无内容"></u-parse>
</view>
</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>
<l-button v-if="!edit && mode !== 'create'" @click="action('edit')" size="lg" line="orange" class="block margin-top" block> <l-button v-if="!edit && mode !== 'create'" @click="action('edit')" size="lg" line="orange" class="block margin-top" block>
@@ -49,7 +57,7 @@
</l-button> </l-button>
<l-button v-if="edit && mode !== 'create'" @click="action('reset')" size="lg" line="red" class="block margin-top" block> <l-button v-if="edit && mode !== 'create'" @click="action('reset')" size="lg" line="red" class="block margin-top" block>
取消编辑 取消编辑
</l-button>
</l-button>
<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>
@@ -95,13 +103,15 @@ export default {
// 表单数据 // 表单数据
current: {}, current: {},
origin: {}, origin: {},
fileList:[],
// 表单项数据结构 // 表单项数据结构
scheme: { scheme: {
SYS_ReceiveMessage: { SYS_ReceiveMessage: {
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: '0' },
URL: { type: 'upload', title: '附件上传' }, URL: { type: 'upload', title: '附件上传' },
CONTENTS: { type: 'textarea', title: '邮件内容' }, CONTENTS: { type: 'textarea', title: '邮件内容' },
@@ -149,8 +159,37 @@ export default {
if (this.mode === 'create') { if (this.mode === 'create') {
this.origin = await this.getDefaultForm() this.origin = await this.getDefaultForm()
} else { } else {
const result = await this.HTTP_GET('learun/adms/EducationalAdministration/SYS_ReceiveMessage/form', this.id)
this.origin = await this.formatFormData(result)
const result = await this.HTTP_GET('learun/adms/EducationalAdministration/SYS_ReceiveMessage/form', this.id)
if(result){
let wxlist = await this.FETCH_FILEList(result.SYS_ReceiveMessage.FilePath),fileList = []
for (const wxfile of wxlist) {
const fileInfo = await this.FETCH_FILEINFO(wxfile.F_Id)
if (!fileInfo) {
continue
}
const fileType = fileInfo.F_FileType
const fileSize = fileInfo.F_FileSize
const path = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(wxfile.F_Id, true)
fileList.push({
path,
type: fileType,
uid:wxfile.F_Id,
folderId:wxfile.F_FolderId,
size: fileSize
})
}
console.log(fileList)
this.fileList = fileList
this.origin = await this.formatFormData(result)
console.log(this.origin)
}else{
return
}
} }
this.current = this.COPY(this.origin) this.current = this.COPY(this.origin)
}, },


+ 4
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue Datei anzeigen

@@ -65,12 +65,12 @@
class="margin-bottom" class="margin-bottom"
/> />
<l-input
<!-- <l-input
v-model="queryData.Sender" v-model="queryData.Sender"
@change="searchChange" @change="searchChange"
title ="发送人" title ="发送人"
placeholder="按发送人查询" placeholder="按发送人查询"
/>
/> -->
<l-input <l-input
v-model="queryData.Title" v-model="queryData.Title"
@change="searchChange" @change="searchChange"
@@ -124,7 +124,7 @@ export default {
SendTime: { type: 'datetime', dateformat: '0' }, SendTime: { type: 'datetime', dateformat: '0' },
SendType: { type: 'select', itemCode: 'FileSendType', dataSource: '0' }, SendType: { type: 'select', itemCode: 'FileSendType', dataSource: '0' },
ReadFlag: { type: 'select', dataSource: '0' }, ReadFlag: { type: 'select', dataSource: '0' },
ReadTime: { type: 'datetime', dateformat: '0' },
ReadTime: { type: 'datetime', dateformat: '1' },
}, },
// 查询条件 // 查询条件
@@ -251,6 +251,7 @@ this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId;
async action(type, id = '') { async action(type, id = '') {
switch (type) { switch (type) {
case 'view': case 'view':
this.HTTP_POST(`learun/adms/EducationalAdministration/Sys_ReceiveFile/read`,{keyValue:id})
this.NAV_TO(`./single?type=view&id=${id}`) this.NAV_TO(`./single?type=view&id=${id}`)
return return


+ 7
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/single.vue Datei anzeigen

@@ -33,6 +33,13 @@
:range="dataSource.Sys_ReceiveFile.SendType" :range="dataSource.Sys_ReceiveFile.SendType"
title="接收对象" title="接收对象"
/> />
<l-upload-file
@input="setValue('Sys_ReceiveFile.RUrl', $event)"
:value="getValue('Sys_ReceiveFile.RUrl')"
:readonly="!edit"
:number="9"
title="附件上传"
/>
<!-- <l-textarea <!-- <l-textarea
@input="setValue('Sys_ReceiveFile.Contents', $event)" @input="setValue('Sys_ReceiveFile.Contents', $event)"
:value="getValue('Sys_ReceiveFile.Contents')" :value="getValue('Sys_ReceiveFile.Contents')"


Laden…
Abbrechen
Speichern