import './dialog-permission.css' import {horizontalFormOptions} from "../constants.js"; function detailForm() { return { id: 'resource_data_form', type: 'form', ...horizontalFormOptions(), horizontal: { left: 2, }, body: [ { type: 'hidden', name: 'id', }, ] } } export function permissionAddDialog() { return { actionType: 'dialog', dialog: { title: '新增确权申请', size: 'md', actions: [ { type: 'reset', label: '重置', }, { type: 'submit', label: '确定', level: 'primary', } ], body: { debug: true, ...detailForm(), // api: apiPost('${base}/data_resource/save'), data: { add: true, }, } } } }