From 4390992a141e2ad28af3d2af650b11c3c31b8c78 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 19 Sep 2025 09:09:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20workflow=E6=B7=BB=E5=8A=A0view?= =?UTF-8?q?=5Fpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wf/migrations/0003_workflow_view_path.py | 18 ++++++++++++++++++ apps/wf/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/wf/migrations/0003_workflow_view_path.py 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 = '工作流'