bl-common-vue3 0.0.57 → 0.1.0
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/vue3common.common.js +442 -1
- package/lib/vue3common.umd.js +442 -1
- package/lib/vue3common.umd.min.js +23 -23
- package/package.json +1 -1
package/lib/vue3common.common.js
CHANGED
|
@@ -21821,6 +21821,17 @@ module.exports = function (argument) {
|
|
|
21821
21821
|
/* unused harmony reexport * */
|
|
21822
21822
|
|
|
21823
21823
|
|
|
21824
|
+
/***/ }),
|
|
21825
|
+
|
|
21826
|
+
/***/ "839d":
|
|
21827
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21828
|
+
|
|
21829
|
+
"use strict";
|
|
21830
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_10569a88_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bdca");
|
|
21831
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_10569a88_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_10569a88_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
21832
|
+
/* unused harmony reexport * */
|
|
21833
|
+
|
|
21834
|
+
|
|
21824
21835
|
/***/ }),
|
|
21825
21836
|
|
|
21826
21837
|
/***/ "83ab":
|
|
@@ -34841,6 +34852,22 @@ function isKey(value, object) {
|
|
|
34841
34852
|
/* harmony default export */ __webpack_exports__["a"] = (isKey);
|
|
34842
34853
|
|
|
34843
34854
|
|
|
34855
|
+
/***/ }),
|
|
34856
|
+
|
|
34857
|
+
/***/ "bdca":
|
|
34858
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
34859
|
+
|
|
34860
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
34861
|
+
|
|
34862
|
+
// load the styles
|
|
34863
|
+
var content = __webpack_require__("d085");
|
|
34864
|
+
if(content.__esModule) content = content.default;
|
|
34865
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
34866
|
+
if(content.locals) module.exports = content.locals;
|
|
34867
|
+
// add the styles to the DOM
|
|
34868
|
+
var add = __webpack_require__("499e").default
|
|
34869
|
+
var update = add("71c6a934", content, true, {"sourceMap":false,"shadowMode":false});
|
|
34870
|
+
|
|
34844
34871
|
/***/ }),
|
|
34845
34872
|
|
|
34846
34873
|
/***/ "c04e":
|
|
@@ -42716,6 +42743,20 @@ module.exports = function (namespace, method) {
|
|
|
42716
42743
|
};
|
|
42717
42744
|
|
|
42718
42745
|
|
|
42746
|
+
/***/ }),
|
|
42747
|
+
|
|
42748
|
+
/***/ "d085":
|
|
42749
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
42750
|
+
|
|
42751
|
+
// Imports
|
|
42752
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
42753
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
42754
|
+
// Module
|
|
42755
|
+
exports.push([module.i, ".primary-color-text[data-v-10569a88]{color:#2681f3}[data-v-10569a88] .ant-form-item{margin-bottom:0}[data-v-10569a88] .ant-table-title{padding:0;margin-bottom:5px;margin-top:20px}[data-v-10569a88] .ant-modal-body{height:659px}", ""]);
|
|
42756
|
+
// Exports
|
|
42757
|
+
module.exports = exports;
|
|
42758
|
+
|
|
42759
|
+
|
|
42719
42760
|
/***/ }),
|
|
42720
42761
|
|
|
42721
42762
|
/***/ "d1e7":
|
|
@@ -49770,6 +49811,7 @@ __webpack_require__.d(__webpack_exports__, "TenantContactsAdd", function() { ret
|
|
|
49770
49811
|
__webpack_require__.d(__webpack_exports__, "TenantTagAdd", function() { return /* reexport */ TenantTagAdd; });
|
|
49771
49812
|
__webpack_require__.d(__webpack_exports__, "EditTagIndustry", function() { return /* reexport */ EditTagIndustry; });
|
|
49772
49813
|
__webpack_require__.d(__webpack_exports__, "ChooseBuildings", function() { return /* reexport */ ChooseBuildings; });
|
|
49814
|
+
__webpack_require__.d(__webpack_exports__, "SelectProperty", function() { return /* reexport */ SelectProperty; });
|
|
49773
49815
|
__webpack_require__.d(__webpack_exports__, "install", function() { return /* reexport */ index_install; });
|
|
49774
49816
|
|
|
49775
49817
|
// NAMESPACE OBJECT: ./src/components/components.js
|
|
@@ -49788,6 +49830,7 @@ __webpack_require__.d(components_namespaceObject, "TenantContactsAdd", function(
|
|
|
49788
49830
|
__webpack_require__.d(components_namespaceObject, "TenantTagAdd", function() { return TenantTagAdd; });
|
|
49789
49831
|
__webpack_require__.d(components_namespaceObject, "EditTagIndustry", function() { return EditTagIndustry; });
|
|
49790
49832
|
__webpack_require__.d(components_namespaceObject, "ChooseBuildings", function() { return ChooseBuildings; });
|
|
49833
|
+
__webpack_require__.d(components_namespaceObject, "SelectProperty", function() { return SelectProperty; });
|
|
49791
49834
|
|
|
49792
49835
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
49793
49836
|
// This file is imported into lib/wc client bundles.
|
|
@@ -84696,7 +84739,14 @@ var utils = {
|
|
|
84696
84739
|
* 存取公共存储参数
|
|
84697
84740
|
*/
|
|
84698
84741
|
setCommonLocal: function setCommonLocal(key, value) {
|
|
84699
|
-
var localData = localStorage.getItem(utils.blCommonKey)
|
|
84742
|
+
var localData = localStorage.getItem(utils.blCommonKey);
|
|
84743
|
+
|
|
84744
|
+
if (localData) {
|
|
84745
|
+
localData = JSON.parse(localData);
|
|
84746
|
+
} else {
|
|
84747
|
+
localData = {};
|
|
84748
|
+
}
|
|
84749
|
+
|
|
84700
84750
|
localData[key] = value;
|
|
84701
84751
|
localStorage.setItem(utils.blCommonKey, JSON.stringify(localData));
|
|
84702
84752
|
},
|
|
@@ -107583,6 +107633,396 @@ var ChooseBuildingsvue_type_style_index_0_id_43a91ea2_lang_less_scoped_true = __
|
|
|
107583
107633
|
const ChooseBuildings_exports_ = /*#__PURE__*/exportHelper_default()(ChooseBuildingsvue_type_script_lang_js, [['render',ChooseBuildingsvue_type_template_id_43a91ea2_scoped_true_render],['__scopeId',"data-v-43a91ea2"]])
|
|
107584
107634
|
|
|
107585
107635
|
/* harmony default export */ var ChooseBuildings = (ChooseBuildings_exports_);
|
|
107636
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/SelectProperty/index.vue?vue&type=template&id=10569a88&scoped=true
|
|
107637
|
+
|
|
107638
|
+
|
|
107639
|
+
var SelectPropertyvue_type_template_id_10569a88_scoped_true_withScopeId = function _withScopeId(n) {
|
|
107640
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-10569a88"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
|
107641
|
+
};
|
|
107642
|
+
|
|
107643
|
+
var SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_1 = {
|
|
107644
|
+
class: "select-property"
|
|
107645
|
+
};
|
|
107646
|
+
var SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_2 = {
|
|
107647
|
+
style: {
|
|
107648
|
+
"font-size": "12px",
|
|
107649
|
+
"color": "#555555"
|
|
107650
|
+
}
|
|
107651
|
+
};
|
|
107652
|
+
var SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_3 = {
|
|
107653
|
+
key: 0,
|
|
107654
|
+
style: {
|
|
107655
|
+
"font-size": "12px",
|
|
107656
|
+
"color": "#555555",
|
|
107657
|
+
"margin-left": "10px"
|
|
107658
|
+
}
|
|
107659
|
+
};
|
|
107660
|
+
|
|
107661
|
+
var SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 取消 ");
|
|
107662
|
+
|
|
107663
|
+
var SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 保存 ");
|
|
107664
|
+
|
|
107665
|
+
function SelectPropertyvue_type_template_id_10569a88_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
107666
|
+
var _component_a_input_search = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-input-search");
|
|
107667
|
+
|
|
107668
|
+
var _component_a_col = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-col");
|
|
107669
|
+
|
|
107670
|
+
var _component_a_row = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-row");
|
|
107671
|
+
|
|
107672
|
+
var _component_a_table = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-table");
|
|
107673
|
+
|
|
107674
|
+
var _component_a_button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-button");
|
|
107675
|
+
|
|
107676
|
+
var _component_a_modal = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-modal");
|
|
107677
|
+
|
|
107678
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_modal, {
|
|
107679
|
+
title: "选择资产",
|
|
107680
|
+
visible: _ctx.visible,
|
|
107681
|
+
footer: null,
|
|
107682
|
+
centered: "",
|
|
107683
|
+
onCancel: _ctx.onClose,
|
|
107684
|
+
width: 1000
|
|
107685
|
+
}, {
|
|
107686
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107687
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_row, null, {
|
|
107688
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107689
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
|
|
107690
|
+
span: 24,
|
|
107691
|
+
style: {
|
|
107692
|
+
"display": "flex",
|
|
107693
|
+
"align-items": "center"
|
|
107694
|
+
}
|
|
107695
|
+
}, {
|
|
107696
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107697
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input_search, {
|
|
107698
|
+
value: _ctx.keywords,
|
|
107699
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
107700
|
+
return _ctx.keywords = $event;
|
|
107701
|
+
}),
|
|
107702
|
+
placeholder: "输入关键字搜索",
|
|
107703
|
+
"enter-button": "",
|
|
107704
|
+
onSearch: _ctx.onSearch,
|
|
107705
|
+
style: {
|
|
107706
|
+
"width": "200px"
|
|
107707
|
+
},
|
|
107708
|
+
allowClear: ""
|
|
107709
|
+
}, null, 8, ["value", "onSearch"])];
|
|
107710
|
+
}),
|
|
107711
|
+
_: 1
|
|
107712
|
+
})];
|
|
107713
|
+
}),
|
|
107714
|
+
_: 1
|
|
107715
|
+
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_row, {
|
|
107716
|
+
style: {
|
|
107717
|
+
"height": "523px"
|
|
107718
|
+
}
|
|
107719
|
+
}, {
|
|
107720
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107721
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
|
|
107722
|
+
span: 24
|
|
107723
|
+
}, {
|
|
107724
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107725
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_table, {
|
|
107726
|
+
columns: _ctx.columns,
|
|
107727
|
+
dataSource: _ctx.dataList,
|
|
107728
|
+
pagination: _ctx.pagination,
|
|
107729
|
+
onChange: _ctx.handleTableChange,
|
|
107730
|
+
loading: _ctx.tableLoading,
|
|
107731
|
+
rowKey: "id",
|
|
107732
|
+
"row-selection": _ctx.rowSelection,
|
|
107733
|
+
scroll: {
|
|
107734
|
+
y: 350
|
|
107735
|
+
}
|
|
107736
|
+
}, {
|
|
107737
|
+
title: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107738
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_row, {
|
|
107739
|
+
type: "flex",
|
|
107740
|
+
align: "middle",
|
|
107741
|
+
justify: "space-between",
|
|
107742
|
+
style: {
|
|
107743
|
+
"padding": "5px 20px"
|
|
107744
|
+
}
|
|
107745
|
+
}, {
|
|
107746
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107747
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, null, {
|
|
107748
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107749
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_2, " 共计 " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.total) + " 项 ", 1), _ctx.selectedRowKeys.length > 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_3, " 已选中 " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.selectedRowKeys.length) + " 项 ", 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)];
|
|
107750
|
+
}),
|
|
107751
|
+
_: 1
|
|
107752
|
+
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col)];
|
|
107753
|
+
}),
|
|
107754
|
+
_: 1
|
|
107755
|
+
})];
|
|
107756
|
+
}),
|
|
107757
|
+
_: 1
|
|
107758
|
+
}, 8, ["columns", "dataSource", "pagination", "onChange", "loading", "row-selection"])];
|
|
107759
|
+
}),
|
|
107760
|
+
_: 1
|
|
107761
|
+
})];
|
|
107762
|
+
}),
|
|
107763
|
+
_: 1
|
|
107764
|
+
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_row, {
|
|
107765
|
+
style: {
|
|
107766
|
+
"margin-top": "24px"
|
|
107767
|
+
}
|
|
107768
|
+
}, {
|
|
107769
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107770
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
|
|
107771
|
+
span: 24,
|
|
107772
|
+
style: {
|
|
107773
|
+
"display": "flex",
|
|
107774
|
+
"justify-content": "flex-end",
|
|
107775
|
+
"align-items": "center"
|
|
107776
|
+
}
|
|
107777
|
+
}, {
|
|
107778
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107779
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_button, {
|
|
107780
|
+
onClick: _ctx.onClose
|
|
107781
|
+
}, {
|
|
107782
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107783
|
+
return [SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_4];
|
|
107784
|
+
}),
|
|
107785
|
+
_: 1
|
|
107786
|
+
}, 8, ["onClick"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_button, {
|
|
107787
|
+
type: "primary",
|
|
107788
|
+
onClick: _ctx.onSubmit,
|
|
107789
|
+
style: {
|
|
107790
|
+
"margin-left": "10px"
|
|
107791
|
+
}
|
|
107792
|
+
}, {
|
|
107793
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
107794
|
+
return [SelectPropertyvue_type_template_id_10569a88_scoped_true_hoisted_5];
|
|
107795
|
+
}),
|
|
107796
|
+
_: 1
|
|
107797
|
+
}, 8, ["onClick"])];
|
|
107798
|
+
}),
|
|
107799
|
+
_: 1
|
|
107800
|
+
})];
|
|
107801
|
+
}),
|
|
107802
|
+
_: 1
|
|
107803
|
+
})];
|
|
107804
|
+
}),
|
|
107805
|
+
_: 1
|
|
107806
|
+
}, 8, ["visible", "onCancel"])]);
|
|
107807
|
+
}
|
|
107808
|
+
// CONCATENATED MODULE: ./src/components/SelectProperty/index.vue?vue&type=template&id=10569a88&scoped=true
|
|
107809
|
+
|
|
107810
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/SelectProperty/index.vue?vue&type=script&lang=js
|
|
107811
|
+
|
|
107812
|
+
|
|
107813
|
+
|
|
107814
|
+
|
|
107815
|
+
|
|
107816
|
+
/* harmony default export */ var SelectPropertyvue_type_script_lang_js = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
107817
|
+
name: "SelectProperty",
|
|
107818
|
+
components: {
|
|
107819
|
+
"a-modal": modal,
|
|
107820
|
+
"a-row": es_row,
|
|
107821
|
+
"a-col": es_col,
|
|
107822
|
+
"a-button": es_button,
|
|
107823
|
+
"a-table": es_table,
|
|
107824
|
+
"a-input-search": Search
|
|
107825
|
+
},
|
|
107826
|
+
props: {
|
|
107827
|
+
visible: {
|
|
107828
|
+
type: Boolean,
|
|
107829
|
+
default: false
|
|
107830
|
+
},
|
|
107831
|
+
status: {
|
|
107832
|
+
type: Array,
|
|
107833
|
+
default: function _default() {
|
|
107834
|
+
return [1];
|
|
107835
|
+
}
|
|
107836
|
+
},
|
|
107837
|
+
selectedList: {
|
|
107838
|
+
type: Array,
|
|
107839
|
+
default: function _default() {
|
|
107840
|
+
return [];
|
|
107841
|
+
}
|
|
107842
|
+
},
|
|
107843
|
+
type: {
|
|
107844
|
+
type: String,
|
|
107845
|
+
default: "radio"
|
|
107846
|
+
}
|
|
107847
|
+
},
|
|
107848
|
+
setup: function setup(props, context) {
|
|
107849
|
+
var state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
107850
|
+
dataList: [],
|
|
107851
|
+
page: 1,
|
|
107852
|
+
pageSize: 20,
|
|
107853
|
+
total: 0,
|
|
107854
|
+
tableLoading: false,
|
|
107855
|
+
selectedRowKeys: [],
|
|
107856
|
+
selectedRows: [],
|
|
107857
|
+
keywords: "",
|
|
107858
|
+
advancedSearchVisible: false,
|
|
107859
|
+
//高级搜索抽屉
|
|
107860
|
+
advancedSearchCount: 0 //高级搜索-选中数量
|
|
107861
|
+
|
|
107862
|
+
});
|
|
107863
|
+
var pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
107864
|
+
return {
|
|
107865
|
+
total: state.total,
|
|
107866
|
+
current: state.page,
|
|
107867
|
+
pageSize: state.pageSize,
|
|
107868
|
+
showSizeChanger: true
|
|
107869
|
+
};
|
|
107870
|
+
});
|
|
107871
|
+
|
|
107872
|
+
var handleTableChange = function handleTableChange(pager, filters, sorter) {
|
|
107873
|
+
console.log("handleTableChange", filters, sorter);
|
|
107874
|
+
state.page = pager.current;
|
|
107875
|
+
state.pageSize = pager.pageSize;
|
|
107876
|
+
getDataList();
|
|
107877
|
+
};
|
|
107878
|
+
|
|
107879
|
+
var rowSelection = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
107880
|
+
return {
|
|
107881
|
+
selectedRowKeys: state.selectedRowKeys,
|
|
107882
|
+
type: props.type,
|
|
107883
|
+
onChange: onSelectChange
|
|
107884
|
+
};
|
|
107885
|
+
});
|
|
107886
|
+
|
|
107887
|
+
var onSelectChange = function onSelectChange(keys, rows) {
|
|
107888
|
+
state.selectedRowKeys = keys;
|
|
107889
|
+
state.selectedRows = rows;
|
|
107890
|
+
};
|
|
107891
|
+
|
|
107892
|
+
var columns = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
107893
|
+
return [{
|
|
107894
|
+
title: "资产编码",
|
|
107895
|
+
dataIndex: "property_number",
|
|
107896
|
+
key: "property_number",
|
|
107897
|
+
width: "15%",
|
|
107898
|
+
align: "center"
|
|
107899
|
+
}, {
|
|
107900
|
+
title: "资产分类",
|
|
107901
|
+
dataIndex: "type_name",
|
|
107902
|
+
key: "type_name",
|
|
107903
|
+
width: "15%",
|
|
107904
|
+
align: "center"
|
|
107905
|
+
}, {
|
|
107906
|
+
title: "资产名称",
|
|
107907
|
+
dataIndex: "name",
|
|
107908
|
+
key: "name",
|
|
107909
|
+
width: "15%",
|
|
107910
|
+
align: "center"
|
|
107911
|
+
}, {
|
|
107912
|
+
title: "所在位置",
|
|
107913
|
+
dataIndex: "position_name",
|
|
107914
|
+
key: "position_name",
|
|
107915
|
+
width: "15%",
|
|
107916
|
+
align: "center"
|
|
107917
|
+
}, {
|
|
107918
|
+
title: "品牌",
|
|
107919
|
+
dataIndex: "brand",
|
|
107920
|
+
key: "brans",
|
|
107921
|
+
width: "15%",
|
|
107922
|
+
align: "center"
|
|
107923
|
+
}, {
|
|
107924
|
+
title: "型号",
|
|
107925
|
+
dataIndex: "model_name",
|
|
107926
|
+
key: "model_name",
|
|
107927
|
+
width: "15%",
|
|
107928
|
+
align: "center"
|
|
107929
|
+
}];
|
|
107930
|
+
});
|
|
107931
|
+
|
|
107932
|
+
var getDataList = function getDataList(keywords, searchInfo) {
|
|
107933
|
+
state.tableLoading = true;
|
|
107934
|
+
var params = {
|
|
107935
|
+
page: state.page,
|
|
107936
|
+
limit: state.pageSize // status: props.status, //状态为空闲的资产列表
|
|
107937
|
+
|
|
107938
|
+
};
|
|
107939
|
+
|
|
107940
|
+
if (keywords) {
|
|
107941
|
+
params.keywords = keywords;
|
|
107942
|
+
}
|
|
107943
|
+
|
|
107944
|
+
if (searchInfo) {
|
|
107945
|
+
params.property_number = searchInfo.property_number;
|
|
107946
|
+
params.type = searchInfo.type;
|
|
107947
|
+
params.name = searchInfo.name;
|
|
107948
|
+
params.position_arr = searchInfo.position_id;
|
|
107949
|
+
params.brand = searchInfo.brand;
|
|
107950
|
+
params.model_name = searchInfo.model_name;
|
|
107951
|
+
}
|
|
107952
|
+
|
|
107953
|
+
context.emit("request", {
|
|
107954
|
+
params: {
|
|
107955
|
+
method: "post",
|
|
107956
|
+
server: "/work_property",
|
|
107957
|
+
url: "/property/list",
|
|
107958
|
+
extra: params
|
|
107959
|
+
},
|
|
107960
|
+
success: function success(res) {
|
|
107961
|
+
state.dataList = res.list;
|
|
107962
|
+
state.total = res.total;
|
|
107963
|
+
state.tableLoading = false;
|
|
107964
|
+
}
|
|
107965
|
+
});
|
|
107966
|
+
};
|
|
107967
|
+
|
|
107968
|
+
var init = function init() {
|
|
107969
|
+
state.dataList = [];
|
|
107970
|
+
state.selectedRowKeys = props.selectedList.map(function (item) {
|
|
107971
|
+
return item.id;
|
|
107972
|
+
});
|
|
107973
|
+
state.selectedRows = props.selectedList;
|
|
107974
|
+
state.advancedSearchCount = 0;
|
|
107975
|
+
getDataList();
|
|
107976
|
+
}; // 输入关键词搜索
|
|
107977
|
+
|
|
107978
|
+
|
|
107979
|
+
var onSearch = function onSearch() {
|
|
107980
|
+
getDataList(state.keywords);
|
|
107981
|
+
};
|
|
107982
|
+
|
|
107983
|
+
var onClose = function onClose() {
|
|
107984
|
+
context.emit("close");
|
|
107985
|
+
};
|
|
107986
|
+
|
|
107987
|
+
var onSubmit = function onSubmit() {
|
|
107988
|
+
context.emit("success", state.selectedRows);
|
|
107989
|
+
};
|
|
107990
|
+
|
|
107991
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
107992
|
+
return props.visible;
|
|
107993
|
+
}, function (val) {
|
|
107994
|
+
if (val) {
|
|
107995
|
+
init();
|
|
107996
|
+
}
|
|
107997
|
+
});
|
|
107998
|
+
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
107999
|
+
columns: columns,
|
|
108000
|
+
pagination: pagination,
|
|
108001
|
+
rowSelection: rowSelection
|
|
108002
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(state)), {}, {
|
|
108003
|
+
handleTableChange: handleTableChange,
|
|
108004
|
+
onSearch: onSearch,
|
|
108005
|
+
onClose: onClose,
|
|
108006
|
+
onSubmit: onSubmit
|
|
108007
|
+
});
|
|
108008
|
+
}
|
|
108009
|
+
}));
|
|
108010
|
+
// CONCATENATED MODULE: ./src/components/SelectProperty/index.vue?vue&type=script&lang=js
|
|
108011
|
+
|
|
108012
|
+
// EXTERNAL MODULE: ./src/components/SelectProperty/index.vue?vue&type=style&index=0&id=10569a88&lang=less&scoped=true
|
|
108013
|
+
var SelectPropertyvue_type_style_index_0_id_10569a88_lang_less_scoped_true = __webpack_require__("839d");
|
|
108014
|
+
|
|
108015
|
+
// CONCATENATED MODULE: ./src/components/SelectProperty/index.vue
|
|
108016
|
+
|
|
108017
|
+
|
|
108018
|
+
|
|
108019
|
+
|
|
108020
|
+
|
|
108021
|
+
|
|
108022
|
+
|
|
108023
|
+
const SelectProperty_exports_ = /*#__PURE__*/exportHelper_default()(SelectPropertyvue_type_script_lang_js, [['render',SelectPropertyvue_type_template_id_10569a88_scoped_true_render],['__scopeId',"data-v-10569a88"]])
|
|
108024
|
+
|
|
108025
|
+
/* harmony default export */ var SelectProperty = (SelectProperty_exports_);
|
|
107586
108026
|
// CONCATENATED MODULE: ./src/components/components.js
|
|
107587
108027
|
/**
|
|
107588
108028
|
* 组件导出
|
|
@@ -107600,6 +108040,7 @@ const ChooseBuildings_exports_ = /*#__PURE__*/exportHelper_default()(ChooseBuild
|
|
|
107600
108040
|
|
|
107601
108041
|
|
|
107602
108042
|
|
|
108043
|
+
|
|
107603
108044
|
// CONCATENATED MODULE: ./index.js
|
|
107604
108045
|
|
|
107605
108046
|
|