1. 常见问题

1.1.1. 如何配置流程JSON

流程配置JSON结构

{
  "tableName": "CMS_CONTENT",
  "fields": [{
      "field": "CATEGORY_ID",
      "name": "所属栏目",
      "type": "select",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true",
      "multiple": "false",
      "options": [{
          "value": "1499198773946273794",
          "label": "文化"
        }, {
          "value": "1546662562244468738",
          "label": "动漫"
        }, {
          "value": "1546662842281369601",
          "label": "综艺"
        }]
    }, {
      "field": "CONTENT_TITLE",
      "name": "文章标题",
      "type": "input",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    }, {
      "field": "CONTENT_DATETIME",
      "name": "发布时间",
      "type": "date",
      "fmt": "YYYY-MM-DD HH:mm:ss",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    }]
}

JSON结构说明

参数 是否必填 说明 默认值
tableName 业务表名
fields 字段配置。不填写时,互斥网关将无法选择条件

fields字段说明

参数 是否必填 示例值 说明
field CONTENT_TITLE 数据库中字段名
name 文章标题 条件选择下拉展示名称
type input 条件选择类型,条件会根据type来生成子选择控件
input: 输入框
select: 下拉框
date: 日期选择框
time: 时间选择框
radio: 下拉框
checkbox: 下拉框
switch: 开关
isShow true 字段是否可见
isRead true 字段是否只读
isWrite false 字段是否写入
multiple false 字段值是否支持多选
options [{"value":"选项1","label":"选项1"}] 当type为select、radio、checkbox时,options为下拉框的选项,只有以上类型才与需要此字段
fmt YYYY-MM-DD HH:mm:ss 当type为date时,fmt为日期时间格式

1.1.2. 常用流程JSON配置

文章审批流程JSON配置

{
  "tableName": "CMS_CONTENT",
  "fields": [
    {
      "field": "CATEGORY_ID",
      "name": "所属栏目",
      "type": "select",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true",
      "multiple": "false",
      "options": [
        {
          "value": "1499198773946273794",
          "label": "文化"
        },
        {
          "value": "1546662562244468738",
          "label": "动漫"
        },
        {
          "value": "1546662842281369601",
          "label": "综艺"
        }
      ]
    },
    {
      "field": "CONTENT_TITLE",
      "name": "文章标题",
      "type": "input",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    },
    {
      "field": "CONTENT_SHORT_TITLE",
      "name": "文章副标题",
      "type": "input",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    },
    {
      "field": "CONTENT_TYPE",
      "name": "文章类型",
      "type": "select",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true",
      "multiple": "false",
      "options": [
        {
          "value": "c",
          "label": "推荐"
        },
        {
          "value": "f",
          "label": "幻灯"
        },
        {
          "value": "h",
          "label": "头条"
        }
      ]
    },
    {
      "field": "CONTENT_AUTHOR",
      "name": "文章作者",
      "type": "input",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    },
    {
      "field": "CONTENT_SOURCE",
      "name": "文章来源",
      "type": "input",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    },
    {
      "field": "CONTENT_DATETIME",
      "name": "发布时间",
      "type": "date",
      "fmt": "YYYY-MM-DD HH:mm:ss",
      "isShow": true,
      "isRead": "true",
      "isWrite": "true"
    }
  ]
}

一起来发现,团队会定期整理并更新文档~

[!tip] 有问题可以通过评论方式提交,如果没有看到评论列表请尝试刷新页面

Copyright © mingsoft.net 2012-2022 all right reserved,powered by Gitbook该文件修订时间: 2025-11-21 16:06:18

results matching ""

    No results matching ""

    results matching ""

      No results matching ""