|
@@ -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) |
|
|
}, |
|
|
}, |
|
|