mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-23 23:09:47 +08:00
add 添加表单配置
This commit is contained in:
@ -78,12 +78,12 @@ create table wf_task_back_node
|
||||
)
|
||||
comment '节点审批记录';
|
||||
|
||||
DROP TABLE if EXISTS wf_form_definition;
|
||||
create table wf_form_definition
|
||||
DROP TABLE if EXISTS wf_definition_config;
|
||||
create table wf_definition_config
|
||||
(
|
||||
id bigint not null comment '主键'
|
||||
primary key,
|
||||
path varchar(200) default '' not null comment '路由地址',
|
||||
form_id bigint not null comment '表单ID',
|
||||
definition_id varchar(255) not null comment '流程定义ID',
|
||||
process_key varchar(255) not null comment '流程KEY',
|
||||
create_dept bigint null comment '创建部门',
|
||||
@ -96,8 +96,44 @@ create table wf_form_definition
|
||||
constraint uni_definition_id
|
||||
unique (definition_id)
|
||||
)
|
||||
comment '表单配置';
|
||||
comment '流程定义配置';
|
||||
|
||||
create table wf_form_manage
|
||||
(
|
||||
id bigint not null comment '主键'
|
||||
primary key,
|
||||
form_name varchar(255) not null comment '表单名称',
|
||||
form_type varchar(255) not null comment '表单类型',
|
||||
router varchar(255) not null comment '路由地址/表单ID',
|
||||
remark varchar(500) null comment '备注',
|
||||
tenant_id varchar(20) null comment '租户编号',
|
||||
create_dept bigint null comment '创建部门',
|
||||
create_by bigint null comment '创建者',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_by bigint null comment '更新者',
|
||||
update_time datetime null comment '更新时间'
|
||||
)
|
||||
comment '表单管理';
|
||||
|
||||
insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id, create_dept, create_by, create_time, update_by, update_time) VALUES (1, '请假申请', 'static', '/demo/leaveEdit/index', NULL, '000000', 103, 1, sysdate(), 1, sysdate());
|
||||
|
||||
create table wf_node_config
|
||||
(
|
||||
id bigint not null comment '主键'
|
||||
primary key,
|
||||
form_id bigint null comment '表单id',
|
||||
form_type varchar(255) null comment '表单类型',
|
||||
node_name varchar(255) not null comment '节点名称',
|
||||
node_id varchar(255) not null comment '节点id',
|
||||
definition_id varchar(255) not null comment '流程定义id',
|
||||
create_dept bigint null comment '创建部门',
|
||||
create_by bigint null comment '创建者',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_by bigint null comment '更新者',
|
||||
update_time datetime null comment '更新时间',
|
||||
tenant_id varchar(20) null comment '租户编号'
|
||||
)
|
||||
comment '节点配置';
|
||||
|
||||
|
||||
INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11638, '请假申请', 5, 1, 'leave', 'workflow/leave/index', 1, 0, 'C', '0', '0', 'demo:leave:list', '#', 103, 1, sysdate(), NULL, NULL, '请假申请菜单');
|
||||
|
@ -120,12 +120,12 @@ comment on column WF_TASK_BACK_NODE.CREATE_TIME is '创建时间'
|
||||
comment on column WF_TASK_BACK_NODE.UPDATE_BY is '更新者'
|
||||
comment on column WF_TASK_BACK_NODE.UPDATE_TIME is '更新时间'
|
||||
|
||||
create table WF_FORM_DEFINITION
|
||||
create table WF_DEFINITION_CONFIG
|
||||
(
|
||||
ID NUMBER(20) NOT NULL
|
||||
CONSTRAINT PK_WF_FORM_DEFINITION
|
||||
CONSTRAINT PK_WF_DEFINITION_CONFIG
|
||||
PRIMARY KEY,
|
||||
PATH VARCHAR2(200) NOT NULL,
|
||||
FORM_ID NUMBER(20) NOT NULL,
|
||||
DEFINITION_ID VARCHAR2(255) NOT NULL,
|
||||
PROCESS_KEY VARCHAR2(255) NOT NULL,
|
||||
TENANT_ID VARCHAR2(20),
|
||||
@ -137,16 +137,17 @@ create table WF_FORM_DEFINITION
|
||||
constraint uni_definition_id
|
||||
unique (definition_id)
|
||||
);
|
||||
comment on table WF_FORM_DEFINITION is '表单配置'
|
||||
comment on column WF_FORM_DEFINITION.ID is '主键'
|
||||
comment on column WF_FORM_DEFINITION.DEFINITION_ID is '流程定义ID'
|
||||
comment on column WF_FORM_DEFINITION.PROCESS_KEY is '流程KEY'
|
||||
comment on column WF_FORM_DEFINITION.TENANT_ID is '租户编号'
|
||||
comment on column WF_FORM_DEFINITION.CREATE_DEPT is '创建部门'
|
||||
comment on column WF_FORM_DEFINITION.CREATE_BY is '创建者'
|
||||
comment on column WF_FORM_DEFINITION.CREATE_TIME is '创建时间'
|
||||
comment on column WF_FORM_DEFINITION.UPDATE_BY is '更新者'
|
||||
comment on column WF_FORM_DEFINITION.UPDATE_TIME is '更新时间'
|
||||
comment on table WF_DEFINITION_CONFIG is '流程定义配置'
|
||||
comment on column WF_DEFINITION_CONFIG.ID is '主键'
|
||||
comment on column WF_DEFINITION_CONFIG.FORM_ID is '表单ID'
|
||||
comment on column WF_DEFINITION_CONFIG.DEFINITION_ID is '流程定义ID'
|
||||
comment on column WF_DEFINITION_CONFIG.PROCESS_KEY is '流程KEY'
|
||||
comment on column WF_DEFINITION_CONFIG.TENANT_ID is '租户编号'
|
||||
comment on column WF_DEFINITION_CONFIG.CREATE_DEPT is '创建部门'
|
||||
comment on column WF_DEFINITION_CONFIG.CREATE_BY is '创建者'
|
||||
comment on column WF_DEFINITION_CONFIG.CREATE_TIME is '创建时间'
|
||||
comment on column WF_DEFINITION_CONFIG.UPDATE_BY is '更新者'
|
||||
comment on column WF_DEFINITION_CONFIG.UPDATE_TIME is '更新时间'
|
||||
|
||||
INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11638, '请假申请', 5, 1, 'leave', 'workflow/leave/index', 1, 0, 'C', '0', '0', 'demo:leave:list', '#', 103, 1, sysdate, NULL, NULL, '请假申请菜单');
|
||||
INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11639, '请假申请查询', 11638, 1, '#', '', 1, 0, 'F', '0', '0', 'demo:leave:query', '#', 103, 1, sysdate, NULL, NULL, '');
|
||||
|
@ -166,12 +166,12 @@ comment on column wf_task_back_node.update_time is '修改时间';
|
||||
alter table wf_task_back_node
|
||||
owner to postgres;
|
||||
|
||||
create table wf_form_definition
|
||||
create table wf_definition_config
|
||||
(
|
||||
id bigint(20) not null
|
||||
constraint pk_wf_form_definition
|
||||
constraint pk_wf_definition_config
|
||||
primary key,
|
||||
path varchar(200) not null,
|
||||
form_id bigint(20) not null,
|
||||
definition_id varchar(255) not null,
|
||||
process_key varchar(255) not null,
|
||||
tenant_id varchar(20),
|
||||
@ -182,32 +182,32 @@ create table wf_form_definition
|
||||
update_time timestamp
|
||||
);
|
||||
|
||||
comment on table wf_form_definition is '表单配置';
|
||||
comment on table wf_definition_config is '流程定义配置';
|
||||
|
||||
comment on column wf_form_definition.id is '主键';
|
||||
comment on column wf_definition_config.id is '主键';
|
||||
|
||||
comment on column wf_form_definition.path is '路由地址';
|
||||
comment on column wf_definition_config.form_id is '表单ID';
|
||||
|
||||
comment on column wf_form_definition.definition_id is '流程定义ID';
|
||||
comment on column wf_definition_config.definition_id is '流程定义ID';
|
||||
|
||||
comment on column wf_form_definition.process_key is '流程KEY';
|
||||
comment on column wf_definition_config.process_key is '流程KEY';
|
||||
|
||||
comment on column wf_form_definition.tenant_id is '租户id';
|
||||
comment on column wf_definition_config.tenant_id is '租户id';
|
||||
|
||||
comment on column wf_form_definition.create_dept is '创建部门';
|
||||
comment on column wf_definition_config.create_dept is '创建部门';
|
||||
|
||||
comment on column wf_form_definition.create_by is '创建者';
|
||||
comment on column wf_definition_config.create_by is '创建者';
|
||||
|
||||
comment on column wf_form_definition.create_time is '创建时间';
|
||||
comment on column wf_definition_config.create_time is '创建时间';
|
||||
|
||||
comment on column wf_form_definition.update_by is '修改者';
|
||||
comment on column wf_definition_config.update_by is '修改者';
|
||||
|
||||
comment on column wf_form_definition.update_time is '修改时间';
|
||||
comment on column wf_definition_config.update_time is '修改时间';
|
||||
|
||||
alter table wf_form_definition
|
||||
alter table wf_definition_config
|
||||
owner to postgres;
|
||||
create unique index uni_definition_id
|
||||
on wf_form_definition (definition_id);
|
||||
on wf_definition_config (definition_id);
|
||||
|
||||
INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11638, '请假申请', 5, 1, 'leave', 'workflow/leave/index', 1, 0, 'C', '0', '0', 'demo:leave:list', '#', 103, 1, now(), NULL, NULL, '请假申请菜单');
|
||||
INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11639, '请假申请查询', 11638, 1, '#', '', 1, 0, 'F', '0', '0', 'demo:leave:query', '#', 103, 1, now(), NULL, NULL, '');
|
||||
|
@ -214,10 +214,10 @@ exec sp_addextendedproperty 'MS_Description', N'更新时间', 'SCHEMA', 'dbo',
|
||||
'update_time'
|
||||
go
|
||||
|
||||
create table wf_form_definition
|
||||
create table wf_definition_config
|
||||
(
|
||||
id bigint(20) not null primary key,
|
||||
path nvarchar(200) not null,
|
||||
form_id bigint(20) not null,
|
||||
definition_id nvarchar(255)
|
||||
constraint uni_definition_id
|
||||
unique,
|
||||
@ -231,43 +231,43 @@ create table wf_form_definition
|
||||
)
|
||||
|
||||
go
|
||||
exec sp_addextendedproperty 'MS_Description', N'表单配置', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition'
|
||||
exec sp_addextendedproperty 'MS_Description', N'流程定义配置', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN', 'id'
|
||||
exec sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN', 'id'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'路由地址', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
'path'
|
||||
exec sp_addextendedproperty 'MS_Description', N'表单ID', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'form_id'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'流程定义ID', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
exec sp_addextendedproperty 'MS_Description', N'流程定义ID', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'definition_id'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'流程KEY', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
exec sp_addextendedproperty 'MS_Description', N'流程KEY', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'process_key'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'租户编号', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
exec sp_addextendedproperty 'MS_Description', N'租户编号', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'tenant_id'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'创建部门', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
exec sp_addextendedproperty 'MS_Description', N'创建部门', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'create_dept'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'创建者', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN', 'create_by'
|
||||
exec sp_addextendedproperty 'MS_Description', N'创建者', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN', 'create_by'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
exec sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'create_time'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'更新者', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN', 'update_by'
|
||||
exec sp_addextendedproperty 'MS_Description', N'更新者', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN', 'update_by'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'更新时间', 'SCHEMA', 'dbo', 'TABLE', 'wf_form_definition', 'COLUMN',
|
||||
exec sp_addextendedproperty 'MS_Description', N'更新时间', 'SCHEMA', 'dbo', 'TABLE', 'wf_definition_config', 'COLUMN',
|
||||
'update_time'
|
||||
go
|
||||
|
||||
|
Reference in New Issue
Block a user