@imedx/ics-imedx-chromely-plugin-index-examine
Advanced tools
Comparing version 0.0.1-beta.8 to 0.0.1-beta.9
@@ -177,3 +177,3 @@ import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
if (rank === void 0) { rank = 5; } | ||
return IndexExamine.query('SysAreaIndex', category, this.QueryCondition(keys, rank)); | ||
return IndexExamine.query('SysAreaIndex', '', this.QueryCondition(keys, rank, category)); | ||
}; | ||
@@ -193,3 +193,3 @@ /** | ||
if (rank === void 0) { rank = 5; } | ||
return IndexExamine.page('SysAreaIndex', pageIndex, pageSize, category, this.QueryCondition(keys, rank)); | ||
return IndexExamine.page('SysAreaIndex', pageIndex, pageSize, '', this.QueryCondition(keys, rank, category)); | ||
}; | ||
@@ -202,9 +202,13 @@ /** | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=34*&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* @returns | ||
*/ | ||
SysAreaIndex.QueryCondition = function (keys, rank) { | ||
if (rank === 5) | ||
return "name:*" + keys + "* spellCode:*" + keys + "* strokeCode:*" + keys + "*"; | ||
else | ||
return "name:*" + keys + "* spellCode:*" + keys + "* strokeCode:*" + keys + "* +rank:[1 TO " + rank + "]"; | ||
SysAreaIndex.QueryCondition = function (keys, rank, category) { | ||
// (name:*安* OR spellCode:*安* OR strokeCode:*安*) AND pid:34* AND rank:[1 TO 3] | ||
if (rank === 5) { | ||
return "(name:*" + keys + "* OR spellCode:*" + keys + "* OR strokeCode:*" + keys + "*) AND pid:" + category + " "; | ||
} | ||
else { | ||
return "(name:*" + keys + "* OR spellCode:*" + keys + "* OR strokeCode:*" + keys + "*) AND pid:" + category + " AND rank:[1 TO " + rank + "]"; | ||
} | ||
}; | ||
@@ -211,0 +215,0 @@ return SysAreaIndex; |
@@ -183,3 +183,3 @@ (function (global, factory) { | ||
if (rank === void 0) { rank = 5; } | ||
return IndexExamine.query('SysAreaIndex', category, this.QueryCondition(keys, rank)); | ||
return IndexExamine.query('SysAreaIndex', '', this.QueryCondition(keys, rank, category)); | ||
}; | ||
@@ -199,3 +199,3 @@ /** | ||
if (rank === void 0) { rank = 5; } | ||
return IndexExamine.page('SysAreaIndex', pageIndex, pageSize, category, this.QueryCondition(keys, rank)); | ||
return IndexExamine.page('SysAreaIndex', pageIndex, pageSize, '', this.QueryCondition(keys, rank, category)); | ||
}; | ||
@@ -208,9 +208,13 @@ /** | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=34*&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* @returns | ||
*/ | ||
SysAreaIndex.QueryCondition = function (keys, rank) { | ||
if (rank === 5) | ||
return "name:*" + keys + "* spellCode:*" + keys + "* strokeCode:*" + keys + "*"; | ||
else | ||
return "name:*" + keys + "* spellCode:*" + keys + "* strokeCode:*" + keys + "* +rank:[1 TO " + rank + "]"; | ||
SysAreaIndex.QueryCondition = function (keys, rank, category) { | ||
// (name:*安* OR spellCode:*安* OR strokeCode:*安*) AND pid:34* AND rank:[1 TO 3] | ||
if (rank === 5) { | ||
return "(name:*" + keys + "* OR spellCode:*" + keys + "* OR strokeCode:*" + keys + "*) AND pid:" + category + " "; | ||
} | ||
else { | ||
return "(name:*" + keys + "* OR spellCode:*" + keys + "* OR strokeCode:*" + keys + "*) AND pid:" + category + " AND rank:[1 TO " + rank + "]"; | ||
} | ||
}; | ||
@@ -217,0 +221,0 @@ return SysAreaIndex; |
@@ -25,3 +25,3 @@ "use strict"; | ||
if (rank === void 0) { rank = 5; } | ||
return index_examine_1.default.query('SysAreaIndex', category, this.QueryCondition(keys, rank)); | ||
return index_examine_1.default.query('SysAreaIndex', '', this.QueryCondition(keys, rank, category)); | ||
}; | ||
@@ -41,3 +41,3 @@ /** | ||
if (rank === void 0) { rank = 5; } | ||
return index_examine_1.default.page('SysAreaIndex', pageIndex, pageSize, category, this.QueryCondition(keys, rank)); | ||
return index_examine_1.default.page('SysAreaIndex', pageIndex, pageSize, '', this.QueryCondition(keys, rank, category)); | ||
}; | ||
@@ -50,9 +50,13 @@ /** | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=34*&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* @returns | ||
*/ | ||
SysAreaIndex.QueryCondition = function (keys, rank) { | ||
if (rank === 5) | ||
return "name:*" + keys + "* spellCode:*" + keys + "* strokeCode:*" + keys + "*"; | ||
else | ||
return "name:*" + keys + "* spellCode:*" + keys + "* strokeCode:*" + keys + "* +rank:[1 TO " + rank + "]"; | ||
SysAreaIndex.QueryCondition = function (keys, rank, category) { | ||
// (name:*安* OR spellCode:*安* OR strokeCode:*安*) AND pid:34* AND rank:[1 TO 3] | ||
if (rank === 5) { | ||
return "(name:*" + keys + "* OR spellCode:*" + keys + "* OR strokeCode:*" + keys + "*) AND pid:" + category + " "; | ||
} | ||
else { | ||
return "(name:*" + keys + "* OR spellCode:*" + keys + "* OR strokeCode:*" + keys + "*) AND pid:" + category + " AND rank:[1 TO " + rank + "]"; | ||
} | ||
}; | ||
@@ -59,0 +63,0 @@ return SysAreaIndex; |
@@ -27,2 +27,3 @@ export default class SysAreaIndex { | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* http://icreate.com/LocalIndex/Page?indexId=SysAreaIndex&pageIndex=0&pageSize=10&category=34*&keys=name:*安* spellCode:*安* strokeCode:*安* +rank:[1 TO 3] | ||
* @returns | ||
@@ -29,0 +30,0 @@ */ |
{ | ||
"name": "@imedx/ics-imedx-chromely-plugin-index-examine", | ||
"version": "0.0.1-beta.8", | ||
"version": "0.0.1-beta.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62828
810