npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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
     }

img_1.png

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(){}请求失败函数回调