htui-yllkbz 1.2.15 → 1.2.16
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 +43 -43
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +43 -43
- 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/HtTable/index.vue +2 -2
package/lib/htui.common.js
CHANGED
|
@@ -9049,8 +9049,8 @@ PageInfo.install = function (Vue) {
|
|
|
9049
9049
|
};
|
|
9050
9050
|
|
|
9051
9051
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
9052
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-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/HtTable/index.vue?vue&type=template&id=
|
|
9053
|
-
var
|
|
9052
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-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/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
|
|
9053
|
+
var HtTablevue_type_template_id_cf5f313e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"border":_vm.border,"stripe":_vm.stripe,"size":_vm.size,"fit":_vm.fit,"show-header":_vm.showHeader,"empty-text":_vm.emptyText||'暂无数据',"row-style":_vm.rowStyle,"row-class-name":_vm.rowClassName,"current-row-key":_vm.currentRowKey,"highlight-current-row":_vm.highlightCurrentRow,"row-key":_vm.rowKey||'id',"data":_vm.data,"tooltip-effect":"dark"},on:{"row-click":function (row, column, event){ return _vm.$emit('row-click',row, column, event); },"row-contextmenu":function (row, column, event){ return _vm.$emit('row-contextmenu',row, column, event); },"row-dblclick":function (row, column, event){ return _vm.$emit('row-dblclick',row, column, event); },"header-click":function ( column, event){ return _vm.$emit('header-click', column, event); },"header-contextmenu":function ( column, event){ return _vm.$emit('header-contextmenu', column, event); },"sort-change":function (ref){
|
|
9054
9054
|
var column = ref.column;
|
|
9055
9055
|
var prop = ref.prop;
|
|
9056
9056
|
var order = ref.order;
|
|
@@ -9064,10 +9064,10 @@ return [_vm._t(item.key,[_vm._v(_vm._s(row[item.key]))],{"row":row,"column":colu
|
|
|
9064
9064
|
var column = ref.column;
|
|
9065
9065
|
var $index = ref.$index;
|
|
9066
9066
|
return [_vm._t('header_'+item.key,[_vm._v(_vm._s(item.title))],{"column":column,"$index":$index})]}}],null,true)})})],2)],1),(!_vm.hidePage)?_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('PageInfo',{attrs:{"hide-on-single-page":_vm.pagination&&_vm.pagination.hideOnSinglePage,"small":_vm.pagination&&_vm.pagination.small,"page-sizes":_vm.pagination&&_vm.pagination.pageSizes,"page-info":_vm.state.pageInfo},on:{"onchange":function (e){ return _vm.$emit('onchange',e); }}})],1)],1)],1):_vm._e()])}
|
|
9067
|
-
var
|
|
9067
|
+
var HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
|
|
9068
9068
|
|
|
9069
9069
|
|
|
9070
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
9070
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
|
|
9071
9071
|
|
|
9072
9072
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9073
9073
|
|
|
@@ -9079,15 +9079,15 @@ var HtTablevue_type_template_id_75844174_scoped_true_staticRenderFns = []
|
|
|
9079
9079
|
|
|
9080
9080
|
|
|
9081
9081
|
|
|
9082
|
-
var
|
|
9083
|
-
_inherits(
|
|
9082
|
+
var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
9083
|
+
_inherits(HtTable, _Vue);
|
|
9084
9084
|
|
|
9085
|
-
var _super = _createSuper(
|
|
9085
|
+
var _super = _createSuper(HtTable);
|
|
9086
9086
|
|
|
9087
|
-
function
|
|
9087
|
+
function HtTable() {
|
|
9088
9088
|
var _this;
|
|
9089
9089
|
|
|
9090
|
-
_classCallCheck(this,
|
|
9090
|
+
_classCallCheck(this, HtTable);
|
|
9091
9091
|
|
|
9092
9092
|
_this = _super.apply(this, arguments);
|
|
9093
9093
|
_this.state = {
|
|
@@ -9102,7 +9102,7 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9102
9102
|
return _this;
|
|
9103
9103
|
}
|
|
9104
9104
|
|
|
9105
|
-
_createClass(
|
|
9105
|
+
_createClass(HtTable, [{
|
|
9106
9106
|
key: "created",
|
|
9107
9107
|
value: function created() {
|
|
9108
9108
|
// console.log("this", this.$props);
|
|
@@ -9125,55 +9125,55 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9125
9125
|
}
|
|
9126
9126
|
}]);
|
|
9127
9127
|
|
|
9128
|
-
return
|
|
9128
|
+
return HtTable;
|
|
9129
9129
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
9130
9130
|
|
|
9131
|
-
__decorate([Prop()],
|
|
9131
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
|
|
9132
9132
|
|
|
9133
|
-
__decorate([Prop()],
|
|
9133
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
9134
9134
|
|
|
9135
|
-
__decorate([Prop()],
|
|
9135
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
9136
9136
|
|
|
9137
|
-
__decorate([Prop()],
|
|
9137
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
9138
9138
|
|
|
9139
|
-
__decorate([Prop()],
|
|
9139
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
|
|
9140
9140
|
|
|
9141
|
-
__decorate([Prop()],
|
|
9141
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowKey", void 0);
|
|
9142
9142
|
|
|
9143
|
-
__decorate([Prop()],
|
|
9143
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "stripe", void 0);
|
|
9144
9144
|
|
|
9145
|
-
__decorate([Prop()],
|
|
9145
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "border", void 0);
|
|
9146
9146
|
|
|
9147
|
-
__decorate([Prop()],
|
|
9147
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "size", void 0);
|
|
9148
9148
|
|
|
9149
|
-
__decorate([Prop()],
|
|
9149
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "fit", void 0);
|
|
9150
9150
|
|
|
9151
|
-
__decorate([Prop()],
|
|
9151
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHeader", void 0);
|
|
9152
9152
|
|
|
9153
|
-
__decorate([Prop()],
|
|
9153
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
9154
9154
|
|
|
9155
|
-
__decorate([Prop()],
|
|
9155
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
9156
9156
|
|
|
9157
|
-
__decorate([Prop()],
|
|
9157
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
|
|
9158
9158
|
|
|
9159
|
-
__decorate([Prop()],
|
|
9159
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowStyle", void 0);
|
|
9160
9160
|
|
|
9161
|
-
__decorate([Prop()],
|
|
9161
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hideOrder", void 0);
|
|
9162
9162
|
|
|
9163
|
-
__decorate([Prop()],
|
|
9163
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pageInfo", void 0);
|
|
9164
9164
|
|
|
9165
|
-
__decorate([Prop()],
|
|
9165
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "emptyText", void 0);
|
|
9166
9166
|
|
|
9167
|
-
__decorate([Prop()],
|
|
9167
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pagination", void 0);
|
|
9168
9168
|
|
|
9169
|
-
__decorate([Watch("pageInfo")],
|
|
9169
|
+
__decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
|
|
9170
9170
|
|
|
9171
|
-
|
|
9171
|
+
HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
9172
9172
|
components: {
|
|
9173
9173
|
PageInfo: PageInfo
|
|
9174
9174
|
}
|
|
9175
|
-
})],
|
|
9176
|
-
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (
|
|
9175
|
+
})], HtTablevue_type_script_lang_ts_HtTable);
|
|
9176
|
+
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
|
|
9177
9177
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9178
9178
|
/* harmony default export */ var packages_HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_);
|
|
9179
9179
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue
|
|
@@ -9186,16 +9186,16 @@ HtTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm({
|
|
|
9186
9186
|
|
|
9187
9187
|
var HtTable_component = normalizeComponent(
|
|
9188
9188
|
packages_HtTablevue_type_script_lang_ts_,
|
|
9189
|
-
|
|
9190
|
-
|
|
9189
|
+
HtTablevue_type_template_id_cf5f313e_scoped_true_render,
|
|
9190
|
+
HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns,
|
|
9191
9191
|
false,
|
|
9192
9192
|
null,
|
|
9193
|
-
"
|
|
9193
|
+
"cf5f313e",
|
|
9194
9194
|
null
|
|
9195
9195
|
|
|
9196
9196
|
)
|
|
9197
9197
|
|
|
9198
|
-
/* harmony default export */ var
|
|
9198
|
+
/* harmony default export */ var packages_HtTable = (HtTable_component.exports);
|
|
9199
9199
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.ts
|
|
9200
9200
|
/*
|
|
9201
9201
|
* @Descripttion:
|
|
@@ -9207,11 +9207,11 @@ var HtTable_component = normalizeComponent(
|
|
|
9207
9207
|
*/
|
|
9208
9208
|
|
|
9209
9209
|
|
|
9210
|
-
|
|
9211
|
-
Vue.component("HtTable",
|
|
9210
|
+
packages_HtTable.install = function (Vue) {
|
|
9211
|
+
Vue.component("HtTable", packages_HtTable);
|
|
9212
9212
|
};
|
|
9213
9213
|
|
|
9214
|
-
/* harmony default export */ var
|
|
9214
|
+
/* harmony default export */ var src_packages_HtTable = (packages_HtTable);
|
|
9215
9215
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
9216
9216
|
|
|
9217
9217
|
|
|
@@ -9232,7 +9232,7 @@ HtTable.install = function (Vue) {
|
|
|
9232
9232
|
|
|
9233
9233
|
// 存储组件列表
|
|
9234
9234
|
|
|
9235
|
-
var components = [packages_SelectTable, packages_PageInfo,
|
|
9235
|
+
var components = [packages_SelectTable, packages_PageInfo, src_packages_HtTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
9236
9236
|
|
|
9237
9237
|
var install = function install(Vue) {
|
|
9238
9238
|
// 判断是否安装
|
|
@@ -9254,7 +9254,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
9254
9254
|
// 以下是具体的组件列表
|
|
9255
9255
|
HtSelectTable: packages_SelectTable,
|
|
9256
9256
|
HtPagination: packages_PageInfo,
|
|
9257
|
-
HtTable:
|
|
9257
|
+
HtTable: src_packages_HtTable
|
|
9258
9258
|
});
|
|
9259
9259
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
9260
9260
|
|
package/lib/htui.common.js.gz
CHANGED
|
Binary file
|
package/lib/htui.umd.js
CHANGED
|
@@ -9058,8 +9058,8 @@ PageInfo.install = function (Vue) {
|
|
|
9058
9058
|
};
|
|
9059
9059
|
|
|
9060
9060
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
9061
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-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/HtTable/index.vue?vue&type=template&id=
|
|
9062
|
-
var
|
|
9061
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-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/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
|
|
9062
|
+
var HtTablevue_type_template_id_cf5f313e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"border":_vm.border,"stripe":_vm.stripe,"size":_vm.size,"fit":_vm.fit,"show-header":_vm.showHeader,"empty-text":_vm.emptyText||'暂无数据',"row-style":_vm.rowStyle,"row-class-name":_vm.rowClassName,"current-row-key":_vm.currentRowKey,"highlight-current-row":_vm.highlightCurrentRow,"row-key":_vm.rowKey||'id',"data":_vm.data,"tooltip-effect":"dark"},on:{"row-click":function (row, column, event){ return _vm.$emit('row-click',row, column, event); },"row-contextmenu":function (row, column, event){ return _vm.$emit('row-contextmenu',row, column, event); },"row-dblclick":function (row, column, event){ return _vm.$emit('row-dblclick',row, column, event); },"header-click":function ( column, event){ return _vm.$emit('header-click', column, event); },"header-contextmenu":function ( column, event){ return _vm.$emit('header-contextmenu', column, event); },"sort-change":function (ref){
|
|
9063
9063
|
var column = ref.column;
|
|
9064
9064
|
var prop = ref.prop;
|
|
9065
9065
|
var order = ref.order;
|
|
@@ -9073,10 +9073,10 @@ return [_vm._t(item.key,[_vm._v(_vm._s(row[item.key]))],{"row":row,"column":colu
|
|
|
9073
9073
|
var column = ref.column;
|
|
9074
9074
|
var $index = ref.$index;
|
|
9075
9075
|
return [_vm._t('header_'+item.key,[_vm._v(_vm._s(item.title))],{"column":column,"$index":$index})]}}],null,true)})})],2)],1),(!_vm.hidePage)?_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('PageInfo',{attrs:{"hide-on-single-page":_vm.pagination&&_vm.pagination.hideOnSinglePage,"small":_vm.pagination&&_vm.pagination.small,"page-sizes":_vm.pagination&&_vm.pagination.pageSizes,"page-info":_vm.state.pageInfo},on:{"onchange":function (e){ return _vm.$emit('onchange',e); }}})],1)],1)],1):_vm._e()])}
|
|
9076
|
-
var
|
|
9076
|
+
var HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
|
|
9077
9077
|
|
|
9078
9078
|
|
|
9079
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
9079
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
|
|
9080
9080
|
|
|
9081
9081
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9082
9082
|
|
|
@@ -9088,15 +9088,15 @@ var HtTablevue_type_template_id_75844174_scoped_true_staticRenderFns = []
|
|
|
9088
9088
|
|
|
9089
9089
|
|
|
9090
9090
|
|
|
9091
|
-
var
|
|
9092
|
-
_inherits(
|
|
9091
|
+
var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
9092
|
+
_inherits(HtTable, _Vue);
|
|
9093
9093
|
|
|
9094
|
-
var _super = _createSuper(
|
|
9094
|
+
var _super = _createSuper(HtTable);
|
|
9095
9095
|
|
|
9096
|
-
function
|
|
9096
|
+
function HtTable() {
|
|
9097
9097
|
var _this;
|
|
9098
9098
|
|
|
9099
|
-
_classCallCheck(this,
|
|
9099
|
+
_classCallCheck(this, HtTable);
|
|
9100
9100
|
|
|
9101
9101
|
_this = _super.apply(this, arguments);
|
|
9102
9102
|
_this.state = {
|
|
@@ -9111,7 +9111,7 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9111
9111
|
return _this;
|
|
9112
9112
|
}
|
|
9113
9113
|
|
|
9114
|
-
_createClass(
|
|
9114
|
+
_createClass(HtTable, [{
|
|
9115
9115
|
key: "created",
|
|
9116
9116
|
value: function created() {
|
|
9117
9117
|
// console.log("this", this.$props);
|
|
@@ -9134,55 +9134,55 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9134
9134
|
}
|
|
9135
9135
|
}]);
|
|
9136
9136
|
|
|
9137
|
-
return
|
|
9137
|
+
return HtTable;
|
|
9138
9138
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
9139
9139
|
|
|
9140
|
-
__decorate([Prop()],
|
|
9140
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
|
|
9141
9141
|
|
|
9142
|
-
__decorate([Prop()],
|
|
9142
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
9143
9143
|
|
|
9144
|
-
__decorate([Prop()],
|
|
9144
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
9145
9145
|
|
|
9146
|
-
__decorate([Prop()],
|
|
9146
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
9147
9147
|
|
|
9148
|
-
__decorate([Prop()],
|
|
9148
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
|
|
9149
9149
|
|
|
9150
|
-
__decorate([Prop()],
|
|
9150
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowKey", void 0);
|
|
9151
9151
|
|
|
9152
|
-
__decorate([Prop()],
|
|
9152
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "stripe", void 0);
|
|
9153
9153
|
|
|
9154
|
-
__decorate([Prop()],
|
|
9154
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "border", void 0);
|
|
9155
9155
|
|
|
9156
|
-
__decorate([Prop()],
|
|
9156
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "size", void 0);
|
|
9157
9157
|
|
|
9158
|
-
__decorate([Prop()],
|
|
9158
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "fit", void 0);
|
|
9159
9159
|
|
|
9160
|
-
__decorate([Prop()],
|
|
9160
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHeader", void 0);
|
|
9161
9161
|
|
|
9162
|
-
__decorate([Prop()],
|
|
9162
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
9163
9163
|
|
|
9164
|
-
__decorate([Prop()],
|
|
9164
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
9165
9165
|
|
|
9166
|
-
__decorate([Prop()],
|
|
9166
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
|
|
9167
9167
|
|
|
9168
|
-
__decorate([Prop()],
|
|
9168
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowStyle", void 0);
|
|
9169
9169
|
|
|
9170
|
-
__decorate([Prop()],
|
|
9170
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hideOrder", void 0);
|
|
9171
9171
|
|
|
9172
|
-
__decorate([Prop()],
|
|
9172
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pageInfo", void 0);
|
|
9173
9173
|
|
|
9174
|
-
__decorate([Prop()],
|
|
9174
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "emptyText", void 0);
|
|
9175
9175
|
|
|
9176
|
-
__decorate([Prop()],
|
|
9176
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pagination", void 0);
|
|
9177
9177
|
|
|
9178
|
-
__decorate([Watch("pageInfo")],
|
|
9178
|
+
__decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
|
|
9179
9179
|
|
|
9180
|
-
|
|
9180
|
+
HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
9181
9181
|
components: {
|
|
9182
9182
|
PageInfo: PageInfo
|
|
9183
9183
|
}
|
|
9184
|
-
})],
|
|
9185
|
-
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (
|
|
9184
|
+
})], HtTablevue_type_script_lang_ts_HtTable);
|
|
9185
|
+
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
|
|
9186
9186
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9187
9187
|
/* harmony default export */ var packages_HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_);
|
|
9188
9188
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue
|
|
@@ -9195,16 +9195,16 @@ HtTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm({
|
|
|
9195
9195
|
|
|
9196
9196
|
var HtTable_component = normalizeComponent(
|
|
9197
9197
|
packages_HtTablevue_type_script_lang_ts_,
|
|
9198
|
-
|
|
9199
|
-
|
|
9198
|
+
HtTablevue_type_template_id_cf5f313e_scoped_true_render,
|
|
9199
|
+
HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns,
|
|
9200
9200
|
false,
|
|
9201
9201
|
null,
|
|
9202
|
-
"
|
|
9202
|
+
"cf5f313e",
|
|
9203
9203
|
null
|
|
9204
9204
|
|
|
9205
9205
|
)
|
|
9206
9206
|
|
|
9207
|
-
/* harmony default export */ var
|
|
9207
|
+
/* harmony default export */ var packages_HtTable = (HtTable_component.exports);
|
|
9208
9208
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.ts
|
|
9209
9209
|
/*
|
|
9210
9210
|
* @Descripttion:
|
|
@@ -9216,11 +9216,11 @@ var HtTable_component = normalizeComponent(
|
|
|
9216
9216
|
*/
|
|
9217
9217
|
|
|
9218
9218
|
|
|
9219
|
-
|
|
9220
|
-
Vue.component("HtTable",
|
|
9219
|
+
packages_HtTable.install = function (Vue) {
|
|
9220
|
+
Vue.component("HtTable", packages_HtTable);
|
|
9221
9221
|
};
|
|
9222
9222
|
|
|
9223
|
-
/* harmony default export */ var
|
|
9223
|
+
/* harmony default export */ var src_packages_HtTable = (packages_HtTable);
|
|
9224
9224
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
9225
9225
|
|
|
9226
9226
|
|
|
@@ -9241,7 +9241,7 @@ HtTable.install = function (Vue) {
|
|
|
9241
9241
|
|
|
9242
9242
|
// 存储组件列表
|
|
9243
9243
|
|
|
9244
|
-
var components = [packages_SelectTable, packages_PageInfo,
|
|
9244
|
+
var components = [packages_SelectTable, packages_PageInfo, src_packages_HtTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
9245
9245
|
|
|
9246
9246
|
var install = function install(Vue) {
|
|
9247
9247
|
// 判断是否安装
|
|
@@ -9263,7 +9263,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
9263
9263
|
// 以下是具体的组件列表
|
|
9264
9264
|
HtSelectTable: packages_SelectTable,
|
|
9265
9265
|
HtPagination: packages_PageInfo,
|
|
9266
|
-
HtTable:
|
|
9266
|
+
HtTable: src_packages_HtTable
|
|
9267
9267
|
});
|
|
9268
9268
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
9269
9269
|
|
package/lib/htui.umd.js.gz
CHANGED
|
Binary file
|
package/lib/htui.umd.min.js
CHANGED
|
@@ -25,4 +25,4 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
25
25
|
* (c) 2015-present Evan You
|
|
26
26
|
* @license MIT
|
|
27
27
|
*/
|
|
28
|
-
function S(t){return S="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){return j(t)||E(t)||C()}function j(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function E(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function C(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function P(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function _(t,e){A(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){A(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){A(t,e,n)}))}function A(t,e,n){var r=n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e);r.forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var T={__proto__:[]},I=T instanceof Array;function R(t){return function(e,n,r){var o="function"===typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(e){return t(e,n,r)}))}}function N(t){var e=S(t);return null==t||"object"!==e&&"function"!==e}function D(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var L=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(L.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return O({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return D(this,t)}});var r=t.__decorators__;r&&(r.forEach((function(t){return t(e)})),delete t.__decorators__);var o=Object.getPrototypeOf(t.prototype),i=o instanceof w.a?o.constructor:w.a,a=i.extend(e);return $(a,t,i),P()&&_(a,t),a}var M={prototype:!0,arguments:!0,callee:!0,caller:!0};function $(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!M[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(e,r);if(!I){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!N(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(t,r,i)}}}))}function F(t){return"function"===typeof t?U(t):function(e){return U(e,t)}}F.registerHooks=function(t){L.push.apply(L,k(t))};var B=F;var z="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function H(t,e,n){if(z&&!Array.isArray(t)&&"function"!==typeof t&&"undefined"===typeof t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}function q(t){return void 0===t&&(t={}),function(e,n){H(t,e,n),R((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function K(t,e){void 0===e&&(e={});var n=e.deep,r=void 0!==n&&n,o=e.immediate,i=void 0!==o&&o;return R((function(e,n){"object"!==typeof e.watch&&(e.watch=Object.create(null));var o=e.watch;"object"!==typeof o[t]||Array.isArray(o[t])?"undefined"===typeof o[t]&&(o[t]=[]):o[t]=[o[t]],o[t].push({handler:n,deep:r,immediate:i})}))}var V=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.state.loading,expression:"state.loading"}]},[n("header",[n("el-input",{staticClass:"htui-search",attrs:{placeholder:t.searchPlaceholder||"请输入关键字查询"},model:{value:t.state.filterData.Filter,callback:function(e){t.$set(t.state.filterData,"Filter",e)},expression:"state.filterData.Filter"}})],1),n("article",[n("el-table",{ref:"comTable",staticStyle:{width:"100%"},attrs:{height:t.confige.table&&t.confige.table.height?t.confige.table.height:250,"row-key":t.confige.table&&t.confige.table.rowkey?t.confige.table.rowkey:"id",data:t.dataSource,"tooltip-effect":"dark"},on:{"row-click":t.rowClick}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-checkbox",{attrs:{value:t.state.checkObj&&t.state.checkObj.id===r.id},nativeOn:{click:function(t){t.preventDefault()}}})]}}])}),n("el-table-column",{attrs:{label:"序号",width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s((t.state.filterData.currentPage-1)*t.state.filterData.MaxResultCount+(e.$index+1))+" ")]}}])}),t._l(t.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}},[t._t(e.key,[t._v(t._s(e.key))])],2)}))],2)],1),n("footer",[n("el-row",[n("el-col",{attrs:{span:24}},[n("p",{staticStyle:{width:"90px",float:"left"}},[t._v("共"+t._s(t.dataSource.length)+"条")]),t._e()],1)],1)],1)])},G=[];n("4de4"),n("c740"),n("caad"),n("e6cf"),n("a79d"),n("2532"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){J(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("auth-login-form",{tag:"div",staticClass:"container-login",attrs:{"base-config":JSON.stringify(t.baseConfig)}})},Q=[],Z=(n("cca6"),n("ac1f"),n("466d"),n("a78e")),tt=n.n(Z),et={Language:"zh-Hans",setLanguage:function(t){this.Language=t},loginUrl:"/oauth2/connect/token",content:"通过创新的技术与产品,提升用户价值",setContent:function(t){this.content=t},logoUrl:"/publicData/images/loginLogo.png",setLogoUrl:function(t){this.logoUrl=t},imgurl:"/publicData/images/loginBg-1.png",setImgUrl:function(t){this.imgurl=t},setLoginUrl:function(t){this.loginUrl=t},isTenantAvailable:"/oauth2/api/abp/multi-tenancy/tenants/by-name",setIsTenantAvailable:function(t){this.isTenantAvailable=t},authorization:"Authorization",token_type:"token_type",oAuthConfig:{grant_type:"password",scope:"AuthServer",client_id:"AuthServer_App",client_secret:"1q2w3e*"},setOAuthConfig:function(t){this.oAuthConfig=Object.assign(this.oAuthConfig,t)},accessTokenKey:"Abp.AuthToken",abpTenantKey:"Abp.TenantId",tenantKey:"__tenant",setTenantKey:function(t){this.tenantKey=t},ApplicationId:{key:"ApplicationId",value:""},setApplicationId:function(t){t.key&&(this.ApplicationId.key=t.key),t.value&&(this.ApplicationId.value=t.value)},userId:"userId",enc_auth_token_key:"enc_auth_token",refreshTokenKey:"refresh_token_key",loginTitle:"星环视界智能科技",setLoginTitle:function(t){this.loginTitle=t},getLoginState:function(){return!!tt.a.get(this.accessTokenKey)},currentLoginInfoUrl:"/oauth2/api/abp/application-configuration",setcurrentLoginInfoUrl:function(t){this.currentLoginInfoUrl=t},clearCookies:function(){var t=document.cookie.match(/[^ =;]+(?==)/g);if(t)for(var e=t.length;e--;)document.cookie=t[e]+"=0;path=/;expires="+new Date(0).toUTCString()},getCookie:function(t){return tt.a.get(t)},setCookie:function(t,e,n){tt.a.set(t,e,n)}},nt=et,rt=function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.baseConfig=nt,t}return f(n,[{key:"created",value:function(){}},{key:"mounted",value:function(){}}]),n}(w.a);rt=m([B({components:{}})],rt);var ot=rt,it=ot;n("019a");function at(t,e,n,r,o,i,a,c){var u,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=u):o&&(u=c?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(t,e){return u.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:s}}var ct=at(it,Y,Q,!1,null,null,null),ut=(ct.exports,n("bc3a")),st=n.n(ut);function ft(t){const e=(new Date).getTime().toString();let n=document.createElement("auth-alert");n.setAttribute("error",JSON.stringify(t)),n.setAttribute("response",t.response?JSON.stringify(t.response):""),n.id="my-alert"+e,document.body.appendChild(n)}let lt={baseURL:nt.baseUrl,timeout:6e4};const pt=st.a.create(lt);pt.interceptors.request.use((function(t){if(tt.a.get(nt.accessTokenKey)){const e=tt.a.get(nt.token_type)+" "+tt.a.get(nt.accessTokenKey);t.headers[nt.authorization]=e}return tt.a.get(nt.tenantKey)&&(t.headers[nt.tenantKey]=tt.a.get(nt.tenantKey)),(nt.ApplicationId.value||tt.a.get(nt.ApplicationId.key))&&(t.headers[nt.ApplicationId.key]=nt.ApplicationId.value||tt.a.get(nt.ApplicationId.key)),t.headers["Accept-Language"]=nt.Language,t}),(function(t){return ft(t),Promise.reject(t)})),pt.interceptors.response.use((function(t){return t}),(function(t){return ft(t),console.log(t),Promise.reject(t)}));var dt=pt,ht=function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.state={loading:!1,dataSource:[],showPage:!0,filterData:{currentPage:1,Filter:"",MaxResultCount:1e3,SkipCount:0,totalCount:0},checkObj:void 0},t}return f(n,[{key:"created",value:function(){this.getDataSource()}},{key:"rowClick",value:function(t){var e=this.state.checkObj;e&&e.id===t.id?this.state.checkObj=void 0:this.state.checkObj=t,this.$emit("callback",this.state.checkObj,"click")}},{key:"topage",value:function(t){Array.isArray(t)?this.state.dataSource=t:t.items&&t.items.length?(this.state.dataSource=t.items,this.state.filterData.totalCount=t.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 t=this.confige,e=t.name,n=t.value,r=this.state.dataSource,o=r.findIndex((function(t){return t[null!==e&&void 0!==e?e:"id"]===n}));r.length&&(this.state.checkObj=r[o]),this.$emit("callback",this.state.checkObj)}},{key:"handleCurrentChange",value:function(t){this.state.filterData.currentPage=t||1;var e=this.state.filterData,n=e.MaxResultCount,r=void 0===n?0:n,o=e.currentPage;this.state.filterData.SkipCount=(o-1)*r,this.getDataSource()}},{key:"handelSizeChange",value:function(t){this.state.filterData.currentPage=1,this.state.filterData.MaxResultCount=t;var e=this.state.filterData,n=e.MaxResultCount,r=void 0===n?0:n,o=e.currentPage;this.state.filterData.SkipCount=(o-1)*r,this.getDataSource()}},{key:"getDataSource",value:function(){var t=this,e=this.confige.ajax,n=e.type,r=void 0===n?"get":n,o=e.url,i=e.params,a=e.data;if(this.state.loading=!0,"get"===r){var c={params:W(W({},this.state.filterData),i)};dt.get(o,W({},c)).then((function(e){t.topage(e.data)})).catch((function(){t.$notify.error("请求失败")})).finally((function(){t.state.loading=!1}))}else{var u={params:W(W({},this.state.filterData),i),data:W(W({},this.state.filterData),a)};dt.post(o,W({},u)).then((function(e){t.topage(e.data)})).catch((function(){t.$notify.error("请求失败")})).finally((function(){t.state.loading=!1}))}}},{key:"dataSource",get:function(){var t=this.state,e=t.filterData,n=t.dataSource,r=e.Filter;return n.filter((function(t){return JSON.stringify(t).includes(r)}))}}]),n}(w.a);m([q()],ht.prototype,"columns",void 0),m([q()],ht.prototype,"searchPlaceholder",void 0),m([q()],ht.prototype,"confige",void 0),m([q()],ht.prototype,"visible",void 0),m([K("confige")],ht.prototype,"getDataSource",null),ht=m([B],ht);var vt=ht,gt=vt,yt=at(gt,V,G,!1,null,"5a58ed06",null),bt=yt.exports,mt=(n("45f7"),function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.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:"描述"}]},t}return f(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(t,e){var n=this.state.config,r=n.text||"name";this.state.name=t?t[r]:void 0,this.$emit("change",t,e),e&&(this.$refs["elPopver"].doToggle(),this.state.visible=!1)}},{key:"hide",value:function(){this.state.icon="el-icon-arrow-down",this.state.visible=!0,this.state.show=!1}},{key:"blurInput",value:function(){var t=this.state.show;this.state.visible=!0,this.state.icon=t?"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 t=this.$refs[this.state.config.key||"ht-table"];console.log("333"),this.state.visible=!1,t.clearCheck()}}},{key:"watchConfig",value:function(t){this.state.config=JSON.parse(t)}}]),n}(w.a));m([q()],mt.prototype,"comStyle",void 0),m([q()],mt.prototype,"config",void 0),m([q()],mt.prototype,"width",void 0),m([q()],mt.prototype,"inputWidth",void 0),m([q()],mt.prototype,"placeholder",void 0),m([q()],mt.prototype,"searchPlaceholder",void 0),m([q()],mt.prototype,"columns",void 0),m([K("config")],mt.prototype,"watchConfig",null),mt=m([B({name:"HtSelectTable",components:{CommonTable:bt}})],mt);var xt=mt,wt=xt,St=at(wt,a,c,!1,null,null,null),Ot=St.exports;Ot.install=function(t){t.component("HtSelectTable",Ot)};var kt=Ot,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-pagination",{attrs:{background:t.background,"hide-on-single-page":t.hideOnSinglePage,disabled:!!t.disabled,small:!!t.small,"current-page":t.state.pageInfo.currentPage,"page-size":t.state.pageInfo.maxResultCount,"page-sizes":t.pageSizes||[10,20,30,40,50,100],layout:t.layout||"total, sizes, prev, pager, next, jumper",total:t.state.pageInfo.totalCount},on:{"current-change":t.handleCurrentChange,"size-change":t.handelSizeChange}})},Et=[],Ct=(n("a9e3"),function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.state={loading:!1,pageInfo:{currentPage:1,maxResultCount:10,skipCount:0,totalCount:0}},t}return f(n,[{key:"created",value:function(){this.pageInfo&&this.setpageInfo(this.pageInfo)}},{key:"handleCurrentChange",value:function(t){this.state.pageInfo.currentPage=t||1;var e=this.state.pageInfo,n=e.maxResultCount,r=void 0===n?0:n,o=e.currentPage;this.state.pageInfo.skipCount=(o-1)*r,this.$emit("onchange",this.state.pageInfo)}},{key:"handelSizeChange",value:function(t){this.state.pageInfo.currentPage=1,this.state.pageInfo.maxResultCount=t,this.handleCurrentChange(1)}},{key:"setpageInfo",value:function(t){var e=t;this.state.pageInfo={currentPage:Number(e.currentPage),maxResultCount:Number(e.pageSize),skipCount:Number(e.skipCount),totalCount:Number(e.totalCount)}}}]),n}(w.a));m([q()],Ct.prototype,"comStyle",void 0),m([q()],Ct.prototype,"small",void 0),m([q()],Ct.prototype,"pageInfo",void 0),m([q()],Ct.prototype,"pageSize",void 0),m([q()],Ct.prototype,"skipCount",void 0),m([q()],Ct.prototype,"disabled",void 0),m([q()],Ct.prototype,"background",void 0),m([q()],Ct.prototype,"hideOnSinglePage",void 0),m([q()],Ct.prototype,"pageSizes",void 0),m([q()],Ct.prototype,"layout",void 0),m([K("pageInfo")],Ct.prototype,"setpageInfo",null),Ct=m([B],Ct);var Pt=Ct,_t=Pt,At=at(_t,jt,Et,!1,null,null,null),Tt=At.exports;Tt.install=function(t){t.component("HtPagination",Tt)};var It=Tt,Rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.state.loading,expression:"state.loading"}]},[n("article",[n("el-table",{ref:"comTable",attrs:{height:t.height,"max-height":t.maxHeight,border:t.border,stripe:t.stripe,size:t.size,fit:t.fit,"show-header":t.showHeader,"empty-text":t.emptyText||"暂无数据","row-style":t.rowStyle,"row-class-name":t.rowClassName,"current-row-key":t.currentRowKey,"highlight-current-row":t.highlightCurrentRow,"row-key":t.rowKey||"id",data:t.data,"tooltip-effect":"dark"},on:{"row-click":function(e,n,r){return t.$emit("row-click",e,n,r)},"row-contextmenu":function(e,n,r){return t.$emit("row-contextmenu",e,n,r)},"row-dblclick":function(e,n,r){return t.$emit("row-dblclick",e,n,r)},"header-click":function(e,n){return t.$emit("header-click",e,n)},"header-contextmenu":function(e,n){return t.$emit("header-contextmenu",e,n)},"sort-change":function(e){var n=e.column,r=e.prop,o=e.order;return t.$emit("sort-change",{column:n,prop:r,order:o})},"filter-change":function(e){return t.$emit("filter-change",e)},"current-change":function(e,n){return t.$emit("current-change",e,n)},select:function(e,n){return t.$emit("select",e,n)},"select-all":function(e){return t.$emit("select-all",e)},"selection-change":function(e){return t.$emit("selection-change",e)},"cell-mouse-enter":function(e,n,r,o){return t.$emit("cell-mouse-enter",e,n,r,o)},"cell-mouse-leave":function(e,n,r,o){return t.$emit("cell-mouse-leave",e,n,r,o)},"cell-click":function(e,n,r,o){return t.$emit("cell-click",e,n,r,o)},"cell-dblclick":function(e,n,r,o){return t.$emit("cell-dblclick",e,n,r,o)}}},[n("el-table-column",{attrs:{width:"55",type:"selection"}}),t.hideOrder?t._e():n("el-table-column",{attrs:{label:"序号",width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s((t.state.pageInfo.currentPage-1)*t.state.pageInfo.pageSize+(e.$index+1))+" ")]}}],null,!1,2272936552)},[n("template",{slot:"header"},[t._t("header_order")],2)],2),t._l(t.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},scopedSlots:t._u([{key:"default",fn:function(n){var r=n.row,o=n.column,i=n.rowIndex;return[t._t(e.key,[t._v(t._s(r[e.key]))],{row:r,column:o,rowIndex:i}),t._v(" "+t._s(e.headerSlot)+" ")]}},{key:"header",fn:function(n){var r=n.column,o=n.$index;return[t._t("header_"+e.key,[t._v(t._s(e.title))],{column:r,$index:o})]}}],null,!0)})}))],2)],1),t.hidePage?t._e():n("footer",[n("el-row",[n("el-col",{attrs:{span:24}},[n("PageInfo",{attrs:{"hide-on-single-page":t.pagination&&t.pagination.hideOnSinglePage,small:t.pagination&&t.pagination.small,"page-sizes":t.pagination&&t.pagination.pageSizes,"page-info":t.state.pageInfo},on:{onchange:function(e){return t.$emit("onchange",e)}}})],1)],1)],1)])},Nt=[],Dt=function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.state={loading:!1,pageInfo:{currentPage:1,pageSize:10,skipCount:0,totalCount:0}},t}return f(n,[{key:"created",value:function(){this.setPageInfo(this.pageInfo)}},{key:"setPageInfo",value:function(t){if(t){var e=t;this.state.pageInfo={currentPage:Number(e.currentPage),pageSize:Number(e.pageSize),skipCount:Number(e.skipCount),totalCount:Number(e.totalCount)}}}}]),n}(w.a);m([q()],Dt.prototype,"columns",void 0),m([q()],Dt.prototype,"data",void 0),m([q()],Dt.prototype,"hidePage",void 0),m([q()],Dt.prototype,"height",void 0),m([q()],Dt.prototype,"maxHeight",void 0),m([q()],Dt.prototype,"rowKey",void 0),m([q()],Dt.prototype,"stripe",void 0),m([q()],Dt.prototype,"border",void 0),m([q()],Dt.prototype,"size",void 0),m([q()],Dt.prototype,"fit",void 0),m([q()],Dt.prototype,"showHeader",void 0),m([q()],Dt.prototype,"rowClassName",void 0),m([q()],Dt.prototype,"currentRowKey",void 0),m([q()],Dt.prototype,"highlightCurrentRow",void 0),m([q()],Dt.prototype,"rowStyle",void 0),m([q()],Dt.prototype,"hideOrder",void 0),m([q()],Dt.prototype,"pageInfo",void 0),m([q()],Dt.prototype,"emptyText",void 0),m([q()],Dt.prototype,"pagination",void 0),m([K("pageInfo")],Dt.prototype,"setPageInfo",null),Dt=m([B({components:{PageInfo:Tt}})],Dt);var Lt=Dt,Ut=Lt,Mt=at(Ut,Rt,Nt,!1,null,"75844174",null),$t=Mt.exports;$t.install=function(t){t.component("HtTable",$t)};var Ft=$t,Bt=[kt,It,Ft],zt=function t(e){t.installed||Bt.map((function(t,n){return e.component(t.options.name||t.name,t)}))};"undefined"!==typeof window&&window.Vue&&zt(window.Vue);var Ht={install:zt,HtSelectTable:kt,HtPagination:It,HtTable:Ft};e["default"]=Ht},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,e){t.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(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}})}));
|
|
28
|
+
function S(t){return S="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){return j(t)||E(t)||C()}function j(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function E(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function C(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function P(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function _(t,e){A(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){A(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){A(t,e,n)}))}function A(t,e,n){var r=n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e);r.forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var T={__proto__:[]},I=T instanceof Array;function R(t){return function(e,n,r){var o="function"===typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(e){return t(e,n,r)}))}}function N(t){var e=S(t);return null==t||"object"!==e&&"function"!==e}function D(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var L=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(L.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return O({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return D(this,t)}});var r=t.__decorators__;r&&(r.forEach((function(t){return t(e)})),delete t.__decorators__);var o=Object.getPrototypeOf(t.prototype),i=o instanceof w.a?o.constructor:w.a,a=i.extend(e);return $(a,t,i),P()&&_(a,t),a}var M={prototype:!0,arguments:!0,callee:!0,caller:!0};function $(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!M[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(e,r);if(!I){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!N(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(t,r,i)}}}))}function F(t){return"function"===typeof t?U(t):function(e){return U(e,t)}}F.registerHooks=function(t){L.push.apply(L,k(t))};var B=F;var z="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function H(t,e,n){if(z&&!Array.isArray(t)&&"function"!==typeof t&&"undefined"===typeof t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}function q(t){return void 0===t&&(t={}),function(e,n){H(t,e,n),R((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function K(t,e){void 0===e&&(e={});var n=e.deep,r=void 0!==n&&n,o=e.immediate,i=void 0!==o&&o;return R((function(e,n){"object"!==typeof e.watch&&(e.watch=Object.create(null));var o=e.watch;"object"!==typeof o[t]||Array.isArray(o[t])?"undefined"===typeof o[t]&&(o[t]=[]):o[t]=[o[t]],o[t].push({handler:n,deep:r,immediate:i})}))}var V=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.state.loading,expression:"state.loading"}]},[n("header",[n("el-input",{staticClass:"htui-search",attrs:{placeholder:t.searchPlaceholder||"请输入关键字查询"},model:{value:t.state.filterData.Filter,callback:function(e){t.$set(t.state.filterData,"Filter",e)},expression:"state.filterData.Filter"}})],1),n("article",[n("el-table",{ref:"comTable",staticStyle:{width:"100%"},attrs:{height:t.confige.table&&t.confige.table.height?t.confige.table.height:250,"row-key":t.confige.table&&t.confige.table.rowkey?t.confige.table.rowkey:"id",data:t.dataSource,"tooltip-effect":"dark"},on:{"row-click":t.rowClick}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-checkbox",{attrs:{value:t.state.checkObj&&t.state.checkObj.id===r.id},nativeOn:{click:function(t){t.preventDefault()}}})]}}])}),n("el-table-column",{attrs:{label:"序号",width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s((t.state.filterData.currentPage-1)*t.state.filterData.MaxResultCount+(e.$index+1))+" ")]}}])}),t._l(t.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}},[t._t(e.key,[t._v(t._s(e.key))])],2)}))],2)],1),n("footer",[n("el-row",[n("el-col",{attrs:{span:24}},[n("p",{staticStyle:{width:"90px",float:"left"}},[t._v("共"+t._s(t.dataSource.length)+"条")]),t._e()],1)],1)],1)])},G=[];n("4de4"),n("c740"),n("caad"),n("e6cf"),n("a79d"),n("2532"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){J(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("auth-login-form",{tag:"div",staticClass:"container-login",attrs:{"base-config":JSON.stringify(t.baseConfig)}})},Q=[],Z=(n("cca6"),n("ac1f"),n("466d"),n("a78e")),tt=n.n(Z),et={Language:"zh-Hans",setLanguage:function(t){this.Language=t},loginUrl:"/oauth2/connect/token",content:"通过创新的技术与产品,提升用户价值",setContent:function(t){this.content=t},logoUrl:"/publicData/images/loginLogo.png",setLogoUrl:function(t){this.logoUrl=t},imgurl:"/publicData/images/loginBg-1.png",setImgUrl:function(t){this.imgurl=t},setLoginUrl:function(t){this.loginUrl=t},isTenantAvailable:"/oauth2/api/abp/multi-tenancy/tenants/by-name",setIsTenantAvailable:function(t){this.isTenantAvailable=t},authorization:"Authorization",token_type:"token_type",oAuthConfig:{grant_type:"password",scope:"AuthServer",client_id:"AuthServer_App",client_secret:"1q2w3e*"},setOAuthConfig:function(t){this.oAuthConfig=Object.assign(this.oAuthConfig,t)},accessTokenKey:"Abp.AuthToken",abpTenantKey:"Abp.TenantId",tenantKey:"__tenant",setTenantKey:function(t){this.tenantKey=t},ApplicationId:{key:"ApplicationId",value:""},setApplicationId:function(t){t.key&&(this.ApplicationId.key=t.key),t.value&&(this.ApplicationId.value=t.value)},userId:"userId",enc_auth_token_key:"enc_auth_token",refreshTokenKey:"refresh_token_key",loginTitle:"星环视界智能科技",setLoginTitle:function(t){this.loginTitle=t},getLoginState:function(){return!!tt.a.get(this.accessTokenKey)},currentLoginInfoUrl:"/oauth2/api/abp/application-configuration",setcurrentLoginInfoUrl:function(t){this.currentLoginInfoUrl=t},clearCookies:function(){var t=document.cookie.match(/[^ =;]+(?==)/g);if(t)for(var e=t.length;e--;)document.cookie=t[e]+"=0;path=/;expires="+new Date(0).toUTCString()},getCookie:function(t){return tt.a.get(t)},setCookie:function(t,e,n){tt.a.set(t,e,n)}},nt=et,rt=function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.baseConfig=nt,t}return f(n,[{key:"created",value:function(){}},{key:"mounted",value:function(){}}]),n}(w.a);rt=m([B({components:{}})],rt);var ot=rt,it=ot;n("019a");function at(t,e,n,r,o,i,a,c){var u,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=u):o&&(u=c?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(t,e){return u.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:s}}var ct=at(it,Y,Q,!1,null,null,null),ut=(ct.exports,n("bc3a")),st=n.n(ut);function ft(t){const e=(new Date).getTime().toString();let n=document.createElement("auth-alert");n.setAttribute("error",JSON.stringify(t)),n.setAttribute("response",t.response?JSON.stringify(t.response):""),n.id="my-alert"+e,document.body.appendChild(n)}let lt={baseURL:nt.baseUrl,timeout:6e4};const pt=st.a.create(lt);pt.interceptors.request.use((function(t){if(tt.a.get(nt.accessTokenKey)){const e=tt.a.get(nt.token_type)+" "+tt.a.get(nt.accessTokenKey);t.headers[nt.authorization]=e}return tt.a.get(nt.tenantKey)&&(t.headers[nt.tenantKey]=tt.a.get(nt.tenantKey)),(nt.ApplicationId.value||tt.a.get(nt.ApplicationId.key))&&(t.headers[nt.ApplicationId.key]=nt.ApplicationId.value||tt.a.get(nt.ApplicationId.key)),t.headers["Accept-Language"]=nt.Language,t}),(function(t){return ft(t),Promise.reject(t)})),pt.interceptors.response.use((function(t){return t}),(function(t){return ft(t),console.log(t),Promise.reject(t)}));var dt=pt,ht=function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.state={loading:!1,dataSource:[],showPage:!0,filterData:{currentPage:1,Filter:"",MaxResultCount:1e3,SkipCount:0,totalCount:0},checkObj:void 0},t}return f(n,[{key:"created",value:function(){this.getDataSource()}},{key:"rowClick",value:function(t){var e=this.state.checkObj;e&&e.id===t.id?this.state.checkObj=void 0:this.state.checkObj=t,this.$emit("callback",this.state.checkObj,"click")}},{key:"topage",value:function(t){Array.isArray(t)?this.state.dataSource=t:t.items&&t.items.length?(this.state.dataSource=t.items,this.state.filterData.totalCount=t.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 t=this.confige,e=t.name,n=t.value,r=this.state.dataSource,o=r.findIndex((function(t){return t[null!==e&&void 0!==e?e:"id"]===n}));r.length&&(this.state.checkObj=r[o]),this.$emit("callback",this.state.checkObj)}},{key:"handleCurrentChange",value:function(t){this.state.filterData.currentPage=t||1;var e=this.state.filterData,n=e.MaxResultCount,r=void 0===n?0:n,o=e.currentPage;this.state.filterData.SkipCount=(o-1)*r,this.getDataSource()}},{key:"handelSizeChange",value:function(t){this.state.filterData.currentPage=1,this.state.filterData.MaxResultCount=t;var e=this.state.filterData,n=e.MaxResultCount,r=void 0===n?0:n,o=e.currentPage;this.state.filterData.SkipCount=(o-1)*r,this.getDataSource()}},{key:"getDataSource",value:function(){var t=this,e=this.confige.ajax,n=e.type,r=void 0===n?"get":n,o=e.url,i=e.params,a=e.data;if(this.state.loading=!0,"get"===r){var c={params:W(W({},this.state.filterData),i)};dt.get(o,W({},c)).then((function(e){t.topage(e.data)})).catch((function(){t.$notify.error("请求失败")})).finally((function(){t.state.loading=!1}))}else{var u={params:W(W({},this.state.filterData),i),data:W(W({},this.state.filterData),a)};dt.post(o,W({},u)).then((function(e){t.topage(e.data)})).catch((function(){t.$notify.error("请求失败")})).finally((function(){t.state.loading=!1}))}}},{key:"dataSource",get:function(){var t=this.state,e=t.filterData,n=t.dataSource,r=e.Filter;return n.filter((function(t){return JSON.stringify(t).includes(r)}))}}]),n}(w.a);m([q()],ht.prototype,"columns",void 0),m([q()],ht.prototype,"searchPlaceholder",void 0),m([q()],ht.prototype,"confige",void 0),m([q()],ht.prototype,"visible",void 0),m([K("confige")],ht.prototype,"getDataSource",null),ht=m([B],ht);var vt=ht,gt=vt,yt=at(gt,V,G,!1,null,"5a58ed06",null),bt=yt.exports,mt=(n("45f7"),function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.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:"描述"}]},t}return f(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(t,e){var n=this.state.config,r=n.text||"name";this.state.name=t?t[r]:void 0,this.$emit("change",t,e),e&&(this.$refs["elPopver"].doToggle(),this.state.visible=!1)}},{key:"hide",value:function(){this.state.icon="el-icon-arrow-down",this.state.visible=!0,this.state.show=!1}},{key:"blurInput",value:function(){var t=this.state.show;this.state.visible=!0,this.state.icon=t?"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 t=this.$refs[this.state.config.key||"ht-table"];console.log("333"),this.state.visible=!1,t.clearCheck()}}},{key:"watchConfig",value:function(t){this.state.config=JSON.parse(t)}}]),n}(w.a));m([q()],mt.prototype,"comStyle",void 0),m([q()],mt.prototype,"config",void 0),m([q()],mt.prototype,"width",void 0),m([q()],mt.prototype,"inputWidth",void 0),m([q()],mt.prototype,"placeholder",void 0),m([q()],mt.prototype,"searchPlaceholder",void 0),m([q()],mt.prototype,"columns",void 0),m([K("config")],mt.prototype,"watchConfig",null),mt=m([B({name:"HtSelectTable",components:{CommonTable:bt}})],mt);var xt=mt,wt=xt,St=at(wt,a,c,!1,null,null,null),Ot=St.exports;Ot.install=function(t){t.component("HtSelectTable",Ot)};var kt=Ot,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-pagination",{attrs:{background:t.background,"hide-on-single-page":t.hideOnSinglePage,disabled:!!t.disabled,small:!!t.small,"current-page":t.state.pageInfo.currentPage,"page-size":t.state.pageInfo.maxResultCount,"page-sizes":t.pageSizes||[10,20,30,40,50,100],layout:t.layout||"total, sizes, prev, pager, next, jumper",total:t.state.pageInfo.totalCount},on:{"current-change":t.handleCurrentChange,"size-change":t.handelSizeChange}})},Et=[],Ct=(n("a9e3"),function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.state={loading:!1,pageInfo:{currentPage:1,maxResultCount:10,skipCount:0,totalCount:0}},t}return f(n,[{key:"created",value:function(){this.pageInfo&&this.setpageInfo(this.pageInfo)}},{key:"handleCurrentChange",value:function(t){this.state.pageInfo.currentPage=t||1;var e=this.state.pageInfo,n=e.maxResultCount,r=void 0===n?0:n,o=e.currentPage;this.state.pageInfo.skipCount=(o-1)*r,this.$emit("onchange",this.state.pageInfo)}},{key:"handelSizeChange",value:function(t){this.state.pageInfo.currentPage=1,this.state.pageInfo.maxResultCount=t,this.handleCurrentChange(1)}},{key:"setpageInfo",value:function(t){var e=t;this.state.pageInfo={currentPage:Number(e.currentPage),maxResultCount:Number(e.pageSize),skipCount:Number(e.skipCount),totalCount:Number(e.totalCount)}}}]),n}(w.a));m([q()],Ct.prototype,"comStyle",void 0),m([q()],Ct.prototype,"small",void 0),m([q()],Ct.prototype,"pageInfo",void 0),m([q()],Ct.prototype,"pageSize",void 0),m([q()],Ct.prototype,"skipCount",void 0),m([q()],Ct.prototype,"disabled",void 0),m([q()],Ct.prototype,"background",void 0),m([q()],Ct.prototype,"hideOnSinglePage",void 0),m([q()],Ct.prototype,"pageSizes",void 0),m([q()],Ct.prototype,"layout",void 0),m([K("pageInfo")],Ct.prototype,"setpageInfo",null),Ct=m([B],Ct);var Pt=Ct,_t=Pt,At=at(_t,jt,Et,!1,null,null,null),Tt=At.exports;Tt.install=function(t){t.component("HtPagination",Tt)};var It=Tt,Rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.state.loading,expression:"state.loading"}]},[n("article",[n("el-table",{ref:"comTable",attrs:{height:t.height,"max-height":t.maxHeight,border:t.border,stripe:t.stripe,size:t.size,fit:t.fit,"show-header":t.showHeader,"empty-text":t.emptyText||"暂无数据","row-style":t.rowStyle,"row-class-name":t.rowClassName,"current-row-key":t.currentRowKey,"highlight-current-row":t.highlightCurrentRow,"row-key":t.rowKey||"id",data:t.data,"tooltip-effect":"dark"},on:{"row-click":function(e,n,r){return t.$emit("row-click",e,n,r)},"row-contextmenu":function(e,n,r){return t.$emit("row-contextmenu",e,n,r)},"row-dblclick":function(e,n,r){return t.$emit("row-dblclick",e,n,r)},"header-click":function(e,n){return t.$emit("header-click",e,n)},"header-contextmenu":function(e,n){return t.$emit("header-contextmenu",e,n)},"sort-change":function(e){var n=e.column,r=e.prop,o=e.order;return t.$emit("sort-change",{column:n,prop:r,order:o})},"filter-change":function(e){return t.$emit("filter-change",e)},"current-change":function(e,n){return t.$emit("current-change",e,n)},select:function(e,n){return t.$emit("select",e,n)},"select-all":function(e){return t.$emit("select-all",e)},"selection-change":function(e){return t.$emit("selection-change",e)},"cell-mouse-enter":function(e,n,r,o){return t.$emit("cell-mouse-enter",e,n,r,o)},"cell-mouse-leave":function(e,n,r,o){return t.$emit("cell-mouse-leave",e,n,r,o)},"cell-click":function(e,n,r,o){return t.$emit("cell-click",e,n,r,o)},"cell-dblclick":function(e,n,r,o){return t.$emit("cell-dblclick",e,n,r,o)}}},[n("el-table-column",{attrs:{width:"55",type:"selection"}}),t.hideOrder?t._e():n("el-table-column",{attrs:{label:"序号",width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s((t.state.pageInfo.currentPage-1)*t.state.pageInfo.pageSize+(e.$index+1))+" ")]}}],null,!1,2272936552)},[n("template",{slot:"header"},[t._t("header_order")],2)],2),t._l(t.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},scopedSlots:t._u([{key:"default",fn:function(n){var r=n.row,o=n.column,i=n.rowIndex;return[t._t(e.key,[t._v(t._s(r[e.key]))],{row:r,column:o,rowIndex:i}),t._v(" "+t._s(e.headerSlot)+" ")]}},{key:"header",fn:function(n){var r=n.column,o=n.$index;return[t._t("header_"+e.key,[t._v(t._s(e.title))],{column:r,$index:o})]}}],null,!0)})}))],2)],1),t.hidePage?t._e():n("footer",[n("el-row",[n("el-col",{attrs:{span:24}},[n("PageInfo",{attrs:{"hide-on-single-page":t.pagination&&t.pagination.hideOnSinglePage,small:t.pagination&&t.pagination.small,"page-sizes":t.pagination&&t.pagination.pageSizes,"page-info":t.state.pageInfo},on:{onchange:function(e){return t.$emit("onchange",e)}}})],1)],1)],1)])},Nt=[],Dt=function(t){p(n,t);var e=b(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.state={loading:!1,pageInfo:{currentPage:1,pageSize:10,skipCount:0,totalCount:0}},t}return f(n,[{key:"created",value:function(){this.setPageInfo(this.pageInfo)}},{key:"setPageInfo",value:function(t){if(t){var e=t;this.state.pageInfo={currentPage:Number(e.currentPage),pageSize:Number(e.pageSize),skipCount:Number(e.skipCount),totalCount:Number(e.totalCount)}}}}]),n}(w.a);m([q()],Dt.prototype,"columns",void 0),m([q()],Dt.prototype,"data",void 0),m([q()],Dt.prototype,"hidePage",void 0),m([q()],Dt.prototype,"height",void 0),m([q()],Dt.prototype,"maxHeight",void 0),m([q()],Dt.prototype,"rowKey",void 0),m([q()],Dt.prototype,"stripe",void 0),m([q()],Dt.prototype,"border",void 0),m([q()],Dt.prototype,"size",void 0),m([q()],Dt.prototype,"fit",void 0),m([q()],Dt.prototype,"showHeader",void 0),m([q()],Dt.prototype,"rowClassName",void 0),m([q()],Dt.prototype,"currentRowKey",void 0),m([q()],Dt.prototype,"highlightCurrentRow",void 0),m([q()],Dt.prototype,"rowStyle",void 0),m([q()],Dt.prototype,"hideOrder",void 0),m([q()],Dt.prototype,"pageInfo",void 0),m([q()],Dt.prototype,"emptyText",void 0),m([q()],Dt.prototype,"pagination",void 0),m([K("pageInfo")],Dt.prototype,"setPageInfo",null),Dt=m([B({components:{PageInfo:Tt}})],Dt);var Lt=Dt,Ut=Lt,Mt=at(Ut,Rt,Nt,!1,null,"cf5f313e",null),$t=Mt.exports;$t.install=function(t){t.component("HtTable",$t)};var Ft=$t,Bt=[kt,It,Ft],zt=function t(e){t.installed||Bt.map((function(t,n){return e.component(t.options.name||t.name,t)}))};"undefined"!==typeof window&&window.Vue&&zt(window.Vue);var Ht={install:zt,HtSelectTable:kt,HtPagination:It,HtTable:Ft};e["default"]=Ht},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,e){t.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(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}})}));
|
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @Author: hutao
|
|
6
6
|
* @Date: 2021-11-11 11:23:24
|
|
7
7
|
* @LastEditors: hutao
|
|
8
|
-
* @LastEditTime: 2021-12-09
|
|
8
|
+
* @LastEditTime: 2021-12-09 17:29:45
|
|
9
9
|
-->
|
|
10
10
|
<template>
|
|
11
11
|
<div v-loading="state.loading">
|
|
@@ -106,7 +106,7 @@ interface State {
|
|
|
106
106
|
PageInfo,
|
|
107
107
|
},
|
|
108
108
|
})
|
|
109
|
-
export default class
|
|
109
|
+
export default class HtTable extends Vue {
|
|
110
110
|
/** 默认的table头 */
|
|
111
111
|
@Prop() columns!: Column[];
|
|
112
112
|
@Prop() data!: any[];
|