htui-yllkbz 1.1.14 → 1.1.18
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.
- package/lib/htui.common.js +27 -27
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +27 -27
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +1 -1
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/SelectTable/index.ts +5 -5
- package/src/packages/SelectTable/index.vue +2 -2
- package/src/packages/index.ts +4 -4
package/lib/htui.common.js
CHANGED
|
@@ -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=
|
|
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=4c429cce&
|
|
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=
|
|
67720
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=4c429cce&
|
|
67721
67721
|
|
|
67722
67722
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
67723
67723
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -69476,15 +69476,15 @@ var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_co
|
|
|
69476
69476
|
|
|
69477
69477
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(element_ui_common_default.a);
|
|
69478
69478
|
|
|
69479
|
-
var
|
|
69480
|
-
_inherits(
|
|
69479
|
+
var SelectTablevue_type_script_lang_ts_HtSelectTable = /*#__PURE__*/function (_Vue) {
|
|
69480
|
+
_inherits(HtSelectTable, _Vue);
|
|
69481
69481
|
|
|
69482
|
-
var _super = _createSuper(
|
|
69482
|
+
var _super = _createSuper(HtSelectTable);
|
|
69483
69483
|
|
|
69484
|
-
function
|
|
69484
|
+
function HtSelectTable() {
|
|
69485
69485
|
var _this;
|
|
69486
69486
|
|
|
69487
|
-
_classCallCheck(this,
|
|
69487
|
+
_classCallCheck(this, HtSelectTable);
|
|
69488
69488
|
|
|
69489
69489
|
_this = _super.apply(this, arguments);
|
|
69490
69490
|
/** 数据 */
|
|
@@ -69527,7 +69527,7 @@ var SelectTablevue_type_script_lang_ts_SelectTable = /*#__PURE__*/function (_Vue
|
|
|
69527
69527
|
/** 方法 */
|
|
69528
69528
|
|
|
69529
69529
|
|
|
69530
|
-
_createClass(
|
|
69530
|
+
_createClass(HtSelectTable, [{
|
|
69531
69531
|
key: "created",
|
|
69532
69532
|
value: function created() {
|
|
69533
69533
|
this.state.config = JSON.parse(this.config);
|
|
@@ -69605,29 +69605,29 @@ var SelectTablevue_type_script_lang_ts_SelectTable = /*#__PURE__*/function (_Vue
|
|
|
69605
69605
|
}
|
|
69606
69606
|
}]);
|
|
69607
69607
|
|
|
69608
|
-
return
|
|
69608
|
+
return HtSelectTable;
|
|
69609
69609
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
69610
69610
|
|
|
69611
|
-
__decorate([Prop()],
|
|
69611
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "comStyle", void 0);
|
|
69612
69612
|
|
|
69613
|
-
__decorate([Prop()],
|
|
69613
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "config", void 0);
|
|
69614
69614
|
|
|
69615
|
-
__decorate([Prop()],
|
|
69615
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "width", void 0);
|
|
69616
69616
|
|
|
69617
|
-
__decorate([Prop()],
|
|
69617
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "placeholder", void 0);
|
|
69618
69618
|
|
|
69619
|
-
__decorate([Prop()],
|
|
69619
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "searchPlaceholder", void 0);
|
|
69620
69620
|
|
|
69621
|
-
__decorate([Prop()],
|
|
69621
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "columns", void 0);
|
|
69622
69622
|
|
|
69623
|
-
__decorate([Watch("config")],
|
|
69623
|
+
__decorate([Watch("config")], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "watchConfig", null);
|
|
69624
69624
|
|
|
69625
|
-
|
|
69625
|
+
SelectTablevue_type_script_lang_ts_HtSelectTable = __decorate([vue_class_component_esm({
|
|
69626
69626
|
components: {
|
|
69627
69627
|
CommonTable: CommonTable
|
|
69628
69628
|
}
|
|
69629
|
-
})],
|
|
69630
|
-
/* harmony default export */ var SelectTablevue_type_script_lang_ts_ = (
|
|
69629
|
+
})], SelectTablevue_type_script_lang_ts_HtSelectTable);
|
|
69630
|
+
/* harmony default export */ var SelectTablevue_type_script_lang_ts_ = (SelectTablevue_type_script_lang_ts_HtSelectTable);
|
|
69631
69631
|
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=script&lang=ts&
|
|
69632
69632
|
/* harmony default export */ var packages_SelectTablevue_type_script_lang_ts_ = (SelectTablevue_type_script_lang_ts_);
|
|
69633
69633
|
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue
|
|
@@ -69649,7 +69649,7 @@ var SelectTable_component = normalizeComponent(
|
|
|
69649
69649
|
|
|
69650
69650
|
)
|
|
69651
69651
|
|
|
69652
|
-
/* harmony default export */ var
|
|
69652
|
+
/* harmony default export */ var SelectTable = (SelectTable_component.exports);
|
|
69653
69653
|
// CONCATENATED MODULE: ./src/packages/SelectTable/index.ts
|
|
69654
69654
|
|
|
69655
69655
|
|
|
@@ -69659,15 +69659,15 @@ var SelectTable_component = normalizeComponent(
|
|
|
69659
69659
|
* @Author: hutao
|
|
69660
69660
|
* @Date: 2021-11-15 15:00:57
|
|
69661
69661
|
* @LastEditors: hutao
|
|
69662
|
-
* @LastEditTime: 2021-11-
|
|
69662
|
+
* @LastEditTime: 2021-11-30 09:15:02
|
|
69663
69663
|
*/
|
|
69664
69664
|
|
|
69665
69665
|
|
|
69666
|
-
|
|
69667
|
-
Vue.component(
|
|
69666
|
+
SelectTable.install = function (Vue) {
|
|
69667
|
+
Vue.component(SelectTable.name, SelectTable);
|
|
69668
69668
|
};
|
|
69669
69669
|
|
|
69670
|
-
/* harmony default export */ var
|
|
69670
|
+
/* harmony default export */ var packages_SelectTable = (SelectTable);
|
|
69671
69671
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
69672
69672
|
|
|
69673
69673
|
|
|
@@ -69678,12 +69678,12 @@ packages_SelectTable.install = function (Vue) {
|
|
|
69678
69678
|
* @Author: hutao
|
|
69679
69679
|
* @Date: 2021-10-21 10:08:41
|
|
69680
69680
|
* @LastEditors: hutao
|
|
69681
|
-
* @LastEditTime: 2021-11-
|
|
69681
|
+
* @LastEditTime: 2021-11-30 09:15:40
|
|
69682
69682
|
*/
|
|
69683
69683
|
// 导入开关选择组件
|
|
69684
69684
|
// 存储组件列表
|
|
69685
69685
|
|
|
69686
|
-
var components = [
|
|
69686
|
+
var components = [packages_SelectTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
69687
69687
|
|
|
69688
69688
|
var install = function install(Vue) {
|
|
69689
69689
|
// 判断是否安装
|
|
@@ -69703,7 +69703,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
69703
69703
|
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
69704
69704
|
install: install,
|
|
69705
69705
|
// 以下是具体的组件列表
|
|
69706
|
-
|
|
69706
|
+
HtSelectTable: packages_SelectTable
|
|
69707
69707
|
});
|
|
69708
69708
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
69709
69709
|
|
package/lib/htui.common.js.gz
CHANGED
|
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=
|
|
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=4c429cce&
|
|
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=
|
|
67729
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=4c429cce&
|
|
67730
67730
|
|
|
67731
67731
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
67732
67732
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -69485,15 +69485,15 @@ var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_co
|
|
|
69485
69485
|
|
|
69486
69486
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(element_ui_common_default.a);
|
|
69487
69487
|
|
|
69488
|
-
var
|
|
69489
|
-
_inherits(
|
|
69488
|
+
var SelectTablevue_type_script_lang_ts_HtSelectTable = /*#__PURE__*/function (_Vue) {
|
|
69489
|
+
_inherits(HtSelectTable, _Vue);
|
|
69490
69490
|
|
|
69491
|
-
var _super = _createSuper(
|
|
69491
|
+
var _super = _createSuper(HtSelectTable);
|
|
69492
69492
|
|
|
69493
|
-
function
|
|
69493
|
+
function HtSelectTable() {
|
|
69494
69494
|
var _this;
|
|
69495
69495
|
|
|
69496
|
-
_classCallCheck(this,
|
|
69496
|
+
_classCallCheck(this, HtSelectTable);
|
|
69497
69497
|
|
|
69498
69498
|
_this = _super.apply(this, arguments);
|
|
69499
69499
|
/** 数据 */
|
|
@@ -69536,7 +69536,7 @@ var SelectTablevue_type_script_lang_ts_SelectTable = /*#__PURE__*/function (_Vue
|
|
|
69536
69536
|
/** 方法 */
|
|
69537
69537
|
|
|
69538
69538
|
|
|
69539
|
-
_createClass(
|
|
69539
|
+
_createClass(HtSelectTable, [{
|
|
69540
69540
|
key: "created",
|
|
69541
69541
|
value: function created() {
|
|
69542
69542
|
this.state.config = JSON.parse(this.config);
|
|
@@ -69614,29 +69614,29 @@ var SelectTablevue_type_script_lang_ts_SelectTable = /*#__PURE__*/function (_Vue
|
|
|
69614
69614
|
}
|
|
69615
69615
|
}]);
|
|
69616
69616
|
|
|
69617
|
-
return
|
|
69617
|
+
return HtSelectTable;
|
|
69618
69618
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
69619
69619
|
|
|
69620
|
-
__decorate([Prop()],
|
|
69620
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "comStyle", void 0);
|
|
69621
69621
|
|
|
69622
|
-
__decorate([Prop()],
|
|
69622
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "config", void 0);
|
|
69623
69623
|
|
|
69624
|
-
__decorate([Prop()],
|
|
69624
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "width", void 0);
|
|
69625
69625
|
|
|
69626
|
-
__decorate([Prop()],
|
|
69626
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "placeholder", void 0);
|
|
69627
69627
|
|
|
69628
|
-
__decorate([Prop()],
|
|
69628
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "searchPlaceholder", void 0);
|
|
69629
69629
|
|
|
69630
|
-
__decorate([Prop()],
|
|
69630
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "columns", void 0);
|
|
69631
69631
|
|
|
69632
|
-
__decorate([Watch("config")],
|
|
69632
|
+
__decorate([Watch("config")], SelectTablevue_type_script_lang_ts_HtSelectTable.prototype, "watchConfig", null);
|
|
69633
69633
|
|
|
69634
|
-
|
|
69634
|
+
SelectTablevue_type_script_lang_ts_HtSelectTable = __decorate([vue_class_component_esm({
|
|
69635
69635
|
components: {
|
|
69636
69636
|
CommonTable: CommonTable
|
|
69637
69637
|
}
|
|
69638
|
-
})],
|
|
69639
|
-
/* harmony default export */ var SelectTablevue_type_script_lang_ts_ = (
|
|
69638
|
+
})], SelectTablevue_type_script_lang_ts_HtSelectTable);
|
|
69639
|
+
/* harmony default export */ var SelectTablevue_type_script_lang_ts_ = (SelectTablevue_type_script_lang_ts_HtSelectTable);
|
|
69640
69640
|
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=script&lang=ts&
|
|
69641
69641
|
/* harmony default export */ var packages_SelectTablevue_type_script_lang_ts_ = (SelectTablevue_type_script_lang_ts_);
|
|
69642
69642
|
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue
|
|
@@ -69658,7 +69658,7 @@ var SelectTable_component = normalizeComponent(
|
|
|
69658
69658
|
|
|
69659
69659
|
)
|
|
69660
69660
|
|
|
69661
|
-
/* harmony default export */ var
|
|
69661
|
+
/* harmony default export */ var SelectTable = (SelectTable_component.exports);
|
|
69662
69662
|
// CONCATENATED MODULE: ./src/packages/SelectTable/index.ts
|
|
69663
69663
|
|
|
69664
69664
|
|
|
@@ -69668,15 +69668,15 @@ var SelectTable_component = normalizeComponent(
|
|
|
69668
69668
|
* @Author: hutao
|
|
69669
69669
|
* @Date: 2021-11-15 15:00:57
|
|
69670
69670
|
* @LastEditors: hutao
|
|
69671
|
-
* @LastEditTime: 2021-11-
|
|
69671
|
+
* @LastEditTime: 2021-11-30 09:15:02
|
|
69672
69672
|
*/
|
|
69673
69673
|
|
|
69674
69674
|
|
|
69675
|
-
|
|
69676
|
-
Vue.component(
|
|
69675
|
+
SelectTable.install = function (Vue) {
|
|
69676
|
+
Vue.component(SelectTable.name, SelectTable);
|
|
69677
69677
|
};
|
|
69678
69678
|
|
|
69679
|
-
/* harmony default export */ var
|
|
69679
|
+
/* harmony default export */ var packages_SelectTable = (SelectTable);
|
|
69680
69680
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
69681
69681
|
|
|
69682
69682
|
|
|
@@ -69687,12 +69687,12 @@ packages_SelectTable.install = function (Vue) {
|
|
|
69687
69687
|
* @Author: hutao
|
|
69688
69688
|
* @Date: 2021-10-21 10:08:41
|
|
69689
69689
|
* @LastEditors: hutao
|
|
69690
|
-
* @LastEditTime: 2021-11-
|
|
69690
|
+
* @LastEditTime: 2021-11-30 09:15:40
|
|
69691
69691
|
*/
|
|
69692
69692
|
// 导入开关选择组件
|
|
69693
69693
|
// 存储组件列表
|
|
69694
69694
|
|
|
69695
|
-
var components = [
|
|
69695
|
+
var components = [packages_SelectTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
69696
69696
|
|
|
69697
69697
|
var install = function install(Vue) {
|
|
69698
69698
|
// 判断是否安装
|
|
@@ -69712,7 +69712,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
69712
69712
|
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
69713
69713
|
install: install,
|
|
69714
69714
|
// 以下是具体的组件列表
|
|
69715
|
-
|
|
69715
|
+
HtSelectTable: packages_SelectTable
|
|
69716
69716
|
});
|
|
69717
69717
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
69718
69718
|
|
package/lib/htui.umd.js.gz
CHANGED
|
Binary file
|
package/lib/htui.umd.min.js
CHANGED
|
@@ -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||e.请输入关键字查询},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,"79a33232",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({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,selectTable: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||e.请输入关键字查询},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,"79a33232",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({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}})}));
|
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -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-
|
|
7
|
+
* @LastEditTime: 2021-11-30 09:15:02
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import HtSelectTable from "./index.vue";
|
|
10
10
|
|
|
11
|
-
(
|
|
11
|
+
(HtSelectTable as any).install = function (Vue: any) {
|
|
12
12
|
|
|
13
|
-
Vue.component(
|
|
13
|
+
Vue.component(HtSelectTable.name, HtSelectTable);
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
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-
|
|
7
|
+
* @LastEditTime: 2021-11-30 09:15:11
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<el-popover placement="bottom"
|
|
@@ -80,7 +80,7 @@ interface Column {
|
|
|
80
80
|
CommonTable,
|
|
81
81
|
},
|
|
82
82
|
})
|
|
83
|
-
export default class
|
|
83
|
+
export default class HtSelectTable extends Vue {
|
|
84
84
|
/** 通用样式 */
|
|
85
85
|
@Prop() comStyle!: string;
|
|
86
86
|
@Prop() config!: string;
|
package/src/packages/index.ts
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-10-21 10:08:41
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2021-11-
|
|
7
|
+
* @LastEditTime: 2021-11-30 09:15:40
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
// 导入开关选择组件
|
|
11
|
-
import
|
|
11
|
+
import HtSelectTable from './SelectTable/index'
|
|
12
12
|
|
|
13
13
|
// 存储组件列表
|
|
14
14
|
const components = [
|
|
15
|
-
|
|
15
|
+
HtSelectTable
|
|
16
16
|
]
|
|
17
17
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
18
18
|
const install = function (Vue: any) {
|
|
@@ -30,6 +30,6 @@ export default {
|
|
|
30
30
|
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
31
31
|
install,
|
|
32
32
|
// 以下是具体的组件列表
|
|
33
|
-
|
|
33
|
+
HtSelectTable
|
|
34
34
|
}
|
|
35
35
|
|