1
0

fix(web): ware增加数据资源选择

This commit is contained in:
2024-12-15 23:08:29 +08:00
parent 4ef9c61201
commit 41032f74af
5 changed files with 69 additions and 1 deletions

View File

@@ -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',