|
@@ -155,13 +155,17 @@ module.exports = app => {
|
|
|
* @private
|
|
|
*/
|
|
|
_getParamValue(param, nodeBills) {
|
|
|
- switch (param.match_type) {
|
|
|
- case paramConst.matchType.fixed_id: return this._getFixedIdParamValue(param);
|
|
|
- case paramConst.matchType.node_default: return this._getNodeBillsValue(param, nodeBills);
|
|
|
- case paramConst.matchType.parent_default: return this._getNodeBillsValue(param, this._getParentBills(nodeBills));
|
|
|
- case paramConst.matchType.code: return this._getCodeParamValue(param);
|
|
|
- // to do 匹配属性
|
|
|
- default: return undefined;
|
|
|
+ if (!isNaN(Number(param.name))) {
|
|
|
+ return Number(param.name);
|
|
|
+ } else {
|
|
|
+ switch (param.match_type) {
|
|
|
+ case paramConst.matchType.fixed_id: return this._getFixedIdParamValue(param);
|
|
|
+ case paramConst.matchType.node_default: return this._getNodeBillsValue(param, nodeBills);
|
|
|
+ case paramConst.matchType.parent_default: return this._getNodeBillsValue(param, this._getParentBills(nodeBills));
|
|
|
+ case paramConst.matchType.code: return this._getCodeParamValue(param);
|
|
|
+ // to do 匹配属性
|
|
|
+ default: return undefined;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|