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

quick-query-form

v1.0.1

Published

a quick form to help you to build your query form

Downloads

1

Readme

curisegong

快速构建查询表单

dateType: text:文本类型 用于后台SQL参数变量类型,如USERID='U101111' 注意有单引号 number:数字类型 同理 如 USERID=12312 注意无单引号 date:日期类型 CREATE_DATE>=TO_DATE('2021-07-31','YYYY-MM-DD')

operator: gte:大于等于 gt:大于 lte:小于等于 lt:小于 in:包括 eq:等于 isnu:为空 isnnu:不为空 like:模糊匹配

表单支持类型 type: m-select 多选下拉框 select 单选下拉框 checkbox 复选框 date 日历框,只能选择年月日 month 月份选择框 number 数字框 textarea 多行输入框 text 单行输入框

注意,后台根据前台传入的参数进行SQL组装还在整理中,后续将会增加NetCore和Java后台的SQL操作工具

该组件是基于element-UI设计的,所以在使用改组件时,请确认你的系统框架是基于element-ui的,否则请单独安装element-ui依赖

Build Setup

# install dependencies
npm install quick-query-form

# main.js配置 将组件注册挂在到Vue
import  quickQueryForm from 'quick-query-form';
Vue.use(quickQueryForm);

# 页面引用

#定义表单查询条件
 Conditions = [
  {    id: "logtime[gte]",    name: "大于等于",    type: "date",    dateType: "date",  },
  {    id: "logtime[lt]",    name: "小于",    type: "date",    dateType: "date",  },

  {    id: "condition1",    name: "缺失等于",    type: "text",  },
  
  { id: "condition2[like]", name: "条件2", type: "text" },

  {id: "condition3", name: "单选择下拉框", type: "select", allowEmpty: true, options: [ { id: "1", name: "有" }, { id: "0", name: "无" }, ],},
  { id: "condition12",  name: "多选择下拉框",  type: "m-select",  allowEmpty: true,  options: [
      { id: "1", name: "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试" },
      { id: "0", name: "无" },
    ],
  },

  { id: "condition5[like]", name: "模糊条件", type: "text" },

  { id: "condition6[eq]", name: "等于", type: "text" },
  { id: "condition7[gt]",  name: "大于",  type: "number", dateType: "number",  },
  { id: "condition8[lt]",  name: "小于", type: "number",  dateType: "number", },
  {  id: "condition14[like]", name: "多输入框模糊",  type: "textarea",  dateType: "textarea", },
];
#插入到页面指定位置
   <quick-query-form
      ref="quickqueryform"
      :inputCondition="formConditions"
      @queryConditionCallback="queryConditionCallback"
    ></quick-query-form>
    #查询条件回调
     queryConditionCallback(data) {
      alert(JSON.stringify(data));
    },

For detailed explanation on how things work, consult the docs for vue-loader.