cnbi-cube
v1.0.5
Published
## Project setup ``` npm install ```
Downloads
2
Readme
text
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Customize configuration
//后端过滤参数
field:列的id,
calcSymbol:关系符号(参照条件渲染中的大于小于等于...),
value:比对的值(可以为常量,可以为变量),
type:1,2,3中情况,0:简单筛选,1代表是常量筛选,2代表表达式筛选,3代表跨表筛选
例子一:
[{
"type":0,
"field":"code",
"calcSymbol":"include",
"value":["1001","1002","1003"]//取code值在这个范围中的记录
},{
"type":0,
"field":"*",
"calcSymbol":"limit",
"value":[3,99]//取第索引为3到索引为99的记录
}]
例子二:
[{"field":"D","calcSymbol":">",value:"0","type":1}]//取D值大于0的记录
例子三:
[{
"type": 3,
"field": "C",
"value": ["indicator_conditions:A", "indicator_conditions:B"],//取C值大于表indicator_conditions中A值或者(or)C值小于表indicator_conditions中的B值
"calcSymbol": [">", "<"],
"subLogicSymbol": ["or", "or"],
"logicSymbol": "and" //如果没有,默认and
}, {
"type": 3,
"field": "D",
"value": ["indicator_conditions:C", "indicator_conditions:D"],//并且要是D值大于表indicator_conditions中的C值或者(or)D值小于表indicator_conditions中的D值
"calcSymbol": [">", "<"],
"subLogicSymbol": ["or", "or"]
}],