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

@anmed/flex-business-query

v0.0.4

Published

## 支持类型

Downloads

15

Readme

定制查询引擎

支持类型

| 类型 | 名称 | 说明 | 支持参数 | 备注 | |-------------------------|------------------------|-----------------------------------------------------------------|-----------------------------------------------------------------|--------------------------------------------------------| | text | 文本 | 自由文本输入 | field: 关联字段 | | | number | 数字 | 自由数字输入 | field: 关联字段preceision: 精度 | | | number-range | 数字范围 | 数字区间,最小值和最大值 | minField:最小值字段maxField:最大值字段 | | | date | 日期 | 日期选择 | field: 关联字段min:查询的最早日期max:查询的最大日期 | | date-range | 日期范围 | 日期段选择,代表从某个日期到某个日期 || | datetime | 时间 | 时间选择 | fromField:开始字段toField:结束字段min:查询的最早日期max:查询的最大日期 || | option-select | 下拉单选 | 下拉列表单项选择 | field:关联字段dic:关联的数据字典名称 | 下拉的options根据dic从context获取 | | option-multi-select | 下拉多选 | 下拉列表中多项选择 | field:关联字段dic:关联的数据字典名称 | 下拉的options根据dic从context获取 | | input-option-select | 填充下拉 | 根据输入项目过滤下拉选项进行单选 | field:关联字段getOptions:异步函数,用于返回options list | getOptions是一个异步调用的方法名称,改方法需要提前注入到context,调用参数为当前输入的文字值 |

脚本示例


let components = [
    {
        label: "姓名",
        size: '15x',
        type: "text",
        params: {
            field: "name",
        }
    },
    {
        label: "性别",
        span: 3,
        type: "options-select",
        params: {
            field: "gender",
            dic: 'ops-gender',
            props: {
                outlined: true
            }
        }
    },
    {
        label: "制单时间",
        span: 4,
        type: "date-range",
        params: {
            formField: "fromDate",
            toField: "toDate",
            min: '2022-10-01',
            max: utils.today()
        }
    },
    {
        label: "重量",
        span: 4,
        type: "number-range",
        params: {
            formField: "fromWeight",
            toField: "toWeight"
        }
    },
    {
        label: "随访医生",
        span: 4,
        type: "options-multi-select",
        params: {
            formField: "fromWeight",
            toField: "toWeight"
        }
    }
]

const main = () => {
    return components;
}