htui-yllkbz 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67712,12 +67712,12 @@ var es_array_map = __webpack_require__("d81d");
67712
67712
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
67713
67713
  var es_function_name = __webpack_require__("b0c0");
67714
67714
 
67715
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=8e0faa0c&
67715
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=4f0335fd&
67716
67716
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide},model:{value:(_vm.state.visible),callback:function ($$v) {_vm.$set(_vm.state, "visible", $$v)},expression:"state.visible"}},[_c('div',{staticClass:"ht-contnet",attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = !_vm.state.visible:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
67717
67717
  var staticRenderFns = []
67718
67718
 
67719
67719
 
67720
- // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=8e0faa0c&
67720
+ // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=4f0335fd&
67721
67721
 
67722
67722
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
67723
67723
  function _classCallCheck(instance, Constructor) {
@@ -69651,20 +69651,18 @@ var SelectTable_component = normalizeComponent(
69651
69651
 
69652
69652
  /* harmony default export */ var SelectTable = (SelectTable_component.exports);
69653
69653
  // CONCATENATED MODULE: ./src/packages/SelectTable/index.ts
69654
-
69655
-
69656
69654
  /*
69657
69655
  * @Descripttion:
69658
69656
  * @version:
69659
69657
  * @Author: hutao
69660
69658
  * @Date: 2021-11-15 15:00:57
69661
69659
  * @LastEditors: hutao
69662
- * @LastEditTime: 2021-11-30 10:52:06
69660
+ * @LastEditTime: 2021-11-30 13:51:52
69663
69661
  */
69664
69662
 
69665
69663
 
69666
69664
  SelectTable.install = function (Vue) {
69667
- Vue.component(SelectTable.name, SelectTable);
69665
+ Vue.component("HtSelectTable", SelectTable);
69668
69666
  };
69669
69667
 
69670
69668
  /* harmony default export */ var packages_SelectTable = (SelectTable);
@@ -69678,9 +69676,9 @@ SelectTable.install = function (Vue) {
69678
69676
  * @Author: hutao
69679
69677
  * @Date: 2021-10-21 10:08:41
69680
69678
  * @LastEditors: hutao
69681
- * @LastEditTime: 2021-11-30 10:52:01
69679
+ * @LastEditTime: 2021-11-30 13:51:57
69682
69680
  */
69683
- // 导入开关选择组件
69681
+ // 导入组件
69684
69682
  // 存储组件列表
69685
69683
 
69686
69684
  var components = [packages_SelectTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
Binary file
package/lib/htui.umd.js CHANGED
@@ -67721,12 +67721,12 @@ var es_array_map = __webpack_require__("d81d");
67721
67721
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
67722
67722
  var es_function_name = __webpack_require__("b0c0");
67723
67723
 
67724
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=8e0faa0c&
67724
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=4f0335fd&
67725
67725
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide},model:{value:(_vm.state.visible),callback:function ($$v) {_vm.$set(_vm.state, "visible", $$v)},expression:"state.visible"}},[_c('div',{staticClass:"ht-contnet",attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = !_vm.state.visible:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
67726
67726
  var staticRenderFns = []
67727
67727
 
67728
67728
 
67729
- // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=8e0faa0c&
67729
+ // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=4f0335fd&
67730
67730
 
67731
67731
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
67732
67732
  function _classCallCheck(instance, Constructor) {
@@ -69660,20 +69660,18 @@ var SelectTable_component = normalizeComponent(
69660
69660
 
69661
69661
  /* harmony default export */ var SelectTable = (SelectTable_component.exports);
69662
69662
  // CONCATENATED MODULE: ./src/packages/SelectTable/index.ts
69663
-
69664
-
69665
69663
  /*
69666
69664
  * @Descripttion:
69667
69665
  * @version:
69668
69666
  * @Author: hutao
69669
69667
  * @Date: 2021-11-15 15:00:57
69670
69668
  * @LastEditors: hutao
69671
- * @LastEditTime: 2021-11-30 10:52:06
69669
+ * @LastEditTime: 2021-11-30 13:51:52
69672
69670
  */
69673
69671
 
69674
69672
 
69675
69673
  SelectTable.install = function (Vue) {
69676
- Vue.component(SelectTable.name, SelectTable);
69674
+ Vue.component("HtSelectTable", SelectTable);
69677
69675
  };
69678
69676
 
69679
69677
  /* harmony default export */ var packages_SelectTable = (SelectTable);
@@ -69687,9 +69685,9 @@ SelectTable.install = function (Vue) {
69687
69685
  * @Author: hutao
69688
69686
  * @Date: 2021-10-21 10:08:41
69689
69687
  * @LastEditors: hutao
69690
- * @LastEditTime: 2021-11-30 10:52:01
69688
+ * @LastEditTime: 2021-11-30 13:51:57
69691
69689
  */
69692
- // 导入开关选择组件
69690
+ // 导入组件
69693
69691
  // 存储组件列表
69694
69692
 
69695
69693
  var components = [packages_SelectTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
Binary file
@@ -40,4 +40,4 @@ PERFORMANCE OF THIS SOFTWARE.
40
40
  * (c) 2015-present Evan You
41
41
  * @license MIT
42
42
  */
43
- function w(e){return w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return S(e)||O(e)||D()}function S(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function O(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function D(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function E(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function $(e,t){T(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){T(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){T(e,t,n)}))}function T(e,t,n){var i=n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t);i.forEach((function(i){var r=n?Reflect.getOwnMetadata(i,t,n):Reflect.getOwnMetadata(i,t);n?Reflect.defineMetadata(i,r,e,n):Reflect.defineMetadata(i,r,e)}))}var P={__proto__:[]},M=P instanceof Array;function j(e){return function(t,n,i){var r="function"===typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!==typeof i&&(i=void 0),r.__decorators__.push((function(t){return e(t,n,i)}))}}function N(e){var t=w(e);return null==e||"object"!==t&&"function"!==t}function I(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var i in e.$options.props)e.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var i=new t;t.prototype._init=n;var r={};return Object.keys(i).forEach((function(e){void 0!==i[e]&&(r[e]=i[e])})),r}var A=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(A.indexOf(e)>-1)t[e]=n[e];else{var i=Object.getOwnPropertyDescriptor(n,e);void 0!==i.value?"function"===typeof i.value?(t.methods||(t.methods={}))[e]=i.value:(t.mixins||(t.mixins=[])).push({data:function(){return C({},e,i.value)}}):(i.get||i.set)&&((t.computed||(t.computed={}))[e]={get:i.get,set:i.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return I(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(e){return e(t)})),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),o=r instanceof _.a?r.constructor:_.a,a=o.extend(t);return V(a,e,o),E()&&$(a,e),a}var L={prototype:!0,arguments:!0,callee:!0,caller:!0};function V(e,t,n){Object.getOwnPropertyNames(t).forEach((function(i){if(!L[i]){var r=Object.getOwnPropertyDescriptor(e,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(t,i);if(!M){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!N(o.value)&&a&&a.value===o.value)return}0,Object.defineProperty(e,i,o)}}}))}function B(e){return"function"===typeof e?F(e):function(t){return F(t,e)}}B.registerHooks=function(e){A.push.apply(A,k(e))};var z=B;var R="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function H(e,t,n){if(R&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var i=Reflect.getMetadata("design:type",t,n);i!==Object&&(e.type=i)}}function W(e){return void 0===e&&(e={}),function(t,n){H(e,t,n),j((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function q(e,t){void 0===t&&(t={});var n=t.deep,i=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return j((function(t,n){"object"!==typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!==typeof r[e]||Array.isArray(r[e])?"undefined"===typeof r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:i,immediate:o})}))}var U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.state.loading,expression:"state.loading"}]},[n("header",[n("el-input",{staticClass:"htui-search",attrs:{placeholder:e.searchPlaceholder||"请输入关键字查询"},model:{value:e.state.filterData.Filter,callback:function(t){e.$set(e.state.filterData,"Filter",t)},expression:"state.filterData.Filter"}})],1),n("article",[n("el-table",{ref:"comTable",staticStyle:{width:"100%"},attrs:{height:e.confige.table&&e.confige.table.height?e.confige.table.height:250,"row-key":e.confige.table&&e.confige.table.rowkey?e.confige.table.rowkey:"id",data:e.dataSource,"tooltip-effect":"dark"},on:{"row-click":e.rowClick}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[n("el-checkbox",{attrs:{value:e.state.checkObj&&e.state.checkObj.id===i.id},nativeOn:{click:function(e){e.preventDefault()}}})]}}])}),n("el-table-column",{attrs:{label:"序号",width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s((e.state.filterData.currentPage-1)*e.state.filterData.MaxResultCount+(t.$index+1))+" ")]}}])}),e._l(e.columns,(function(e){return n("el-table-column",{key:e.key,attrs:{label:e.title,"show-overflow-tooltip":!0,prop:e.key,width:e.width||120}})}))],2)],1),n("footer",[n("el-row",[n("el-col",{attrs:{span:24}},[n("p",{staticStyle:{width:"90px",float:"left"}},[e._v("共"+e._s(e.dataSource.length)+"条")]),e._e()],1)],1)],1)])},Y=[];n("4de4"),n("c740"),n("caad"),n("e6cf"),n("a79d"),n("2532"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("auth-login-form",{tag:"div",staticClass:"container-login",attrs:{"base-config":JSON.stringify(e.baseConfig)}})},Z=[],Q=(n("cca6"),n("ac1f"),n("466d"),n("a78e")),ee=n.n(Q),te={Language:"zh-Hans",setLanguage:function(e){this.Language=e},loginUrl:"/oauth2/connect/token",content:"通过创新的技术与产品,提升用户价值",setContent:function(e){this.content=e},logoUrl:"/publicData/images/loginLogo.png",setLogoUrl:function(e){this.logoUrl=e},imgurl:"/publicData/images/loginBg-1.png",setImgUrl:function(e){this.imgurl=e},setLoginUrl:function(e){this.loginUrl=e},isTenantAvailable:"/oauth2/api/abp/multi-tenancy/tenants/by-name",setIsTenantAvailable:function(e){this.isTenantAvailable=e},authorization:"Authorization",token_type:"token_type",oAuthConfig:{grant_type:"password",scope:"AuthServer",client_id:"AuthServer_App",client_secret:"1q2w3e*"},setOAuthConfig:function(e){this.oAuthConfig=Object.assign(this.oAuthConfig,e)},accessTokenKey:"Abp.AuthToken",abpTenantKey:"Abp.TenantId",tenantKey:"__tenant",setTenantKey:function(e){this.tenantKey=e},ApplicationId:{key:"ApplicationId",value:""},setApplicationId:function(e){e.key&&(this.ApplicationId.key=e.key),e.value&&(this.ApplicationId.value=e.value)},userId:"userId",enc_auth_token_key:"enc_auth_token",refreshTokenKey:"refresh_token_key",loginTitle:"星环视界智能科技",setLoginTitle:function(e){this.loginTitle=e},getLoginState:function(){return!!ee.a.get(this.accessTokenKey)},currentLoginInfoUrl:"/oauth2/api/abp/application-configuration",setcurrentLoginInfoUrl:function(e){this.currentLoginInfoUrl=e},clearCookies:function(){var e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(var t=e.length;t--;)document.cookie=e[t]+"=0;path=/;expires="+new Date(0).toUTCString()},getCookie:function(e){return ee.a.get(e)},setCookie:function(e,t,n){ee.a.set(e,t,n)}},ne=te,ie=function(e){h(n,e);var t=b(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.baseConfig=ne,e}return u(n,[{key:"created",value:function(){}},{key:"mounted",value:function(){}}]),n}(_.a);ie=y([z({components:{}})],ie);var re=ie,oe=re;n("019a");function ae(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var se=ae(oe,J,Z,!1,null,null,null),le=(se.exports,n("bc3a")),ce=n.n(le);function ue(e){const t=(new Date).getTime().toString();let n=document.createElement("auth-alert");n.setAttribute("error",JSON.stringify(e)),n.setAttribute("response",e.response?JSON.stringify(e.response):""),n.id="my-alert"+t,document.body.appendChild(n)}let de={baseURL:ne.baseUrl,timeout:6e4};const he=ce.a.create(de);he.interceptors.request.use((function(e){if(ee.a.get(ne.accessTokenKey)){const t=ee.a.get(ne.token_type)+" "+ee.a.get(ne.accessTokenKey);e.headers[ne.authorization]=t}return ee.a.get(ne.tenantKey)&&(e.headers[ne.tenantKey]=ee.a.get(ne.tenantKey)),(ne.ApplicationId.value||ee.a.get(ne.ApplicationId.key))&&(e.headers[ne.ApplicationId.key]=ne.ApplicationId.value||ee.a.get(ne.ApplicationId.key)),e.headers["Accept-Language"]=ne.Language,e}),(function(e){return ue(e),Promise.reject(e)})),he.interceptors.response.use((function(e){return e}),(function(e){return ue(e),console.log(e),Promise.reject(e)}));var fe=he,pe=function(e){h(n,e);var t=b(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,dataSource:[],showPage:!0,filterData:{currentPage:1,Filter:"",MaxResultCount:1e3,SkipCount:0,totalCount:0},checkObj:void 0},e}return u(n,[{key:"created",value:function(){this.getDataSource()}},{key:"rowClick",value:function(e){var t=this.state.checkObj;t&&t.id===e.id?this.state.checkObj=void 0:this.state.checkObj=e,this.$emit("callback",this.state.checkObj,"click")}},{key:"topage",value:function(e){Array.isArray(e)?this.state.dataSource=e:e.items&&e.items.length?(this.state.dataSource=e.items,this.state.filterData.totalCount=e.totalCount):this.state.dataSource=[],this.toFindData()}},{key:"clearCheck",value:function(){this.state.checkObj=void 0,this.$emit("callback",this.state.checkObj)}},{key:"toFindData",value:function(){var e=this.confige,t=e.name,n=e.value,i=this.state.dataSource,r=i.findIndex((function(e){return e[null!==t&&void 0!==t?t:"id"]===n}));i.length&&(this.state.checkObj=i[r]),this.$emit("callback",this.state.checkObj)}},{key:"handleCurrentChange",value:function(e){this.state.filterData.currentPage=e||1;var t=this.state.filterData,n=t.MaxResultCount,i=void 0===n?0:n,r=t.currentPage;this.state.filterData.SkipCount=(r-1)*i,this.getDataSource()}},{key:"handelSizeChange",value:function(e){this.state.filterData.currentPage=1,this.state.filterData.MaxResultCount=e;var t=this.state.filterData,n=t.MaxResultCount,i=void 0===n?0:n,r=t.currentPage;this.state.filterData.SkipCount=(r-1)*i,this.getDataSource()}},{key:"getDataSource",value:function(){var e=this,t=this.confige.ajax,n=t.type,i=void 0===n?"get":n,r=t.url,o=t.params,a=t.data;if(this.state.loading=!0,"get"===i){var s={params:X(X({},this.state.filterData),o)};fe.get(r,X({},s)).then((function(t){e.topage(t.data)})).catch((function(){e.$notify.error("请求失败")})).finally((function(){e.state.loading=!1}))}else{var l={params:X(X({},this.state.filterData),o),data:X(X({},this.state.filterData),a)};fe.post(r,X({},l)).then((function(t){e.topage(t.data)})).catch((function(){e.$notify.error("请求失败")})).finally((function(){e.state.loading=!1}))}}},{key:"dataSource",get:function(){var e=this.state,t=e.filterData,n=e.dataSource,i=t.Filter;return n.filter((function(e){return JSON.stringify(e).includes(i)}))}}]),n}(_.a);y([W()],pe.prototype,"columns",void 0),y([W()],pe.prototype,"searchPlaceholder",void 0),y([W()],pe.prototype,"confige",void 0),y([W()],pe.prototype,"visible",void 0),y([q("confige")],pe.prototype,"getDataSource",null),pe=y([z],pe);var me=pe,ve=me,ge=ae(ve,U,Y,!1,null,"0b6f7347",null),be=ge.exports,ye=(n("45f7"),n("5c96")),xe=n.n(ye);_.a.use(xe.a);var _e=function(e){h(n,e);var t=b(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={config:{key:"",disabled:!1,clearable:!1,value:"",name:"",ajax:{url:"",params:{}},text:void 0},visible:!1,loading:!1,name:"",show:!1,icon:"el-icon-arrow-down",columns:[{key:"code",title:"编码"},{key:"name",title:"名称"},{key:"description",title:"描述"}]},e}return u(n,[{key:"created",value:function(){this.state.config=JSON.parse(this.config),this.columns&&(this.state.columns=this.columns)}},{key:"show",value:function(){this.state.icon="el-icon-arrow-up",this.state.show=!0}},{key:"callback",value:function(e,t){var n=this.state.config,i=n.text||"name";this.state.name=e?e[i]:void 0,this.$emit("change",e,t),t&&(this.state.visible=!1)}},{key:"hide",value:function(){this.state.icon="el-icon-arrow-down",this.state.show=!1}},{key:"blurInput",value:function(){var e=this.state.show;this.state.icon=e?"el-icon-arrow-up":"el-icon-arrow-down"}},{key:"focusInput",value:function(){this.state.icon="el-icon-circle-close",this.state.visible=!this.state.config.disabled}},{key:"clear",value:function(){if(!this.state.config.disabled){var e=this.$refs[this.state.config.key||"ht-table"];this.state.visible=!1,e.clearCheck()}}},{key:"watchConfig",value:function(e){this.state.config=JSON.parse(e)}}]),n}(_.a);y([W()],_e.prototype,"comStyle",void 0),y([W()],_e.prototype,"config",void 0),y([W()],_e.prototype,"width",void 0),y([W()],_e.prototype,"placeholder",void 0),y([W()],_e.prototype,"searchPlaceholder",void 0),y([W()],_e.prototype,"columns",void 0),y([q("config")],_e.prototype,"watchConfig",null),_e=y([z({name:"HtSelectTable",components:{CommonTable:be}})],_e);var we=_e,Ce=we,ke=ae(Ce,a,s,!1,null,null,null),Se=ke.exports;Se.install=function(e){e.component(Se.name,Se)};var Oe=Se,De=[Oe],Ee=function e(t){e.installed||De.map((function(e){return t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&Ee(window.Vue);var $e={install:Ee,HtSelectTable:Oe};t["default"]=$e},fc5e:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fcd4:function(e,t,n){t.f=n("cc15")},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},fed5:function(e,t){t.f=Object.getOwnPropertySymbols}})}));
43
+ function w(e){return w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return S(e)||O(e)||D()}function S(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function O(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function D(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function E(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function $(e,t){T(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){T(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){T(e,t,n)}))}function T(e,t,n){var i=n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t);i.forEach((function(i){var r=n?Reflect.getOwnMetadata(i,t,n):Reflect.getOwnMetadata(i,t);n?Reflect.defineMetadata(i,r,e,n):Reflect.defineMetadata(i,r,e)}))}var P={__proto__:[]},M=P instanceof Array;function j(e){return function(t,n,i){var r="function"===typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!==typeof i&&(i=void 0),r.__decorators__.push((function(t){return e(t,n,i)}))}}function N(e){var t=w(e);return null==e||"object"!==t&&"function"!==t}function I(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var i in e.$options.props)e.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var i=new t;t.prototype._init=n;var r={};return Object.keys(i).forEach((function(e){void 0!==i[e]&&(r[e]=i[e])})),r}var A=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(A.indexOf(e)>-1)t[e]=n[e];else{var i=Object.getOwnPropertyDescriptor(n,e);void 0!==i.value?"function"===typeof i.value?(t.methods||(t.methods={}))[e]=i.value:(t.mixins||(t.mixins=[])).push({data:function(){return C({},e,i.value)}}):(i.get||i.set)&&((t.computed||(t.computed={}))[e]={get:i.get,set:i.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return I(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(e){return e(t)})),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),o=r instanceof _.a?r.constructor:_.a,a=o.extend(t);return V(a,e,o),E()&&$(a,e),a}var L={prototype:!0,arguments:!0,callee:!0,caller:!0};function V(e,t,n){Object.getOwnPropertyNames(t).forEach((function(i){if(!L[i]){var r=Object.getOwnPropertyDescriptor(e,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(t,i);if(!M){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!N(o.value)&&a&&a.value===o.value)return}0,Object.defineProperty(e,i,o)}}}))}function B(e){return"function"===typeof e?F(e):function(t){return F(t,e)}}B.registerHooks=function(e){A.push.apply(A,k(e))};var z=B;var R="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function H(e,t,n){if(R&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var i=Reflect.getMetadata("design:type",t,n);i!==Object&&(e.type=i)}}function W(e){return void 0===e&&(e={}),function(t,n){H(e,t,n),j((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function q(e,t){void 0===t&&(t={});var n=t.deep,i=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return j((function(t,n){"object"!==typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!==typeof r[e]||Array.isArray(r[e])?"undefined"===typeof r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:i,immediate:o})}))}var U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.state.loading,expression:"state.loading"}]},[n("header",[n("el-input",{staticClass:"htui-search",attrs:{placeholder:e.searchPlaceholder||"请输入关键字查询"},model:{value:e.state.filterData.Filter,callback:function(t){e.$set(e.state.filterData,"Filter",t)},expression:"state.filterData.Filter"}})],1),n("article",[n("el-table",{ref:"comTable",staticStyle:{width:"100%"},attrs:{height:e.confige.table&&e.confige.table.height?e.confige.table.height:250,"row-key":e.confige.table&&e.confige.table.rowkey?e.confige.table.rowkey:"id",data:e.dataSource,"tooltip-effect":"dark"},on:{"row-click":e.rowClick}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[n("el-checkbox",{attrs:{value:e.state.checkObj&&e.state.checkObj.id===i.id},nativeOn:{click:function(e){e.preventDefault()}}})]}}])}),n("el-table-column",{attrs:{label:"序号",width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s((e.state.filterData.currentPage-1)*e.state.filterData.MaxResultCount+(t.$index+1))+" ")]}}])}),e._l(e.columns,(function(e){return n("el-table-column",{key:e.key,attrs:{label:e.title,"show-overflow-tooltip":!0,prop:e.key,width:e.width||120}})}))],2)],1),n("footer",[n("el-row",[n("el-col",{attrs:{span:24}},[n("p",{staticStyle:{width:"90px",float:"left"}},[e._v("共"+e._s(e.dataSource.length)+"条")]),e._e()],1)],1)],1)])},Y=[];n("4de4"),n("c740"),n("caad"),n("e6cf"),n("a79d"),n("2532"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("auth-login-form",{tag:"div",staticClass:"container-login",attrs:{"base-config":JSON.stringify(e.baseConfig)}})},Z=[],Q=(n("cca6"),n("ac1f"),n("466d"),n("a78e")),ee=n.n(Q),te={Language:"zh-Hans",setLanguage:function(e){this.Language=e},loginUrl:"/oauth2/connect/token",content:"通过创新的技术与产品,提升用户价值",setContent:function(e){this.content=e},logoUrl:"/publicData/images/loginLogo.png",setLogoUrl:function(e){this.logoUrl=e},imgurl:"/publicData/images/loginBg-1.png",setImgUrl:function(e){this.imgurl=e},setLoginUrl:function(e){this.loginUrl=e},isTenantAvailable:"/oauth2/api/abp/multi-tenancy/tenants/by-name",setIsTenantAvailable:function(e){this.isTenantAvailable=e},authorization:"Authorization",token_type:"token_type",oAuthConfig:{grant_type:"password",scope:"AuthServer",client_id:"AuthServer_App",client_secret:"1q2w3e*"},setOAuthConfig:function(e){this.oAuthConfig=Object.assign(this.oAuthConfig,e)},accessTokenKey:"Abp.AuthToken",abpTenantKey:"Abp.TenantId",tenantKey:"__tenant",setTenantKey:function(e){this.tenantKey=e},ApplicationId:{key:"ApplicationId",value:""},setApplicationId:function(e){e.key&&(this.ApplicationId.key=e.key),e.value&&(this.ApplicationId.value=e.value)},userId:"userId",enc_auth_token_key:"enc_auth_token",refreshTokenKey:"refresh_token_key",loginTitle:"星环视界智能科技",setLoginTitle:function(e){this.loginTitle=e},getLoginState:function(){return!!ee.a.get(this.accessTokenKey)},currentLoginInfoUrl:"/oauth2/api/abp/application-configuration",setcurrentLoginInfoUrl:function(e){this.currentLoginInfoUrl=e},clearCookies:function(){var e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(var t=e.length;t--;)document.cookie=e[t]+"=0;path=/;expires="+new Date(0).toUTCString()},getCookie:function(e){return ee.a.get(e)},setCookie:function(e,t,n){ee.a.set(e,t,n)}},ne=te,ie=function(e){h(n,e);var t=b(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.baseConfig=ne,e}return u(n,[{key:"created",value:function(){}},{key:"mounted",value:function(){}}]),n}(_.a);ie=y([z({components:{}})],ie);var re=ie,oe=re;n("019a");function ae(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var se=ae(oe,J,Z,!1,null,null,null),le=(se.exports,n("bc3a")),ce=n.n(le);function ue(e){const t=(new Date).getTime().toString();let n=document.createElement("auth-alert");n.setAttribute("error",JSON.stringify(e)),n.setAttribute("response",e.response?JSON.stringify(e.response):""),n.id="my-alert"+t,document.body.appendChild(n)}let de={baseURL:ne.baseUrl,timeout:6e4};const he=ce.a.create(de);he.interceptors.request.use((function(e){if(ee.a.get(ne.accessTokenKey)){const t=ee.a.get(ne.token_type)+" "+ee.a.get(ne.accessTokenKey);e.headers[ne.authorization]=t}return ee.a.get(ne.tenantKey)&&(e.headers[ne.tenantKey]=ee.a.get(ne.tenantKey)),(ne.ApplicationId.value||ee.a.get(ne.ApplicationId.key))&&(e.headers[ne.ApplicationId.key]=ne.ApplicationId.value||ee.a.get(ne.ApplicationId.key)),e.headers["Accept-Language"]=ne.Language,e}),(function(e){return ue(e),Promise.reject(e)})),he.interceptors.response.use((function(e){return e}),(function(e){return ue(e),console.log(e),Promise.reject(e)}));var fe=he,pe=function(e){h(n,e);var t=b(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,dataSource:[],showPage:!0,filterData:{currentPage:1,Filter:"",MaxResultCount:1e3,SkipCount:0,totalCount:0},checkObj:void 0},e}return u(n,[{key:"created",value:function(){this.getDataSource()}},{key:"rowClick",value:function(e){var t=this.state.checkObj;t&&t.id===e.id?this.state.checkObj=void 0:this.state.checkObj=e,this.$emit("callback",this.state.checkObj,"click")}},{key:"topage",value:function(e){Array.isArray(e)?this.state.dataSource=e:e.items&&e.items.length?(this.state.dataSource=e.items,this.state.filterData.totalCount=e.totalCount):this.state.dataSource=[],this.toFindData()}},{key:"clearCheck",value:function(){this.state.checkObj=void 0,this.$emit("callback",this.state.checkObj)}},{key:"toFindData",value:function(){var e=this.confige,t=e.name,n=e.value,i=this.state.dataSource,r=i.findIndex((function(e){return e[null!==t&&void 0!==t?t:"id"]===n}));i.length&&(this.state.checkObj=i[r]),this.$emit("callback",this.state.checkObj)}},{key:"handleCurrentChange",value:function(e){this.state.filterData.currentPage=e||1;var t=this.state.filterData,n=t.MaxResultCount,i=void 0===n?0:n,r=t.currentPage;this.state.filterData.SkipCount=(r-1)*i,this.getDataSource()}},{key:"handelSizeChange",value:function(e){this.state.filterData.currentPage=1,this.state.filterData.MaxResultCount=e;var t=this.state.filterData,n=t.MaxResultCount,i=void 0===n?0:n,r=t.currentPage;this.state.filterData.SkipCount=(r-1)*i,this.getDataSource()}},{key:"getDataSource",value:function(){var e=this,t=this.confige.ajax,n=t.type,i=void 0===n?"get":n,r=t.url,o=t.params,a=t.data;if(this.state.loading=!0,"get"===i){var s={params:X(X({},this.state.filterData),o)};fe.get(r,X({},s)).then((function(t){e.topage(t.data)})).catch((function(){e.$notify.error("请求失败")})).finally((function(){e.state.loading=!1}))}else{var l={params:X(X({},this.state.filterData),o),data:X(X({},this.state.filterData),a)};fe.post(r,X({},l)).then((function(t){e.topage(t.data)})).catch((function(){e.$notify.error("请求失败")})).finally((function(){e.state.loading=!1}))}}},{key:"dataSource",get:function(){var e=this.state,t=e.filterData,n=e.dataSource,i=t.Filter;return n.filter((function(e){return JSON.stringify(e).includes(i)}))}}]),n}(_.a);y([W()],pe.prototype,"columns",void 0),y([W()],pe.prototype,"searchPlaceholder",void 0),y([W()],pe.prototype,"confige",void 0),y([W()],pe.prototype,"visible",void 0),y([q("confige")],pe.prototype,"getDataSource",null),pe=y([z],pe);var me=pe,ve=me,ge=ae(ve,U,Y,!1,null,"0b6f7347",null),be=ge.exports,ye=(n("45f7"),n("5c96")),xe=n.n(ye);_.a.use(xe.a);var _e=function(e){h(n,e);var t=b(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={config:{key:"",disabled:!1,clearable:!1,value:"",name:"",ajax:{url:"",params:{}},text:void 0},visible:!1,loading:!1,name:"",show:!1,icon:"el-icon-arrow-down",columns:[{key:"code",title:"编码"},{key:"name",title:"名称"},{key:"description",title:"描述"}]},e}return u(n,[{key:"created",value:function(){this.state.config=JSON.parse(this.config),this.columns&&(this.state.columns=this.columns)}},{key:"show",value:function(){this.state.icon="el-icon-arrow-up",this.state.show=!0}},{key:"callback",value:function(e,t){var n=this.state.config,i=n.text||"name";this.state.name=e?e[i]:void 0,this.$emit("change",e,t),t&&(this.state.visible=!1)}},{key:"hide",value:function(){this.state.icon="el-icon-arrow-down",this.state.show=!1}},{key:"blurInput",value:function(){var e=this.state.show;this.state.icon=e?"el-icon-arrow-up":"el-icon-arrow-down"}},{key:"focusInput",value:function(){this.state.icon="el-icon-circle-close",this.state.visible=!this.state.config.disabled}},{key:"clear",value:function(){if(!this.state.config.disabled){var e=this.$refs[this.state.config.key||"ht-table"];this.state.visible=!1,e.clearCheck()}}},{key:"watchConfig",value:function(e){this.state.config=JSON.parse(e)}}]),n}(_.a);y([W()],_e.prototype,"comStyle",void 0),y([W()],_e.prototype,"config",void 0),y([W()],_e.prototype,"width",void 0),y([W()],_e.prototype,"placeholder",void 0),y([W()],_e.prototype,"searchPlaceholder",void 0),y([W()],_e.prototype,"columns",void 0),y([q("config")],_e.prototype,"watchConfig",null),_e=y([z({name:"HtSelectTable",components:{CommonTable:be}})],_e);var we=_e,Ce=we,ke=ae(Ce,a,s,!1,null,null,null),Se=ke.exports;Se.install=function(e){e.component("HtSelectTable",Se)};var Oe=Se,De=[Oe],Ee=function e(t){e.installed||De.map((function(e){return t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&Ee(window.Vue);var $e={install:Ee,HtSelectTable:Oe};t["default"]=$e},fc5e:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fcd4:function(e,t,n){t.f=n("cc15")},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},fed5:function(e,t){t.f=Object.getOwnPropertySymbols}})}));
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htui-yllkbz",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "typings": "types/index.d.ts",
5
5
  "main": "lib/htui.common.js",
6
6
  "style": "lib/htui.css",
package/src/App.vue CHANGED
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-11-15 14:41:40
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2021-11-30 10:27:08
7
+ * @LastEditTime: 2021-11-30 13:38:21
8
8
  -->
9
9
  <template>
10
10
  <div id="app">
@@ -36,6 +36,7 @@ import SelectTable from "@/packages/SelectTable/index.vue";
36
36
  export default class App extends Vue {
37
37
  /** 生命周期 */
38
38
  created() {
39
+ console.log("SelectTable", SelectTable.name);
39
40
  // 动态加载引用文件
40
41
  const files = this.$store.getters.getBaseData("files");
41
42
  const filesKeys = Object.keys(files);
@@ -4,12 +4,12 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-11-15 15:00:57
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2021-11-30 10:52:06
7
+ * @LastEditTime: 2021-11-30 13:51:52
8
8
  */
9
9
  import HtSelectTable from "./index.vue";
10
10
 
11
11
  (HtSelectTable as any).install = function (Vue: any) {
12
12
 
13
- Vue.component(HtSelectTable.name, HtSelectTable);
13
+ Vue.component("HtSelectTable", HtSelectTable);
14
14
  };
15
15
  export default HtSelectTable;
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-11-11 11:06:51
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2021-11-30 10:32:57
7
+ * @LastEditTime: 2021-11-30 13:36:44
8
8
  -->
9
9
  <template>
10
10
  <el-popover placement="bottom"
@@ -150,7 +150,7 @@ export default class HtSelectTable extends Vue {
150
150
  } else {
151
151
  this.state.name = undefined;
152
152
  }
153
-
153
+
154
154
  this.$emit("change", row, type);
155
155
  if (type) {
156
156
  this.state.visible = false;
@@ -4,10 +4,10 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-10-21 10:08:41
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2021-11-30 10:52:01
7
+ * @LastEditTime: 2021-11-30 13:51:57
8
8
  */
9
9
 
10
- // 导入开关选择组件
10
+ // 导入组件
11
11
  import HtSelectTable from './SelectTable/index'
12
12
 
13
13
  // 存储组件列表
@@ -20,7 +20,7 @@ const install = function (Vue: any) {
20
20
  if ((install as any).installed) return
21
21
  // 遍历注册全局组件
22
22
  components.map(component => {
23
-
23
+
24
24
  return Vue.component(component.name, component)
25
25
  })
26
26
  }
@@ -1,20 +1,21 @@
1
1
  <template>
2
2
  <div id="index">
3
- <el-container style="height: 100vh" class="index">
3
+ <el-container style="height: 100vh"
4
+ class="index">
4
5
  <el-header style="padding: 0; height: min-content">
5
6
  <xhkj-layout02>
6
- <router-link to="/login" slot="navEnd">注销</router-link>
7
+ <router-link to="/login"
8
+ slot="navEnd">注销</router-link>
7
9
  </xhkj-layout02>
8
10
  </el-header>
9
11
  <el-container class="body">
10
- <el-aside :width="state.collapsed ? '66px' : '230px'" class="left">
12
+ <el-aside :width="state.collapsed ? '66px' : '230px'"
13
+ class="left">
11
14
  <!--导航菜单-->
12
- <el-menu
13
- :default-active="state.defaultIndex"
14
- router
15
- :collapse="state.collapsed"
16
- :collapse-transition="false"
17
- >
15
+ <el-menu :default-active="state.defaultIndex"
16
+ router
17
+ :collapse="state.collapsed"
18
+ :collapse-transition="false">
18
19
  <el-menu-item index="/">
19
20
  <i class="el-icon-s-check"></i>
20
21
  <span slot="title">导航1</span>
@@ -28,27 +29,24 @@
28
29
  <span slot="title">导航3</span>
29
30
  </el-menu-item>
30
31
  </el-menu>
31
- <el-button
32
- class="action-btn"
33
- :title="state.collapsed ? '展开菜单' : '收起菜单'"
34
- type="text"
35
- size="medium"
36
- :icon="state.collapsed ? 'el-icon-s-unfold' : 'el-icon-s-fold'"
37
- @click="state.collapsed = !state.collapsed"
38
- style="font-size: 16px"
39
- ></el-button>
32
+ <el-button class="action-btn"
33
+ :title="state.collapsed ? '展开菜单' : '收起菜单'"
34
+ type="text"
35
+ size="medium"
36
+ :icon="state.collapsed ? 'el-icon-s-unfold' : 'el-icon-s-fold'"
37
+ @click="state.collapsed = !state.collapsed"
38
+ style="font-size: 16px"></el-button>
40
39
  </el-aside>
41
- <el-main style="padding: 8px 0 0 15px" class="cont">
40
+ <el-main style="padding: 8px 0 0 15px"
41
+ class="cont">
42
42
  <router-view v-if="state.loading"></router-view>
43
43
  </el-main>
44
44
  </el-container>
45
45
  </el-container>
46
- <div
47
- v-if="state.isLogin"
48
- is="common-datas"
49
- @commonDatas="commonDatas"
50
- @error="error"
51
- ></div>
46
+ <div v-if="state.isLogin"
47
+ is="common-datas"
48
+ @commonDatas="commonDatas"
49
+ @error="error"></div>
52
50
  </div>
53
51
  </template>
54
52
 
@@ -142,32 +140,9 @@ export default class App extends Vue {
142
140
  value: res.severityLevel,
143
141
  });
144
142
  }
145
- // /** 基础数据 */
146
- // if (res.baseData && res.baseData.items) {
147
- // const data: any[] = res.baseData.items;
148
- // // 资产分类
149
- // const assetTypes = data.filter(val => val.category == "AssetCategory");
150
- // this.$store.commit("setBaseDataApi", {
151
- // key: "assetTypes",
152
- // value: assetTypes
153
- // });
154
- // // 位置
155
- // const positions = data.filter(val => val.category == "positions");
156
- // this.$store.commit("setBaseDataApi", {
157
- // key: "positions",
158
- // value: positions
159
- // });
160
- // // 分组
161
- // const grids = data.filter(val => val.category == "AlertGroup");
162
- // this.$store.commit("setBaseDataApi", {
163
- // key: "grids",
164
- // value: grids
165
- // });
166
- // }
167
143
  }
168
144
  error() {
169
145
  this.state.loading = true;
170
- // console.log("获取基础信息错误");
171
146
  }
172
147
  /** 监听 */
173
148
  @Watch("$route.path", { deep: true })