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-auditlog

v0.0.5

Published

审核信息相关组件

Downloads

3

Readme

审核信息相关组件

下载
npm i @wti-frontend/wti-auditlog
引入
import WtiAuditLog from '@wti-frontend/wti-auditlog';
注册(需注册在@wti-frontend/classification-upload-file 组件之后,组件内部有对该组件的引用)
Vue.use(WtiAuditLog, {
            baseURL,
            tokenField: sessionStorage.getItem('wti-manager-token'),
        });

组件简介:

AuditInfo审核信息 - 抽屉页面使用

![AuditInfo审核信息 - 抽屉页面使用](readme-img/AuditInfo审核信息 - 抽屉页面使用.png)

<!-- 审核信息 -->
<AuditInfo :original-key="mainOriginalKey" v-if="mainOriginalKey">

HistoricalOpinionArr 审核信息

![image-20240104171247932](readme-img/HistoricalOpinionArr 审核信息.png)

<!-- 审批信息 -->
<HistoricalOpinionArr :main-original-key="mainOriginalKey" v-if="mainOriginalKey">

CountersignFunction 发起加签、转办

发起加签

发起转办

基础使用
template
<button @click="openCountersignDialog('endorse')">加签</button>
<button @click="openCountersignDialog('transfer')">转办</button>
<!-- 加签/转办功能 -->
<CountersignFunction
    :params="endorseParams"
    @success="endorseOrTransferSucesss"
    ref="countersignFunction"/>
script
// 加签、转办提交组件
export default {
        data () {
            return {
            	mainOriginalKey: '',
          		endorseParams: {
          			taskNodeId: '', // 审批:tskRecheck   会签:tskCountersign
                    businessId: '', // 关联业务唯一id
                    originalKey: '', // 本节点id
                    parentOriginalKey: '', // 父节点id
                    mainOriginalKey: '', // 主流节点id
          		}
            };
        },
        created () {
        	this.taskNodeId = this.$getFromSearchURL('taskNodeId'); // 是否为被会签节点
            this.parentOriginalKey = this.$getFromSearchURL('parentOriginalKey');
            this.originalKey = this.$getFromSearchURL('originalKey');
            this.businessId = this.$getFromSearchURL('businessId');
            // 加签转办的参数
            this.endorseParams = {
                taskNodeId: this.taskNodeId, // 审批:tskRecheck   会签:tskCountersign 
                businessId: this.businessId, // 关联业务唯一id
                originalKey: this.originalKey, // 本节点id
                parentOriginalKey: this.parentOriginalKey, // 父节点id
                mainOriginalKey: this.mainOriginalKey, // 主流节点id
            };
		},
        methods: {
           // 打开加签发起弹窗
            openCountersignDialog (functionType) {
                this.$refs.countersignFunction.openDialog(functionType);
            },
            // 加签转办成功
            endorseOrTransferSucesss (params) {
                if(params.functionType === 'transfer') {
                    // 关闭当前页面
                    this.$message.success('转办成功,窗口 3s 后关闭');
                    setTimeout(() => {
                        closePage(147);
                        if (this.isWorkspace === '1') {
                            refreshPage(0);
                        }
                    }, 2000);
                }
                if(params.functionType === 'endorse') {
                    refreshPage(147);
                }
            },
        }
    };

CountersignDetail 任务日志 (加签、转办、查看投票、授权、代理)

![CountersignDetail 任务日志](readme-img/CountersignDetail 任务日志.png)

<!-- 待处理或者正在处理的待办任务需要有撤回功能 -->
<CountersignDetail v-if="originalKey && mainOriginalKey"
               	   :is-show-retreat-btn="taskStatus == '0' || taskStatus === '1'"
                   :original-key="originalKey"
                   :main-original-key="mainOriginalKey"
                   :is-required="true"
                   @getCurrentApprovalInfo="getCurrentApprovalInfo"/>

SponsorEndorseDetail加签接收人加签信息模块

SponsorEndorseDetail加签信息模块

<SponsorEndorseDetail v-if="originalKey && (taskNodeId === 'tskCountersign' || isSignin === '1')" 
                      :original-key ="originalKey"/>

Transfer转办信息模块

Transfer转办信息模块

<!--转办详情 转办次数大于0时 该待办有转办详情 -->
 <Transfer v-if="originalKey && businessId && transferTimes > 0"
           :original-key="originalKey"
           :business-id="businessId"/>

OpenWorkflowBtn 查看审批流程图按钮

OpenWorkflowBtn查看审批流程图

<OpenWorkflowBtn :original-key="originalKey"/>

BusinessStatus 状态戳

BusinessStatus状态戳

<BusinessStatus :status="10" :size="10"/>

CloseBtn页面关闭按钮

<closeBtn :page-id="139"/>