fix(web): ware增加数据资源选择
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import './dialog-ware.css'
|
||||
import {apiGet, apiPost, formInputClearable, horizontalFormOptions, information} from "../constants.js";
|
||||
import {
|
||||
apiGet,
|
||||
apiPost,
|
||||
formInputClearable,
|
||||
horizontalFormOptions,
|
||||
information,
|
||||
} from "../constants.js";
|
||||
import {resourceList} from '../../pages/index/tab-data.js'
|
||||
import {resourceDetailDialog} from '../resource/dialog-resource.js'
|
||||
|
||||
function detailForm() {
|
||||
return {
|
||||
@@ -19,6 +27,34 @@ function detailForm() {
|
||||
name: 'icon',
|
||||
label: '图标',
|
||||
},
|
||||
{
|
||||
type: 'picker',
|
||||
name: 'resourceId',
|
||||
label: '数据资源',
|
||||
required: true,
|
||||
multiple: false,
|
||||
size: 'md',
|
||||
valueField: 'id',
|
||||
labelField: 'name',
|
||||
source: apiGet('${base}/data_resource/list_no_ware'),
|
||||
pickerSchema: {
|
||||
...resourceList(),
|
||||
},
|
||||
staticSchema: {
|
||||
type: 'tpl',
|
||||
tpl: "<span class='text-primary' style='cursor: pointer'>${resourceName}</span>",
|
||||
onEvent: {
|
||||
click: {
|
||||
actions: [
|
||||
{
|
||||
actionType: 'dialog',
|
||||
...resourceDetailDialog('resourceId'),
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'input-text',
|
||||
name: 'name',
|
||||
|
||||
Reference in New Issue
Block a user