htui-yllkbz 1.3.9 → 1.3.13
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 +47 -15
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +47 -15
- 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 +36 -9
- package/src/packages/type.ts +3 -1
- package/src/views/About.vue +5 -1
package/lib/htui.common.js
CHANGED
|
@@ -12222,14 +12222,14 @@ PageInfo.install = function (Vue) {
|
|
|
12222
12222
|
};
|
|
12223
12223
|
|
|
12224
12224
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
12225
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-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=
|
|
12226
|
-
var
|
|
12225
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-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=4bb8f27a&scoped=true&
|
|
12226
|
+
var HtTablevue_type_template_id_4bb8f27a_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"}],staticStyle:{"background":"#fff"}},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"border":_vm.border,"stripe":_vm.stripe!==undefined?_vm.stripe:true,"size":_vm.size||'small',"fit":_vm.fit,"header-row-style":_vm.headerRowStyle||{'background':'var(--primary-92)'},"header-row-class-name":_vm.headerRowClassName,"header-cell-class-name":_vm.headerCellClassName,"header-cell-style":_vm.headerCellStyle,"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){
|
|
12227
12227
|
var column = ref.column;
|
|
12228
12228
|
var prop = ref.prop;
|
|
12229
12229
|
var order = ref.order;
|
|
12230
12230
|
|
|
12231
12231
|
return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
|
|
12232
|
-
},"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","resizable":false,"reserve-selection":_vm.reserveSelection,"selectable":function (row){ return row.
|
|
12232
|
+
},"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","resizable":false,"reserve-selection":_vm.reserveSelection,"selectable":function (row){ return row[_vm.selectKey]!==false; },"type":"selection"}}):_vm._e(),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"resizable":false,"label":_vm.keyName===undefined?'序号':_vm.keyName,"align":'center',"width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
12233
12233
|
var row = ref.row;
|
|
12234
12234
|
var column = ref.column;
|
|
12235
12235
|
var $index = ref.$index;
|
|
@@ -12244,10 +12244,10 @@ return [_vm._t('header_'+item.key,[_vm._v(_vm._s(item.title))],{"column":column,
|
|
|
12244
12244
|
var node = ref.node;
|
|
12245
12245
|
var data = ref.data;
|
|
12246
12246
|
return _c('span',{staticClass:"custom-tree-node"},[_vm._t('header_'+data.key,[_vm._v(_vm._s(data.title)),_c('span',{staticStyle:{"color":"#C0C4CC"}},[_vm._v(_vm._s(data.property?("(" + (data.property) + ")"):''))])],{"column":data})],2)}}],null,true)})],1)],1),_c('span',{attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.confirmSortAndshow}},[_vm._v("确定")]),_c('el-button',{on:{"click":function($event){_vm.state.visibleFilter=false}}},[_vm._v("取消")]),_c('el-button',{on:{"click":_vm.resetColumn}},[_vm._v("重置")])],1)]),_c('el-dialog',{attrs:{"visible":_vm.state.visibleFile,"title":"附件查看","append-to-body":true,"close-on-click-modal":true,"width":"400px","center":true},on:{"update:visible":function($event){return _vm.$set(_vm.state, "visibleFile", $event)}}},[_c('p',{staticStyle:{"font-weight":"700","font-size":"18px","float":"left","margin":"0"},attrs:{"slot":"title"},slot:"title"},[_vm._v("附件查看")]),_c('div',{staticStyle:{"overflow":"hidden","height":"calc(30vh)"}},[_c('el-scrollbar',{staticStyle:{"height":"calc(100% + 17px)"}},[_c('HtUploadFiles',{attrs:{"disabled":true},model:{value:(_vm.state.files),callback:function ($$v) {_vm.$set(_vm.state, "files", $$v)},expression:"state.files"}})],1)],1)])],1)}
|
|
12247
|
-
var
|
|
12247
|
+
var HtTablevue_type_template_id_4bb8f27a_scoped_true_staticRenderFns = []
|
|
12248
12248
|
|
|
12249
12249
|
|
|
12250
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
12250
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=4bb8f27a&scoped=true&
|
|
12251
12251
|
|
|
12252
12252
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12253
12253
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -12676,16 +12676,40 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
12676
12676
|
this.state.showColumns = JSON.parse(allColumns);
|
|
12677
12677
|
this.getShowKeys(this.state.allColumns);
|
|
12678
12678
|
} else {
|
|
12679
|
-
|
|
12679
|
+
if (this.configShow) {
|
|
12680
|
+
this.columns.forEach(function (item) {
|
|
12681
|
+
return item.checked = !!item.deafaultShow;
|
|
12682
|
+
});
|
|
12683
|
+
this.creatInitColumnKey(this.columns);
|
|
12684
|
+
} else {
|
|
12685
|
+
this.creatInitColumnKey(this.columns || []);
|
|
12686
|
+
}
|
|
12680
12687
|
}
|
|
12681
12688
|
} else {
|
|
12682
|
-
|
|
12689
|
+
if (this.configShow) {
|
|
12690
|
+
this.columns.forEach(function (item) {
|
|
12691
|
+
return item.checked = !!item.deafaultShow;
|
|
12692
|
+
});
|
|
12693
|
+
this.creatInitColumnKey(this.columns);
|
|
12694
|
+
} else {
|
|
12695
|
+
this.creatInitColumnKey(this.columns || []);
|
|
12696
|
+
}
|
|
12683
12697
|
}
|
|
12698
|
+
|
|
12699
|
+
console.log("this.columns", this.columns);
|
|
12684
12700
|
}
|
|
12685
12701
|
}, {
|
|
12686
12702
|
key: "resetColumn",
|
|
12687
12703
|
value: function resetColumn() {
|
|
12688
|
-
|
|
12704
|
+
if (this.configShow) {
|
|
12705
|
+
this.columns.forEach(function (item) {
|
|
12706
|
+
item.checked = !!item.deafaultShow;
|
|
12707
|
+
});
|
|
12708
|
+
this.creatInitColumnKey(this.columns);
|
|
12709
|
+
} else {
|
|
12710
|
+
this.creatInitColumnKey(this.columns || []);
|
|
12711
|
+
}
|
|
12712
|
+
|
|
12689
12713
|
this.state.visibleFilter = false;
|
|
12690
12714
|
|
|
12691
12715
|
if (this.uuId) {
|
|
@@ -12715,7 +12739,7 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
12715
12739
|
this.state.allColumns = columns;
|
|
12716
12740
|
this.state.showColumns = columns;
|
|
12717
12741
|
this.state.allColumns.forEach(function (item) {
|
|
12718
|
-
item.checked = true;
|
|
12742
|
+
item.checked = item.checked === false ? false : true;
|
|
12719
12743
|
});
|
|
12720
12744
|
this.$nextTick(function () {
|
|
12721
12745
|
_this2.$refs.comTable.doLayout(); // el-table加ref="comTable"
|
|
@@ -12986,20 +13010,22 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
12986
13010
|
return HtTable;
|
|
12987
13011
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
12988
13012
|
|
|
12989
|
-
__decorate([Prop(
|
|
13013
|
+
__decorate([Prop({
|
|
13014
|
+
default: []
|
|
13015
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
|
|
12990
13016
|
|
|
12991
13017
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
12992
13018
|
|
|
12993
13019
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "keyName", void 0);
|
|
12994
13020
|
|
|
13021
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "configShow", void 0);
|
|
13022
|
+
|
|
12995
13023
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showFilter", void 0);
|
|
12996
13024
|
|
|
12997
13025
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "uuId", void 0);
|
|
12998
13026
|
|
|
12999
13027
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
13000
13028
|
|
|
13001
|
-
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
|
|
13002
|
-
|
|
13003
13029
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "reserveSelection", void 0);
|
|
13004
13030
|
|
|
13005
13031
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
@@ -13020,6 +13046,12 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHead
|
|
|
13020
13046
|
|
|
13021
13047
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
13022
13048
|
|
|
13049
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
|
|
13050
|
+
|
|
13051
|
+
__decorate([Prop({
|
|
13052
|
+
default: "selectable"
|
|
13053
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "selectKey", void 0);
|
|
13054
|
+
|
|
13023
13055
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "selectable", void 0);
|
|
13024
13056
|
|
|
13025
13057
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
@@ -13068,11 +13100,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
13068
13100
|
|
|
13069
13101
|
var HtTable_component = normalizeComponent(
|
|
13070
13102
|
packages_HtTablevue_type_script_lang_ts_,
|
|
13071
|
-
|
|
13072
|
-
|
|
13103
|
+
HtTablevue_type_template_id_4bb8f27a_scoped_true_render,
|
|
13104
|
+
HtTablevue_type_template_id_4bb8f27a_scoped_true_staticRenderFns,
|
|
13073
13105
|
false,
|
|
13074
13106
|
null,
|
|
13075
|
-
"
|
|
13107
|
+
"4bb8f27a",
|
|
13076
13108
|
null
|
|
13077
13109
|
|
|
13078
13110
|
)
|
package/lib/htui.common.js.gz
CHANGED
|
Binary file
|
package/lib/htui.umd.js
CHANGED
|
@@ -12231,14 +12231,14 @@ PageInfo.install = function (Vue) {
|
|
|
12231
12231
|
};
|
|
12232
12232
|
|
|
12233
12233
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
12234
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-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=
|
|
12235
|
-
var
|
|
12234
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-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=4bb8f27a&scoped=true&
|
|
12235
|
+
var HtTablevue_type_template_id_4bb8f27a_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"}],staticStyle:{"background":"#fff"}},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"border":_vm.border,"stripe":_vm.stripe!==undefined?_vm.stripe:true,"size":_vm.size||'small',"fit":_vm.fit,"header-row-style":_vm.headerRowStyle||{'background':'var(--primary-92)'},"header-row-class-name":_vm.headerRowClassName,"header-cell-class-name":_vm.headerCellClassName,"header-cell-style":_vm.headerCellStyle,"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){
|
|
12236
12236
|
var column = ref.column;
|
|
12237
12237
|
var prop = ref.prop;
|
|
12238
12238
|
var order = ref.order;
|
|
12239
12239
|
|
|
12240
12240
|
return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
|
|
12241
|
-
},"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","resizable":false,"reserve-selection":_vm.reserveSelection,"selectable":function (row){ return row.
|
|
12241
|
+
},"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","resizable":false,"reserve-selection":_vm.reserveSelection,"selectable":function (row){ return row[_vm.selectKey]!==false; },"type":"selection"}}):_vm._e(),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"resizable":false,"label":_vm.keyName===undefined?'序号':_vm.keyName,"align":'center',"width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
12242
12242
|
var row = ref.row;
|
|
12243
12243
|
var column = ref.column;
|
|
12244
12244
|
var $index = ref.$index;
|
|
@@ -12253,10 +12253,10 @@ return [_vm._t('header_'+item.key,[_vm._v(_vm._s(item.title))],{"column":column,
|
|
|
12253
12253
|
var node = ref.node;
|
|
12254
12254
|
var data = ref.data;
|
|
12255
12255
|
return _c('span',{staticClass:"custom-tree-node"},[_vm._t('header_'+data.key,[_vm._v(_vm._s(data.title)),_c('span',{staticStyle:{"color":"#C0C4CC"}},[_vm._v(_vm._s(data.property?("(" + (data.property) + ")"):''))])],{"column":data})],2)}}],null,true)})],1)],1),_c('span',{attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.confirmSortAndshow}},[_vm._v("确定")]),_c('el-button',{on:{"click":function($event){_vm.state.visibleFilter=false}}},[_vm._v("取消")]),_c('el-button',{on:{"click":_vm.resetColumn}},[_vm._v("重置")])],1)]),_c('el-dialog',{attrs:{"visible":_vm.state.visibleFile,"title":"附件查看","append-to-body":true,"close-on-click-modal":true,"width":"400px","center":true},on:{"update:visible":function($event){return _vm.$set(_vm.state, "visibleFile", $event)}}},[_c('p',{staticStyle:{"font-weight":"700","font-size":"18px","float":"left","margin":"0"},attrs:{"slot":"title"},slot:"title"},[_vm._v("附件查看")]),_c('div',{staticStyle:{"overflow":"hidden","height":"calc(30vh)"}},[_c('el-scrollbar',{staticStyle:{"height":"calc(100% + 17px)"}},[_c('HtUploadFiles',{attrs:{"disabled":true},model:{value:(_vm.state.files),callback:function ($$v) {_vm.$set(_vm.state, "files", $$v)},expression:"state.files"}})],1)],1)])],1)}
|
|
12256
|
-
var
|
|
12256
|
+
var HtTablevue_type_template_id_4bb8f27a_scoped_true_staticRenderFns = []
|
|
12257
12257
|
|
|
12258
12258
|
|
|
12259
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
12259
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=4bb8f27a&scoped=true&
|
|
12260
12260
|
|
|
12261
12261
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12262
12262
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -12685,16 +12685,40 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
12685
12685
|
this.state.showColumns = JSON.parse(allColumns);
|
|
12686
12686
|
this.getShowKeys(this.state.allColumns);
|
|
12687
12687
|
} else {
|
|
12688
|
-
|
|
12688
|
+
if (this.configShow) {
|
|
12689
|
+
this.columns.forEach(function (item) {
|
|
12690
|
+
return item.checked = !!item.deafaultShow;
|
|
12691
|
+
});
|
|
12692
|
+
this.creatInitColumnKey(this.columns);
|
|
12693
|
+
} else {
|
|
12694
|
+
this.creatInitColumnKey(this.columns || []);
|
|
12695
|
+
}
|
|
12689
12696
|
}
|
|
12690
12697
|
} else {
|
|
12691
|
-
|
|
12698
|
+
if (this.configShow) {
|
|
12699
|
+
this.columns.forEach(function (item) {
|
|
12700
|
+
return item.checked = !!item.deafaultShow;
|
|
12701
|
+
});
|
|
12702
|
+
this.creatInitColumnKey(this.columns);
|
|
12703
|
+
} else {
|
|
12704
|
+
this.creatInitColumnKey(this.columns || []);
|
|
12705
|
+
}
|
|
12692
12706
|
}
|
|
12707
|
+
|
|
12708
|
+
console.log("this.columns", this.columns);
|
|
12693
12709
|
}
|
|
12694
12710
|
}, {
|
|
12695
12711
|
key: "resetColumn",
|
|
12696
12712
|
value: function resetColumn() {
|
|
12697
|
-
|
|
12713
|
+
if (this.configShow) {
|
|
12714
|
+
this.columns.forEach(function (item) {
|
|
12715
|
+
item.checked = !!item.deafaultShow;
|
|
12716
|
+
});
|
|
12717
|
+
this.creatInitColumnKey(this.columns);
|
|
12718
|
+
} else {
|
|
12719
|
+
this.creatInitColumnKey(this.columns || []);
|
|
12720
|
+
}
|
|
12721
|
+
|
|
12698
12722
|
this.state.visibleFilter = false;
|
|
12699
12723
|
|
|
12700
12724
|
if (this.uuId) {
|
|
@@ -12724,7 +12748,7 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
12724
12748
|
this.state.allColumns = columns;
|
|
12725
12749
|
this.state.showColumns = columns;
|
|
12726
12750
|
this.state.allColumns.forEach(function (item) {
|
|
12727
|
-
item.checked = true;
|
|
12751
|
+
item.checked = item.checked === false ? false : true;
|
|
12728
12752
|
});
|
|
12729
12753
|
this.$nextTick(function () {
|
|
12730
12754
|
_this2.$refs.comTable.doLayout(); // el-table加ref="comTable"
|
|
@@ -12995,20 +13019,22 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
12995
13019
|
return HtTable;
|
|
12996
13020
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
12997
13021
|
|
|
12998
|
-
__decorate([Prop(
|
|
13022
|
+
__decorate([Prop({
|
|
13023
|
+
default: []
|
|
13024
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
|
|
12999
13025
|
|
|
13000
13026
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
13001
13027
|
|
|
13002
13028
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "keyName", void 0);
|
|
13003
13029
|
|
|
13030
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "configShow", void 0);
|
|
13031
|
+
|
|
13004
13032
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showFilter", void 0);
|
|
13005
13033
|
|
|
13006
13034
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "uuId", void 0);
|
|
13007
13035
|
|
|
13008
13036
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
13009
13037
|
|
|
13010
|
-
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
|
|
13011
|
-
|
|
13012
13038
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "reserveSelection", void 0);
|
|
13013
13039
|
|
|
13014
13040
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
@@ -13029,6 +13055,12 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHead
|
|
|
13029
13055
|
|
|
13030
13056
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
13031
13057
|
|
|
13058
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
|
|
13059
|
+
|
|
13060
|
+
__decorate([Prop({
|
|
13061
|
+
default: "selectable"
|
|
13062
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "selectKey", void 0);
|
|
13063
|
+
|
|
13032
13064
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "selectable", void 0);
|
|
13033
13065
|
|
|
13034
13066
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
@@ -13077,11 +13109,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
13077
13109
|
|
|
13078
13110
|
var HtTable_component = normalizeComponent(
|
|
13079
13111
|
packages_HtTablevue_type_script_lang_ts_,
|
|
13080
|
-
|
|
13081
|
-
|
|
13112
|
+
HtTablevue_type_template_id_4bb8f27a_scoped_true_render,
|
|
13113
|
+
HtTablevue_type_template_id_4bb8f27a_scoped_true_staticRenderFns,
|
|
13082
13114
|
false,
|
|
13083
13115
|
null,
|
|
13084
|
-
"
|
|
13116
|
+
"4bb8f27a",
|
|
13085
13117
|
null
|
|
13086
13118
|
|
|
13087
13119
|
)
|
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 k(e){return k="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},k(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){return S(e)||A(e)||E()}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 A(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function T(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function I(e,t){j(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){j(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){j(e,t,n)}))}function j(e,t,n){var r=n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t);r.forEach((function(r){var o=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,o,e,n):Reflect.defineMetadata(r,o,e)}))}var D={__proto__:[]},L=D instanceof Array;function O(e){return function(t,n,r){var o="function"===typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(t){return e(t,n,r)}))}}function R(e){var t=k(e);return null==e||"object"!==t&&"function"!==t}function F(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var o={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(o[e]=r[e])})),o}var q=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function M(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(q.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"===typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return x({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return F(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(t)})),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),i=o instanceof w.a?o.constructor:w.a,a=i.extend(t);return B(a,e,i),T()&&I(a,e),a}var P={prototype:!0,arguments:!0,callee:!0,caller:!0};function B(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!P[r]){var o=Object.getOwnPropertyDescriptor(e,r);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(t,r);if(!L){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!R(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(e,r,i)}}}))}function N(e){return"function"===typeof e?M(e):function(t){return M(t,e)}}N.registerHooks=function(e){q.push.apply(q,C(e))};var z=N;var $="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function U(e,t,n){if($&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var r=Reflect.getMetadata("design:type",t,n);r!==Object&&(e.type=r)}}function H(e){return void 0===e&&(e={}),function(t,n){U(e,t,n),O((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function Q(e,t){void 0===t&&(t={});var n=t.deep,r=void 0!==n&&n,o=t.immediate,i=void 0!==o&&o;return O((function(t,n){"object"!==typeof t.watch&&(t.watch=Object.create(null));var o=t.watch;"object"!==typeof o[e]||Array.isArray(o[e])?"undefined"===typeof o[e]&&(o[e]=[]):o[e]=[o[e]],o[e].push({handler:n,deep:r,immediate:i})}))}var V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.state.loading,expression:"state.loading"}]},[n("header",[n("el-input",{staticClass:"htui-search",attrs:{placeholder:e.searchPlaceholder||"请输入关键字查询"},model:{value:e.state.filterData.Filter,callback:function(t){e.$set(e.state.filterData,"Filter",t)},expression:"state.filterData.Filter"}})],1),n("article",[n("el-table",{ref:"comTable",staticStyle:{width:"100%"},attrs:{height:e.confige.table&&e.confige.table.height?e.confige.table.height:250,"row-key":e.confige.table&&e.confige.table.rowkey?e.confige.table.rowkey:"id",data:e.dataSource,"tooltip-effect":"dark"},on:{"row-click":e.rowClick}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("el-checkbox",{attrs:{value:e.state.checkObj&&e.state.checkObj.id===r.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(t){return n("el-table-column",{key:t.key,attrs:{label:t.title,"show-overflow-tooltip":!0,prop:t.key,width:t.width||120}},[e._t(t.key,[e._v(e._s(t.key))])],2)}))],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)])},W=[];n("4de4"),n("c740"),n("caad"),n("e6cf"),n("a79d"),n("2532"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function J(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,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=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)}})},X=[],Y=(n("cca6"),n("ac1f"),n("466d"),n("a78e")),ee=n.n(Y),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,re=function(e){f(n,e);var t=v(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}(w.a);re=b([z({components:{}})],re);var oe=re,ie=oe;n("019a");function ae(e,t,n,r,o,i,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),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 p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}var se=ae(ie,Z,X,!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 pe={baseURL:ne.baseUrl,timeout:6e4};const fe=ce.a.create(pe);fe.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)})),fe.interceptors.response.use((function(e){return e}),(function(e){return ue(e),console.log(e),Promise.reject(e)}));var de=fe,he=function(e){f(n,e);var t=v(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,r=this.state.dataSource,o=r.findIndex((function(e){return e[null!==t&&void 0!==t?t:"id"]===n}));r.length&&(this.state.checkObj=r[o]),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,r=void 0===n?0:n,o=t.currentPage;this.state.filterData.SkipCount=(o-1)*r,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,r=void 0===n?0:n,o=t.currentPage;this.state.filterData.SkipCount=(o-1)*r,this.getDataSource()}},{key:"getDataSource",value:function(){var e=this,t=this.confige.ajax,n=t.type,r=void 0===n?"get":n,o=t.url,i=t.params,a=t.data;if(this.state.loading=!0,"get"===r){var s={params:G(G({},this.state.filterData),i)};de.get(o,G({},s)).then((function(t){e.topage(t.data)})).catch((function(){e.$notify.error("请求失败")})).finally((function(){e.state.loading=!1}))}else{var l={params:G(G({},this.state.filterData),i),data:G(G({},this.state.filterData),a)};de.post(o,G({},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,r=t.Filter;return n.filter((function(e){return JSON.stringify(e).includes(r)}))}}]),n}(w.a);b([H()],he.prototype,"columns",void 0),b([H()],he.prototype,"searchPlaceholder",void 0),b([H()],he.prototype,"confige",void 0),b([H()],he.prototype,"visible",void 0),b([Q("confige")],he.prototype,"getDataSource",null),he=b([z],he);var ge=he,me=ge,_e=ae(me,V,W,!1,null,"5a58ed06",null),ve=_e.exports,be=(n("45f7"),function(e){f(n,e);var t=v(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,r=n.text||"name";this.state.name=e?e[r]:void 0,this.$emit("change",e,t),t&&(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 e=this.state.show;this.state.visible=!0,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}(w.a));b([H()],be.prototype,"comStyle",void 0),b([H()],be.prototype,"config",void 0),b([H()],be.prototype,"width",void 0),b([H()],be.prototype,"inputWidth",void 0),b([H()],be.prototype,"placeholder",void 0),b([H()],be.prototype,"searchPlaceholder",void 0),b([H()],be.prototype,"columns",void 0),b([Q("config")],be.prototype,"watchConfig",null),be=b([z({name:"HtSelectTable",components:{CommonTable:ve}})],be);var ye=be,we=ye,ke=ae(we,a,s,!1,null,null,null),xe=ke.exports;xe.install=function(e){e.component("HtSelectTable",xe)};var Ce=xe,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-pagination",{attrs:{background:e.background,"hide-on-single-page":e.hideOnSinglePage,disabled:!!e.disabled,small:!!e.small,"current-page":e.state.pageInfo.currentPage,"page-size":e.state.pageInfo.maxResultCount,"page-sizes":e.pageSizes||[10,20,30,40,50,100],layout:e.layout||"total, sizes, prev, pager, next, jumper",total:e.state.pageInfo.totalCount},on:{"current-change":e.handleCurrentChange,"size-change":e.handelSizeChange}})},Ae=[],Ee=(n("a9e3"),function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,pageInfo:{currentPage:1,maxResultCount:10,skipCount:0,totalCount:0}},e}return u(n,[{key:"created",value:function(){this.pageInfo&&this.setpageInfo(this.pageInfo)}},{key:"handleCurrentChange",value:function(e){this.state.pageInfo.currentPage=e||1;var t=this.state.pageInfo,n=t.maxResultCount,r=void 0===n?0:n,o=t.currentPage;this.state.pageInfo.skipCount=(o-1)*r,this.$emit("onchange",this.state.pageInfo)}},{key:"handelSizeChange",value:function(e){this.state.pageInfo.currentPage=1,this.state.pageInfo.maxResultCount=e,this.handleCurrentChange(1)}},{key:"setpageInfo",value:function(e){var t=e;this.state.pageInfo={currentPage:Number(t.currentPage),maxResultCount:Number(t.pageSize),skipCount:Number(t.skipCount),totalCount:Number(t.totalCount)}}}]),n}(w.a));b([H()],Ee.prototype,"comStyle",void 0),b([H()],Ee.prototype,"small",void 0),b([H()],Ee.prototype,"pageInfo",void 0),b([H()],Ee.prototype,"pageSize",void 0),b([H()],Ee.prototype,"skipCount",void 0),b([H()],Ee.prototype,"disabled",void 0),b([H()],Ee.prototype,"background",void 0),b([H()],Ee.prototype,"hideOnSinglePage",void 0),b([H()],Ee.prototype,"pageSizes",void 0),b([H()],Ee.prototype,"layout",void 0),b([Q("pageInfo")],Ee.prototype,"setpageInfo",null),Ee=b([z({name:"HtPagination"})],Ee);var Te=Ee,Ie=Te,je=ae(Ie,Se,Ae,!1,null,null,null),De=je.exports;De.install=function(e){e.component("HtPagination",De)};var Le=De,Oe=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"}],staticStyle:{background:"#fff"}},[n("article",[n("el-table",{ref:"comTable",attrs:{height:e.height,"max-height":e.maxHeight,border:e.border,stripe:void 0===e.stripe||e.stripe,size:e.size||"small",fit:e.fit,"header-row-style":e.headerRowStyle||{background:"var(--primary-92)"},"header-row-class-name":e.headerRowClassName,"header-cell-class-name":e.headerCellClassName,"header-cell-style":e.headerCellStyle,"show-header":e.showHeader,"empty-text":e.emptyText||"暂无数据","row-style":e.rowStyle,"row-class-name":e.rowClassName,"current-row-key":e.currentRowKey,"highlight-current-row":e.highlightCurrentRow,"row-key":e.rowKey||"id",data:e.data,"tooltip-effect":"dark"},on:{"row-click":function(t,n,r){return e.$emit("row-click",t,n,r)},"row-contextmenu":function(t,n,r){return e.$emit("row-contextmenu",t,n,r)},"row-dblclick":function(t,n,r){return e.$emit("row-dblclick",t,n,r)},"header-click":function(t,n){return e.$emit("header-click",t,n)},"header-contextmenu":function(t,n){return e.$emit("header-contextmenu",t,n)},"sort-change":function(t){var n=t.column,r=t.prop,o=t.order;return e.$emit("sort-change",{column:n,prop:r,order:o})},"filter-change":function(t){return e.$emit("filter-change",t)},"current-change":function(t,n){return e.$emit("current-change",t,n)},select:function(t,n){return e.$emit("select",t,n)},"select-all":function(t){return e.$emit("select-all",t)},"selection-change":function(t){return e.$emit("selection-change",t)},"cell-mouse-enter":function(t,n,r,o){return e.$emit("cell-mouse-enter",t,n,r,o)},"cell-mouse-leave":function(t,n,r,o){return e.$emit("cell-mouse-leave",t,n,r,o)},"cell-click":function(t,n,r,o){return e.$emit("cell-click",t,n,r,o)},"cell-dblclick":function(t,n,r,o){return e.$emit("cell-dblclick",t,n,r,o)}}},[e.checked?n("el-table-column",{attrs:{width:"55",resizable:!1,"reserve-selection":e.reserveSelection,selectable:function(e){return!1!==e.selectable},type:"selection"}}):e._e(),e.hideOrder?e._e():n("el-table-column",{attrs:{resizable:!1,label:void 0===e.keyName?"序号":e.keyName,align:"center",width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row,r=t.column,o=t.$index;return[e._t("body_order",[e._v(" "+e._s((e.state.pageInfo.currentPage-1)*e.state.pageInfo.pageSize+(o+1))+" ")],{row:n,column:r,$index:o})]}}],null,!0)},[n("template",{slot:"header"},[e._t("header_order",[e.showFilter?n("div",{attrs:{title:"筛选排序"},on:{click:e.showFilterModel}},[n("el-button",{attrs:{type:"text"}},[n("i",{staticClass:"el-icon-s-grid"})])],1):n("span",[e._v(e._s(e.keyName||"序号"))])])],2)],2),e._l(e.state.showColumns,(function(t,r){return[!t.hide&&t.checked?n("el-table-column",{key:t.key+"_"+r,attrs:{label:t.title,fixed:t.fixed,align:t.align,resizable:t.resizable,"header-align":t.headerAlign,"column-key":t.columnKey,"class-name":t.className,prop:t.key,"show-overflow-tooltip":"common"!==t.type&&"org"!==t.type&&"userId"!==t.type&&!1!==t.showOverflowTooltip,sortable:t.sortable,"sort-method":t.sortMethod,"sort-orders":t.sortOrders,formatter:t.formatter,"sort-by":t.sortBy,"min-width":t.minWidth,width:t.width},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.row,i=r.column,a=r.rowIndex;return[e._t(t.key,["org"===t.type?[e.getPropByPath(o,t.key)?n("common-org-info",{attrs:{"org-id":e.getPropByPath(o,t.key),type:"tag"}}):n("span",[e._v("--")])]:"common"===t.type?[e.getPropByPath(o,t.key)?n("common-datas-info-id",{tag:"div",attrs:{"hide-code":t.hideCode,"user-id":"userId"===t.commonType?JSON.stringify([e.getPropByPath(o,t.key)]):"[]","department-id":"departmentId"===t.commonType?JSON.stringify([e.getPropByPath(o,t.key)]):"[]","role-id":"roleId"===t.commonType?JSON.stringify([e.getPropByPath(o,t.key)]):"[]","base-data-id":"baseDataId"===t.commonType?e.getPropByPath(o,t.key):"","base-data-value":"baseDataValue"===t.commonType?e.getPropByPath(o,t.key):"","base-data-name":"baseDataName"===t.commonType?e.getPropByPath(o,t.key):"","base-data-info":!0}}):n("span",[e._v("--")])]:"userId"===t.type?[e.getPropByPath(o,t.key)?n("common-datas-info-id",{tag:"div",attrs:{"user-id":JSON.stringify(e.getPropByPath(o,t.key)),"base-data-info":!0}}):n("span",[e._v("--")])]:"time"===t.type?[e.getPropByPath(o,t.key)?n("div",{staticClass:"ht-column-cell"},[t.spread?[n("p",{staticStyle:{color:"var(--primary)",margin:"0",padding:"0"}},[e._v(e._s(e.getPropByPath(o,t.key).slice(11,19)))]),n("p",{staticStyle:{margin:"0",padding:"0"}},[e._v(e._s(e.getPropByPath(o,t.key).replace("T"," ").slice(0,10)))])]:n("span",[e._v(" "+e._s(e.getPropByPath(o,t.key).replace("T"," ").slice(0,19)))])],2):n("span",[e._v("--")])]:"boolean"===t.type?[e.getPropByPath(o,t.key)?n("el-tag",{attrs:{type:"success",size:"small"}},[e._v("是")]):n("el-tag",{attrs:{type:"danger",size:"small"}},[e._v("否")])]:"img"===t.type?[e.getPropByPath(o,t.key)?n("span",e._l(e.getPropByPath(o,t.key).split(","),(function(e){return n("el-image",{key:e,staticStyle:{width:"38px",height:"38px","margin-right":"5px"},attrs:{src:"/files/api/filing/file/download/"+e,"preview-src-list":["/files/api/filing/file/download/"+e]}})})),1):e._e()]:"file"===t.type?[e.getPropByPath(o,t.key)?n("span",[n("i",{staticClass:"el-icon-paperclip",staticStyle:{color:"var(--primary)",cursor:"pointer"},on:{click:function(n){e.showFiles(e.getPropByPath(o,t.key))}}},[e._v(e._s(e.getPropByPath(o,t.key).split(",").length))])]):n("span",[e._v("--")])]:n("span",[e._v(e._s(e.getPropByPath(o,t.key)))])],{row:o,column:i,rowIndex:a})]}},{key:"header",fn:function(n){var r=n.column,o=n.$index;return[e._t("header_"+t.key,[e._v(e._s(t.title))],{column:r,$index:o})]}}],null,!0)}):e._e()]}))],2)],1),e.hidePage?e._e():n("footer",[n("el-row",{attrs:{name:"footer"}},[e._t("footerLeft"),n("el-col",{attrs:{span:12}},[n("PageInfo",{attrs:{"hide-on-single-page":e.pagination&&e.pagination.hideOnSinglePage,small:e.pagination&&e.pagination.small,"page-sizes":e.pagination&&e.pagination.pageSizes,"page-info":e.state.pageInfo},on:{onchange:function(t){return e.$emit("onchange",t)}}})],1)],2)],1),n("el-dialog",{attrs:{visible:e.state.visibleFilter,title:"属性设置","append-to-body":!0,"close-on-click-modal":!0,width:"400px"},on:{"update:visible":function(t){return e.$set(e.state,"visibleFilter",t)}}},[n("p",{staticStyle:{"font-weight":"700","font-size":"18px",float:"left",margin:"0"},attrs:{slot:"title"},slot:"title"},[e._v("自定义列展示")]),n("div",{staticStyle:{overflow:"hidden",height:"35vh","margin-top":"12px"}},[n("el-scrollbar",{staticStyle:{height:"calc(35vh + 17px)"}},[n("el-tree",{ref:"tree",attrs:{data:e.getAllColumns,"show-checkbox":"","expand-on-click-node":!1,"node-key":"key","check-on-click-node":!1,"default-checked-keys":e.state.checkedColumnKeys,"allow-drag":e.allowDrag,draggable:"","allow-drop":e.allowDrop},on:{"node-drag-start":e.handleDragStart,"node-drag-enter":e.handleDragEnter,"node-drag-leave":e.handleDragLeave,"node-drag-over":e.handleDragOver,"node-drag-end":e.handleDragEnd,"node-drop":e.handleDrop,"check-change":e.changeColumns},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var r=t.data;return n("span",{staticClass:"custom-tree-node"},[e._t("header_"+r.key,[e._v(e._s(r.title)),n("span",{staticStyle:{color:"#C0C4CC"}},[e._v(e._s(r.property?"("+r.property+")":""))])],{column:r})],2)}}],null,!0)})],1)],1),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.confirmSortAndshow}},[e._v("确定")]),n("el-button",{on:{click:function(t){e.state.visibleFilter=!1}}},[e._v("取消")]),n("el-button",{on:{click:e.resetColumn}},[e._v("重置")])],1)]),n("el-dialog",{attrs:{visible:e.state.visibleFile,title:"附件查看","append-to-body":!0,"close-on-click-modal":!0,width:"400px",center:!0},on:{"update:visible":function(t){return e.$set(e.state,"visibleFile",t)}}},[n("p",{staticStyle:{"font-weight":"700","font-size":"18px",float:"left",margin:"0"},attrs:{slot:"title"},slot:"title"},[e._v("附件查看")]),n("div",{staticStyle:{overflow:"hidden",height:"calc(30vh)"}},[n("el-scrollbar",{staticStyle:{height:"calc(100% + 17px)"}},[n("HtUploadFiles",{attrs:{disabled:!0},model:{value:e.state.files,callback:function(t){e.$set(e.state,"files",t)},expression:"state.files"}})],1)],1)])],1)},Re=[],Fe=(n("99af"),n("5319"),n("1276"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?e._e():n("el-upload",{staticClass:"ht-upload",staticStyle:{width:"368px",height:"108px"},attrs:{"show-file-list":!1,disabled:e.disabled,"on-success":e.onSuccess,"before-upload":e.beforeUpload,drag:"",action:"/files/api/filing/file/upload",multiple:""}},[n("div",{staticClass:"el-upload__text",staticStyle:{"margin-top":"8px","font-size":"12px",color:"#999"}},[e._v("拖动文件到此处,或"),n("br"),n("em",[e._v("点击上传")])])]),n("ul",{staticClass:"ht-ul-upload"},e._l(e.state.filesInfo,(function(t,r){return n("li",{key:t.fileToken},[n("a",{on:{click:function(n){return e.downLoadFile(t)}}},[n("i",{staticClass:"le-icon el-icon-document",staticStyle:{"margin-right":"7px"}}),e._v(e._s(t.fileName))]),n("span",[e.disabled?e._e():n("i",{staticClass:"el-icon el-icon-circle-check"}),e.disabled?e._e():n("i",{staticClass:"el-icon el-icon-close",attrs:{title:"删除"},on:{click:function(n){return e.delItem(t,r)}}}),n("i",{staticClass:"el-icon el-icon-download",staticStyle:{"margin-right":"24px"},attrs:{title:"下载"},on:{click:function(n){return e.downLoadFile(t)}}})])])})),0),n("a",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"download1",attrs:{href:e.state.fileSrc,target:"_blank"}})],1)}),qe=[];n("a434"),n("96cf");function Me(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,s,"next",e)}function s(e){Me(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Be=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,fileSrc:"",fileToken:[],filesInfo:[],dialogVisible:!1},e}return u(n,[{key:"created",value:function(){this.onValue(this.value)}},{key:"beforeUpload",value:function(e){var t=e.size/1024/1024<5,n=["jpg","png","xlsx","lsx","doc","pdf"],r=e.name.split("."),o=r[r.length-1];return t||this.$message.error("大小不能超过 5MB!"),!!n.includes(o)||(this.$notify.error("只能上传".concat(n.toString(),"格式文件")),!1)}},{key:"downLoadFile",value:function(e){var t=this;this.state.fileSrc="/files/api/filing/file/download/".concat(e.fileToken),setTimeout((function(){var e=t.$refs.download1;e.click()}),100)}},{key:"onSuccess",value:function(e){this.getFileInfo(e.fileToken)}},{key:"getFileInfo",value:function(e){var t=this;de.get("/files/api/filing/file/"+e).then((function(e){t.state.filesInfo.push(e.data)}))}},{key:"delItem",value:function(e,t){var n=this.state.filesInfo;e.fileToken&&(n.splice(t,1),this.state.filesInfo=n)}},{key:"getAllFileInfo",value:function(){var e=Pe(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.state.fileToken,n=regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(o.state.filesInfo.findIndex((function(e){return e.fileToken===t[n]}))<0)){e.next=3;break}return e.next=3,de.get("/files/api/filing/file/"+t[n]).then((function(e){o.state.filesInfo.push(e.data)}));case 3:case"end":return e.stop()}}),e)})),r=0;case 3:if(!(r<t.length)){e.next=8;break}return e.delegateYield(n(r),"t0",5);case 5:r++,e.next=3;break;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFileToken",value:function(e,t){if(!this.readonly&&!this.isArray){var n=[];e.forEach((function(e){e.fileToken&&n.push(e.fileToken)})),this.$emit("input",n.toString()),this.$emit("change",n.toString())}this.isArray&&this.$emit("change",e)}},{key:"onArrValue",value:function(e){this.isArray&&(this.state.filesInfo=e||[])}},{key:"onValue",value:function(e){e&&!this.isArray?(this.state.fileToken=e.split(","),this.getAllFileInfo()):(this.state.fileToken=[],this.filesInfo&&this.filesInfo.length&&(this.state.filesInfo=this.filesInfo))}},{key:"fileList",get:function(){return[]}}]),n}(w.a);b([H()],Be.prototype,"value",void 0),b([H({default:!1})],Be.prototype,"readonly",void 0),b([H()],Be.prototype,"disabled",void 0),b([H({default:!1})],Be.prototype,"isArray",void 0),b([H()],Be.prototype,"filesInfo",void 0),b([Q("state.filesInfo")],Be.prototype,"onFileToken",null),b([Q("filesInfo",{immediate:!0})],Be.prototype,"onArrValue",null),b([Q("value")],Be.prototype,"onValue",null),Be=b([z({name:"HtUploadFiles"})],Be);var Ne=Be,ze=Ne,$e=(n("d5e9"),ae(ze,Fe,qe,!1,null,"443585d4",null)),Ue=$e.exports,He=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,files:void 0,pageInfo:{currentPage:1,pageSize:10,skipCount:0,totalCount:0},showColumns:[],allColumns:[],currentColumn:void 0,visibleFilter:!1,visibleFile:!1,showColumnKeys:[],checkedColumnKeys:[]},e}return u(n,[{key:"created",value:function(){if(this.setPageInfo(this.pageInfo),this.uuId){var e=window.localStorage.getItem("table_"+this.uuId);e?(this.state.allColumns=JSON.parse(e),this.state.showColumns=JSON.parse(e),this.getShowKeys(this.state.allColumns)):this.creatInitColumnKey(this.columns||[])}else this.creatInitColumnKey(this.columns||[])}},{key:"resetColumn",value:function(){this.creatInitColumnKey(this.columns||[]),this.state.visibleFilter=!1,this.uuId&&window.localStorage.setItem("table_"+this.uuId,JSON.stringify(this.columns||[]))}},{key:"getShowKeys",value:function(e){var t=[];e.forEach((function(e){e.checked&&t.push(e.key)})),this.state.showColumnKeys=t}},{key:"creatInitColumnKey",value:function(e){var t=this;this.state.allColumns=e,this.state.showColumns=e,this.state.allColumns.forEach((function(e){e.checked=!0})),this.$nextTick((function(){t.$refs.comTable.doLayout()})),this.getShowKeys(this.state.allColumns)}},{key:"showFiles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.state.files=e,this.state.visibleFile=!0}},{key:"handleDragStart",value:function(e){this.state.currentColumn=e.data}},{key:"handleDragEnter",value:function(){}},{key:"handleDragLeave",value:function(){}},{key:"handleDragOver",value:function(){}},{key:"handleDragEnd",value:function(e,t,n){var r=this,o=this.state,i=(o.showColumns,o.currentColumn),a=o.checkedColumnKeys;i&&a.includes(i.key)&&setTimeout((function(){r.$refs.tree.setChecked(i,!0)}),0)}},{key:"handleDrop",value:function(){}},{key:"allowDrop",value:function(e,t,n){return"inner"!==n}},{key:"allowDrag",value:function(e){return!e.data.disabled}},{key:"getPropByPath",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var o=t.split("."),i=0,a=o.length;i<a-1;++i){if(!r&&!n)break;var s=o[i];if(!(s in r)){if(n)throw new Error("table中".concat(t,"字段发生错误,请检查"));break}r=r[s]}return r?r[o[i]]:null}},{key:"showFilterModel",value:function(){this.state.visibleFilter=!0,this.state.checkedColumnKeys=this.state.showColumnKeys,this.state.allColumns=JSON.parse(JSON.stringify(this.state.showColumns))}},{key:"changeColumns",value:function(e,t){var n=this.state.checkedColumnKeys;t?n.push(e.key):n=n.filter((function(t){return t!==e.key})),this.state.checkedColumnKeys=n}},{key:"confirmSortAndshow",value:function(){var e=this;this.state.loading=!0,this.state.showColumns=[],this.state.allColumns=this.getAllColumns;var t=this.state,n=t.allColumns,r=t.checkedColumnKeys;n.forEach((function(e){return e.checked=r.includes(e.key)})),this.state.showColumnKeys=r,this.uuId&&window.localStorage.setItem("table_"+this.uuId,JSON.stringify(n)),this.state.showColumns=n,this.state.visibleFilter=!1,this.state.loading=!1,this.$nextTick((function(){e.$refs.comTable.doLayout()})),this.$emit("customColumn",n)}},{key:"setPageInfo",value:function(e){if(e){var t=e;this.state.pageInfo={currentPage:Number(t.currentPage),pageSize:Number(t.pageSize),skipCount:Number(t.skipCount),totalCount:Number(t.totalCount)}}}},{key:"setColumns",value:function(e){var t=this.state.showColumns,n={},r={};t.forEach((function(e){n=G(G({},n),{},J({},e.key,!0))})),null===e||void 0===e||e.forEach((function(e){r=G(G({},r),{},J({},e.key,!0))}));var o=null===e||void 0===e?void 0:e.filter((function(e){return!n[e.key]})),i=null===t||void 0===t?void 0:t.filter((function(e){return r[e.key]})),a=[],s=[];i.forEach((function(e,t){"handel"!==e.key?a.push(e):s.push(e)})),null===o||void 0===o||o.forEach((function(e,t){"handel"!==e.key?a.push(e):s.push(e)})),this.creatInitColumnKey([].concat(a,s))}},{key:"showColumns",get:function(){var e=this.state,t=e.showColumnKeys,n=e.showColumns,r={};for(var o in t)r=G(G({},r),{},J({},t[o],!0));this.uuId&&window.localStorage.setItem("table_"+this.uuId,JSON.stringify(t));var i=n.filter((function(e){return r[e.key]}));return i}},{key:"getAllColumns",get:function(){var e=this.state.allColumns;return e.filter((function(e){return!e.hide}))}}]),n}(w.a);b([H()],He.prototype,"columns",void 0),b([H()],He.prototype,"data",void 0),b([H()],He.prototype,"keyName",void 0),b([H()],He.prototype,"showFilter",void 0),b([H()],He.prototype,"uuId",void 0),b([H()],He.prototype,"hidePage",void 0),b([H()],He.prototype,"checked",void 0),b([H()],He.prototype,"reserveSelection",void 0),b([H()],He.prototype,"height",void 0),b([H()],He.prototype,"maxHeight",void 0),b([H()],He.prototype,"rowKey",void 0),b([H()],He.prototype,"stripe",void 0),b([H()],He.prototype,"border",void 0),b([H()],He.prototype,"size",void 0),b([H()],He.prototype,"fit",void 0),b([H()],He.prototype,"showHeader",void 0),b([H()],He.prototype,"rowClassName",void 0),b([H()],He.prototype,"selectable",void 0),b([H()],He.prototype,"currentRowKey",void 0),b([H()],He.prototype,"highlightCurrentRow",void 0),b([H()],He.prototype,"rowStyle",void 0),b([H()],He.prototype,"hideOrder",void 0),b([H()],He.prototype,"pageInfo",void 0),b([H()],He.prototype,"emptyText",void 0),b([H()],He.prototype,"headerRowStyle",void 0),b([H()],He.prototype,"headerRowClassName",void 0),b([H()],He.prototype,"headerCellClassName",void 0),b([H()],He.prototype,"headerCellStyle",void 0),b([H()],He.prototype,"pagination",void 0),b([Q("pageInfo")],He.prototype,"setPageInfo",null),b([Q("columns")],He.prototype,"setColumns",null),He=b([z({name:"HtTable",components:{PageInfo:De,HtUploadFiles:Ue}})],He);var Qe=He,Ve=Qe,We=ae(Ve,Oe,Re,!1,null,"75b39ff2",null),Je=We.exports;Je.install=function(e){e.component("HtTable",Je)};var Ke=Je,Ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{directives:[{name:"loading",rawName:"v-loading",value:e.state.loading,expression:"state.loading"}],on:{click:e.exportExcel}},[e._t("default",[n("el-button",{attrs:{type:"primary"}},[e._v(" 导出Excel ")])],{loading:e.state.loading})],2)},Ze=[];n("2b3d");w.a.config.productionTip=!1;var Xe=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1},e}return u(n,[{key:"exportExcel",value:function(){var e=this;if(!1!==this.exportBefore){this.state.loading=!0;var t=this.fileName||"未知文件名.xlsx",n={responseType:"blob",params:{}};this.params&&(n=this.params),this.url&&("post"===this.method?de.post(this.url,n,{responseType:"blob"}).then((function(n){var r=n.data;if(!e.fileName){var o=n.headers["content-disposition"];if(!o)return void e.$notify.warning("暂无数据导出");t=decodeURIComponent(o.split("filename*=UTF-8")[1]).replace("''","")}var i=new Blob([r]);if("download"in document.createElement("a")){var a=document.createElement("a");a.download=t,a.style.display="none",a.href=URL.createObjectURL(i),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}else navigator.msSaveBlob(i,t)})).finally((function(){e.state.loading=!1})):de.get(this.url,{responseType:"blob",params:n}).then((function(n){var r=n.data;if(!e.fileName){var o=n.headers["content-disposition"];t=decodeURIComponent(o.split("filename*=UTF-8")[1]).replace("''","")}var i=new Blob([r]);if("download"in document.createElement("a")){var a=document.createElement("a");a.download=t,a.style.display="none",a.href=URL.createObjectURL(i),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}else navigator.msSaveBlob(i,t)})).finally((function(){e.state.loading=!1})))}}}]),n}(w.a);b([H()],Xe.prototype,"method",void 0),b([H()],Xe.prototype,"url",void 0),b([H()],Xe.prototype,"params",void 0),b([H()],Xe.prototype,"fileName",void 0),b([H()],Xe.prototype,"exportBefore",void 0),Xe=b([z],Xe);var Ye=Xe,et=Ye,tt=ae(et,Ge,Ze,!1,null,"23fd9fd2",null),nt=tt.exports;nt.install=function(e){e.component("HtExport",nt)};var rt=nt,ot=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"files-view"},[n("el-upload",{class:{"only-show":e.onlyShow},attrs:{action:"/files/api/filing/file/upload","on-success":e.handleSuccess,accept:e.state.accept,"before-upload":e.handelBeforeLoad,headers:e.headers,"file-list":e.state.fileData.fileList,"list-type":"picture-card",multiple:"",disabled:e.onlyShow},scopedSlots:e._u([{key:"file",fn:function(t){var r=t.file;return n("div",{attrs:{title:r.fileName}},[r.fileType&&r.fileType.includes("image")?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:"/files/api/filing/file/download/"+r.fileToken,alt:r.fileName,fit:"fill"}}):n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.showIcon(r),alt:r.fileName,fit:"fill"}}),n("span",{staticClass:"el-upload-list__item-actions"},[r.fileType&&r.fileType.includes("image")?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(r)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.state.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleDownload(r)}}},[n("i",{staticClass:"el-icon-download"})]),e.state.disabled||e.onlyShow?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(r)}}},[n("i",{staticClass:"el-icon-delete"})])])])}}])},[n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),n("el-dialog",{attrs:{visible:e.state.dialogVisible,"modal-append-to-body":!1,modal:!1,"append-to-body":!0},on:{"update:visible":function(t){return e.$set(e.state,"dialogVisible",t)}}},[n("article",{staticStyle:{height:"calc(100vh - 200px)",overflow:"auto"}},[n("img",{attrs:{src:e.state.dialogImageUrl,alt:""}})])])],1)},it=[];n("baa5"),n("fb6a");function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function st(e){if(Array.isArray(e))return at(e)}n("a630");function lt(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function ct(e,t){if(e){if("string"===typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}function ut(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pt(e){return st(e)||lt(e)||ct(e)||ut()}var ft=n("fd57"),dt=n.n(ft),ht=n("cb77"),gt=n.n(ht),mt=n("5a7d"),_t=n.n(mt),vt=n("b902"),bt=n.n(vt),yt=n("1683"),wt=n.n(yt),kt=n("35ba"),xt=n.n(kt),Ct=n("8a0c"),St=n.n(Ct),At=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,accept:".png, .jpg, .jpeg,.mp4,.pdf,.doc,.docx,.txt,.ppt,.pptx,.xls,.xlsx,.gif",fileData:{file:void 0,fileList:[]},dialogImageUrl:"",dialogVisible:!1,disabled:!1},e}return u(n,[{key:"created",value:function(){this.tokens&&(this.state.fileData.fileList=pt(this.tokens)),this.accept&&(this.state.accept=this.accept)}},{key:"showIcon",value:function(e,t){var n=e.fileName||"",r=e.fileType,o=St.a;return(null===n||void 0===n?void 0:n.lastIndexOf(".docx"))>-1&&(o=_t.a),(null===n||void 0===n?void 0:n.lastIndexOf(".pptx"))>-1&&(o=wt.a),r?(r.includes("video")&&(o=dt.a),r.includes("doc")&&(o=_t.a),(r.includes("excel")||r.includes("sheet"))&&(o=xt.a),r.includes("pdf")&&(o=gt.a),r.includes("text")&&(o=bt.a),r.includes("ppt")&&(o=wt.a),o):o}},{key:"handleSuccess",value:function(e,t,n){var r=this;n.forEach((function(e){if(e.url){var n,o={fileName:e.name,fileSize:e.size,fileToken:null===(n=e.response)||void 0===n?void 0:n.fileToken,fileType:e.raw.type,id:e.uid.toString()};r.state.fileData.fileList.push(G({},o)),e.uid==t.uid&&(r.state.fileData.file=G({},o))}})),this.$emit("change",this.state.fileData)}},{key:"handleRemove",value:function(e){var t=this.state.fileData.fileList.findIndex((function(t){return t.id==e.id}));t>=0&&(this.state.fileData.file=G({},e),this.state.fileData.fileList.splice(t,1),this.$emit("change",this.state.fileData))}},{key:"handlePictureCardPreview",value:function(e){this.state.dialogImageUrl="/files/api/filing/file/download/".concat(e.fileToken),this.state.dialogVisible=!0}},{key:"handelBeforeLoad",value:function(e){var t=e.name.lastIndexOf("."),n=e.name.slice(t+1),r=["mp4","avi","pdf","doc","docx","txt","ppt","pptx","png","gif","jpg","xls","xlsx"];return!!r.includes(n)||(this.$notify.warning("上传格式不正确"),!1)}},{key:"handleDownload",value:function(e){var t="/files/api/filing/file/download/".concat(e.fileToken),n=document.createElement("a");n.href=t,n.download="".concat(e.fileName),n.click(),window.URL.revokeObjectURL(t)}},{key:"onToken",value:function(){this.state.fileData.fileList=pt(this.tokens)}},{key:"headers",get:function(){return{_tenant:ne.getCookie("__tenant"),Authorization:"Bearer"+ne.getCookie("Abp.AuthToken")}}}]),n}(w.a);b([H({default:!1})],At.prototype,"onlyShow",void 0),b([H()],At.prototype,"tokens",void 0),b([H()],At.prototype,"accept",void 0),b([Q("tokens")],At.prototype,"onToken",null),At=b([z],At);var Et=At,Tt=Et,It=(n("6344"),ae(Tt,ot,it,!1,null,null,null)),jt=It.exports;jt.install=function(e){e.component("HtUpload",jt)};var Dt=jt,Lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("mavon-editor",{ref:"md",attrs:{subfield:e.subfield,default_open:"{}",placeholder:e.placeholder,editable:!e.disabled},on:{save:e.save,imgAdd:e.addImg,change:e.change},model:{value:e.state.content,callback:function(t){e.$set(e.state,"content",t)},expression:"state.content"}})},Ot=[],Rt=n("b2d8"),Ft=n.n(Rt);n("64e1");w.a.use(Ft.a);var qt=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,content:""},e}return u(n,[{key:"created",value:function(){this.state.content=this.value}},{key:"addImg",value:function(e,t){var n=this;if(this.changImg)this.$emit("callBackImg",e,t);else{var r=new FormData;r.append("file",t),de({url:"/files/api/filing/file/upload",method:"post",data:r,headers:{"Content-Type":"multipart/form-data"}}).then((function(t){200===t.status&&n.$refs.md.$img2Url(e,"/files/api/filing/file/download/".concat(t.data.fileToken))}))}}},{key:"change",value:function(e,t){this.$emit("input",e),this.$emit("change",e,t)}},{key:"save",value:function(e,t){this.$emit("save",e,t)}},{key:"onContent",value:function(e){this.state.content=e}}]),n}(w.a);b([H()],qt.prototype,"changImg",void 0),b([H()],qt.prototype,"disabled",void 0),b([H()],qt.prototype,"value",void 0),b([H()],qt.prototype,"placeholder",void 0),b([H()],qt.prototype,"subfield",void 0),b([Q("value",{deep:!0})],qt.prototype,"onContent",null),qt=b([z],qt);var Mt=qt,Pt=Mt,Bt=ae(Pt,Lt,Ot,!1,null,"1bb3f330",null),Nt=Bt.exports;Nt.install=function(e){e.component("HtMd",Nt)};var zt=Nt,$t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("span",[e._t("default",[n("span",[e._v(e._s(e.dateLess()))])],{time:parseInt(e.state.count.toString()),timeStr:e.dateLess()})],2)])},Ut=[],Ht=(n("b680"),function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,count:0},e.timer=void 0,e}return u(n,[{key:"created",value:function(){if(this.stopwatch)this.startStopWatch(!0);else if(this.times&&(this.state.count=this.times),this.date){var e=(new Date(this.date).getTime()-(new Date).getTime())/1e3;this.state.count=e>0?e:0}}},{key:"startStopWatch",value:function(e){var t=this;e&&(this.state.count=0),this.timer=setInterval((function(){t.state.count=parseFloat((t.state.count+t.getFrequency/1e3).toFixed(5))}),this.getFrequency)}},{key:"reset",value:function(){this.times&&(clearInterval(this.timer),this.state.count=this.times,this.getTimer()),this.stopwatch&&(clearInterval(this.timer),this.startStopWatch(!0))}},{key:"getTimer",value:function(){var e=this;this.timer=setInterval((function(){e.state.count--,0===e.state.count&&clearInterval(e.timer)}),this.getFrequency)}},{key:"dateLess",value:function(){var e=this.state.count;if(this.stopwatch)return e;if(!e)return"--";var t=parseInt((e/86400).toString()),n=e-24*t*60*60,r=parseInt((n/3600).toString()),o=e-24*t*60*60-60*r*60,i=parseInt((o/60).toString()),a=parseInt((e-24*t*60*60-60*r*60-60*i).toString());function s(e){return e>9?e:"0"+e}return t?t+"天"+s(r)+"小时"+s(i)+"分"+s(a)+"秒":r?s(r)+"小时"+s(i)+"分"+s(a)+"秒":i?s(i)+"分"+s(a)+"秒":s(a)+"秒"}},{key:"onStart",value:function(e){if(!1!==e){if(this.date){var t=(new Date(this.date).getTime()-(new Date).getTime())/1e3;this.state.count=t>0?t:0}if(this.stopwatch)this.startStopWatch(!1);else{if(!this.date&&!this.times)return void this.$notify.error("请先传入完成的参数");this.getTimer()}}else clearInterval(this.timer)}},{key:"getFrequency",get:function(){return this.frequency||1e3}}]),n}(w.a));b([H()],Ht.prototype,"date",void 0),b([H()],Ht.prototype,"times",void 0),b([H()],Ht.prototype,"start",void 0),b([H()],Ht.prototype,"stopwatch",void 0),b([H()],Ht.prototype,"frequency",void 0),b([Q("start",{deep:!0,immediate:!0})],Ht.prototype,"onStart",null),Ht=b([z],Ht);var Qt=Ht,Vt=Qt,Wt=ae(Vt,$t,Ut,!1,null,"6d5cd250",null),Jt=Wt.exports;Jt.install=function(e){e.component("HtCountDown",Jt)};var Kt=Jt;Ue.install=function(e){e.component("HtUploadFiles",Ue)};var Gt=Ue,Zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.readonly?n("div",[this.value?n("common-datas-info-id",{tag:"div",attrs:{"com-style":"font-size:12px","hide-code":e.hideCode,"base-data-id":this.value,"base-data-info":!0}}):e._e()],1):[e.dataTypeId?n("common-datas-info",{tag:"div",attrs:{disabled:e.disabled,"com-style":"background:#fff","config-json":e.configJson},on:{change:e.getCommonData}}):n("el-select",{staticStyle:{width:"100%"},attrs:{value:"",disabled:e.disabled,placeholder:"请选择"}})]],2)},Xt=[],Yt=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,value:""},e}return u(n,[{key:"created",value:function(){this.state.value=this.value}},{key:"getCommonData",value:function(e){var t=e.detail[0],n=t[this.dataTypeId][0]["id"];this.$emit("input",n),this.$emit("change",n,t[this.dataTypeId][0])}},{key:"onValue",value:function(e){this.state.value=e}},{key:"configJson",get:function(){var e=this.dataTypeId,t=void 0===e?"":e,n=this.value,r={};return r[t]={name:"cece",show:!0,clearable:this.clearable,disabled:this.disabled,showAllLevels:this.showAllLevels,multiple:this.multiple,code:t,data:{},checkStrictly:this.checkStrictly,panel:!1,key:n},JSON.stringify(r)}}]),n}(w.a);b([H()],Yt.prototype,"value",void 0),b([H({default:!1})],Yt.prototype,"disabled",void 0),b([H({default:!1})],Yt.prototype,"readonly",void 0),b([H()],Yt.prototype,"dataTypeId",void 0),b([H()],Yt.prototype,"hideCode",void 0),b([H({default:!1})],Yt.prototype,"clearable",void 0),b([H({default:!1})],Yt.prototype,"multiple",void 0),b([H({default:!1})],Yt.prototype,"checkStrictly",void 0),b([H({default:!0})],Yt.prototype,"showAllLevels",void 0),b([Q("value")],Yt.prototype,"onValue",null),Yt=b([z({name:"HtSelectBaseData"})],Yt);var en=Yt,tn=en,nn=ae(tn,Zt,Xt,!1,null,"41f2a534",null),rn=nn.exports;rn.install=function(e){e.component("HtSelectBaseData",rn)};var on=rn,an=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.readonly?n("span",[e.value?n("common-datas-info-id",{tag:"div",attrs:{"department-id":JSON.stringify([e.value])}}):n("span")],1):n("common-datas-info",{tag:"div",attrs:{disabled:e.disabled,"com-style":"background:#fff","config-json":e.configJson,"com-class":"ht-item-common"},on:{change:e.searchCommonData}})},sn=[],ln=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1},e}return u(n,[{key:"searchCommonData",value:function(e){var t=e.detail[0]["departmentId"],n=void 0;t.length&&(n=t[0].id),this.$emit("input",n),this.$emit("change",n)}},{key:"configJson",get:function(){return JSON.stringify({departmentId:{name:"部门树结构",show:this.show,disabled:this.disabled,showAllLevels:this.showAllLevels,multiple:this.multiple,code:"departmentId",data:{},checkStrictly:this.checkStrictly,panel:this.panel,key:this.value,clearable:this.clearable}})}}]),n}(w.a);b([H()],ln.prototype,"value",void 0),b([H()],ln.prototype,"disabled",void 0),b([H()],ln.prototype,"clearable",void 0),b([H({default:!0})],ln.prototype,"show",void 0),b([H({default:!1})],ln.prototype,"multiple",void 0),b([H({default:!0})],ln.prototype,"showAllLevels",void 0),b([H({default:!0})],ln.prototype,"checkStrictly",void 0),b([H({default:!1})],ln.prototype,"readonly",void 0),b([H({default:!1})],ln.prototype,"panel",void 0),ln=b([z({name:"HtSelectOrg"})],ln);var cn=ln,un=cn,pn=ae(un,an,sn,!1,null,"871afd52",null),fn=pn.exports;fn.install=function(e){e.component("HtSelectOrg",fn)};var dn=fn,hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.readonly?n("span",[e.value?n("common-datas-info-id",{tag:"div",attrs:{"user-id":JSON.stringify([e.value])}}):n("span")],1):n("common-datas-info",{tag:"div",attrs:{disabled:e.disabled,"com-style":"background:#fff","config-json":e.configJson,"com-class":"ht-item-common"},on:{change:e.searchCommonData}})},gn=[],mn=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1},e}return u(n,[{key:"searchCommonData",value:function(e){var t=e.detail[0]["departmentId"],n=void 0;t.length&&(n=t[0].id),this.$emit("input",n),this.$emit("change",n)}},{key:"configJson",get:function(){return JSON.stringify({departmentUser:{name:"部门树结构",show:this.show,disabled:this.disabled,showAllLevels:this.showAllLevels,multiple:this.multiple,code:"departmentUser",data:{},checkStrictly:this.checkStrictly,panel:this.panel,key:this.value,clearable:this.clearable}})}}]),n}(w.a);b([H()],mn.prototype,"value",void 0),b([H()],mn.prototype,"disabled",void 0),b([H()],mn.prototype,"clearable",void 0),b([H({default:!0})],mn.prototype,"show",void 0),b([H({default:!1})],mn.prototype,"multiple",void 0),b([H({default:!0})],mn.prototype,"showAllLevels",void 0),b([H({default:!0})],mn.prototype,"checkStrictly",void 0),b([H({default:!1})],mn.prototype,"readonly",void 0),b([H({default:!1})],mn.prototype,"panel",void 0),mn=b([z({name:"HtSelectUser"})],mn);var _n=mn,vn=_n,bn=ae(vn,hn,gn,!1,null,"884403fc",null),yn=bn.exports;yn.install=function(e){e.component("HtSelectUser",yn)};var wn=yn,kn=[Ce,Le,Ke,rt,Dt,zt,Kt,Gt,on,dn,wn],xn=function e(t){e.installed||kn.map((function(e,n){return t.component(e.options.name||e.name,e)}))};"undefined"!==typeof window&&window.Vue&&xn(window.Vue);var Cn={install:xn,HtSelectTable:Ce,HtPagination:Le,HtTable:Ke,HtExport:rt,HtUpload:Dt,HtMd:zt,HtCountDown:Kt,HtUploadFiles:Gt,HtSelectBaseData:on,HtSelectOrg:dn,HtSelectUser:wn};t["default"]=Cn},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),p=n("1dde"),f=n("ae40"),d=p("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,_=Math.max;r({target:"Array",proto:!0,forced:!d||!h},{slice:function(e,t){var n,r,u,p=l(this),f=s(p.length),d=a(e,f),h=a(void 0===t?f:t,f);if(i(p)&&(n=p.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(p,d,h);for(r=new(void 0===n?Array:n)(_(h-d,0)),u=0;d<h;d++,u++)d in p&&c(r,u,p[d]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fd57:function(e,t,n){e.exports=n.p+"img/vedio.8638f032.png"},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 r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise}})}));
|
|
28
|
+
function k(e){return k="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},k(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){return S(e)||A(e)||E()}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 A(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function T(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function I(e,t){j(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){j(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){j(e,t,n)}))}function j(e,t,n){var r=n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t);r.forEach((function(r){var o=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,o,e,n):Reflect.defineMetadata(r,o,e)}))}var D={__proto__:[]},L=D instanceof Array;function O(e){return function(t,n,r){var o="function"===typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(t){return e(t,n,r)}))}}function R(e){var t=k(e);return null==e||"object"!==t&&"function"!==t}function F(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var o={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(o[e]=r[e])})),o}var q=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function M(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(q.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"===typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return x({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return F(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(t)})),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),i=o instanceof w.a?o.constructor:w.a,a=i.extend(t);return B(a,e,i),T()&&I(a,e),a}var P={prototype:!0,arguments:!0,callee:!0,caller:!0};function B(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!P[r]){var o=Object.getOwnPropertyDescriptor(e,r);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(t,r);if(!L){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!R(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(e,r,i)}}}))}function N(e){return"function"===typeof e?M(e):function(t){return M(t,e)}}N.registerHooks=function(e){q.push.apply(q,C(e))};var z=N;var $="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function U(e,t,n){if($&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var r=Reflect.getMetadata("design:type",t,n);r!==Object&&(e.type=r)}}function H(e){return void 0===e&&(e={}),function(t,n){U(e,t,n),O((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function Q(e,t){void 0===t&&(t={});var n=t.deep,r=void 0!==n&&n,o=t.immediate,i=void 0!==o&&o;return O((function(t,n){"object"!==typeof t.watch&&(t.watch=Object.create(null));var o=t.watch;"object"!==typeof o[e]||Array.isArray(o[e])?"undefined"===typeof o[e]&&(o[e]=[]):o[e]=[o[e]],o[e].push({handler:n,deep:r,immediate:i})}))}var V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.state.loading,expression:"state.loading"}]},[n("header",[n("el-input",{staticClass:"htui-search",attrs:{placeholder:e.searchPlaceholder||"请输入关键字查询"},model:{value:e.state.filterData.Filter,callback:function(t){e.$set(e.state.filterData,"Filter",t)},expression:"state.filterData.Filter"}})],1),n("article",[n("el-table",{ref:"comTable",staticStyle:{width:"100%"},attrs:{height:e.confige.table&&e.confige.table.height?e.confige.table.height:250,"row-key":e.confige.table&&e.confige.table.rowkey?e.confige.table.rowkey:"id",data:e.dataSource,"tooltip-effect":"dark"},on:{"row-click":e.rowClick}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("el-checkbox",{attrs:{value:e.state.checkObj&&e.state.checkObj.id===r.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(t){return n("el-table-column",{key:t.key,attrs:{label:t.title,"show-overflow-tooltip":!0,prop:t.key,width:t.width||120}},[e._t(t.key,[e._v(e._s(t.key))])],2)}))],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)])},W=[];n("4de4"),n("c740"),n("caad"),n("e6cf"),n("a79d"),n("2532"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function J(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,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=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)}})},X=[],Y=(n("cca6"),n("ac1f"),n("466d"),n("a78e")),ee=n.n(Y),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,re=function(e){f(n,e);var t=v(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}(w.a);re=b([z({components:{}})],re);var oe=re,ie=oe;n("019a");function ae(e,t,n,r,o,i,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),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 p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}var se=ae(ie,Z,X,!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 pe={baseURL:ne.baseUrl,timeout:6e4};const fe=ce.a.create(pe);fe.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)})),fe.interceptors.response.use((function(e){return e}),(function(e){return ue(e),console.log(e),Promise.reject(e)}));var de=fe,he=function(e){f(n,e);var t=v(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,r=this.state.dataSource,o=r.findIndex((function(e){return e[null!==t&&void 0!==t?t:"id"]===n}));r.length&&(this.state.checkObj=r[o]),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,r=void 0===n?0:n,o=t.currentPage;this.state.filterData.SkipCount=(o-1)*r,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,r=void 0===n?0:n,o=t.currentPage;this.state.filterData.SkipCount=(o-1)*r,this.getDataSource()}},{key:"getDataSource",value:function(){var e=this,t=this.confige.ajax,n=t.type,r=void 0===n?"get":n,o=t.url,i=t.params,a=t.data;if(this.state.loading=!0,"get"===r){var s={params:G(G({},this.state.filterData),i)};de.get(o,G({},s)).then((function(t){e.topage(t.data)})).catch((function(){e.$notify.error("请求失败")})).finally((function(){e.state.loading=!1}))}else{var l={params:G(G({},this.state.filterData),i),data:G(G({},this.state.filterData),a)};de.post(o,G({},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,r=t.Filter;return n.filter((function(e){return JSON.stringify(e).includes(r)}))}}]),n}(w.a);b([H()],he.prototype,"columns",void 0),b([H()],he.prototype,"searchPlaceholder",void 0),b([H()],he.prototype,"confige",void 0),b([H()],he.prototype,"visible",void 0),b([Q("confige")],he.prototype,"getDataSource",null),he=b([z],he);var ge=he,me=ge,_e=ae(me,V,W,!1,null,"5a58ed06",null),ve=_e.exports,be=(n("45f7"),function(e){f(n,e);var t=v(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,r=n.text||"name";this.state.name=e?e[r]:void 0,this.$emit("change",e,t),t&&(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 e=this.state.show;this.state.visible=!0,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}(w.a));b([H()],be.prototype,"comStyle",void 0),b([H()],be.prototype,"config",void 0),b([H()],be.prototype,"width",void 0),b([H()],be.prototype,"inputWidth",void 0),b([H()],be.prototype,"placeholder",void 0),b([H()],be.prototype,"searchPlaceholder",void 0),b([H()],be.prototype,"columns",void 0),b([Q("config")],be.prototype,"watchConfig",null),be=b([z({name:"HtSelectTable",components:{CommonTable:ve}})],be);var ye=be,we=ye,ke=ae(we,a,s,!1,null,null,null),xe=ke.exports;xe.install=function(e){e.component("HtSelectTable",xe)};var Ce=xe,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-pagination",{attrs:{background:e.background,"hide-on-single-page":e.hideOnSinglePage,disabled:!!e.disabled,small:!!e.small,"current-page":e.state.pageInfo.currentPage,"page-size":e.state.pageInfo.maxResultCount,"page-sizes":e.pageSizes||[10,20,30,40,50,100],layout:e.layout||"total, sizes, prev, pager, next, jumper",total:e.state.pageInfo.totalCount},on:{"current-change":e.handleCurrentChange,"size-change":e.handelSizeChange}})},Ae=[],Ee=(n("a9e3"),function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,pageInfo:{currentPage:1,maxResultCount:10,skipCount:0,totalCount:0}},e}return u(n,[{key:"created",value:function(){this.pageInfo&&this.setpageInfo(this.pageInfo)}},{key:"handleCurrentChange",value:function(e){this.state.pageInfo.currentPage=e||1;var t=this.state.pageInfo,n=t.maxResultCount,r=void 0===n?0:n,o=t.currentPage;this.state.pageInfo.skipCount=(o-1)*r,this.$emit("onchange",this.state.pageInfo)}},{key:"handelSizeChange",value:function(e){this.state.pageInfo.currentPage=1,this.state.pageInfo.maxResultCount=e,this.handleCurrentChange(1)}},{key:"setpageInfo",value:function(e){var t=e;this.state.pageInfo={currentPage:Number(t.currentPage),maxResultCount:Number(t.pageSize),skipCount:Number(t.skipCount),totalCount:Number(t.totalCount)}}}]),n}(w.a));b([H()],Ee.prototype,"comStyle",void 0),b([H()],Ee.prototype,"small",void 0),b([H()],Ee.prototype,"pageInfo",void 0),b([H()],Ee.prototype,"pageSize",void 0),b([H()],Ee.prototype,"skipCount",void 0),b([H()],Ee.prototype,"disabled",void 0),b([H()],Ee.prototype,"background",void 0),b([H()],Ee.prototype,"hideOnSinglePage",void 0),b([H()],Ee.prototype,"pageSizes",void 0),b([H()],Ee.prototype,"layout",void 0),b([Q("pageInfo")],Ee.prototype,"setpageInfo",null),Ee=b([z({name:"HtPagination"})],Ee);var Te=Ee,Ie=Te,je=ae(Ie,Se,Ae,!1,null,null,null),De=je.exports;De.install=function(e){e.component("HtPagination",De)};var Le=De,Oe=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"}],staticStyle:{background:"#fff"}},[n("article",[n("el-table",{ref:"comTable",attrs:{height:e.height,"max-height":e.maxHeight,border:e.border,stripe:void 0===e.stripe||e.stripe,size:e.size||"small",fit:e.fit,"header-row-style":e.headerRowStyle||{background:"var(--primary-92)"},"header-row-class-name":e.headerRowClassName,"header-cell-class-name":e.headerCellClassName,"header-cell-style":e.headerCellStyle,"show-header":e.showHeader,"empty-text":e.emptyText||"暂无数据","row-style":e.rowStyle,"row-class-name":e.rowClassName,"current-row-key":e.currentRowKey,"highlight-current-row":e.highlightCurrentRow,"row-key":e.rowKey||"id",data:e.data,"tooltip-effect":"dark"},on:{"row-click":function(t,n,r){return e.$emit("row-click",t,n,r)},"row-contextmenu":function(t,n,r){return e.$emit("row-contextmenu",t,n,r)},"row-dblclick":function(t,n,r){return e.$emit("row-dblclick",t,n,r)},"header-click":function(t,n){return e.$emit("header-click",t,n)},"header-contextmenu":function(t,n){return e.$emit("header-contextmenu",t,n)},"sort-change":function(t){var n=t.column,r=t.prop,o=t.order;return e.$emit("sort-change",{column:n,prop:r,order:o})},"filter-change":function(t){return e.$emit("filter-change",t)},"current-change":function(t,n){return e.$emit("current-change",t,n)},select:function(t,n){return e.$emit("select",t,n)},"select-all":function(t){return e.$emit("select-all",t)},"selection-change":function(t){return e.$emit("selection-change",t)},"cell-mouse-enter":function(t,n,r,o){return e.$emit("cell-mouse-enter",t,n,r,o)},"cell-mouse-leave":function(t,n,r,o){return e.$emit("cell-mouse-leave",t,n,r,o)},"cell-click":function(t,n,r,o){return e.$emit("cell-click",t,n,r,o)},"cell-dblclick":function(t,n,r,o){return e.$emit("cell-dblclick",t,n,r,o)}}},[e.checked?n("el-table-column",{attrs:{width:"55",resizable:!1,"reserve-selection":e.reserveSelection,selectable:function(t){return!1!==t[e.selectKey]},type:"selection"}}):e._e(),e.hideOrder?e._e():n("el-table-column",{attrs:{resizable:!1,label:void 0===e.keyName?"序号":e.keyName,align:"center",width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row,r=t.column,o=t.$index;return[e._t("body_order",[e._v(" "+e._s((e.state.pageInfo.currentPage-1)*e.state.pageInfo.pageSize+(o+1))+" ")],{row:n,column:r,$index:o})]}}],null,!0)},[n("template",{slot:"header"},[e._t("header_order",[e.showFilter?n("div",{attrs:{title:"筛选排序"},on:{click:e.showFilterModel}},[n("el-button",{attrs:{type:"text"}},[n("i",{staticClass:"el-icon-s-grid"})])],1):n("span",[e._v(e._s(e.keyName||"序号"))])])],2)],2),e._l(e.state.showColumns,(function(t,r){return[!t.hide&&t.checked?n("el-table-column",{key:t.key+"_"+r,attrs:{label:t.title,fixed:t.fixed,align:t.align,resizable:t.resizable,"header-align":t.headerAlign,"column-key":t.columnKey,"class-name":t.className,prop:t.key,"show-overflow-tooltip":"common"!==t.type&&"org"!==t.type&&"userId"!==t.type&&!1!==t.showOverflowTooltip,sortable:t.sortable,"sort-method":t.sortMethod,"sort-orders":t.sortOrders,formatter:t.formatter,"sort-by":t.sortBy,"min-width":t.minWidth,width:t.width},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.row,i=r.column,a=r.rowIndex;return[e._t(t.key,["org"===t.type?[e.getPropByPath(o,t.key)?n("common-org-info",{attrs:{"org-id":e.getPropByPath(o,t.key),type:"tag"}}):n("span",[e._v("--")])]:"common"===t.type?[e.getPropByPath(o,t.key)?n("common-datas-info-id",{tag:"div",attrs:{"hide-code":t.hideCode,"user-id":"userId"===t.commonType?JSON.stringify([e.getPropByPath(o,t.key)]):"[]","department-id":"departmentId"===t.commonType?JSON.stringify([e.getPropByPath(o,t.key)]):"[]","role-id":"roleId"===t.commonType?JSON.stringify([e.getPropByPath(o,t.key)]):"[]","base-data-id":"baseDataId"===t.commonType?e.getPropByPath(o,t.key):"","base-data-value":"baseDataValue"===t.commonType?e.getPropByPath(o,t.key):"","base-data-name":"baseDataName"===t.commonType?e.getPropByPath(o,t.key):"","base-data-info":!0}}):n("span",[e._v("--")])]:"userId"===t.type?[e.getPropByPath(o,t.key)?n("common-datas-info-id",{tag:"div",attrs:{"user-id":JSON.stringify(e.getPropByPath(o,t.key)),"base-data-info":!0}}):n("span",[e._v("--")])]:"time"===t.type?[e.getPropByPath(o,t.key)?n("div",{staticClass:"ht-column-cell"},[t.spread?[n("p",{staticStyle:{color:"var(--primary)",margin:"0",padding:"0"}},[e._v(e._s(e.getPropByPath(o,t.key).slice(11,19)))]),n("p",{staticStyle:{margin:"0",padding:"0"}},[e._v(e._s(e.getPropByPath(o,t.key).replace("T"," ").slice(0,10)))])]:n("span",[e._v(" "+e._s(e.getPropByPath(o,t.key).replace("T"," ").slice(0,19)))])],2):n("span",[e._v("--")])]:"boolean"===t.type?[e.getPropByPath(o,t.key)?n("el-tag",{attrs:{type:"success",size:"small"}},[e._v("是")]):n("el-tag",{attrs:{type:"danger",size:"small"}},[e._v("否")])]:"img"===t.type?[e.getPropByPath(o,t.key)?n("span",e._l(e.getPropByPath(o,t.key).split(","),(function(e){return n("el-image",{key:e,staticStyle:{width:"38px",height:"38px","margin-right":"5px"},attrs:{src:"/files/api/filing/file/download/"+e,"preview-src-list":["/files/api/filing/file/download/"+e]}})})),1):e._e()]:"file"===t.type?[e.getPropByPath(o,t.key)?n("span",[n("i",{staticClass:"el-icon-paperclip",staticStyle:{color:"var(--primary)",cursor:"pointer"},on:{click:function(n){e.showFiles(e.getPropByPath(o,t.key))}}},[e._v(e._s(e.getPropByPath(o,t.key).split(",").length))])]):n("span",[e._v("--")])]:n("span",[e._v(e._s(e.getPropByPath(o,t.key)))])],{row:o,column:i,rowIndex:a})]}},{key:"header",fn:function(n){var r=n.column,o=n.$index;return[e._t("header_"+t.key,[e._v(e._s(t.title))],{column:r,$index:o})]}}],null,!0)}):e._e()]}))],2)],1),e.hidePage?e._e():n("footer",[n("el-row",{attrs:{name:"footer"}},[e._t("footerLeft"),n("el-col",{attrs:{span:12}},[n("PageInfo",{attrs:{"hide-on-single-page":e.pagination&&e.pagination.hideOnSinglePage,small:e.pagination&&e.pagination.small,"page-sizes":e.pagination&&e.pagination.pageSizes,"page-info":e.state.pageInfo},on:{onchange:function(t){return e.$emit("onchange",t)}}})],1)],2)],1),n("el-dialog",{attrs:{visible:e.state.visibleFilter,title:"属性设置","append-to-body":!0,"close-on-click-modal":!0,width:"400px"},on:{"update:visible":function(t){return e.$set(e.state,"visibleFilter",t)}}},[n("p",{staticStyle:{"font-weight":"700","font-size":"18px",float:"left",margin:"0"},attrs:{slot:"title"},slot:"title"},[e._v("自定义列展示")]),n("div",{staticStyle:{overflow:"hidden",height:"35vh","margin-top":"12px"}},[n("el-scrollbar",{staticStyle:{height:"calc(35vh + 17px)"}},[n("el-tree",{ref:"tree",attrs:{data:e.getAllColumns,"show-checkbox":"","expand-on-click-node":!1,"node-key":"key","check-on-click-node":!1,"default-checked-keys":e.state.checkedColumnKeys,"allow-drag":e.allowDrag,draggable:"","allow-drop":e.allowDrop},on:{"node-drag-start":e.handleDragStart,"node-drag-enter":e.handleDragEnter,"node-drag-leave":e.handleDragLeave,"node-drag-over":e.handleDragOver,"node-drag-end":e.handleDragEnd,"node-drop":e.handleDrop,"check-change":e.changeColumns},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var r=t.data;return n("span",{staticClass:"custom-tree-node"},[e._t("header_"+r.key,[e._v(e._s(r.title)),n("span",{staticStyle:{color:"#C0C4CC"}},[e._v(e._s(r.property?"("+r.property+")":""))])],{column:r})],2)}}],null,!0)})],1)],1),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.confirmSortAndshow}},[e._v("确定")]),n("el-button",{on:{click:function(t){e.state.visibleFilter=!1}}},[e._v("取消")]),n("el-button",{on:{click:e.resetColumn}},[e._v("重置")])],1)]),n("el-dialog",{attrs:{visible:e.state.visibleFile,title:"附件查看","append-to-body":!0,"close-on-click-modal":!0,width:"400px",center:!0},on:{"update:visible":function(t){return e.$set(e.state,"visibleFile",t)}}},[n("p",{staticStyle:{"font-weight":"700","font-size":"18px",float:"left",margin:"0"},attrs:{slot:"title"},slot:"title"},[e._v("附件查看")]),n("div",{staticStyle:{overflow:"hidden",height:"calc(30vh)"}},[n("el-scrollbar",{staticStyle:{height:"calc(100% + 17px)"}},[n("HtUploadFiles",{attrs:{disabled:!0},model:{value:e.state.files,callback:function(t){e.$set(e.state,"files",t)},expression:"state.files"}})],1)],1)])],1)},Re=[],Fe=(n("99af"),n("5319"),n("1276"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?e._e():n("el-upload",{staticClass:"ht-upload",staticStyle:{width:"368px",height:"108px"},attrs:{"show-file-list":!1,disabled:e.disabled,"on-success":e.onSuccess,"before-upload":e.beforeUpload,drag:"",action:"/files/api/filing/file/upload",multiple:""}},[n("div",{staticClass:"el-upload__text",staticStyle:{"margin-top":"8px","font-size":"12px",color:"#999"}},[e._v("拖动文件到此处,或"),n("br"),n("em",[e._v("点击上传")])])]),n("ul",{staticClass:"ht-ul-upload"},e._l(e.state.filesInfo,(function(t,r){return n("li",{key:t.fileToken},[n("a",{on:{click:function(n){return e.downLoadFile(t)}}},[n("i",{staticClass:"le-icon el-icon-document",staticStyle:{"margin-right":"7px"}}),e._v(e._s(t.fileName))]),n("span",[e.disabled?e._e():n("i",{staticClass:"el-icon el-icon-circle-check"}),e.disabled?e._e():n("i",{staticClass:"el-icon el-icon-close",attrs:{title:"删除"},on:{click:function(n){return e.delItem(t,r)}}}),n("i",{staticClass:"el-icon el-icon-download",staticStyle:{"margin-right":"24px"},attrs:{title:"下载"},on:{click:function(n){return e.downLoadFile(t)}}})])])})),0),n("a",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"download1",attrs:{href:e.state.fileSrc,target:"_blank"}})],1)}),qe=[];n("a434"),n("96cf");function Me(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,s,"next",e)}function s(e){Me(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Be=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,fileSrc:"",fileToken:[],filesInfo:[],dialogVisible:!1},e}return u(n,[{key:"created",value:function(){this.onValue(this.value)}},{key:"beforeUpload",value:function(e){var t=e.size/1024/1024<5,n=["jpg","png","xlsx","lsx","doc","pdf"],r=e.name.split("."),o=r[r.length-1];return t||this.$message.error("大小不能超过 5MB!"),!!n.includes(o)||(this.$notify.error("只能上传".concat(n.toString(),"格式文件")),!1)}},{key:"downLoadFile",value:function(e){var t=this;this.state.fileSrc="/files/api/filing/file/download/".concat(e.fileToken),setTimeout((function(){var e=t.$refs.download1;e.click()}),100)}},{key:"onSuccess",value:function(e){this.getFileInfo(e.fileToken)}},{key:"getFileInfo",value:function(e){var t=this;de.get("/files/api/filing/file/"+e).then((function(e){t.state.filesInfo.push(e.data)}))}},{key:"delItem",value:function(e,t){var n=this.state.filesInfo;e.fileToken&&(n.splice(t,1),this.state.filesInfo=n)}},{key:"getAllFileInfo",value:function(){var e=Pe(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.state.fileToken,n=regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(o.state.filesInfo.findIndex((function(e){return e.fileToken===t[n]}))<0)){e.next=3;break}return e.next=3,de.get("/files/api/filing/file/"+t[n]).then((function(e){o.state.filesInfo.push(e.data)}));case 3:case"end":return e.stop()}}),e)})),r=0;case 3:if(!(r<t.length)){e.next=8;break}return e.delegateYield(n(r),"t0",5);case 5:r++,e.next=3;break;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFileToken",value:function(e,t){if(!this.readonly&&!this.isArray){var n=[];e.forEach((function(e){e.fileToken&&n.push(e.fileToken)})),this.$emit("input",n.toString()),this.$emit("change",n.toString())}this.isArray&&this.$emit("change",e)}},{key:"onArrValue",value:function(e){this.isArray&&(this.state.filesInfo=e||[])}},{key:"onValue",value:function(e){e&&!this.isArray?(this.state.fileToken=e.split(","),this.getAllFileInfo()):(this.state.fileToken=[],this.filesInfo&&this.filesInfo.length&&(this.state.filesInfo=this.filesInfo))}},{key:"fileList",get:function(){return[]}}]),n}(w.a);b([H()],Be.prototype,"value",void 0),b([H({default:!1})],Be.prototype,"readonly",void 0),b([H()],Be.prototype,"disabled",void 0),b([H({default:!1})],Be.prototype,"isArray",void 0),b([H()],Be.prototype,"filesInfo",void 0),b([Q("state.filesInfo")],Be.prototype,"onFileToken",null),b([Q("filesInfo",{immediate:!0})],Be.prototype,"onArrValue",null),b([Q("value")],Be.prototype,"onValue",null),Be=b([z({name:"HtUploadFiles"})],Be);var Ne=Be,ze=Ne,$e=(n("d5e9"),ae(ze,Fe,qe,!1,null,"443585d4",null)),Ue=$e.exports,He=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,files:void 0,pageInfo:{currentPage:1,pageSize:10,skipCount:0,totalCount:0},showColumns:[],allColumns:[],currentColumn:void 0,visibleFilter:!1,visibleFile:!1,showColumnKeys:[],checkedColumnKeys:[]},e}return u(n,[{key:"created",value:function(){if(this.setPageInfo(this.pageInfo),this.uuId){var e=window.localStorage.getItem("table_"+this.uuId);e?(this.state.allColumns=JSON.parse(e),this.state.showColumns=JSON.parse(e),this.getShowKeys(this.state.allColumns)):this.configShow?(this.columns.forEach((function(e){return e.checked=!!e.deafaultShow})),this.creatInitColumnKey(this.columns)):this.creatInitColumnKey(this.columns||[])}else this.configShow?(this.columns.forEach((function(e){return e.checked=!!e.deafaultShow})),this.creatInitColumnKey(this.columns)):this.creatInitColumnKey(this.columns||[]);console.log("this.columns",this.columns)}},{key:"resetColumn",value:function(){this.configShow?(this.columns.forEach((function(e){e.checked=!!e.deafaultShow})),this.creatInitColumnKey(this.columns)):this.creatInitColumnKey(this.columns||[]),this.state.visibleFilter=!1,this.uuId&&window.localStorage.setItem("table_"+this.uuId,JSON.stringify(this.columns||[]))}},{key:"getShowKeys",value:function(e){var t=[];e.forEach((function(e){e.checked&&t.push(e.key)})),this.state.showColumnKeys=t}},{key:"creatInitColumnKey",value:function(e){var t=this;this.state.allColumns=e,this.state.showColumns=e,this.state.allColumns.forEach((function(e){e.checked=!1!==e.checked})),this.$nextTick((function(){t.$refs.comTable.doLayout()})),this.getShowKeys(this.state.allColumns)}},{key:"showFiles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.state.files=e,this.state.visibleFile=!0}},{key:"handleDragStart",value:function(e){this.state.currentColumn=e.data}},{key:"handleDragEnter",value:function(){}},{key:"handleDragLeave",value:function(){}},{key:"handleDragOver",value:function(){}},{key:"handleDragEnd",value:function(e,t,n){var r=this,o=this.state,i=(o.showColumns,o.currentColumn),a=o.checkedColumnKeys;i&&a.includes(i.key)&&setTimeout((function(){r.$refs.tree.setChecked(i,!0)}),0)}},{key:"handleDrop",value:function(){}},{key:"allowDrop",value:function(e,t,n){return"inner"!==n}},{key:"allowDrag",value:function(e){return!e.data.disabled}},{key:"getPropByPath",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var o=t.split("."),i=0,a=o.length;i<a-1;++i){if(!r&&!n)break;var s=o[i];if(!(s in r)){if(n)throw new Error("table中".concat(t,"字段发生错误,请检查"));break}r=r[s]}return r?r[o[i]]:null}},{key:"showFilterModel",value:function(){this.state.visibleFilter=!0,this.state.checkedColumnKeys=this.state.showColumnKeys,this.state.allColumns=JSON.parse(JSON.stringify(this.state.showColumns))}},{key:"changeColumns",value:function(e,t){var n=this.state.checkedColumnKeys;t?n.push(e.key):n=n.filter((function(t){return t!==e.key})),this.state.checkedColumnKeys=n}},{key:"confirmSortAndshow",value:function(){var e=this;this.state.loading=!0,this.state.showColumns=[],this.state.allColumns=this.getAllColumns;var t=this.state,n=t.allColumns,r=t.checkedColumnKeys;n.forEach((function(e){return e.checked=r.includes(e.key)})),this.state.showColumnKeys=r,this.uuId&&window.localStorage.setItem("table_"+this.uuId,JSON.stringify(n)),this.state.showColumns=n,this.state.visibleFilter=!1,this.state.loading=!1,this.$nextTick((function(){e.$refs.comTable.doLayout()})),this.$emit("customColumn",n)}},{key:"setPageInfo",value:function(e){if(e){var t=e;this.state.pageInfo={currentPage:Number(t.currentPage),pageSize:Number(t.pageSize),skipCount:Number(t.skipCount),totalCount:Number(t.totalCount)}}}},{key:"setColumns",value:function(e){var t=this.state.showColumns,n={},r={};t.forEach((function(e){n=G(G({},n),{},J({},e.key,!0))})),null===e||void 0===e||e.forEach((function(e){r=G(G({},r),{},J({},e.key,!0))}));var o=null===e||void 0===e?void 0:e.filter((function(e){return!n[e.key]})),i=null===t||void 0===t?void 0:t.filter((function(e){return r[e.key]})),a=[],s=[];i.forEach((function(e,t){"handel"!==e.key?a.push(e):s.push(e)})),null===o||void 0===o||o.forEach((function(e,t){"handel"!==e.key?a.push(e):s.push(e)})),this.creatInitColumnKey([].concat(a,s))}},{key:"showColumns",get:function(){var e=this.state,t=e.showColumnKeys,n=e.showColumns,r={};for(var o in t)r=G(G({},r),{},J({},t[o],!0));this.uuId&&window.localStorage.setItem("table_"+this.uuId,JSON.stringify(t));var i=n.filter((function(e){return r[e.key]}));return i}},{key:"getAllColumns",get:function(){var e=this.state.allColumns;return e.filter((function(e){return!e.hide}))}}]),n}(w.a);b([H({default:[]})],He.prototype,"columns",void 0),b([H()],He.prototype,"data",void 0),b([H()],He.prototype,"keyName",void 0),b([H()],He.prototype,"configShow",void 0),b([H()],He.prototype,"showFilter",void 0),b([H()],He.prototype,"uuId",void 0),b([H()],He.prototype,"hidePage",void 0),b([H()],He.prototype,"reserveSelection",void 0),b([H()],He.prototype,"height",void 0),b([H()],He.prototype,"maxHeight",void 0),b([H()],He.prototype,"rowKey",void 0),b([H()],He.prototype,"stripe",void 0),b([H()],He.prototype,"border",void 0),b([H()],He.prototype,"size",void 0),b([H()],He.prototype,"fit",void 0),b([H()],He.prototype,"showHeader",void 0),b([H()],He.prototype,"rowClassName",void 0),b([H()],He.prototype,"checked",void 0),b([H({default:"selectable"})],He.prototype,"selectKey",void 0),b([H()],He.prototype,"selectable",void 0),b([H()],He.prototype,"currentRowKey",void 0),b([H()],He.prototype,"highlightCurrentRow",void 0),b([H()],He.prototype,"rowStyle",void 0),b([H()],He.prototype,"hideOrder",void 0),b([H()],He.prototype,"pageInfo",void 0),b([H()],He.prototype,"emptyText",void 0),b([H()],He.prototype,"headerRowStyle",void 0),b([H()],He.prototype,"headerRowClassName",void 0),b([H()],He.prototype,"headerCellClassName",void 0),b([H()],He.prototype,"headerCellStyle",void 0),b([H()],He.prototype,"pagination",void 0),b([Q("pageInfo")],He.prototype,"setPageInfo",null),b([Q("columns")],He.prototype,"setColumns",null),He=b([z({name:"HtTable",components:{PageInfo:De,HtUploadFiles:Ue}})],He);var Qe=He,Ve=Qe,We=ae(Ve,Oe,Re,!1,null,"4bb8f27a",null),Je=We.exports;Je.install=function(e){e.component("HtTable",Je)};var Ke=Je,Ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{directives:[{name:"loading",rawName:"v-loading",value:e.state.loading,expression:"state.loading"}],on:{click:e.exportExcel}},[e._t("default",[n("el-button",{attrs:{type:"primary"}},[e._v(" 导出Excel ")])],{loading:e.state.loading})],2)},Ze=[];n("2b3d");w.a.config.productionTip=!1;var Xe=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1},e}return u(n,[{key:"exportExcel",value:function(){var e=this;if(!1!==this.exportBefore){this.state.loading=!0;var t=this.fileName||"未知文件名.xlsx",n={responseType:"blob",params:{}};this.params&&(n=this.params),this.url&&("post"===this.method?de.post(this.url,n,{responseType:"blob"}).then((function(n){var r=n.data;if(!e.fileName){var o=n.headers["content-disposition"];if(!o)return void e.$notify.warning("暂无数据导出");t=decodeURIComponent(o.split("filename*=UTF-8")[1]).replace("''","")}var i=new Blob([r]);if("download"in document.createElement("a")){var a=document.createElement("a");a.download=t,a.style.display="none",a.href=URL.createObjectURL(i),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}else navigator.msSaveBlob(i,t)})).finally((function(){e.state.loading=!1})):de.get(this.url,{responseType:"blob",params:n}).then((function(n){var r=n.data;if(!e.fileName){var o=n.headers["content-disposition"];t=decodeURIComponent(o.split("filename*=UTF-8")[1]).replace("''","")}var i=new Blob([r]);if("download"in document.createElement("a")){var a=document.createElement("a");a.download=t,a.style.display="none",a.href=URL.createObjectURL(i),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}else navigator.msSaveBlob(i,t)})).finally((function(){e.state.loading=!1})))}}}]),n}(w.a);b([H()],Xe.prototype,"method",void 0),b([H()],Xe.prototype,"url",void 0),b([H()],Xe.prototype,"params",void 0),b([H()],Xe.prototype,"fileName",void 0),b([H()],Xe.prototype,"exportBefore",void 0),Xe=b([z],Xe);var Ye=Xe,et=Ye,tt=ae(et,Ge,Ze,!1,null,"23fd9fd2",null),nt=tt.exports;nt.install=function(e){e.component("HtExport",nt)};var rt=nt,ot=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"files-view"},[n("el-upload",{class:{"only-show":e.onlyShow},attrs:{action:"/files/api/filing/file/upload","on-success":e.handleSuccess,accept:e.state.accept,"before-upload":e.handelBeforeLoad,headers:e.headers,"file-list":e.state.fileData.fileList,"list-type":"picture-card",multiple:"",disabled:e.onlyShow},scopedSlots:e._u([{key:"file",fn:function(t){var r=t.file;return n("div",{attrs:{title:r.fileName}},[r.fileType&&r.fileType.includes("image")?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:"/files/api/filing/file/download/"+r.fileToken,alt:r.fileName,fit:"fill"}}):n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.showIcon(r),alt:r.fileName,fit:"fill"}}),n("span",{staticClass:"el-upload-list__item-actions"},[r.fileType&&r.fileType.includes("image")?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(r)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.state.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleDownload(r)}}},[n("i",{staticClass:"el-icon-download"})]),e.state.disabled||e.onlyShow?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(r)}}},[n("i",{staticClass:"el-icon-delete"})])])])}}])},[n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),n("el-dialog",{attrs:{visible:e.state.dialogVisible,"modal-append-to-body":!1,modal:!1,"append-to-body":!0},on:{"update:visible":function(t){return e.$set(e.state,"dialogVisible",t)}}},[n("article",{staticStyle:{height:"calc(100vh - 200px)",overflow:"auto"}},[n("img",{attrs:{src:e.state.dialogImageUrl,alt:""}})])])],1)},it=[];n("baa5"),n("fb6a");function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function st(e){if(Array.isArray(e))return at(e)}n("a630");function lt(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function ct(e,t){if(e){if("string"===typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}function ut(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pt(e){return st(e)||lt(e)||ct(e)||ut()}var ft=n("fd57"),dt=n.n(ft),ht=n("cb77"),gt=n.n(ht),mt=n("5a7d"),_t=n.n(mt),vt=n("b902"),bt=n.n(vt),yt=n("1683"),wt=n.n(yt),kt=n("35ba"),xt=n.n(kt),Ct=n("8a0c"),St=n.n(Ct),At=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,accept:".png, .jpg, .jpeg,.mp4,.pdf,.doc,.docx,.txt,.ppt,.pptx,.xls,.xlsx,.gif",fileData:{file:void 0,fileList:[]},dialogImageUrl:"",dialogVisible:!1,disabled:!1},e}return u(n,[{key:"created",value:function(){this.tokens&&(this.state.fileData.fileList=pt(this.tokens)),this.accept&&(this.state.accept=this.accept)}},{key:"showIcon",value:function(e,t){var n=e.fileName||"",r=e.fileType,o=St.a;return(null===n||void 0===n?void 0:n.lastIndexOf(".docx"))>-1&&(o=_t.a),(null===n||void 0===n?void 0:n.lastIndexOf(".pptx"))>-1&&(o=wt.a),r?(r.includes("video")&&(o=dt.a),r.includes("doc")&&(o=_t.a),(r.includes("excel")||r.includes("sheet"))&&(o=xt.a),r.includes("pdf")&&(o=gt.a),r.includes("text")&&(o=bt.a),r.includes("ppt")&&(o=wt.a),o):o}},{key:"handleSuccess",value:function(e,t,n){var r=this;n.forEach((function(e){if(e.url){var n,o={fileName:e.name,fileSize:e.size,fileToken:null===(n=e.response)||void 0===n?void 0:n.fileToken,fileType:e.raw.type,id:e.uid.toString()};r.state.fileData.fileList.push(G({},o)),e.uid==t.uid&&(r.state.fileData.file=G({},o))}})),this.$emit("change",this.state.fileData)}},{key:"handleRemove",value:function(e){var t=this.state.fileData.fileList.findIndex((function(t){return t.id==e.id}));t>=0&&(this.state.fileData.file=G({},e),this.state.fileData.fileList.splice(t,1),this.$emit("change",this.state.fileData))}},{key:"handlePictureCardPreview",value:function(e){this.state.dialogImageUrl="/files/api/filing/file/download/".concat(e.fileToken),this.state.dialogVisible=!0}},{key:"handelBeforeLoad",value:function(e){var t=e.name.lastIndexOf("."),n=e.name.slice(t+1),r=["mp4","avi","pdf","doc","docx","txt","ppt","pptx","png","gif","jpg","xls","xlsx"];return!!r.includes(n)||(this.$notify.warning("上传格式不正确"),!1)}},{key:"handleDownload",value:function(e){var t="/files/api/filing/file/download/".concat(e.fileToken),n=document.createElement("a");n.href=t,n.download="".concat(e.fileName),n.click(),window.URL.revokeObjectURL(t)}},{key:"onToken",value:function(){this.state.fileData.fileList=pt(this.tokens)}},{key:"headers",get:function(){return{_tenant:ne.getCookie("__tenant"),Authorization:"Bearer"+ne.getCookie("Abp.AuthToken")}}}]),n}(w.a);b([H({default:!1})],At.prototype,"onlyShow",void 0),b([H()],At.prototype,"tokens",void 0),b([H()],At.prototype,"accept",void 0),b([Q("tokens")],At.prototype,"onToken",null),At=b([z],At);var Et=At,Tt=Et,It=(n("6344"),ae(Tt,ot,it,!1,null,null,null)),jt=It.exports;jt.install=function(e){e.component("HtUpload",jt)};var Dt=jt,Lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("mavon-editor",{ref:"md",attrs:{subfield:e.subfield,default_open:"{}",placeholder:e.placeholder,editable:!e.disabled},on:{save:e.save,imgAdd:e.addImg,change:e.change},model:{value:e.state.content,callback:function(t){e.$set(e.state,"content",t)},expression:"state.content"}})},Ot=[],Rt=n("b2d8"),Ft=n.n(Rt);n("64e1");w.a.use(Ft.a);var qt=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,content:""},e}return u(n,[{key:"created",value:function(){this.state.content=this.value}},{key:"addImg",value:function(e,t){var n=this;if(this.changImg)this.$emit("callBackImg",e,t);else{var r=new FormData;r.append("file",t),de({url:"/files/api/filing/file/upload",method:"post",data:r,headers:{"Content-Type":"multipart/form-data"}}).then((function(t){200===t.status&&n.$refs.md.$img2Url(e,"/files/api/filing/file/download/".concat(t.data.fileToken))}))}}},{key:"change",value:function(e,t){this.$emit("input",e),this.$emit("change",e,t)}},{key:"save",value:function(e,t){this.$emit("save",e,t)}},{key:"onContent",value:function(e){this.state.content=e}}]),n}(w.a);b([H()],qt.prototype,"changImg",void 0),b([H()],qt.prototype,"disabled",void 0),b([H()],qt.prototype,"value",void 0),b([H()],qt.prototype,"placeholder",void 0),b([H()],qt.prototype,"subfield",void 0),b([Q("value",{deep:!0})],qt.prototype,"onContent",null),qt=b([z],qt);var Mt=qt,Pt=Mt,Bt=ae(Pt,Lt,Ot,!1,null,"1bb3f330",null),Nt=Bt.exports;Nt.install=function(e){e.component("HtMd",Nt)};var zt=Nt,$t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("span",[e._t("default",[n("span",[e._v(e._s(e.dateLess()))])],{time:parseInt(e.state.count.toString()),timeStr:e.dateLess()})],2)])},Ut=[],Ht=(n("b680"),function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,count:0},e.timer=void 0,e}return u(n,[{key:"created",value:function(){if(this.stopwatch)this.startStopWatch(!0);else if(this.times&&(this.state.count=this.times),this.date){var e=(new Date(this.date).getTime()-(new Date).getTime())/1e3;this.state.count=e>0?e:0}}},{key:"startStopWatch",value:function(e){var t=this;e&&(this.state.count=0),this.timer=setInterval((function(){t.state.count=parseFloat((t.state.count+t.getFrequency/1e3).toFixed(5))}),this.getFrequency)}},{key:"reset",value:function(){this.times&&(clearInterval(this.timer),this.state.count=this.times,this.getTimer()),this.stopwatch&&(clearInterval(this.timer),this.startStopWatch(!0))}},{key:"getTimer",value:function(){var e=this;this.timer=setInterval((function(){e.state.count--,0===e.state.count&&clearInterval(e.timer)}),this.getFrequency)}},{key:"dateLess",value:function(){var e=this.state.count;if(this.stopwatch)return e;if(!e)return"--";var t=parseInt((e/86400).toString()),n=e-24*t*60*60,r=parseInt((n/3600).toString()),o=e-24*t*60*60-60*r*60,i=parseInt((o/60).toString()),a=parseInt((e-24*t*60*60-60*r*60-60*i).toString());function s(e){return e>9?e:"0"+e}return t?t+"天"+s(r)+"小时"+s(i)+"分"+s(a)+"秒":r?s(r)+"小时"+s(i)+"分"+s(a)+"秒":i?s(i)+"分"+s(a)+"秒":s(a)+"秒"}},{key:"onStart",value:function(e){if(!1!==e){if(this.date){var t=(new Date(this.date).getTime()-(new Date).getTime())/1e3;this.state.count=t>0?t:0}if(this.stopwatch)this.startStopWatch(!1);else{if(!this.date&&!this.times)return void this.$notify.error("请先传入完成的参数");this.getTimer()}}else clearInterval(this.timer)}},{key:"getFrequency",get:function(){return this.frequency||1e3}}]),n}(w.a));b([H()],Ht.prototype,"date",void 0),b([H()],Ht.prototype,"times",void 0),b([H()],Ht.prototype,"start",void 0),b([H()],Ht.prototype,"stopwatch",void 0),b([H()],Ht.prototype,"frequency",void 0),b([Q("start",{deep:!0,immediate:!0})],Ht.prototype,"onStart",null),Ht=b([z],Ht);var Qt=Ht,Vt=Qt,Wt=ae(Vt,$t,Ut,!1,null,"6d5cd250",null),Jt=Wt.exports;Jt.install=function(e){e.component("HtCountDown",Jt)};var Kt=Jt;Ue.install=function(e){e.component("HtUploadFiles",Ue)};var Gt=Ue,Zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.readonly?n("div",[this.value?n("common-datas-info-id",{tag:"div",attrs:{"com-style":"font-size:12px","hide-code":e.hideCode,"base-data-id":this.value,"base-data-info":!0}}):e._e()],1):[e.dataTypeId?n("common-datas-info",{tag:"div",attrs:{disabled:e.disabled,"com-style":"background:#fff","config-json":e.configJson},on:{change:e.getCommonData}}):n("el-select",{staticStyle:{width:"100%"},attrs:{value:"",disabled:e.disabled,placeholder:"请选择"}})]],2)},Xt=[],Yt=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1,value:""},e}return u(n,[{key:"created",value:function(){this.state.value=this.value}},{key:"getCommonData",value:function(e){var t=e.detail[0],n=t[this.dataTypeId][0]["id"];this.$emit("input",n),this.$emit("change",n,t[this.dataTypeId][0])}},{key:"onValue",value:function(e){this.state.value=e}},{key:"configJson",get:function(){var e=this.dataTypeId,t=void 0===e?"":e,n=this.value,r={};return r[t]={name:"cece",show:!0,clearable:this.clearable,disabled:this.disabled,showAllLevels:this.showAllLevels,multiple:this.multiple,code:t,data:{},checkStrictly:this.checkStrictly,panel:!1,key:n},JSON.stringify(r)}}]),n}(w.a);b([H()],Yt.prototype,"value",void 0),b([H({default:!1})],Yt.prototype,"disabled",void 0),b([H({default:!1})],Yt.prototype,"readonly",void 0),b([H()],Yt.prototype,"dataTypeId",void 0),b([H()],Yt.prototype,"hideCode",void 0),b([H({default:!1})],Yt.prototype,"clearable",void 0),b([H({default:!1})],Yt.prototype,"multiple",void 0),b([H({default:!1})],Yt.prototype,"checkStrictly",void 0),b([H({default:!0})],Yt.prototype,"showAllLevels",void 0),b([Q("value")],Yt.prototype,"onValue",null),Yt=b([z({name:"HtSelectBaseData"})],Yt);var en=Yt,tn=en,nn=ae(tn,Zt,Xt,!1,null,"41f2a534",null),rn=nn.exports;rn.install=function(e){e.component("HtSelectBaseData",rn)};var on=rn,an=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.readonly?n("span",[e.value?n("common-datas-info-id",{tag:"div",attrs:{"department-id":JSON.stringify([e.value])}}):n("span")],1):n("common-datas-info",{tag:"div",attrs:{disabled:e.disabled,"com-style":"background:#fff","config-json":e.configJson,"com-class":"ht-item-common"},on:{change:e.searchCommonData}})},sn=[],ln=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1},e}return u(n,[{key:"searchCommonData",value:function(e){var t=e.detail[0]["departmentId"],n=void 0;t.length&&(n=t[0].id),this.$emit("input",n),this.$emit("change",n)}},{key:"configJson",get:function(){return JSON.stringify({departmentId:{name:"部门树结构",show:this.show,disabled:this.disabled,showAllLevels:this.showAllLevels,multiple:this.multiple,code:"departmentId",data:{},checkStrictly:this.checkStrictly,panel:this.panel,key:this.value,clearable:this.clearable}})}}]),n}(w.a);b([H()],ln.prototype,"value",void 0),b([H()],ln.prototype,"disabled",void 0),b([H()],ln.prototype,"clearable",void 0),b([H({default:!0})],ln.prototype,"show",void 0),b([H({default:!1})],ln.prototype,"multiple",void 0),b([H({default:!0})],ln.prototype,"showAllLevels",void 0),b([H({default:!0})],ln.prototype,"checkStrictly",void 0),b([H({default:!1})],ln.prototype,"readonly",void 0),b([H({default:!1})],ln.prototype,"panel",void 0),ln=b([z({name:"HtSelectOrg"})],ln);var cn=ln,un=cn,pn=ae(un,an,sn,!1,null,"871afd52",null),fn=pn.exports;fn.install=function(e){e.component("HtSelectOrg",fn)};var dn=fn,hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.readonly?n("span",[e.value?n("common-datas-info-id",{tag:"div",attrs:{"user-id":JSON.stringify([e.value])}}):n("span")],1):n("common-datas-info",{tag:"div",attrs:{disabled:e.disabled,"com-style":"background:#fff","config-json":e.configJson,"com-class":"ht-item-common"},on:{change:e.searchCommonData}})},gn=[],mn=function(e){f(n,e);var t=v(n);function n(){var e;return l(this,n),e=t.apply(this,arguments),e.state={loading:!1},e}return u(n,[{key:"searchCommonData",value:function(e){var t=e.detail[0]["departmentId"],n=void 0;t.length&&(n=t[0].id),this.$emit("input",n),this.$emit("change",n)}},{key:"configJson",get:function(){return JSON.stringify({departmentUser:{name:"部门树结构",show:this.show,disabled:this.disabled,showAllLevels:this.showAllLevels,multiple:this.multiple,code:"departmentUser",data:{},checkStrictly:this.checkStrictly,panel:this.panel,key:this.value,clearable:this.clearable}})}}]),n}(w.a);b([H()],mn.prototype,"value",void 0),b([H()],mn.prototype,"disabled",void 0),b([H()],mn.prototype,"clearable",void 0),b([H({default:!0})],mn.prototype,"show",void 0),b([H({default:!1})],mn.prototype,"multiple",void 0),b([H({default:!0})],mn.prototype,"showAllLevels",void 0),b([H({default:!0})],mn.prototype,"checkStrictly",void 0),b([H({default:!1})],mn.prototype,"readonly",void 0),b([H({default:!1})],mn.prototype,"panel",void 0),mn=b([z({name:"HtSelectUser"})],mn);var _n=mn,vn=_n,bn=ae(vn,hn,gn,!1,null,"884403fc",null),yn=bn.exports;yn.install=function(e){e.component("HtSelectUser",yn)};var wn=yn,kn=[Ce,Le,Ke,rt,Dt,zt,Kt,Gt,on,dn,wn],xn=function e(t){e.installed||kn.map((function(e,n){return t.component(e.options.name||e.name,e)}))};"undefined"!==typeof window&&window.Vue&&xn(window.Vue);var Cn={install:xn,HtSelectTable:Ce,HtPagination:Le,HtTable:Ke,HtExport:rt,HtUpload:Dt,HtMd:zt,HtCountDown:Kt,HtUploadFiles:Gt,HtSelectBaseData:on,HtSelectOrg:dn,HtSelectUser:wn};t["default"]=Cn},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),p=n("1dde"),f=n("ae40"),d=p("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,_=Math.max;r({target:"Array",proto:!0,forced:!d||!h},{slice:function(e,t){var n,r,u,p=l(this),f=s(p.length),d=a(e,f),h=a(void 0===t?f:t,f);if(i(p)&&(n=p.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(p,d,h);for(r=new(void 0===n?Array:n)(_(h-d,0)),u=0;d<h;d++,u++)d in p&&c(r,u,p[d]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fd57:function(e,t,n){e.exports=n.p+"img/vedio.8638f032.png"},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 r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.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: 2022-
|
|
8
|
+
* @LastEditTime: 2022-04-07 09:13:22
|
|
9
9
|
-->
|
|
10
10
|
<template>
|
|
11
11
|
<div v-loading="state.loading"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
:resizable="false"
|
|
51
51
|
v-if="checked"
|
|
52
52
|
:reserve-selection="reserveSelection"
|
|
53
|
-
:selectable="(row)=>row
|
|
53
|
+
:selectable="(row)=>row[selectKey]!==false"
|
|
54
54
|
type='selection'>
|
|
55
55
|
</el-table-column>
|
|
56
56
|
<el-table-column v-if="!hideOrder"
|
|
@@ -303,18 +303,19 @@ interface State {
|
|
|
303
303
|
})
|
|
304
304
|
export default class HtTable extends Vue {
|
|
305
305
|
/** 默认的table头 */
|
|
306
|
-
@Prop() columns!: Column[];
|
|
306
|
+
@Prop({ default: [] }) columns!: Column[];
|
|
307
307
|
@Prop() data!: any[];
|
|
308
308
|
/** 序号对应的名称 */
|
|
309
309
|
@Prop() keyName?: string;
|
|
310
|
+
/** 打开配置列 */
|
|
311
|
+
@Prop() configShow?: boolean;
|
|
310
312
|
/** 是否增加筛选功能 */
|
|
311
313
|
@Prop() showFilter?: boolean;
|
|
312
314
|
/** table的唯一值用于table数据筛选 */
|
|
313
315
|
@Prop() uuId?: string;
|
|
314
316
|
/** 是否隐藏分页 */
|
|
315
317
|
@Prop() hidePage!: boolean;
|
|
316
|
-
|
|
317
|
-
@Prop() checked!: boolean;
|
|
318
|
+
|
|
318
319
|
/** 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的数据(需指定 row-key) */
|
|
319
320
|
@Prop() reserveSelection!: boolean;
|
|
320
321
|
@Prop() height?: string | number;
|
|
@@ -326,6 +327,10 @@ export default class HtTable extends Vue {
|
|
|
326
327
|
@Prop() fit?: boolean;
|
|
327
328
|
@Prop() showHeader?: boolean;
|
|
328
329
|
@Prop() rowClassName?: any;
|
|
330
|
+
/** 是否启用复选框 */
|
|
331
|
+
@Prop() checked!: boolean;
|
|
332
|
+
/** 设置的禁用字段值--与check同步 */
|
|
333
|
+
@Prop({ default: "selectable" }) selectKey?: string;
|
|
329
334
|
/** 仅对 type=selection 的列有效,类型为 Function,Function 的返回值用来决定这一行的 CheckBox 是否可以勾选 */
|
|
330
335
|
@Prop() selectable?: any;
|
|
331
336
|
@Prop() currentRowKey?: string | number;
|
|
@@ -375,14 +380,34 @@ export default class HtTable extends Vue {
|
|
|
375
380
|
this.state.showColumns = JSON.parse(allColumns);
|
|
376
381
|
this.getShowKeys(this.state.allColumns);
|
|
377
382
|
} else {
|
|
378
|
-
|
|
383
|
+
if (this.configShow) {
|
|
384
|
+
this.columns.forEach((item) => (item.checked = !!item.deafaultShow));
|
|
385
|
+
this.creatInitColumnKey(this.columns);
|
|
386
|
+
} else {
|
|
387
|
+
this.creatInitColumnKey(this.columns || []);
|
|
388
|
+
}
|
|
379
389
|
}
|
|
380
390
|
} else {
|
|
381
|
-
|
|
391
|
+
if (this.configShow) {
|
|
392
|
+
this.columns.forEach((item) => (item.checked = !!item.deafaultShow));
|
|
393
|
+
this.creatInitColumnKey(this.columns);
|
|
394
|
+
} else {
|
|
395
|
+
this.creatInitColumnKey(this.columns || []);
|
|
396
|
+
}
|
|
382
397
|
}
|
|
398
|
+
console.log("this.columns", this.columns);
|
|
383
399
|
}
|
|
384
400
|
resetColumn() {
|
|
385
|
-
|
|
401
|
+
if (this.configShow) {
|
|
402
|
+
this.columns.forEach((item) => {
|
|
403
|
+
item.checked = !!item.deafaultShow;
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
this.creatInitColumnKey(this.columns);
|
|
407
|
+
} else {
|
|
408
|
+
this.creatInitColumnKey(this.columns || []);
|
|
409
|
+
}
|
|
410
|
+
|
|
386
411
|
this.state.visibleFilter = false;
|
|
387
412
|
if (this.uuId) {
|
|
388
413
|
window.localStorage.setItem(
|
|
@@ -405,8 +430,9 @@ export default class HtTable extends Vue {
|
|
|
405
430
|
creatInitColumnKey(columns: Column[]) {
|
|
406
431
|
this.state.allColumns = columns;
|
|
407
432
|
this.state.showColumns = columns;
|
|
433
|
+
|
|
408
434
|
this.state.allColumns.forEach((item) => {
|
|
409
|
-
item.checked = true;
|
|
435
|
+
item.checked = item.checked === false ? false : true;
|
|
410
436
|
});
|
|
411
437
|
this.$nextTick(() => {
|
|
412
438
|
(this.$refs.comTable as any).doLayout();
|
|
@@ -569,6 +595,7 @@ export default class HtTable extends Vue {
|
|
|
569
595
|
}
|
|
570
596
|
get getAllColumns() {
|
|
571
597
|
const { allColumns } = this.state;
|
|
598
|
+
|
|
572
599
|
return allColumns.filter((item) => !item.hide);
|
|
573
600
|
}
|
|
574
601
|
@Watch("columns")
|
package/src/packages/type.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-10-25 17:05:17
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2022-
|
|
7
|
+
* @LastEditTime: 2022-04-06 17:22:32
|
|
8
8
|
*/
|
|
9
9
|
/** 初始的默认条数 */
|
|
10
10
|
export const defalutPageSize = 10
|
|
@@ -76,6 +76,8 @@ export interface Column {
|
|
|
76
76
|
/** 当type===common时候 设置是否隐藏基础数据的value */
|
|
77
77
|
hideCode?: boolean;
|
|
78
78
|
showOverflowTooltip?: boolean;
|
|
79
|
+
/** 默认是否展示 */
|
|
80
|
+
deafaultShow?: boolean;
|
|
79
81
|
/** 筛选时候是否禁用 */
|
|
80
82
|
disabled?: boolean;
|
|
81
83
|
/** 自定义列时候展示额外信息 */
|
package/src/views/About.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-15 14:41:40
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2022-
|
|
7
|
+
* @LastEditTime: 2022-04-06 18:02:23
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div>
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
:subfield="true"></ht-md> -->
|
|
30
30
|
<div ref="ht-pdf">
|
|
31
31
|
<HtTable :data="state.data"
|
|
32
|
+
:configShow="true"
|
|
32
33
|
:checked="true"
|
|
33
34
|
:height="200"
|
|
34
35
|
uuId="54598fs1okdsfsdfk2"
|
|
@@ -84,6 +85,7 @@ export default class Index extends Vue {
|
|
|
84
85
|
{
|
|
85
86
|
name: "胡涛",
|
|
86
87
|
selectable: true,
|
|
88
|
+
|
|
87
89
|
age: 12,
|
|
88
90
|
sex: "e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90,e49961a4f385e5d341ce3a01ee674c90ea9e037b734228fe26753a01ee674c90",
|
|
89
91
|
id: 1,
|
|
@@ -131,6 +133,7 @@ export default class Index extends Vue {
|
|
|
131
133
|
width: "300px",
|
|
132
134
|
property: "base",
|
|
133
135
|
disabled: true,
|
|
136
|
+
deafaultShow: true,
|
|
134
137
|
},
|
|
135
138
|
{
|
|
136
139
|
title: "姓额外名",
|
|
@@ -145,6 +148,7 @@ export default class Index extends Vue {
|
|
|
145
148
|
type: "time",
|
|
146
149
|
spread: true,
|
|
147
150
|
key: "time",
|
|
151
|
+
deafaultShow: true,
|
|
148
152
|
},
|
|
149
153
|
{
|
|
150
154
|
title: "性别",
|