UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 1.17 kB
var t=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();import e from"../base";import{toBoolean as r,toNumber as o,decode as n}from"@jecloud/utils";var i=function(e){function i(t){var n,i=e.call(this)||this;return i.id=t.JE_CORE_GROUPQUERY_ID,i.label=t.GROUPQUERY_MC,i.name=t.GROUPQUERY_BM,i.queryType=t.GROUPQUERY_CXLX,i.showQueryType=r(t.GROUPQUERY_SHOW_QUERY_TYPE),i.xtype=t.GROUPQUERY_FIELD_TYPE,i.labelHidden=r(t.GROUPQUERY_BQYC),i.enableSort=r(t.GROUPQUERY_ALLOW_SORT),i.editable=r(t.GROUPQUERY_CHOICEANDEDIT),i.colSpan=null!==(n=o(t.GROUPQUERY_SZLS))&&void 0!==n?n:1,i.width=o(t.GROUPQUERY_KD),i.labelWidth=o(t.GROUPQUERY_BQKD),i.orderIndex=o(t.SY_ORDERINDEX),i.isBr="-"===i.name,i}return t(i,e),Object.defineProperty(i.prototype,"querys",{get:function(){return this.sql&&n(this.sql)},enumerable:!1,configurable:!0}),i}(e);export default i;