diff --git a/apps/wf/migrations/0003_workflow_view_path.py b/apps/wf/migrations/0003_workflow_view_path.py new file mode 100644 index 00000000..9d741bd4 --- /dev/null +++ b/apps/wf/migrations/0003_workflow_view_path.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2025-09-19 01:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('wf', '0002_alter_state_filter_dept'), + ] + + operations = [ + migrations.AddField( + model_name='workflow', + name='view_path', + field=models.TextField(blank=True, null=True, verbose_name='前端自定义页面路径'), + ), + ] diff --git a/apps/wf/models.py b/apps/wf/models.py index 19a06f13..39730a1d 100755 --- a/apps/wf/models.py +++ b/apps/wf/models.py @@ -21,6 +21,7 @@ class Workflow(CommonAModel): '标题模板', max_length=50, default='{title}', null=True, blank=True, help_text='工单字段的值可以作为参数写到模板中,格式如:你有一个待办工单:{title}') content_template = models.CharField( '内容模板', max_length=1000, default='标题:{title}, 创建时间:{create_time}', null=True, blank=True, help_text='工单字段的值可以作为参数写到模板中,格式如:标题:{title}, 创建时间:{create_time}') + view_path = models.TextField('前端自定义页面路径', null=True, blank=True) class Meta: verbose_name = '工作流'