fix(web): 提交遗漏文件
This commit is contained in:
@@ -5,8 +5,8 @@ import {
|
|||||||
commonInfo,
|
commonInfo,
|
||||||
crudCommonOptions,
|
crudCommonOptions,
|
||||||
mappingField,
|
mappingField,
|
||||||
mappingItem,
|
mappingItem, paginationTemplate,
|
||||||
pictureFromIds
|
pictureFromIds,
|
||||||
} from '../../../util/amis.tsx'
|
} from '../../../util/amis.tsx'
|
||||||
|
|
||||||
const FeedbackDiv = styled.div`
|
const FeedbackDiv = styled.div`
|
||||||
@@ -47,54 +47,57 @@ const Feedback: React.FC = () => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
...crudCommonOptions(),
|
...crudCommonOptions(),
|
||||||
headerToolbar: [
|
...paginationTemplate(
|
||||||
'reload',
|
10,
|
||||||
{
|
5,
|
||||||
type: 'action',
|
[
|
||||||
label: '',
|
{
|
||||||
icon: 'fa fa-plus',
|
type: 'action',
|
||||||
tooltip: '新增',
|
label: '',
|
||||||
tooltipPlacement: 'top',
|
icon: 'fa fa-plus',
|
||||||
actionType: 'dialog',
|
tooltip: '新增',
|
||||||
dialog: {
|
tooltipPlacement: 'top',
|
||||||
title: '新增报账单',
|
actionType: 'dialog',
|
||||||
size: 'md',
|
dialog: {
|
||||||
body: {
|
title: '新增报账单',
|
||||||
debug: commonInfo.debug,
|
size: 'md',
|
||||||
type: 'form',
|
body: {
|
||||||
api: `${commonInfo.baseAiUrl}/feedback/save`,
|
debug: commonInfo.debug,
|
||||||
body: [
|
type: 'form',
|
||||||
{
|
api: `${commonInfo.baseAiUrl}/feedback/save`,
|
||||||
type: 'editor',
|
body: [
|
||||||
required: true,
|
{
|
||||||
label: '故障描述',
|
type: 'editor',
|
||||||
name: 'source',
|
required: true,
|
||||||
language: 'plaintext',
|
label: '故障描述',
|
||||||
options: {
|
name: 'source',
|
||||||
lineNumbers: 'off',
|
language: 'plaintext',
|
||||||
wordWrap: 'bounded',
|
options: {
|
||||||
|
lineNumbers: 'off',
|
||||||
|
wordWrap: 'bounded',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
type: 'input-image',
|
||||||
type: 'input-image',
|
name: 'pictures',
|
||||||
name: 'pictures',
|
label: '相关截图',
|
||||||
label: '相关截图',
|
autoUpload: false,
|
||||||
autoUpload: false,
|
multiple: true,
|
||||||
multiple: true,
|
joinValues: false,
|
||||||
joinValues: false,
|
extractValue: true,
|
||||||
extractValue: true,
|
// 5MB 5242880
|
||||||
// 5MB 5242880
|
// 100MB 104857600
|
||||||
// 100MB 104857600
|
// 500MB 524288000
|
||||||
// 500MB 524288000
|
// 1GB 1073741824
|
||||||
// 1GB 1073741824
|
maxSize: 5242880,
|
||||||
maxSize: 5242880,
|
receiver: `${commonInfo.baseAiUrl}/upload`,
|
||||||
receiver: `${commonInfo.baseAiUrl}/upload`,
|
},
|
||||||
},
|
],
|
||||||
],
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
]
|
||||||
],
|
),
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
name: 'id',
|
name: 'id',
|
||||||
|
|||||||
Reference in New Issue
Block a user