0.1.17 • Published 1 year ago

saas-tenant-approve v0.1.17

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

saas-tenant-approve

下载组件

npm install saas-tenant-approve

引入组件

import ApproveLine from 'saas-tenant-approve'

组件使用参数

<ApproveLine @before="before" @after="after" :data="data"></approveLine>

before:执行函数前回调
before( msg, next ) {
   msg返回数据:
    {
        "msg":"同意审批操作,回调参数返回ture继续执行,返回false终止操作",
        "type":"beforeAgree" //beforeAgree:同意前,beforeReject:驳回前
   }
   // 如果需要额外参数通过 next()对象形式传递,如果不需要消息发送相关业务直接next()
    next({
          "outApprove":false,//是否外部调用,如果没有传form信息。需要设置为true
          "sendMessage":true,//是否发送指定消息,
          "sendOutMessage":true,//是否发送消息,如果为true,下面发送消息的信息不能为空
          "sendTitle":"下一个审批人是谁",//消息标题
          "sendDescription":"你收到消息了吗?",//消息内容
          "sendUrl":"http://www.baidu.com",//消息链接
          "agentId":"1000**1",//发送消息的应用agentId
        });
  }
after:执行函数后回调
after( msg) {
    {
    "res":{"status":300,"message":"未找到审批人员","result":{}},
    "type":"afterAgree" //afterAgree:同意后,afterReject:驳回后
    }
  },
data: {
        baseUrl: 'http://****/api', //请求地址域名
        uid: '181********', 当前登录人(审批人)ID
        id: '52494', 审批流ID
     }

img_1.png

0.1.16

1 year ago

0.1.17

1 year ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago