htui-yllkbz 1.1.9 → 1.1.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 +61 -51
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +61 -51
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +3 -3
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +3 -2
- package/src/App.vue +68 -0
- package/src/main.ts +63 -0
- package/src/packages/SelectTable/CommonTable.vue +241 -0
- package/src/packages/SelectTable/index.ts +15 -0
- package/src/packages/SelectTable/index.vue +188 -0
- package/src/packages/index.ts +35 -0
- package/src/packages/style.scss +13 -0
- package/src/packages/type.ts +55 -0
- package/src/plugins/api.ts +0 -0
- package/src/router/index.ts +41 -0
- package/src/shims-tsx.d.ts +13 -0
- package/src/shims-vue.d.ts +4 -0
- package/src/store/baseData.ts +44 -0
- package/src/store/index.ts +14 -0
- package/src/styles.scss +6 -0
- package/src/views/About.vue +3 -0
- package/src/views/Index.vue +230 -0
package/lib/htui.common.js
CHANGED
|
@@ -6779,12 +6779,12 @@ var es_array_map = __webpack_require__("d81d");
|
|
|
6779
6779
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
6780
6780
|
var es_function_name = __webpack_require__("b0c0");
|
|
6781
6781
|
|
|
6782
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=
|
|
6783
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide},model:{value:(_vm.state.visible),callback:function ($$v) {_vm.$set(_vm.state, "visible", $$v)},expression:"state.visible"}},[_c('div',{staticClass:"ht-contnet",attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = !_vm.state.visible:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{attrs:{"readonly":"","disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
|
|
6782
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=d3c77448&
|
|
6783
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide},model:{value:(_vm.state.visible),callback:function ($$v) {_vm.$set(_vm.state, "visible", $$v)},expression:"state.visible"}},[_c('div',{staticClass:"ht-contnet",attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = !_vm.state.visible:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
|
|
6784
6784
|
var staticRenderFns = []
|
|
6785
6785
|
|
|
6786
6786
|
|
|
6787
|
-
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=
|
|
6787
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=d3c77448&
|
|
6788
6788
|
|
|
6789
6789
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
6790
6790
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -7771,14 +7771,14 @@ function isPromise(obj) {
|
|
|
7771
7771
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
7772
7772
|
}
|
|
7773
7773
|
|
|
7774
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=
|
|
7775
|
-
var
|
|
7774
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=79a33232&scoped=true&
|
|
7775
|
+
var CommonTablevue_type_template_id_79a33232_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('header',[_c('el-input',{staticClass:"htui-search",attrs:{"placeholder":_vm.searchPlaceholder||_vm.请输入关键字查询},model:{value:(_vm.state.filterData.Filter),callback:function ($$v) {_vm.$set(_vm.state.filterData, "Filter", $$v)},expression:"state.filterData.Filter"}})],1),_c('article',[_c('el-table',{ref:"comTable",staticStyle:{"width":"100%"},attrs:{"height":_vm.confige.table&&_vm.confige.table.height?_vm.confige.table.height:250,"row-key":_vm.confige.table&&_vm.confige.table.rowkey?_vm.confige.table.rowkey:'id',"data":_vm.dataSource,"tooltip-effect":"dark"},on:{"row-click":_vm.rowClick}},[_c('el-table-column',{attrs:{"width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
7776
7776
|
var row = ref.row;
|
|
7777
7777
|
return [_c('el-checkbox',{attrs:{"value":_vm.state.checkObj&&_vm.state.checkObj.id===row.id},nativeOn:{"click":function($event){$event.preventDefault();}}})]}}])}),_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.filterData.currentPage-1)*_vm.state.filterData.MaxResultCount+(scope.$index+1))+" ")]}}])}),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"show-overflow-tooltip":true,"prop":item.key,"width":item.width||120}})})],2)],1),_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('p',{staticStyle:{"width":"90px","float":"left"}},[_vm._v("共"+_vm._s(_vm.dataSource.length)+"条")]),(false)?undefined:_vm._e()],1)],1)],1)])}
|
|
7778
|
-
var
|
|
7778
|
+
var CommonTablevue_type_template_id_79a33232_scoped_true_staticRenderFns = []
|
|
7779
7779
|
|
|
7780
7780
|
|
|
7781
|
-
// CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=
|
|
7781
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=79a33232&scoped=true&
|
|
7782
7782
|
|
|
7783
7783
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
7784
7784
|
var es_array_filter = __webpack_require__("4de4");
|
|
@@ -8344,47 +8344,6 @@ var CommonTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
8344
8344
|
// this.getDataSource();
|
|
8345
8345
|
// }
|
|
8346
8346
|
|
|
8347
|
-
}, {
|
|
8348
|
-
key: "getDataSource",
|
|
8349
|
-
value: function getDataSource() {
|
|
8350
|
-
var _this2 = this;
|
|
8351
|
-
|
|
8352
|
-
var ajax = this.confige.ajax;
|
|
8353
|
-
var _ajax$type = ajax.type,
|
|
8354
|
-
type = _ajax$type === void 0 ? "get" : _ajax$type,
|
|
8355
|
-
url = ajax.url,
|
|
8356
|
-
params = ajax.params,
|
|
8357
|
-
data = ajax.data;
|
|
8358
|
-
this.state.loading = true;
|
|
8359
|
-
|
|
8360
|
-
if (type === "get") {
|
|
8361
|
-
var param = {
|
|
8362
|
-
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params)
|
|
8363
|
-
};
|
|
8364
|
-
|
|
8365
|
-
plugins_axios.get(url, _objectSpread2({}, param)).then(function (res) {
|
|
8366
|
-
_this2.topage(res.data);
|
|
8367
|
-
}).catch(function () {
|
|
8368
|
-
_this2.$notify.error("请求失败");
|
|
8369
|
-
}).finally(function () {
|
|
8370
|
-
_this2.state.loading = false;
|
|
8371
|
-
});
|
|
8372
|
-
} else {
|
|
8373
|
-
var _param = {
|
|
8374
|
-
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params),
|
|
8375
|
-
data: _objectSpread2(_objectSpread2({}, this.state.filterData), data)
|
|
8376
|
-
};
|
|
8377
|
-
|
|
8378
|
-
plugins_axios.post(url, _objectSpread2({}, _param)).then(function (res) {
|
|
8379
|
-
_this2.topage(res.data);
|
|
8380
|
-
}).catch(function () {
|
|
8381
|
-
_this2.$notify.error("请求失败");
|
|
8382
|
-
}).finally(function () {
|
|
8383
|
-
_this2.state.loading = false;
|
|
8384
|
-
});
|
|
8385
|
-
} //this._ax --asset-model/api/app/asset-model-instance
|
|
8386
|
-
|
|
8387
|
-
}
|
|
8388
8347
|
/** 用于多选表格,切换某一行的选中状态,如果使用了第二个参数,则是设置这一行选中与否(selected 为 true 则选中) */
|
|
8389
8348
|
|
|
8390
8349
|
}, {
|
|
@@ -8473,6 +8432,47 @@ var CommonTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
8473
8432
|
|
|
8474
8433
|
/** 计算属性 */
|
|
8475
8434
|
|
|
8435
|
+
}, {
|
|
8436
|
+
key: "getDataSource",
|
|
8437
|
+
value: function getDataSource() {
|
|
8438
|
+
var _this2 = this;
|
|
8439
|
+
|
|
8440
|
+
var ajax = this.confige.ajax;
|
|
8441
|
+
var _ajax$type = ajax.type,
|
|
8442
|
+
type = _ajax$type === void 0 ? "get" : _ajax$type,
|
|
8443
|
+
url = ajax.url,
|
|
8444
|
+
params = ajax.params,
|
|
8445
|
+
data = ajax.data;
|
|
8446
|
+
this.state.loading = true;
|
|
8447
|
+
|
|
8448
|
+
if (type === "get") {
|
|
8449
|
+
var param = {
|
|
8450
|
+
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params)
|
|
8451
|
+
};
|
|
8452
|
+
|
|
8453
|
+
plugins_axios.get(url, _objectSpread2({}, param)).then(function (res) {
|
|
8454
|
+
_this2.topage(res.data);
|
|
8455
|
+
}).catch(function () {
|
|
8456
|
+
_this2.$notify.error("请求失败");
|
|
8457
|
+
}).finally(function () {
|
|
8458
|
+
_this2.state.loading = false;
|
|
8459
|
+
});
|
|
8460
|
+
} else {
|
|
8461
|
+
var _param = {
|
|
8462
|
+
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params),
|
|
8463
|
+
data: _objectSpread2(_objectSpread2({}, this.state.filterData), data)
|
|
8464
|
+
};
|
|
8465
|
+
|
|
8466
|
+
plugins_axios.post(url, _objectSpread2({}, _param)).then(function (res) {
|
|
8467
|
+
_this2.topage(res.data);
|
|
8468
|
+
}).catch(function () {
|
|
8469
|
+
_this2.$notify.error("请求失败");
|
|
8470
|
+
}).finally(function () {
|
|
8471
|
+
_this2.state.loading = false;
|
|
8472
|
+
});
|
|
8473
|
+
} //this._ax --asset-model/api/app/asset-model-instance
|
|
8474
|
+
|
|
8475
|
+
}
|
|
8476
8476
|
}, {
|
|
8477
8477
|
key: "dataSource",
|
|
8478
8478
|
get: function get() {
|
|
@@ -8491,10 +8491,14 @@ var CommonTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
8491
8491
|
|
|
8492
8492
|
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "columns", void 0);
|
|
8493
8493
|
|
|
8494
|
+
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "searchPlaceholder", void 0);
|
|
8495
|
+
|
|
8494
8496
|
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "confige", void 0);
|
|
8495
8497
|
|
|
8496
8498
|
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "visible", void 0);
|
|
8497
8499
|
|
|
8500
|
+
__decorate([Watch("confige")], CommonTablevue_type_script_lang_ts_Index.prototype, "getDataSource", null);
|
|
8501
|
+
|
|
8498
8502
|
CommonTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm], CommonTablevue_type_script_lang_ts_Index);
|
|
8499
8503
|
/* harmony default export */ var CommonTablevue_type_script_lang_ts_ = (CommonTablevue_type_script_lang_ts_Index);
|
|
8500
8504
|
// CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=script&lang=ts&
|
|
@@ -8509,11 +8513,11 @@ CommonTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm],
|
|
|
8509
8513
|
|
|
8510
8514
|
var CommonTable_component = normalizeComponent(
|
|
8511
8515
|
SelectTable_CommonTablevue_type_script_lang_ts_,
|
|
8512
|
-
|
|
8513
|
-
|
|
8516
|
+
CommonTablevue_type_template_id_79a33232_scoped_true_render,
|
|
8517
|
+
CommonTablevue_type_template_id_79a33232_scoped_true_staticRenderFns,
|
|
8514
8518
|
false,
|
|
8515
8519
|
null,
|
|
8516
|
-
"
|
|
8520
|
+
"79a33232",
|
|
8517
8521
|
null
|
|
8518
8522
|
|
|
8519
8523
|
)
|
|
@@ -8669,6 +8673,12 @@ __decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "
|
|
|
8669
8673
|
|
|
8670
8674
|
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "config", void 0);
|
|
8671
8675
|
|
|
8676
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "width", void 0);
|
|
8677
|
+
|
|
8678
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "placeholder", void 0);
|
|
8679
|
+
|
|
8680
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "searchPlaceholder", void 0);
|
|
8681
|
+
|
|
8672
8682
|
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "columns", void 0);
|
|
8673
8683
|
|
|
8674
8684
|
__decorate([Watch("config")], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "watchConfig", null);
|
package/lib/htui.common.js.gz
CHANGED
|
Binary file
|
package/lib/htui.umd.js
CHANGED
|
@@ -6788,12 +6788,12 @@ var es_array_map = __webpack_require__("d81d");
|
|
|
6788
6788
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
6789
6789
|
var es_function_name = __webpack_require__("b0c0");
|
|
6790
6790
|
|
|
6791
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=
|
|
6792
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide},model:{value:(_vm.state.visible),callback:function ($$v) {_vm.$set(_vm.state, "visible", $$v)},expression:"state.visible"}},[_c('div',{staticClass:"ht-contnet",attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = !_vm.state.visible:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{attrs:{"readonly":"","disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
|
|
6791
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=d3c77448&
|
|
6792
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide},model:{value:(_vm.state.visible),callback:function ($$v) {_vm.$set(_vm.state, "visible", $$v)},expression:"state.visible"}},[_c('div',{staticClass:"ht-contnet",attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = !_vm.state.visible:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
|
|
6793
6793
|
var staticRenderFns = []
|
|
6794
6794
|
|
|
6795
6795
|
|
|
6796
|
-
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=
|
|
6796
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=d3c77448&
|
|
6797
6797
|
|
|
6798
6798
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
6799
6799
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -7780,14 +7780,14 @@ function isPromise(obj) {
|
|
|
7780
7780
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
7781
7781
|
}
|
|
7782
7782
|
|
|
7783
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=
|
|
7784
|
-
var
|
|
7783
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"19fd3005-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=79a33232&scoped=true&
|
|
7784
|
+
var CommonTablevue_type_template_id_79a33232_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('header',[_c('el-input',{staticClass:"htui-search",attrs:{"placeholder":_vm.searchPlaceholder||_vm.请输入关键字查询},model:{value:(_vm.state.filterData.Filter),callback:function ($$v) {_vm.$set(_vm.state.filterData, "Filter", $$v)},expression:"state.filterData.Filter"}})],1),_c('article',[_c('el-table',{ref:"comTable",staticStyle:{"width":"100%"},attrs:{"height":_vm.confige.table&&_vm.confige.table.height?_vm.confige.table.height:250,"row-key":_vm.confige.table&&_vm.confige.table.rowkey?_vm.confige.table.rowkey:'id',"data":_vm.dataSource,"tooltip-effect":"dark"},on:{"row-click":_vm.rowClick}},[_c('el-table-column',{attrs:{"width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
7785
7785
|
var row = ref.row;
|
|
7786
7786
|
return [_c('el-checkbox',{attrs:{"value":_vm.state.checkObj&&_vm.state.checkObj.id===row.id},nativeOn:{"click":function($event){$event.preventDefault();}}})]}}])}),_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.filterData.currentPage-1)*_vm.state.filterData.MaxResultCount+(scope.$index+1))+" ")]}}])}),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"show-overflow-tooltip":true,"prop":item.key,"width":item.width||120}})})],2)],1),_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('p',{staticStyle:{"width":"90px","float":"left"}},[_vm._v("共"+_vm._s(_vm.dataSource.length)+"条")]),(false)?undefined:_vm._e()],1)],1)],1)])}
|
|
7787
|
-
var
|
|
7787
|
+
var CommonTablevue_type_template_id_79a33232_scoped_true_staticRenderFns = []
|
|
7788
7788
|
|
|
7789
7789
|
|
|
7790
|
-
// CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=
|
|
7790
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=79a33232&scoped=true&
|
|
7791
7791
|
|
|
7792
7792
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
7793
7793
|
var es_array_filter = __webpack_require__("4de4");
|
|
@@ -8353,47 +8353,6 @@ var CommonTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
8353
8353
|
// this.getDataSource();
|
|
8354
8354
|
// }
|
|
8355
8355
|
|
|
8356
|
-
}, {
|
|
8357
|
-
key: "getDataSource",
|
|
8358
|
-
value: function getDataSource() {
|
|
8359
|
-
var _this2 = this;
|
|
8360
|
-
|
|
8361
|
-
var ajax = this.confige.ajax;
|
|
8362
|
-
var _ajax$type = ajax.type,
|
|
8363
|
-
type = _ajax$type === void 0 ? "get" : _ajax$type,
|
|
8364
|
-
url = ajax.url,
|
|
8365
|
-
params = ajax.params,
|
|
8366
|
-
data = ajax.data;
|
|
8367
|
-
this.state.loading = true;
|
|
8368
|
-
|
|
8369
|
-
if (type === "get") {
|
|
8370
|
-
var param = {
|
|
8371
|
-
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params)
|
|
8372
|
-
};
|
|
8373
|
-
|
|
8374
|
-
plugins_axios.get(url, _objectSpread2({}, param)).then(function (res) {
|
|
8375
|
-
_this2.topage(res.data);
|
|
8376
|
-
}).catch(function () {
|
|
8377
|
-
_this2.$notify.error("请求失败");
|
|
8378
|
-
}).finally(function () {
|
|
8379
|
-
_this2.state.loading = false;
|
|
8380
|
-
});
|
|
8381
|
-
} else {
|
|
8382
|
-
var _param = {
|
|
8383
|
-
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params),
|
|
8384
|
-
data: _objectSpread2(_objectSpread2({}, this.state.filterData), data)
|
|
8385
|
-
};
|
|
8386
|
-
|
|
8387
|
-
plugins_axios.post(url, _objectSpread2({}, _param)).then(function (res) {
|
|
8388
|
-
_this2.topage(res.data);
|
|
8389
|
-
}).catch(function () {
|
|
8390
|
-
_this2.$notify.error("请求失败");
|
|
8391
|
-
}).finally(function () {
|
|
8392
|
-
_this2.state.loading = false;
|
|
8393
|
-
});
|
|
8394
|
-
} //this._ax --asset-model/api/app/asset-model-instance
|
|
8395
|
-
|
|
8396
|
-
}
|
|
8397
8356
|
/** 用于多选表格,切换某一行的选中状态,如果使用了第二个参数,则是设置这一行选中与否(selected 为 true 则选中) */
|
|
8398
8357
|
|
|
8399
8358
|
}, {
|
|
@@ -8482,6 +8441,47 @@ var CommonTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
8482
8441
|
|
|
8483
8442
|
/** 计算属性 */
|
|
8484
8443
|
|
|
8444
|
+
}, {
|
|
8445
|
+
key: "getDataSource",
|
|
8446
|
+
value: function getDataSource() {
|
|
8447
|
+
var _this2 = this;
|
|
8448
|
+
|
|
8449
|
+
var ajax = this.confige.ajax;
|
|
8450
|
+
var _ajax$type = ajax.type,
|
|
8451
|
+
type = _ajax$type === void 0 ? "get" : _ajax$type,
|
|
8452
|
+
url = ajax.url,
|
|
8453
|
+
params = ajax.params,
|
|
8454
|
+
data = ajax.data;
|
|
8455
|
+
this.state.loading = true;
|
|
8456
|
+
|
|
8457
|
+
if (type === "get") {
|
|
8458
|
+
var param = {
|
|
8459
|
+
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params)
|
|
8460
|
+
};
|
|
8461
|
+
|
|
8462
|
+
plugins_axios.get(url, _objectSpread2({}, param)).then(function (res) {
|
|
8463
|
+
_this2.topage(res.data);
|
|
8464
|
+
}).catch(function () {
|
|
8465
|
+
_this2.$notify.error("请求失败");
|
|
8466
|
+
}).finally(function () {
|
|
8467
|
+
_this2.state.loading = false;
|
|
8468
|
+
});
|
|
8469
|
+
} else {
|
|
8470
|
+
var _param = {
|
|
8471
|
+
params: _objectSpread2(_objectSpread2({}, this.state.filterData), params),
|
|
8472
|
+
data: _objectSpread2(_objectSpread2({}, this.state.filterData), data)
|
|
8473
|
+
};
|
|
8474
|
+
|
|
8475
|
+
plugins_axios.post(url, _objectSpread2({}, _param)).then(function (res) {
|
|
8476
|
+
_this2.topage(res.data);
|
|
8477
|
+
}).catch(function () {
|
|
8478
|
+
_this2.$notify.error("请求失败");
|
|
8479
|
+
}).finally(function () {
|
|
8480
|
+
_this2.state.loading = false;
|
|
8481
|
+
});
|
|
8482
|
+
} //this._ax --asset-model/api/app/asset-model-instance
|
|
8483
|
+
|
|
8484
|
+
}
|
|
8485
8485
|
}, {
|
|
8486
8486
|
key: "dataSource",
|
|
8487
8487
|
get: function get() {
|
|
@@ -8500,10 +8500,14 @@ var CommonTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
8500
8500
|
|
|
8501
8501
|
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "columns", void 0);
|
|
8502
8502
|
|
|
8503
|
+
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "searchPlaceholder", void 0);
|
|
8504
|
+
|
|
8503
8505
|
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "confige", void 0);
|
|
8504
8506
|
|
|
8505
8507
|
__decorate([Prop()], CommonTablevue_type_script_lang_ts_Index.prototype, "visible", void 0);
|
|
8506
8508
|
|
|
8509
|
+
__decorate([Watch("confige")], CommonTablevue_type_script_lang_ts_Index.prototype, "getDataSource", null);
|
|
8510
|
+
|
|
8507
8511
|
CommonTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm], CommonTablevue_type_script_lang_ts_Index);
|
|
8508
8512
|
/* harmony default export */ var CommonTablevue_type_script_lang_ts_ = (CommonTablevue_type_script_lang_ts_Index);
|
|
8509
8513
|
// CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=script&lang=ts&
|
|
@@ -8518,11 +8522,11 @@ CommonTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm],
|
|
|
8518
8522
|
|
|
8519
8523
|
var CommonTable_component = normalizeComponent(
|
|
8520
8524
|
SelectTable_CommonTablevue_type_script_lang_ts_,
|
|
8521
|
-
|
|
8522
|
-
|
|
8525
|
+
CommonTablevue_type_template_id_79a33232_scoped_true_render,
|
|
8526
|
+
CommonTablevue_type_template_id_79a33232_scoped_true_staticRenderFns,
|
|
8523
8527
|
false,
|
|
8524
8528
|
null,
|
|
8525
|
-
"
|
|
8529
|
+
"79a33232",
|
|
8526
8530
|
null
|
|
8527
8531
|
|
|
8528
8532
|
)
|
|
@@ -8678,6 +8682,12 @@ __decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "
|
|
|
8678
8682
|
|
|
8679
8683
|
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "config", void 0);
|
|
8680
8684
|
|
|
8685
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "width", void 0);
|
|
8686
|
+
|
|
8687
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "placeholder", void 0);
|
|
8688
|
+
|
|
8689
|
+
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "searchPlaceholder", void 0);
|
|
8690
|
+
|
|
8681
8691
|
__decorate([Prop()], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "columns", void 0);
|
|
8682
8692
|
|
|
8683
8693
|
__decorate([Watch("config")], SelectTablevue_type_script_lang_ts_SelectTable.prototype, "watchConfig", null);
|
package/lib/htui.umd.js.gz
CHANGED
|
Binary file
|