saas-tenant-approve-app
v0.2.2
Published
审批流
Downloads
468
Readme
saas-tenant-approve-app
下载组件
npm install saas-tenant-approve-app
ApproveLine组件
引入组件
import {ApproveLine} from 'saas-tenant-approve-app'
组件使用参数
<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
}
ApproveLineAll组件(0.1.27版本更新)
与ApproveLine组件相同,只是显示所有审批流程,时间显示精确至分
selectLine组件(0.1.25版本稳定)
查询流程节点配置流程组件
引入组件
import {selectLine} from 'saas-tenant-approve-app'
组件使用参数
<SelectLine
:data="data"
v-if="data.uid && data.formDataList.length"
@submit="saveWork"
@fail="beforeBack"
></SelectLine>
submit(){}点击提交函数回调,返回optionalUserList
fail(){}请求失败函数回调