bl-common-vue3 3.1.8 → 3.2.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 +400 -237
- package/lib/vue3common.umd.js +400 -237
- package/lib/vue3common.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/vue3common.common.js
CHANGED
|
@@ -1312,22 +1312,6 @@ function numberInputToObject(color) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
1314
|
|
|
1315
|
-
/***/ }),
|
|
1316
|
-
|
|
1317
|
-
/***/ "14bd":
|
|
1318
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1319
|
-
|
|
1320
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1321
|
-
|
|
1322
|
-
// load the styles
|
|
1323
|
-
var content = __webpack_require__("b43d");
|
|
1324
|
-
if(content.__esModule) content = content.default;
|
|
1325
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1326
|
-
if(content.locals) module.exports = content.locals;
|
|
1327
|
-
// add the styles to the DOM
|
|
1328
|
-
var add = __webpack_require__("499e").default
|
|
1329
|
-
var update = add("1b54236e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1330
|
-
|
|
1331
1315
|
/***/ }),
|
|
1332
1316
|
|
|
1333
1317
|
/***/ "14c3":
|
|
@@ -24610,6 +24594,17 @@ function toNumber(value) {
|
|
|
24610
24594
|
/* harmony default export */ var lodash_es_toNumber = __webpack_exports__["a"] = (toNumber);
|
|
24611
24595
|
|
|
24612
24596
|
|
|
24597
|
+
/***/ }),
|
|
24598
|
+
|
|
24599
|
+
/***/ "4a33":
|
|
24600
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24601
|
+
|
|
24602
|
+
"use strict";
|
|
24603
|
+
/* 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_1f03ea7c_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("73e2");
|
|
24604
|
+
/* 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_1f03ea7c_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_1f03ea7c_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
24605
|
+
/* unused harmony reexport * */
|
|
24606
|
+
|
|
24607
|
+
|
|
24613
24608
|
/***/ }),
|
|
24614
24609
|
|
|
24615
24610
|
/***/ "4d63":
|
|
@@ -26057,6 +26052,20 @@ module.exports = function (argument) {
|
|
|
26057
26052
|
};
|
|
26058
26053
|
|
|
26059
26054
|
|
|
26055
|
+
/***/ }),
|
|
26056
|
+
|
|
26057
|
+
/***/ "50c6":
|
|
26058
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
26059
|
+
|
|
26060
|
+
// Imports
|
|
26061
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
26062
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
26063
|
+
// Module
|
|
26064
|
+
exports.push([module.i, ".primary-color-text[data-v-1f03ea7c]{color:#2681f3}.choose-housing[data-v-1f03ea7c]{width:100%;height:100%;overflow:hidden auto}.choose-housing .tree-view[data-v-1f03ea7c] .ant-tree-checkbox-disabled{display:none}.choose-housing .tree-view[data-v-1f03ea7c] .ant-tree-treenode-disabled .ant-tree-checkbox-disabled{display:inline-block}.choose-housing .tree-view[data-v-1f03ea7c] .ant-tree-node-content-wrapper{cursor:pointer;display:flex}.choose-housing .tree-view[data-v-1f03ea7c] .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.choose-housing .tree-view[data-v-1f03ea7c] .ant-tree-node-content-wrapper .ant-tree-title{flex:1}.choose-housing .tree-view[data-v-1f03ea7c] .ant-tree .ant-tree-treenode{padding:4px 0}.choose-housing .tree-view .tree-icon[data-v-1f03ea7c]{font-size:16px;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:middle}.choose-housing .tree-view .room-title[data-v-1f03ea7c]{display:inline-block;width:100%}.choose-housing .tree-view .room-title .title-show[data-v-1f03ea7c]{display:flex;align-content:center;justify-content:space-between;padding-right:20px;overflow:hidden}.choose-housing .tree-view .room-title .title-show .title[data-v-1f03ea7c]{flex:1;margin-right:6px;overflow:hidden}.choose-housing .tree-view .room-title .title-show .title .locked[data-v-1f03ea7c]{margin-right:6px;color:#faad14}.choose-housing .text-primary[data-v-1f03ea7c]{color:#2681f3}.choose-housing .text-gray[data-v-1f03ea7c]{color:rgba(0,0,0,.25)}", ""]);
|
|
26065
|
+
// Exports
|
|
26066
|
+
module.exports = exports;
|
|
26067
|
+
|
|
26068
|
+
|
|
26060
26069
|
/***/ }),
|
|
26061
26070
|
|
|
26062
26071
|
/***/ "50d5":
|
|
@@ -29884,6 +29893,22 @@ var localeValues = {
|
|
|
29884
29893
|
|
|
29885
29894
|
/***/ }),
|
|
29886
29895
|
|
|
29896
|
+
/***/ "73e2":
|
|
29897
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29898
|
+
|
|
29899
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
29900
|
+
|
|
29901
|
+
// load the styles
|
|
29902
|
+
var content = __webpack_require__("50c6");
|
|
29903
|
+
if(content.__esModule) content = content.default;
|
|
29904
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
29905
|
+
if(content.locals) module.exports = content.locals;
|
|
29906
|
+
// add the styles to the DOM
|
|
29907
|
+
var add = __webpack_require__("499e").default
|
|
29908
|
+
var update = add("7f7fbe6c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
29909
|
+
|
|
29910
|
+
/***/ }),
|
|
29911
|
+
|
|
29887
29912
|
/***/ "7418":
|
|
29888
29913
|
/***/ (function(module, exports) {
|
|
29889
29914
|
|
|
@@ -35431,20 +35456,6 @@ AntdIcon_Icon.getTwoToneColor = getTwoToneColor;
|
|
|
35431
35456
|
AntdIcon_Icon.setTwoToneColor = setTwoToneColor;
|
|
35432
35457
|
/* harmony default export */ var AntdIcon = __webpack_exports__["a"] = (AntdIcon_Icon);
|
|
35433
35458
|
|
|
35434
|
-
/***/ }),
|
|
35435
|
-
|
|
35436
|
-
/***/ "b43d":
|
|
35437
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
35438
|
-
|
|
35439
|
-
// Imports
|
|
35440
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
35441
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
35442
|
-
// Module
|
|
35443
|
-
exports.push([module.i, ".primary-color-text[data-v-780b9b67]{color:#2681f3}.choose-housing[data-v-780b9b67]{width:100%;height:100%;overflow:hidden auto}.choose-housing .tree-view[data-v-780b9b67] .ant-tree-checkbox-disabled{display:none}.choose-housing .tree-view[data-v-780b9b67] .ant-tree-treenode-disabled .ant-tree-checkbox-disabled{display:inline-block}.choose-housing .tree-view[data-v-780b9b67] .ant-tree-node-content-wrapper{cursor:pointer;display:flex}.choose-housing .tree-view[data-v-780b9b67] .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.choose-housing .tree-view[data-v-780b9b67] .ant-tree-node-content-wrapper .ant-tree-title{flex:1}.choose-housing .tree-view[data-v-780b9b67] .ant-tree .ant-tree-treenode{padding:4px 0}.choose-housing .tree-view .tree-icon[data-v-780b9b67]{font-size:16px;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:middle}.choose-housing .tree-view .room-title[data-v-780b9b67]{display:inline-block;width:100%}.choose-housing .tree-view .room-title .title-show[data-v-780b9b67]{display:flex;align-content:center;justify-content:space-between;padding-right:20px;overflow:hidden}.choose-housing .tree-view .room-title .title-show .title[data-v-780b9b67]{flex:1;margin-right:6px;overflow:hidden}.choose-housing .tree-view .room-title .title-show .title .locked[data-v-780b9b67]{margin-right:6px;color:#faad14}.choose-housing .text-primary[data-v-780b9b67]{color:#2681f3}.choose-housing .text-gray[data-v-780b9b67]{color:rgba(0,0,0,.25)}", ""]);
|
|
35444
|
-
// Exports
|
|
35445
|
-
module.exports = exports;
|
|
35446
|
-
|
|
35447
|
-
|
|
35448
35459
|
/***/ }),
|
|
35449
35460
|
|
|
35450
35461
|
/***/ "b45f":
|
|
@@ -42009,17 +42020,6 @@ module.exports = function (key) {
|
|
|
42009
42020
|
};
|
|
42010
42021
|
|
|
42011
42022
|
|
|
42012
|
-
/***/ }),
|
|
42013
|
-
|
|
42014
|
-
/***/ "f8a9":
|
|
42015
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42016
|
-
|
|
42017
|
-
"use strict";
|
|
42018
|
-
/* 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_780b9b67_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("14bd");
|
|
42019
|
-
/* 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_780b9b67_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_780b9b67_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
42020
|
-
/* unused harmony reexport * */
|
|
42021
|
-
|
|
42022
|
-
|
|
42023
42023
|
/***/ }),
|
|
42024
42024
|
|
|
42025
42025
|
/***/ "fab9":
|
|
@@ -93148,34 +93148,34 @@ var SelectPropertyvue_type_style_index_0_id_50038b3a_lang_less_scoped_true = __w
|
|
|
93148
93148
|
const SelectProperty_exports_ = /*#__PURE__*/exportHelper_default()(SelectPropertyvue_type_script_lang_js, [['render',SelectPropertyvue_type_template_id_50038b3a_scoped_true_render],['__scopeId',"data-v-50038b3a"]])
|
|
93149
93149
|
|
|
93150
93150
|
/* harmony default export */ var SelectProperty = (SelectProperty_exports_);
|
|
93151
|
-
// 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/ChooseHousingResources/index.vue?vue&type=template&id=
|
|
93151
|
+
// 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/ChooseHousingResources/index.vue?vue&type=template&id=1f03ea7c&scoped=true
|
|
93152
93152
|
|
|
93153
93153
|
|
|
93154
|
-
var
|
|
93155
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
93154
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_withScopeId = function _withScopeId(n) {
|
|
93155
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-1f03ea7c"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
|
93156
93156
|
};
|
|
93157
93157
|
|
|
93158
|
-
var
|
|
93158
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_1 = {
|
|
93159
93159
|
class: "choose-housing beauty-scroller-bar"
|
|
93160
93160
|
};
|
|
93161
|
-
var
|
|
93161
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_2 = {
|
|
93162
93162
|
key: 1,
|
|
93163
93163
|
class: "tree-view"
|
|
93164
93164
|
};
|
|
93165
|
-
var
|
|
93165
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_3 = {
|
|
93166
93166
|
class: "room-title"
|
|
93167
93167
|
};
|
|
93168
|
-
var
|
|
93168
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_4 = {
|
|
93169
93169
|
class: "title-show",
|
|
93170
93170
|
key: "title-disabled-tip"
|
|
93171
93171
|
};
|
|
93172
|
-
var
|
|
93172
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_5 = {
|
|
93173
93173
|
class: "title"
|
|
93174
93174
|
};
|
|
93175
|
-
var
|
|
93175
|
+
var ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_6 = {
|
|
93176
93176
|
key: 1
|
|
93177
93177
|
};
|
|
93178
|
-
function
|
|
93178
|
+
function ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
93179
93179
|
var _component_a_alert = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-alert");
|
|
93180
93180
|
|
|
93181
93181
|
var _component_bl_icon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("bl-icon");
|
|
@@ -93188,14 +93188,14 @@ function ChooseHousingResourcesvue_type_template_id_780b9b67_scoped_true_render(
|
|
|
93188
93188
|
|
|
93189
93189
|
var _component_a_tree = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-tree");
|
|
93190
93190
|
|
|
93191
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
93191
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_1, [_ctx.alertTip ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_alert, {
|
|
93192
93192
|
key: 0,
|
|
93193
93193
|
"show-icon": "",
|
|
93194
93194
|
message: _ctx.alertTip,
|
|
93195
93195
|
style: {
|
|
93196
93196
|
"margin-bottom": "10px"
|
|
93197
93197
|
}
|
|
93198
|
-
}, null, 8, ["message"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.treeList.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
93198
|
+
}, null, 8, ["message"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.treeList.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_tree, {
|
|
93199
93199
|
checkable: _ctx.checkable,
|
|
93200
93200
|
"show-icon": "",
|
|
93201
93201
|
expandedKeys: _ctx.expandedKeys,
|
|
@@ -93244,7 +93244,7 @@ function ChooseHousingResourcesvue_type_template_id_780b9b67_scoped_true_render(
|
|
|
93244
93244
|
placement: "topLeft"
|
|
93245
93245
|
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createSlots"])({
|
|
93246
93246
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
93247
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
93247
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_5, [dataRef.is_lock == 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_LockOutlined, {
|
|
93248
93248
|
key: 0,
|
|
93249
93249
|
class: "locked"
|
|
93250
93250
|
})) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(dataRef.title), 1)]), _ctx.checkable && _ctx.showRoomArea ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", {
|
|
@@ -93259,12 +93259,12 @@ function ChooseHousingResourcesvue_type_template_id_780b9b67_scoped_true_render(
|
|
|
93259
93259
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(dataRef.disabledTip), 1)];
|
|
93260
93260
|
}),
|
|
93261
93261
|
key: "0"
|
|
93262
|
-
} : undefined]), 1024)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span",
|
|
93262
|
+
} : undefined]), 1024)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(dataRef.title), 1))];
|
|
93263
93263
|
}),
|
|
93264
93264
|
_: 1
|
|
93265
93265
|
}, 8, ["checkable", "expandedKeys", "checkedKeys", "tree-data", "loadData", "disabled", "onCheck"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]);
|
|
93266
93266
|
}
|
|
93267
|
-
// CONCATENATED MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=template&id=
|
|
93267
|
+
// CONCATENATED MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=template&id=1f03ea7c&scoped=true
|
|
93268
93268
|
|
|
93269
93269
|
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
93270
93270
|
var runtime = __webpack_require__("96cf");
|
|
@@ -94980,168 +94980,317 @@ var util_utils = {
|
|
|
94980
94980
|
emit("changeTreeLoading", false);
|
|
94981
94981
|
};
|
|
94982
94982
|
|
|
94983
|
-
var
|
|
94984
|
-
var
|
|
94985
|
-
|
|
94986
|
-
// 选中项目以及下面所有的房源
|
|
94987
|
-
buildList: [],
|
|
94988
|
-
// 选中楼宇以及下面所有的房源
|
|
94989
|
-
layerList: [],
|
|
94990
|
-
// 选中楼层以及下面所有的房源
|
|
94991
|
-
roomList: []
|
|
94992
|
-
};
|
|
94983
|
+
var getVillageFromTree = /*#__PURE__*/function () {
|
|
94984
|
+
var _ref8 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(data, id) {
|
|
94985
|
+
var index, item, _item;
|
|
94993
94986
|
|
|
94994
|
-
|
|
94995
|
-
|
|
94996
|
-
|
|
94997
|
-
|
|
94987
|
+
return regeneratorRuntime.wrap(function _callee7$(_context11) {
|
|
94988
|
+
while (1) {
|
|
94989
|
+
switch (_context11.prev = _context11.next) {
|
|
94990
|
+
case 0:
|
|
94991
|
+
_context11.t0 = regeneratorRuntime.keys(data);
|
|
94998
94992
|
|
|
94999
|
-
|
|
94993
|
+
case 1:
|
|
94994
|
+
if ((_context11.t1 = _context11.t0()).done) {
|
|
94995
|
+
_context11.next = 17;
|
|
94996
|
+
break;
|
|
94997
|
+
}
|
|
95000
94998
|
|
|
95001
|
-
|
|
94999
|
+
index = _context11.t1.value;
|
|
95000
|
+
item = data[index];
|
|
95002
95001
|
|
|
95003
|
-
|
|
95004
|
-
|
|
95002
|
+
if (['build', 'buildLevel', 'room', 'layer', 'subRoom'].includes(item.childType)) {
|
|
95003
|
+
_context11.next = 15;
|
|
95004
|
+
break;
|
|
95005
|
+
}
|
|
95005
95006
|
|
|
95006
|
-
|
|
95007
|
-
|
|
95008
|
-
|
|
95007
|
+
if (!(item.childType === 'village' && item.id == id)) {
|
|
95008
|
+
_context11.next = 9;
|
|
95009
|
+
break;
|
|
95010
|
+
}
|
|
95009
95011
|
|
|
95010
|
-
|
|
95011
|
-
totalLength += result[_key].length;
|
|
95012
|
-
}
|
|
95012
|
+
return _context11.abrupt("return", item);
|
|
95013
95013
|
|
|
95014
|
-
|
|
95014
|
+
case 9:
|
|
95015
|
+
if (!(item.children && item.children.length)) {
|
|
95016
|
+
_context11.next = 15;
|
|
95017
|
+
break;
|
|
95018
|
+
}
|
|
95019
|
+
|
|
95020
|
+
_context11.next = 12;
|
|
95021
|
+
return getVillageFromTree(item.children, id);
|
|
95022
|
+
|
|
95023
|
+
case 12:
|
|
95024
|
+
_item = _context11.sent;
|
|
95025
|
+
|
|
95026
|
+
if (!_item) {
|
|
95027
|
+
_context11.next = 15;
|
|
95028
|
+
break;
|
|
95029
|
+
}
|
|
95015
95030
|
|
|
95016
|
-
|
|
95017
|
-
CL("setResult getCheckedInfoByCheckType before", result); // 去重
|
|
95031
|
+
return _context11.abrupt("return", _item);
|
|
95018
95032
|
|
|
95019
|
-
|
|
95020
|
-
|
|
95033
|
+
case 15:
|
|
95034
|
+
_context11.next = 1;
|
|
95035
|
+
break;
|
|
95036
|
+
|
|
95037
|
+
case 17:
|
|
95038
|
+
case "end":
|
|
95039
|
+
return _context11.stop();
|
|
95040
|
+
}
|
|
95021
95041
|
}
|
|
95042
|
+
}, _callee7);
|
|
95043
|
+
}));
|
|
95022
95044
|
|
|
95023
|
-
|
|
95024
|
-
|
|
95025
|
-
});
|
|
95026
|
-
}
|
|
95045
|
+
return function getVillageFromTree(_x5, _x6) {
|
|
95046
|
+
return _ref8.apply(this, arguments);
|
|
95027
95047
|
};
|
|
95048
|
+
}();
|
|
95028
95049
|
|
|
95029
|
-
|
|
95050
|
+
var getCheckedInfoByKeys = /*#__PURE__*/function () {
|
|
95051
|
+
var _ref9 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
95052
|
+
var result, initKeys, checkedKeys, setResult, villageMap, _iterator3, _step3, _loop5, _ret;
|
|
95030
95053
|
|
|
95031
|
-
|
|
95032
|
-
|
|
95054
|
+
return regeneratorRuntime.wrap(function _callee8$(_context13) {
|
|
95055
|
+
while (1) {
|
|
95056
|
+
switch (_context13.prev = _context13.next) {
|
|
95057
|
+
case 0:
|
|
95058
|
+
result = {
|
|
95059
|
+
villageList: [],
|
|
95060
|
+
// 选中项目以及下面所有的房源
|
|
95061
|
+
buildList: [],
|
|
95062
|
+
// 选中楼宇以及下面所有的房源
|
|
95063
|
+
layerList: [],
|
|
95064
|
+
// 选中楼层以及下面所有的房源
|
|
95065
|
+
roomList: []
|
|
95066
|
+
};
|
|
95067
|
+
|
|
95068
|
+
if (state.checkedKeys.length) {
|
|
95069
|
+
_context13.next = 4;
|
|
95070
|
+
break;
|
|
95071
|
+
}
|
|
95033
95072
|
|
|
95034
|
-
|
|
95035
|
-
|
|
95036
|
-
var key = _step3.value;
|
|
95037
|
-
var arrKey = [];
|
|
95073
|
+
emitResult(result);
|
|
95074
|
+
return _context13.abrupt("return");
|
|
95038
95075
|
|
|
95039
|
-
|
|
95040
|
-
|
|
95041
|
-
|
|
95042
|
-
|
|
95076
|
+
case 4:
|
|
95077
|
+
emit("handleResult", true);
|
|
95078
|
+
initKeys = Object(toConsumableArray["a" /* default */])(state.checkedKeys);
|
|
95079
|
+
checkedKeys = getInitKeys(initKeys, "village");
|
|
95043
95080
|
|
|
95044
|
-
|
|
95081
|
+
setResult = function setResult(key, value) {
|
|
95082
|
+
result[key].push(value);
|
|
95083
|
+
var totalLength = 0;
|
|
95045
95084
|
|
|
95046
|
-
|
|
95047
|
-
|
|
95085
|
+
for (var _key in result) {
|
|
95086
|
+
totalLength += result[_key].length;
|
|
95087
|
+
}
|
|
95048
95088
|
|
|
95049
|
-
|
|
95050
|
-
village = villageMap[villageId] = villageList.find(function (item) {
|
|
95051
|
-
return item.id == villageId;
|
|
95052
|
-
});
|
|
95053
|
-
}
|
|
95089
|
+
CL("setResult", totalLength);
|
|
95054
95090
|
|
|
95055
|
-
|
|
95056
|
-
|
|
95091
|
+
if (checkedKeys.length == totalLength) {
|
|
95092
|
+
CL("setResult getCheckedInfoByCheckType before", result); // 去重
|
|
95057
95093
|
|
|
95058
|
-
|
|
95059
|
-
|
|
95060
|
-
|
|
95061
|
-
var build;
|
|
95062
|
-
village.children.forEach(function (v) {
|
|
95063
|
-
if (v.childType === "buildLevel") {
|
|
95064
|
-
if (v.children.find(function (item) {
|
|
95065
|
-
return item.id == buildId;
|
|
95066
|
-
})) {
|
|
95067
|
-
build = v.children.find(function (item) {
|
|
95068
|
-
return item.id == buildId;
|
|
95069
|
-
});
|
|
95070
|
-
}
|
|
95071
|
-
} else {
|
|
95072
|
-
if (v.id == buildId) {
|
|
95073
|
-
build = v;
|
|
95074
|
-
}
|
|
95075
|
-
}
|
|
95076
|
-
});
|
|
95094
|
+
if (result.roomList && result.roomList.length > 0) {
|
|
95095
|
+
result.roomList = Array.from(new Set(result.roomList));
|
|
95096
|
+
}
|
|
95077
95097
|
|
|
95078
|
-
|
|
95079
|
-
|
|
95098
|
+
getCheckedInfoByCheckType(result).then(function (newResult) {
|
|
95099
|
+
emitResult(newResult);
|
|
95100
|
+
});
|
|
95101
|
+
}
|
|
95102
|
+
};
|
|
95103
|
+
|
|
95104
|
+
villageMap = {};
|
|
95105
|
+
_iterator3 = _createForOfIteratorHelper(checkedKeys);
|
|
95106
|
+
_context13.prev = 10;
|
|
95107
|
+
_loop5 = /*#__PURE__*/regeneratorRuntime.mark(function _loop5() {
|
|
95108
|
+
var key, arrKey, villageId, village, buildId, build, layerId;
|
|
95109
|
+
return regeneratorRuntime.wrap(function _loop5$(_context12) {
|
|
95110
|
+
while (1) {
|
|
95111
|
+
switch (_context12.prev = _context12.next) {
|
|
95112
|
+
case 0:
|
|
95113
|
+
key = _step3.value;
|
|
95114
|
+
arrKey = [];
|
|
95115
|
+
|
|
95116
|
+
if (showDpt.value) {
|
|
95117
|
+
arrKey = key.split("-");
|
|
95118
|
+
}
|
|
95080
95119
|
|
|
95081
|
-
|
|
95082
|
-
} else {
|
|
95083
|
-
if (!build) return {
|
|
95084
|
-
v: void 0
|
|
95085
|
-
};
|
|
95086
|
-
emit("changeTreeLoading", true);
|
|
95087
|
-
var layerId = Number(arrKey[5]);
|
|
95088
|
-
getLayerList(build).then(function (layerList) {
|
|
95089
|
-
var layer = layerList.find(function (item) {
|
|
95090
|
-
return item.id == layerId;
|
|
95091
|
-
});
|
|
95120
|
+
arrKey = key.split("_"); // 找到对应village
|
|
95092
95121
|
|
|
95093
|
-
|
|
95094
|
-
|
|
95095
|
-
} else {
|
|
95096
|
-
var roomId = Number(arrKey[7]);
|
|
95122
|
+
villageId = Number(arrKey[1]);
|
|
95123
|
+
village = villageMap[villageId];
|
|
95097
95124
|
|
|
95098
|
-
|
|
95099
|
-
|
|
95100
|
-
|
|
95101
|
-
|
|
95102
|
-
|
|
95103
|
-
|
|
95104
|
-
|
|
95105
|
-
|
|
95106
|
-
|
|
95107
|
-
|
|
95108
|
-
|
|
95109
|
-
|
|
95110
|
-
|
|
95111
|
-
|
|
95112
|
-
|
|
95113
|
-
|
|
95114
|
-
|
|
95125
|
+
if (village) {
|
|
95126
|
+
_context12.next = 10;
|
|
95127
|
+
break;
|
|
95128
|
+
}
|
|
95129
|
+
|
|
95130
|
+
_context12.next = 9;
|
|
95131
|
+
return getVillageFromTree(state.treeList, villageId);
|
|
95132
|
+
|
|
95133
|
+
case 9:
|
|
95134
|
+
village = villageMap[villageId] = _context12.sent;
|
|
95135
|
+
|
|
95136
|
+
case 10:
|
|
95137
|
+
if (!(arrKey.length == 2)) {
|
|
95138
|
+
_context12.next = 15;
|
|
95139
|
+
break;
|
|
95140
|
+
}
|
|
95141
|
+
|
|
95142
|
+
emit("changeTreeLoading", true); // 选中项目
|
|
95143
|
+
|
|
95144
|
+
setResult("villageList", village);
|
|
95145
|
+
_context12.next = 27;
|
|
95146
|
+
break;
|
|
95147
|
+
|
|
95148
|
+
case 15:
|
|
95149
|
+
buildId = Number(arrKey[3]);
|
|
95150
|
+
village.children.forEach(function (v) {
|
|
95151
|
+
if (v.childType === "buildLevel") {
|
|
95152
|
+
if (v.children.find(function (item) {
|
|
95153
|
+
return item.id == buildId;
|
|
95154
|
+
})) {
|
|
95155
|
+
build = v.children.find(function (item) {
|
|
95156
|
+
return item.id == buildId;
|
|
95157
|
+
});
|
|
95158
|
+
}
|
|
95159
|
+
} else {
|
|
95160
|
+
if (v.id == buildId) {
|
|
95161
|
+
build = v;
|
|
95162
|
+
}
|
|
95163
|
+
}
|
|
95164
|
+
});
|
|
95165
|
+
|
|
95166
|
+
if (!(arrKey.length == 4)) {
|
|
95167
|
+
_context12.next = 22;
|
|
95168
|
+
break;
|
|
95169
|
+
}
|
|
95170
|
+
|
|
95171
|
+
emit("changeTreeLoading", true); // 选中楼宇
|
|
95172
|
+
|
|
95173
|
+
setResult("buildList", build);
|
|
95174
|
+
_context12.next = 27;
|
|
95175
|
+
break;
|
|
95176
|
+
|
|
95177
|
+
case 22:
|
|
95178
|
+
if (build) {
|
|
95179
|
+
_context12.next = 24;
|
|
95180
|
+
break;
|
|
95181
|
+
}
|
|
95182
|
+
|
|
95183
|
+
return _context12.abrupt("return", {
|
|
95184
|
+
v: void 0
|
|
95115
95185
|
});
|
|
95116
|
-
|
|
95117
|
-
|
|
95118
|
-
|
|
95186
|
+
|
|
95187
|
+
case 24:
|
|
95188
|
+
emit("changeTreeLoading", true);
|
|
95189
|
+
layerId = Number(arrKey[5]);
|
|
95190
|
+
getLayerList(build).then(function (layerList) {
|
|
95191
|
+
var layer = layerList.find(function (item) {
|
|
95192
|
+
return item.id == layerId;
|
|
95119
95193
|
});
|
|
95120
|
-
|
|
95194
|
+
|
|
95195
|
+
if (arrKey.length == 6) {
|
|
95196
|
+
setResult("layerList", layer);
|
|
95197
|
+
} else {
|
|
95198
|
+
var roomId = Number(arrKey[7]);
|
|
95199
|
+
|
|
95200
|
+
if (arrKey.length == 8) {
|
|
95201
|
+
if (props.checkType != "layer") {
|
|
95202
|
+
getRoomList(layer).then(function (roomList) {
|
|
95203
|
+
var room = roomList.find(function (item) {
|
|
95204
|
+
return item.id == roomId;
|
|
95205
|
+
});
|
|
95206
|
+
setResult("roomList", room);
|
|
95207
|
+
});
|
|
95208
|
+
}
|
|
95209
|
+
} else {
|
|
95210
|
+
if (arrKey.length == 10) {
|
|
95211
|
+
if (props.checkType != "layer") {
|
|
95212
|
+
// 子房间
|
|
95213
|
+
var subRoomId = Number(arrKey[9]);
|
|
95214
|
+
getRoomList(layer).then(function (roomList) {
|
|
95215
|
+
var room = roomList.find(function (item) {
|
|
95216
|
+
return item.id == roomId;
|
|
95217
|
+
});
|
|
95218
|
+
getSubRooms(room).then(function (roomList) {
|
|
95219
|
+
var subRoom = roomList.find(function (item) {
|
|
95220
|
+
return item.id == subRoomId;
|
|
95221
|
+
});
|
|
95222
|
+
setResult("roomList", subRoom);
|
|
95223
|
+
});
|
|
95224
|
+
});
|
|
95225
|
+
}
|
|
95226
|
+
} else {
|
|
95227
|
+
emit("changeTreeLoading", false);
|
|
95228
|
+
}
|
|
95229
|
+
}
|
|
95230
|
+
}
|
|
95121
95231
|
});
|
|
95122
|
-
|
|
95232
|
+
|
|
95233
|
+
case 27:
|
|
95234
|
+
case "end":
|
|
95235
|
+
return _context12.stop();
|
|
95123
95236
|
}
|
|
95124
|
-
} else {
|
|
95125
|
-
emit("changeTreeLoading", false);
|
|
95126
95237
|
}
|
|
95127
|
-
}
|
|
95238
|
+
}, _loop5);
|
|
95239
|
+
});
|
|
95240
|
+
|
|
95241
|
+
_iterator3.s();
|
|
95242
|
+
|
|
95243
|
+
case 13:
|
|
95244
|
+
if ((_step3 = _iterator3.n()).done) {
|
|
95245
|
+
_context13.next = 20;
|
|
95246
|
+
break;
|
|
95128
95247
|
}
|
|
95129
|
-
|
|
95248
|
+
|
|
95249
|
+
return _context13.delegateYield(_loop5(), "t0", 15);
|
|
95250
|
+
|
|
95251
|
+
case 15:
|
|
95252
|
+
_ret = _context13.t0;
|
|
95253
|
+
|
|
95254
|
+
if (!(Object(esm_typeof["a" /* default */])(_ret) === "object")) {
|
|
95255
|
+
_context13.next = 18;
|
|
95256
|
+
break;
|
|
95257
|
+
}
|
|
95258
|
+
|
|
95259
|
+
return _context13.abrupt("return", _ret.v);
|
|
95260
|
+
|
|
95261
|
+
case 18:
|
|
95262
|
+
_context13.next = 13;
|
|
95263
|
+
break;
|
|
95264
|
+
|
|
95265
|
+
case 20:
|
|
95266
|
+
_context13.next = 25;
|
|
95267
|
+
break;
|
|
95268
|
+
|
|
95269
|
+
case 22:
|
|
95270
|
+
_context13.prev = 22;
|
|
95271
|
+
_context13.t1 = _context13["catch"](10);
|
|
95272
|
+
|
|
95273
|
+
_iterator3.e(_context13.t1);
|
|
95274
|
+
|
|
95275
|
+
case 25:
|
|
95276
|
+
_context13.prev = 25;
|
|
95277
|
+
|
|
95278
|
+
_iterator3.f();
|
|
95279
|
+
|
|
95280
|
+
return _context13.finish(25);
|
|
95281
|
+
|
|
95282
|
+
case 28:
|
|
95283
|
+
case "end":
|
|
95284
|
+
return _context13.stop();
|
|
95130
95285
|
}
|
|
95131
95286
|
}
|
|
95132
|
-
};
|
|
95133
|
-
|
|
95134
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
95135
|
-
var _ret = _loop5();
|
|
95287
|
+
}, _callee8, null, [[10, 22, 25, 28]]);
|
|
95288
|
+
}));
|
|
95136
95289
|
|
|
95137
|
-
|
|
95138
|
-
|
|
95139
|
-
}
|
|
95140
|
-
|
|
95141
|
-
} finally {
|
|
95142
|
-
_iterator3.f();
|
|
95143
|
-
}
|
|
95144
|
-
};
|
|
95290
|
+
return function getCheckedInfoByKeys() {
|
|
95291
|
+
return _ref9.apply(this, arguments);
|
|
95292
|
+
};
|
|
95293
|
+
}();
|
|
95145
95294
|
|
|
95146
95295
|
var fKeyMap = {
|
|
95147
95296
|
village: "build",
|
|
@@ -95168,8 +95317,9 @@ var util_utils = {
|
|
|
95168
95317
|
});
|
|
95169
95318
|
}
|
|
95170
95319
|
|
|
95171
|
-
var
|
|
95172
|
-
|
|
95320
|
+
var _result2 = getInitKeys(initKeys, fKey);
|
|
95321
|
+
|
|
95322
|
+
filterKeys = [].concat(Object(toConsumableArray["a" /* default */])(filterKeys), Object(toConsumableArray["a" /* default */])(_result2));
|
|
95173
95323
|
} else {
|
|
95174
95324
|
// type = room
|
|
95175
95325
|
filterKeys = [].concat(Object(toConsumableArray["a" /* default */])(filterKeys), Object(toConsumableArray["a" /* default */])(initKeys));
|
|
@@ -95201,36 +95351,36 @@ var util_utils = {
|
|
|
95201
95351
|
}
|
|
95202
95352
|
|
|
95203
95353
|
var getRoomAsync = /*#__PURE__*/function () {
|
|
95204
|
-
var
|
|
95354
|
+
var _ref10 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
95205
95355
|
var index;
|
|
95206
|
-
return regeneratorRuntime.wrap(function
|
|
95356
|
+
return regeneratorRuntime.wrap(function _callee9$(_context14) {
|
|
95207
95357
|
while (1) {
|
|
95208
|
-
switch (
|
|
95358
|
+
switch (_context14.prev = _context14.next) {
|
|
95209
95359
|
case 0:
|
|
95210
95360
|
if (!(props.checkType == "layer")) {
|
|
95211
|
-
|
|
95361
|
+
_context14.next = 3;
|
|
95212
95362
|
break;
|
|
95213
95363
|
}
|
|
95214
95364
|
|
|
95215
95365
|
resolve(result);
|
|
95216
|
-
return
|
|
95366
|
+
return _context14.abrupt("return");
|
|
95217
95367
|
|
|
95218
95368
|
case 3:
|
|
95219
95369
|
if (!result.layerList.length) {
|
|
95220
|
-
|
|
95370
|
+
_context14.next = 14;
|
|
95221
95371
|
break;
|
|
95222
95372
|
}
|
|
95223
95373
|
|
|
95224
|
-
|
|
95374
|
+
_context14.t0 = regeneratorRuntime.keys(result.layerList);
|
|
95225
95375
|
|
|
95226
95376
|
case 5:
|
|
95227
|
-
if ((
|
|
95228
|
-
|
|
95377
|
+
if ((_context14.t1 = _context14.t0()).done) {
|
|
95378
|
+
_context14.next = 11;
|
|
95229
95379
|
break;
|
|
95230
95380
|
}
|
|
95231
95381
|
|
|
95232
|
-
index =
|
|
95233
|
-
|
|
95382
|
+
index = _context14.t1.value;
|
|
95383
|
+
_context14.next = 9;
|
|
95234
95384
|
return getRoomList(result.layerList[index]).then(function (roomList) {
|
|
95235
95385
|
if (roomList && roomList.length) {
|
|
95236
95386
|
var list = roomList.filter(function (item) {
|
|
@@ -95241,12 +95391,12 @@ var util_utils = {
|
|
|
95241
95391
|
});
|
|
95242
95392
|
|
|
95243
95393
|
case 9:
|
|
95244
|
-
|
|
95394
|
+
_context14.next = 5;
|
|
95245
95395
|
break;
|
|
95246
95396
|
|
|
95247
95397
|
case 11:
|
|
95248
95398
|
resolve(result);
|
|
95249
|
-
|
|
95399
|
+
_context14.next = 15;
|
|
95250
95400
|
break;
|
|
95251
95401
|
|
|
95252
95402
|
case 14:
|
|
@@ -95254,35 +95404,35 @@ var util_utils = {
|
|
|
95254
95404
|
|
|
95255
95405
|
case 15:
|
|
95256
95406
|
case "end":
|
|
95257
|
-
return
|
|
95407
|
+
return _context14.stop();
|
|
95258
95408
|
}
|
|
95259
95409
|
}
|
|
95260
|
-
},
|
|
95410
|
+
}, _callee9);
|
|
95261
95411
|
}));
|
|
95262
95412
|
|
|
95263
95413
|
return function getRoomAsync() {
|
|
95264
|
-
return
|
|
95414
|
+
return _ref10.apply(this, arguments);
|
|
95265
95415
|
};
|
|
95266
95416
|
}();
|
|
95267
95417
|
|
|
95268
95418
|
if (result.buildList.length) {
|
|
95269
95419
|
var getLayerAsync = /*#__PURE__*/function () {
|
|
95270
|
-
var
|
|
95420
|
+
var _ref11 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
95271
95421
|
var index;
|
|
95272
|
-
return regeneratorRuntime.wrap(function
|
|
95422
|
+
return regeneratorRuntime.wrap(function _callee10$(_context15) {
|
|
95273
95423
|
while (1) {
|
|
95274
|
-
switch (
|
|
95424
|
+
switch (_context15.prev = _context15.next) {
|
|
95275
95425
|
case 0:
|
|
95276
|
-
|
|
95426
|
+
_context15.t0 = regeneratorRuntime.keys(result.buildList);
|
|
95277
95427
|
|
|
95278
95428
|
case 1:
|
|
95279
|
-
if ((
|
|
95280
|
-
|
|
95429
|
+
if ((_context15.t1 = _context15.t0()).done) {
|
|
95430
|
+
_context15.next = 7;
|
|
95281
95431
|
break;
|
|
95282
95432
|
}
|
|
95283
95433
|
|
|
95284
|
-
index =
|
|
95285
|
-
|
|
95434
|
+
index = _context15.t1.value;
|
|
95435
|
+
_context15.next = 5;
|
|
95286
95436
|
return getLayerList(result.buildList[index]).then(function (layerList) {
|
|
95287
95437
|
if (layerList && layerList.length) {
|
|
95288
95438
|
var list = layerList.filter(function (item) {
|
|
@@ -95293,19 +95443,19 @@ var util_utils = {
|
|
|
95293
95443
|
});
|
|
95294
95444
|
|
|
95295
95445
|
case 5:
|
|
95296
|
-
|
|
95446
|
+
_context15.next = 1;
|
|
95297
95447
|
break;
|
|
95298
95448
|
|
|
95299
95449
|
case 7:
|
|
95300
95450
|
case "end":
|
|
95301
|
-
return
|
|
95451
|
+
return _context15.stop();
|
|
95302
95452
|
}
|
|
95303
95453
|
}
|
|
95304
|
-
},
|
|
95454
|
+
}, _callee10);
|
|
95305
95455
|
}));
|
|
95306
95456
|
|
|
95307
95457
|
return function getLayerAsync() {
|
|
95308
|
-
return
|
|
95458
|
+
return _ref11.apply(this, arguments);
|
|
95309
95459
|
};
|
|
95310
95460
|
}();
|
|
95311
95461
|
|
|
@@ -95415,15 +95565,21 @@ var util_utils = {
|
|
|
95415
95565
|
return;
|
|
95416
95566
|
}
|
|
95417
95567
|
|
|
95568
|
+
var paramsObj = {
|
|
95569
|
+
village_id: layer.extra.village_id,
|
|
95570
|
+
layer_id: layer.id
|
|
95571
|
+
};
|
|
95572
|
+
|
|
95573
|
+
if (!props.showRoomArea) {
|
|
95574
|
+
paramsObj.exclude_area = 1;
|
|
95575
|
+
}
|
|
95576
|
+
|
|
95418
95577
|
emit("request", {
|
|
95419
95578
|
params: {
|
|
95420
95579
|
method: "get",
|
|
95421
95580
|
server: "/village",
|
|
95422
95581
|
url: "/project/room/all",
|
|
95423
|
-
extra: {
|
|
95424
|
-
village_id: layer.extra.village_id,
|
|
95425
|
-
layer_id: layer.id
|
|
95426
|
-
}
|
|
95582
|
+
extra: Object(objectSpread2["a" /* default */])({}, paramsObj)
|
|
95427
95583
|
},
|
|
95428
95584
|
success: function success(res) {
|
|
95429
95585
|
if (res.list.length) {
|
|
@@ -95509,16 +95665,22 @@ var util_utils = {
|
|
|
95509
95665
|
return;
|
|
95510
95666
|
}
|
|
95511
95667
|
|
|
95668
|
+
var paramsObj = {
|
|
95669
|
+
village_id: room.extra.village_id,
|
|
95670
|
+
layer_id: room.extra.layer_id,
|
|
95671
|
+
parent_room_id: room.id
|
|
95672
|
+
};
|
|
95673
|
+
|
|
95674
|
+
if (!props.showRoomArea) {
|
|
95675
|
+
paramsObj.exclude_area = 1;
|
|
95676
|
+
}
|
|
95677
|
+
|
|
95512
95678
|
emit("request", {
|
|
95513
95679
|
params: {
|
|
95514
95680
|
method: "get",
|
|
95515
95681
|
server: "/village",
|
|
95516
95682
|
url: "/project/room/all",
|
|
95517
|
-
extra: {
|
|
95518
|
-
village_id: room.extra.village_id,
|
|
95519
|
-
layer_id: room.extra.layer_id,
|
|
95520
|
-
parent_room_id: room.id
|
|
95521
|
-
}
|
|
95683
|
+
extra: Object(objectSpread2["a" /* default */])({}, paramsObj)
|
|
95522
95684
|
},
|
|
95523
95685
|
success: function success(res) {
|
|
95524
95686
|
if (res.list.length) {
|
|
@@ -95844,14 +96006,15 @@ var util_utils = {
|
|
|
95844
96006
|
|
|
95845
96007
|
if (defaultCheckedIds.villageId) {
|
|
95846
96008
|
var itemKey = "";
|
|
95847
|
-
var result = getVillageById(defaultCheckedIds.villageId);
|
|
95848
96009
|
|
|
95849
|
-
|
|
96010
|
+
var _result3 = getVillageById(defaultCheckedIds.villageId);
|
|
96011
|
+
|
|
96012
|
+
if (!_result3) {
|
|
95850
96013
|
emitError();
|
|
95851
96014
|
return;
|
|
95852
96015
|
}
|
|
95853
96016
|
|
|
95854
|
-
itemKey =
|
|
96017
|
+
itemKey = _result3.depId ? "department-".concat(_result3.depId, "-village_").concat(defaultCheckedIds.villageId) : "village_".concat(defaultCheckedIds.villageId);
|
|
95855
96018
|
|
|
95856
96019
|
if (defaultCheckedIds.buildId) {
|
|
95857
96020
|
itemKey = "".concat(itemKey, "_build_").concat(defaultCheckedIds.buildId);
|
|
@@ -96187,7 +96350,7 @@ var util_utils = {
|
|
|
96187
96350
|
} else {
|
|
96188
96351
|
if (village.buildList && village.buildList.length) {
|
|
96189
96352
|
var regExp = new RegExp("(.+?(".concat(utils_util.buildLevelArr.join("|"), "))"));
|
|
96190
|
-
var
|
|
96353
|
+
var _result4 = [];
|
|
96191
96354
|
village.isLeaf = false;
|
|
96192
96355
|
village.buildList.forEach(function (build) {
|
|
96193
96356
|
var buildItem = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, build), {}, {
|
|
@@ -96211,18 +96374,18 @@ var util_utils = {
|
|
|
96211
96374
|
var group1 = match[1]; // 提取"数字栋"
|
|
96212
96375
|
|
|
96213
96376
|
if (group1.length >= 2 && build.build_name.slice(group1.length).length > 0) {
|
|
96214
|
-
var index =
|
|
96377
|
+
var index = _result4.findIndex(function (v) {
|
|
96215
96378
|
return v.title === group1;
|
|
96216
96379
|
});
|
|
96217
96380
|
|
|
96218
96381
|
if (index !== -1) {
|
|
96219
|
-
|
|
96382
|
+
_result4[index].children.push(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, buildItem), {}, {
|
|
96220
96383
|
title: build.build_name.slice(group1.length) // 1单元
|
|
96221
96384
|
|
|
96222
96385
|
}));
|
|
96223
96386
|
} else {
|
|
96224
96387
|
// 将结果添加到数组
|
|
96225
|
-
|
|
96388
|
+
_result4.push({
|
|
96226
96389
|
childType: "buildLevel",
|
|
96227
96390
|
title: group1,
|
|
96228
96391
|
// 2栋
|
|
@@ -96238,14 +96401,14 @@ var util_utils = {
|
|
|
96238
96401
|
}
|
|
96239
96402
|
} else {
|
|
96240
96403
|
// 没匹配到
|
|
96241
|
-
|
|
96404
|
+
_result4.push(Object(objectSpread2["a" /* default */])({}, buildItem));
|
|
96242
96405
|
}
|
|
96243
96406
|
} else {
|
|
96244
96407
|
// 没匹配到
|
|
96245
|
-
|
|
96408
|
+
_result4.push(Object(objectSpread2["a" /* default */])({}, buildItem));
|
|
96246
96409
|
}
|
|
96247
96410
|
});
|
|
96248
|
-
|
|
96411
|
+
_result4 = _result4.map(function (v) {
|
|
96249
96412
|
var _v$children4, _v$children5;
|
|
96250
96413
|
|
|
96251
96414
|
if (v.childType === "buildLevel" && ((_v$children4 = v.children) === null || _v$children4 === void 0 ? void 0 : _v$children4.length) === 1) {
|
|
@@ -96262,7 +96425,7 @@ var util_utils = {
|
|
|
96262
96425
|
|
|
96263
96426
|
return v;
|
|
96264
96427
|
});
|
|
96265
|
-
village.children =
|
|
96428
|
+
village.children = _result4; // village.children = village.buildList.map((build) => ({
|
|
96266
96429
|
// ...build,
|
|
96267
96430
|
// level,
|
|
96268
96431
|
// childType: "build",
|
|
@@ -96345,8 +96508,8 @@ var util_utils = {
|
|
|
96345
96508
|
}));
|
|
96346
96509
|
// CONCATENATED MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=script&lang=js
|
|
96347
96510
|
|
|
96348
|
-
// EXTERNAL MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=style&index=0&id=
|
|
96349
|
-
var
|
|
96511
|
+
// EXTERNAL MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=style&index=0&id=1f03ea7c&lang=less&scoped=true
|
|
96512
|
+
var ChooseHousingResourcesvue_type_style_index_0_id_1f03ea7c_lang_less_scoped_true = __webpack_require__("4a33");
|
|
96350
96513
|
|
|
96351
96514
|
// CONCATENATED MODULE: ./src/components/ChooseHousingResources/index.vue
|
|
96352
96515
|
|
|
@@ -96356,7 +96519,7 @@ var ChooseHousingResourcesvue_type_style_index_0_id_780b9b67_lang_less_scoped_tr
|
|
|
96356
96519
|
|
|
96357
96520
|
|
|
96358
96521
|
|
|
96359
|
-
const ChooseHousingResources_exports_ = /*#__PURE__*/exportHelper_default()(ChooseHousingResourcesvue_type_script_lang_js, [['render',
|
|
96522
|
+
const ChooseHousingResources_exports_ = /*#__PURE__*/exportHelper_default()(ChooseHousingResourcesvue_type_script_lang_js, [['render',ChooseHousingResourcesvue_type_template_id_1f03ea7c_scoped_true_render],['__scopeId',"data-v-1f03ea7c"]])
|
|
96360
96523
|
|
|
96361
96524
|
/* harmony default export */ var ChooseHousingResources = (ChooseHousingResources_exports_);
|
|
96362
96525
|
// 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/CheckedHousingResources/index.vue?vue&type=template&id=fce34f4a&scoped=true
|