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

@wti-frontend/wti-notify

v1.0.1

Published

知会组件

Downloads

2

Readme

项目打包

  • npm i 安装依赖
  • npm run build 打包
  • npm publish 上传

知会组件

安装

  • npm i @wti-frontend/wti-notify

使用

import WtiNotify from '@wti-frontend/wti-notify';
// <WtiNotify
//     business-id
//     automatic-notification
//     task-node-id
//     dialog-visible
//     immediately-notify-value={
//         immediatelyNotify: 待办已完成true  反之false,
//         url,
//         taskTitle''
//     }
//     original-key="originalKey"
//     url=""
//     @callOff="openDialogVisibleNotify(false)"
//     @close="openDialogVisibleNotify(false)"
//     is-use-url=true
//     ref='wtiNotify'/>

Attributes

| 属性 | 说明 | 默认值 | 是否必填 | 类型 | | :--: |:----------------------------:|:-----:|:----:| :--: | | dialogWidth | 弹窗宽度 | '50%' | 否 | [ String , Number ] | | dialogVisible | 控制弹窗显示/隐藏 | '知会' | 否 | String | | originalKey | 业务流程key | '' | 是 | String| | businessId | 业务流程businessId | '' | 是 | String | | url | 会签待办知会的url | '' | 是 | [ String, Number ] | | automaticNotification | 是否开启默认知会 | true | 否 | Boolean | | functionCode | 业务流程functionCode | '' | 是 | String | | opendefaultAutomaticNotification | 是否开启默认知会的时机 默认 审批或复核 的 非已完成 | true | 否 | Boolean | | immediatelyNotifyValue | 快速知会,不用点击页面提交按钮(已完成传入) | '' | 是 | Object | | isUseUrl | 是否使用传入的url | false | 是 | Boolean |

Events

| 事件名称 | 说明 | 回调参数 | |:-------:|:-------:|:---------:| | callOff | 弹窗关闭时触发 | void | | close | 知会成功的回调 | 返回当前选中的人员 |

内部方法供外部使用

| 事件名称 | 说明 | 回调参数 | |:-------:|:----------:|:-------:| | customParamsNotify | 自定义参数的知会请求 | void | | sendNotifyMsg | 发送知会消息 | Promise |

/**
     * customParamsNotify
     * @function 自定义参数的知会请求 外部调用
     * @param {Object} params - 请求的参数
     * @param {Object} options - 额外配置(选填)
     * @return void
     * @author yinxiang
 */
this.$refs.wtiNotify.customParamsNotify(
    {
        condition : '', //业务条件(选填)
        functionCode : '' //流程function
    },
    {
        opendefaultAutomaticNotification : true, //开启请求的时机 默认true 时机为审批中
        paramPriority : true, //参数优先级 true 函数中的参数会合并掉你的参数 false相反
        prompt : true, //是否开启提示
        clearUser : false, //请求时是否清除原有的
        taskInfo : {
            taskTitle : ''//节点名称 手动发起的录入 生成待办是异步的,可能查不到待办 ,留一个口子
        } //流程信息
    }
)
    /**
     * sendNotifyMsg
     * @function 发送知会消息(业务审批提交时调用) 返回值为一个promise 外部调用
     * @param  originalKey - 请求的参数
     * @param  businessId - 额外配置
     * @return Promise
     * @author yinxiang
 */
this.$refs.wtiNotify.sendNotifyMsg(originalKey , businessId).then(resolve=>{
   // resolve true 为成功  false为失败
});