bl-common-vue3 3.1.9 → 3.2.1
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 +480 -249
- package/lib/vue3common.umd.js +480 -249
- package/lib/vue3common.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/vue3common.common.js
CHANGED
|
@@ -436,6 +436,20 @@ Queue.prototype = {
|
|
|
436
436
|
module.exports = Queue;
|
|
437
437
|
|
|
438
438
|
|
|
439
|
+
/***/ }),
|
|
440
|
+
|
|
441
|
+
/***/ "01ee":
|
|
442
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
443
|
+
|
|
444
|
+
// Imports
|
|
445
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
446
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
447
|
+
// Module
|
|
448
|
+
exports.push([module.i, ".primary-color-text[data-v-47afd95d]{color:#2681f3}.choose-housing[data-v-47afd95d]{width:100%;height:100%;overflow:hidden auto}.choose-housing .tree-view[data-v-47afd95d] .ant-tree-checkbox-disabled{display:none}.choose-housing .tree-view[data-v-47afd95d] .ant-tree-treenode-disabled .ant-tree-checkbox-disabled{display:inline-block}.choose-housing .tree-view[data-v-47afd95d] .ant-tree-node-content-wrapper{cursor:pointer;display:flex}.choose-housing .tree-view[data-v-47afd95d] .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.choose-housing .tree-view[data-v-47afd95d] .ant-tree-node-content-wrapper .ant-tree-title{flex:1}.choose-housing .tree-view[data-v-47afd95d] .ant-tree .ant-tree-treenode{padding:4px 0}.choose-housing .tree-view .tree-icon[data-v-47afd95d]{font-size:16px;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:middle}.choose-housing .tree-view .room-title[data-v-47afd95d]{display:inline-block;width:100%}.choose-housing .tree-view .room-title .title-show[data-v-47afd95d]{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-47afd95d]{flex:1;margin-right:6px;overflow:hidden}.choose-housing .tree-view .room-title .title-show .title .locked[data-v-47afd95d]{margin-right:6px;color:#faad14}.choose-housing .text-primary[data-v-47afd95d]{color:#2681f3}.choose-housing .text-gray[data-v-47afd95d]{color:rgba(0,0,0,.25)}", ""]);
|
|
449
|
+
// Exports
|
|
450
|
+
module.exports = exports;
|
|
451
|
+
|
|
452
|
+
|
|
439
453
|
/***/ }),
|
|
440
454
|
|
|
441
455
|
/***/ "02ea":
|
|
@@ -2756,6 +2770,22 @@ module.exports = function (METHOD_NAME) {
|
|
|
2756
2770
|
};
|
|
2757
2771
|
|
|
2758
2772
|
|
|
2773
|
+
/***/ }),
|
|
2774
|
+
|
|
2775
|
+
/***/ "1f64":
|
|
2776
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2777
|
+
|
|
2778
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
2779
|
+
|
|
2780
|
+
// load the styles
|
|
2781
|
+
var content = __webpack_require__("01ee");
|
|
2782
|
+
if(content.__esModule) content = content.default;
|
|
2783
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
2784
|
+
if(content.locals) module.exports = content.locals;
|
|
2785
|
+
// add the styles to the DOM
|
|
2786
|
+
var add = __webpack_require__("499e").default
|
|
2787
|
+
var update = add("12576c78", content, true, {"sourceMap":false,"shadowMode":false});
|
|
2788
|
+
|
|
2759
2789
|
/***/ }),
|
|
2760
2790
|
|
|
2761
2791
|
/***/ "207c":
|
|
@@ -23340,19 +23370,14 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
23340
23370
|
|
|
23341
23371
|
/***/ }),
|
|
23342
23372
|
|
|
23343
|
-
/***/ "
|
|
23344
|
-
/***/ (function(module,
|
|
23373
|
+
/***/ "2fea":
|
|
23374
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
23345
23375
|
|
|
23346
|
-
|
|
23376
|
+
"use strict";
|
|
23377
|
+
/* 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_47afd95d_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1f64");
|
|
23378
|
+
/* 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_47afd95d_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_47afd95d_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
23379
|
+
/* unused harmony reexport * */
|
|
23347
23380
|
|
|
23348
|
-
// load the styles
|
|
23349
|
-
var content = __webpack_require__("792b");
|
|
23350
|
-
if(content.__esModule) content = content.default;
|
|
23351
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
23352
|
-
if(content.locals) module.exports = content.locals;
|
|
23353
|
-
// add the styles to the DOM
|
|
23354
|
-
var add = __webpack_require__("499e").default
|
|
23355
|
-
var update = add("3a05790f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
23356
23381
|
|
|
23357
23382
|
/***/ }),
|
|
23358
23383
|
|
|
@@ -29972,20 +29997,6 @@ var DOMTokenListPrototype = classList && classList.constructor && classList.cons
|
|
|
29972
29997
|
module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
|
29973
29998
|
|
|
29974
29999
|
|
|
29975
|
-
/***/ }),
|
|
29976
|
-
|
|
29977
|
-
/***/ "792b":
|
|
29978
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
29979
|
-
|
|
29980
|
-
// Imports
|
|
29981
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
29982
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
29983
|
-
// Module
|
|
29984
|
-
exports.push([module.i, ".primary-color-text[data-v-ef1ec100]{color:#2681f3}.choose-housing[data-v-ef1ec100]{width:100%;height:100%;overflow:hidden auto}.choose-housing .tree-view[data-v-ef1ec100] .ant-tree-checkbox-disabled{display:none}.choose-housing .tree-view[data-v-ef1ec100] .ant-tree-treenode-disabled .ant-tree-checkbox-disabled{display:inline-block}.choose-housing .tree-view[data-v-ef1ec100] .ant-tree-node-content-wrapper{cursor:pointer;display:flex}.choose-housing .tree-view[data-v-ef1ec100] .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.choose-housing .tree-view[data-v-ef1ec100] .ant-tree-node-content-wrapper .ant-tree-title{flex:1}.choose-housing .tree-view[data-v-ef1ec100] .ant-tree .ant-tree-treenode{padding:4px 0}.choose-housing .tree-view .tree-icon[data-v-ef1ec100]{font-size:16px;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:middle}.choose-housing .tree-view .room-title[data-v-ef1ec100]{display:inline-block;width:100%}.choose-housing .tree-view .room-title .title-show[data-v-ef1ec100]{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-ef1ec100]{flex:1;margin-right:6px;overflow:hidden}.choose-housing .tree-view .room-title .title-show .title .locked[data-v-ef1ec100]{margin-right:6px;color:#faad14}.choose-housing .text-primary[data-v-ef1ec100]{color:#2681f3}.choose-housing .text-gray[data-v-ef1ec100]{color:rgba(0,0,0,.25)}", ""]);
|
|
29985
|
-
// Exports
|
|
29986
|
-
module.exports = exports;
|
|
29987
|
-
|
|
29988
|
-
|
|
29989
30000
|
/***/ }),
|
|
29990
30001
|
|
|
29991
30002
|
/***/ "7b05":
|
|
@@ -35756,17 +35767,6 @@ $({ target: 'Number', proto: true, forced: FORCED }, {
|
|
|
35756
35767
|
});
|
|
35757
35768
|
|
|
35758
35769
|
|
|
35759
|
-
/***/ }),
|
|
35760
|
-
|
|
35761
|
-
/***/ "b698":
|
|
35762
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35763
|
-
|
|
35764
|
-
"use strict";
|
|
35765
|
-
/* 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_ef1ec100_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3315");
|
|
35766
|
-
/* 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_ef1ec100_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_ef1ec100_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
35767
|
-
/* unused harmony reexport * */
|
|
35768
|
-
|
|
35769
|
-
|
|
35770
35770
|
/***/ }),
|
|
35771
35771
|
|
|
35772
35772
|
/***/ "b6bb":
|
|
@@ -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=47afd95d&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_47afd95d_scoped_true_withScopeId = function _withScopeId(n) {
|
|
93155
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-47afd95d"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
|
93156
93156
|
};
|
|
93157
93157
|
|
|
93158
|
-
var
|
|
93158
|
+
var ChooseHousingResourcesvue_type_template_id_47afd95d_scoped_true_hoisted_1 = {
|
|
93159
93159
|
class: "choose-housing beauty-scroller-bar"
|
|
93160
93160
|
};
|
|
93161
|
-
var
|
|
93161
|
+
var ChooseHousingResourcesvue_type_template_id_47afd95d_scoped_true_hoisted_2 = {
|
|
93162
93162
|
key: 1,
|
|
93163
93163
|
class: "tree-view"
|
|
93164
93164
|
};
|
|
93165
|
-
var
|
|
93165
|
+
var ChooseHousingResourcesvue_type_template_id_47afd95d_scoped_true_hoisted_3 = {
|
|
93166
93166
|
class: "room-title"
|
|
93167
93167
|
};
|
|
93168
|
-
var
|
|
93168
|
+
var ChooseHousingResourcesvue_type_template_id_47afd95d_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_47afd95d_scoped_true_hoisted_5 = {
|
|
93173
93173
|
class: "title"
|
|
93174
93174
|
};
|
|
93175
|
-
var
|
|
93175
|
+
var ChooseHousingResourcesvue_type_template_id_47afd95d_scoped_true_hoisted_6 = {
|
|
93176
93176
|
key: 1
|
|
93177
93177
|
};
|
|
93178
|
-
function
|
|
93178
|
+
function ChooseHousingResourcesvue_type_template_id_47afd95d_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_ef1ec100_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_47afd95d_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_47afd95d_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_ef1ec100_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_47afd95d_scoped_true_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ChooseHousingResourcesvue_type_template_id_47afd95d_scoped_true_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ChooseHousingResourcesvue_type_template_id_47afd95d_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_ef1ec100_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_47afd95d_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=47afd95d&scoped=true
|
|
93268
93268
|
|
|
93269
93269
|
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
93270
93270
|
var runtime = __webpack_require__("96cf");
|
|
@@ -94980,182 +94980,399 @@ var util_utils = {
|
|
|
94980
94980
|
emit("changeTreeLoading", false);
|
|
94981
94981
|
};
|
|
94982
94982
|
|
|
94983
|
-
var getVillageFromTree = function
|
|
94984
|
-
|
|
94985
|
-
|
|
94986
|
-
if (item.childType === 'village' && item.id == id) {
|
|
94987
|
-
return item;
|
|
94988
|
-
} else {
|
|
94989
|
-
if (item.children && item.children.length) {
|
|
94990
|
-
var _item = getVillageFromTree(item.children, id);
|
|
94983
|
+
var getVillageFromTree = /*#__PURE__*/function () {
|
|
94984
|
+
var _ref8 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(data, id) {
|
|
94985
|
+
var index, item, _item;
|
|
94991
94986
|
|
|
94992
|
-
|
|
94993
|
-
|
|
94994
|
-
|
|
94995
|
-
|
|
94996
|
-
|
|
94997
|
-
}
|
|
94998
|
-
});
|
|
94999
|
-
};
|
|
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);
|
|
95000
94992
|
|
|
95001
|
-
|
|
95002
|
-
|
|
95003
|
-
|
|
95004
|
-
|
|
95005
|
-
|
|
95006
|
-
// 选中楼宇以及下面所有的房源
|
|
95007
|
-
layerList: [],
|
|
95008
|
-
// 选中楼层以及下面所有的房源
|
|
95009
|
-
roomList: []
|
|
95010
|
-
};
|
|
94993
|
+
case 1:
|
|
94994
|
+
if ((_context11.t1 = _context11.t0()).done) {
|
|
94995
|
+
_context11.next = 17;
|
|
94996
|
+
break;
|
|
94997
|
+
}
|
|
95011
94998
|
|
|
95012
|
-
|
|
95013
|
-
|
|
95014
|
-
|
|
95015
|
-
|
|
94999
|
+
index = _context11.t1.value;
|
|
95000
|
+
item = data[index];
|
|
95001
|
+
|
|
95002
|
+
if (['build', 'buildLevel', 'room', 'layer', 'subRoom'].includes(item.childType)) {
|
|
95003
|
+
_context11.next = 15;
|
|
95004
|
+
break;
|
|
95005
|
+
}
|
|
95006
|
+
|
|
95007
|
+
if (!(item.childType === 'village' && item.id == id)) {
|
|
95008
|
+
_context11.next = 9;
|
|
95009
|
+
break;
|
|
95010
|
+
}
|
|
95016
95011
|
|
|
95017
|
-
|
|
95012
|
+
return _context11.abrupt("return", item);
|
|
95018
95013
|
|
|
95019
|
-
|
|
95014
|
+
case 9:
|
|
95015
|
+
if (!(item.children && item.children.length)) {
|
|
95016
|
+
_context11.next = 15;
|
|
95017
|
+
break;
|
|
95018
|
+
}
|
|
95020
95019
|
|
|
95021
|
-
|
|
95020
|
+
_context11.next = 12;
|
|
95021
|
+
return getVillageFromTree(item.children, id);
|
|
95022
95022
|
|
|
95023
|
-
|
|
95024
|
-
|
|
95025
|
-
var totalLength = 0;
|
|
95023
|
+
case 12:
|
|
95024
|
+
_item = _context11.sent;
|
|
95026
95025
|
|
|
95027
|
-
|
|
95028
|
-
|
|
95029
|
-
|
|
95026
|
+
if (!_item) {
|
|
95027
|
+
_context11.next = 15;
|
|
95028
|
+
break;
|
|
95029
|
+
}
|
|
95030
95030
|
|
|
95031
|
-
|
|
95031
|
+
return _context11.abrupt("return", _item);
|
|
95032
95032
|
|
|
95033
|
-
|
|
95034
|
-
|
|
95033
|
+
case 15:
|
|
95034
|
+
_context11.next = 1;
|
|
95035
|
+
break;
|
|
95035
95036
|
|
|
95036
|
-
|
|
95037
|
-
|
|
95037
|
+
case 17:
|
|
95038
|
+
case "end":
|
|
95039
|
+
return _context11.stop();
|
|
95040
|
+
}
|
|
95038
95041
|
}
|
|
95042
|
+
}, _callee7);
|
|
95043
|
+
}));
|
|
95039
95044
|
|
|
95040
|
-
|
|
95041
|
-
|
|
95042
|
-
});
|
|
95043
|
-
}
|
|
95045
|
+
return function getVillageFromTree(_x5, _x6) {
|
|
95046
|
+
return _ref8.apply(this, arguments);
|
|
95044
95047
|
};
|
|
95048
|
+
}();
|
|
95045
95049
|
|
|
95046
|
-
|
|
95050
|
+
var getCheckedInfoByKeys = /*#__PURE__*/function () {
|
|
95051
|
+
var _ref9 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
95052
|
+
var result, initKeys, checkedKeys, setResult, villageMap, _iterator3, _step3, _loop5, _ret;
|
|
95047
95053
|
|
|
95048
|
-
|
|
95049
|
-
|
|
95054
|
+
return regeneratorRuntime.wrap(function _callee12$(_context17) {
|
|
95055
|
+
while (1) {
|
|
95056
|
+
switch (_context17.prev = _context17.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
|
+
_context17.next = 4;
|
|
95070
|
+
break;
|
|
95071
|
+
}
|
|
95050
95072
|
|
|
95051
|
-
|
|
95052
|
-
|
|
95053
|
-
var key = _step3.value;
|
|
95054
|
-
var arrKey = [];
|
|
95073
|
+
emitResult(result);
|
|
95074
|
+
return _context17.abrupt("return");
|
|
95055
95075
|
|
|
95056
|
-
|
|
95057
|
-
|
|
95058
|
-
|
|
95076
|
+
case 4:
|
|
95077
|
+
emit("handleResult", true);
|
|
95078
|
+
initKeys = Object(toConsumableArray["a" /* default */])(state.checkedKeys);
|
|
95079
|
+
checkedKeys = getInitKeys(initKeys, "village");
|
|
95059
95080
|
|
|
95060
|
-
|
|
95081
|
+
setResult = function setResult(key, value) {
|
|
95082
|
+
result[key].push(value);
|
|
95083
|
+
var totalLength = 0;
|
|
95061
95084
|
|
|
95062
|
-
|
|
95063
|
-
|
|
95085
|
+
for (var _key in result) {
|
|
95086
|
+
totalLength += result[_key].length;
|
|
95087
|
+
}
|
|
95064
95088
|
|
|
95065
|
-
|
|
95066
|
-
village = villageMap[villageId] = getVillageFromTree(state.treeList, villageId);
|
|
95067
|
-
}
|
|
95089
|
+
CL("setResult", totalLength);
|
|
95068
95090
|
|
|
95069
|
-
|
|
95070
|
-
|
|
95091
|
+
if (checkedKeys.length == totalLength) {
|
|
95092
|
+
CL("setResult getCheckedInfoByCheckType before", result); // 去重
|
|
95071
95093
|
|
|
95072
|
-
|
|
95073
|
-
|
|
95074
|
-
|
|
95075
|
-
var build;
|
|
95076
|
-
village.children.forEach(function (v) {
|
|
95077
|
-
if (v.childType === "buildLevel") {
|
|
95078
|
-
if (v.children.find(function (item) {
|
|
95079
|
-
return item.id == buildId;
|
|
95080
|
-
})) {
|
|
95081
|
-
build = v.children.find(function (item) {
|
|
95082
|
-
return item.id == buildId;
|
|
95083
|
-
});
|
|
95084
|
-
}
|
|
95085
|
-
} else {
|
|
95086
|
-
if (v.id == buildId) {
|
|
95087
|
-
build = v;
|
|
95088
|
-
}
|
|
95089
|
-
}
|
|
95090
|
-
});
|
|
95094
|
+
if (result.roomList && result.roomList.length > 0) {
|
|
95095
|
+
result.roomList = Array.from(new Set(result.roomList));
|
|
95096
|
+
}
|
|
95091
95097
|
|
|
95092
|
-
|
|
95093
|
-
|
|
95098
|
+
getCheckedInfoByCheckType(result).then(function (newResult) {
|
|
95099
|
+
emitResult(newResult);
|
|
95100
|
+
});
|
|
95101
|
+
}
|
|
95102
|
+
};
|
|
95103
|
+
|
|
95104
|
+
villageMap = {};
|
|
95105
|
+
_iterator3 = _createForOfIteratorHelper(checkedKeys);
|
|
95106
|
+
_context17.prev = 10;
|
|
95107
|
+
_loop5 = /*#__PURE__*/regeneratorRuntime.mark(function _loop5() {
|
|
95108
|
+
var key, arrKey, villageId, village, buildId, build, layerId;
|
|
95109
|
+
return regeneratorRuntime.wrap(function _loop5$(_context16) {
|
|
95110
|
+
while (1) {
|
|
95111
|
+
switch (_context16.prev = _context16.next) {
|
|
95112
|
+
case 0:
|
|
95113
|
+
key = _step3.value;
|
|
95114
|
+
arrKey = [];
|
|
95115
|
+
|
|
95116
|
+
if (showDpt.value) {
|
|
95117
|
+
arrKey = key.split("-");
|
|
95118
|
+
}
|
|
95094
95119
|
|
|
95095
|
-
|
|
95096
|
-
} else {
|
|
95097
|
-
if (!build) return {
|
|
95098
|
-
v: void 0
|
|
95099
|
-
};
|
|
95100
|
-
emit("changeTreeLoading", true);
|
|
95101
|
-
var layerId = Number(arrKey[5]);
|
|
95102
|
-
getLayerList(build).then(function (layerList) {
|
|
95103
|
-
var layer = layerList.find(function (item) {
|
|
95104
|
-
return item.id == layerId;
|
|
95105
|
-
});
|
|
95120
|
+
arrKey = key.split("_"); // 找到对应village
|
|
95106
95121
|
|
|
95107
|
-
|
|
95108
|
-
|
|
95109
|
-
} else {
|
|
95110
|
-
var roomId = Number(arrKey[7]);
|
|
95122
|
+
villageId = Number(arrKey[1]);
|
|
95123
|
+
village = villageMap[villageId];
|
|
95111
95124
|
|
|
95112
|
-
|
|
95113
|
-
|
|
95114
|
-
|
|
95115
|
-
|
|
95116
|
-
|
|
95117
|
-
|
|
95118
|
-
|
|
95119
|
-
|
|
95120
|
-
|
|
95121
|
-
|
|
95122
|
-
|
|
95123
|
-
|
|
95124
|
-
|
|
95125
|
-
|
|
95126
|
-
|
|
95127
|
-
|
|
95128
|
-
|
|
95125
|
+
if (village) {
|
|
95126
|
+
_context16.next = 10;
|
|
95127
|
+
break;
|
|
95128
|
+
}
|
|
95129
|
+
|
|
95130
|
+
_context16.next = 9;
|
|
95131
|
+
return getVillageFromTree(state.treeList, villageId);
|
|
95132
|
+
|
|
95133
|
+
case 9:
|
|
95134
|
+
village = villageMap[villageId] = _context16.sent;
|
|
95135
|
+
|
|
95136
|
+
case 10:
|
|
95137
|
+
if (!(arrKey.length == 2)) {
|
|
95138
|
+
_context16.next = 15;
|
|
95139
|
+
break;
|
|
95140
|
+
}
|
|
95141
|
+
|
|
95142
|
+
emit("changeTreeLoading", true); // 选中项目
|
|
95143
|
+
|
|
95144
|
+
setResult("villageList", village);
|
|
95145
|
+
_context16.next = 28;
|
|
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
|
+
}
|
|
95129
95164
|
});
|
|
95130
|
-
|
|
95131
|
-
|
|
95132
|
-
|
|
95133
|
-
|
|
95134
|
-
|
|
95165
|
+
|
|
95166
|
+
if (!(arrKey.length == 4)) {
|
|
95167
|
+
_context16.next = 22;
|
|
95168
|
+
break;
|
|
95169
|
+
}
|
|
95170
|
+
|
|
95171
|
+
emit("changeTreeLoading", true); // 选中楼宇
|
|
95172
|
+
|
|
95173
|
+
setResult("buildList", build);
|
|
95174
|
+
_context16.next = 28;
|
|
95175
|
+
break;
|
|
95176
|
+
|
|
95177
|
+
case 22:
|
|
95178
|
+
if (build) {
|
|
95179
|
+
_context16.next = 24;
|
|
95180
|
+
break;
|
|
95181
|
+
}
|
|
95182
|
+
|
|
95183
|
+
return _context16.abrupt("return", {
|
|
95184
|
+
v: void 0
|
|
95135
95185
|
});
|
|
95136
|
-
|
|
95186
|
+
|
|
95187
|
+
case 24:
|
|
95188
|
+
emit("changeTreeLoading", true);
|
|
95189
|
+
layerId = Number(arrKey[5]);
|
|
95190
|
+
_context16.next = 28;
|
|
95191
|
+
return getLayerList(build).then( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
95192
|
+
var _build2;
|
|
95193
|
+
|
|
95194
|
+
var layer, roomId, subRoomId;
|
|
95195
|
+
return regeneratorRuntime.wrap(function _callee11$(_context15) {
|
|
95196
|
+
while (1) {
|
|
95197
|
+
switch (_context15.prev = _context15.next) {
|
|
95198
|
+
case 0:
|
|
95199
|
+
layer = (((_build2 = build) === null || _build2 === void 0 ? void 0 : _build2.children) || []).find(function (item) {
|
|
95200
|
+
return item.id == layerId;
|
|
95201
|
+
});
|
|
95202
|
+
|
|
95203
|
+
if (!(arrKey.length == 6)) {
|
|
95204
|
+
_context15.next = 5;
|
|
95205
|
+
break;
|
|
95206
|
+
}
|
|
95207
|
+
|
|
95208
|
+
setResult("layerList", layer);
|
|
95209
|
+
_context15.next = 20;
|
|
95210
|
+
break;
|
|
95211
|
+
|
|
95212
|
+
case 5:
|
|
95213
|
+
roomId = Number(arrKey[7]);
|
|
95214
|
+
|
|
95215
|
+
if (!(arrKey.length == 8)) {
|
|
95216
|
+
_context15.next = 12;
|
|
95217
|
+
break;
|
|
95218
|
+
}
|
|
95219
|
+
|
|
95220
|
+
if (!(props.checkType != "layer")) {
|
|
95221
|
+
_context15.next = 10;
|
|
95222
|
+
break;
|
|
95223
|
+
}
|
|
95224
|
+
|
|
95225
|
+
_context15.next = 10;
|
|
95226
|
+
return getRoomList(layer).then( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
95227
|
+
var room;
|
|
95228
|
+
return regeneratorRuntime.wrap(function _callee8$(_context12) {
|
|
95229
|
+
while (1) {
|
|
95230
|
+
switch (_context12.prev = _context12.next) {
|
|
95231
|
+
case 0:
|
|
95232
|
+
room = ((layer === null || layer === void 0 ? void 0 : layer.children) || []).find(function (item) {
|
|
95233
|
+
return item.id == roomId;
|
|
95234
|
+
});
|
|
95235
|
+
setResult("roomList", room);
|
|
95236
|
+
|
|
95237
|
+
case 2:
|
|
95238
|
+
case "end":
|
|
95239
|
+
return _context12.stop();
|
|
95240
|
+
}
|
|
95241
|
+
}
|
|
95242
|
+
}, _callee8);
|
|
95243
|
+
})));
|
|
95244
|
+
|
|
95245
|
+
case 10:
|
|
95246
|
+
_context15.next = 20;
|
|
95247
|
+
break;
|
|
95248
|
+
|
|
95249
|
+
case 12:
|
|
95250
|
+
if (!(arrKey.length == 10)) {
|
|
95251
|
+
_context15.next = 19;
|
|
95252
|
+
break;
|
|
95253
|
+
}
|
|
95254
|
+
|
|
95255
|
+
if (!(props.checkType != "layer")) {
|
|
95256
|
+
_context15.next = 17;
|
|
95257
|
+
break;
|
|
95258
|
+
}
|
|
95259
|
+
|
|
95260
|
+
// 子房间
|
|
95261
|
+
subRoomId = Number(arrKey[9]);
|
|
95262
|
+
_context15.next = 17;
|
|
95263
|
+
return getRoomList(layer).then( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
95264
|
+
var room;
|
|
95265
|
+
return regeneratorRuntime.wrap(function _callee10$(_context14) {
|
|
95266
|
+
while (1) {
|
|
95267
|
+
switch (_context14.prev = _context14.next) {
|
|
95268
|
+
case 0:
|
|
95269
|
+
room = ((layer === null || layer === void 0 ? void 0 : layer.children) || []).find(function (item) {
|
|
95270
|
+
return item.id == roomId;
|
|
95271
|
+
});
|
|
95272
|
+
_context14.next = 3;
|
|
95273
|
+
return getSubRooms(room).then( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
95274
|
+
var subRoom;
|
|
95275
|
+
return regeneratorRuntime.wrap(function _callee9$(_context13) {
|
|
95276
|
+
while (1) {
|
|
95277
|
+
switch (_context13.prev = _context13.next) {
|
|
95278
|
+
case 0:
|
|
95279
|
+
subRoom = ((room === null || room === void 0 ? void 0 : room.children) || []).find(function (item) {
|
|
95280
|
+
return item.id == subRoomId;
|
|
95281
|
+
});
|
|
95282
|
+
setResult("roomList", subRoom);
|
|
95283
|
+
|
|
95284
|
+
case 2:
|
|
95285
|
+
case "end":
|
|
95286
|
+
return _context13.stop();
|
|
95287
|
+
}
|
|
95288
|
+
}
|
|
95289
|
+
}, _callee9);
|
|
95290
|
+
})));
|
|
95291
|
+
|
|
95292
|
+
case 3:
|
|
95293
|
+
case "end":
|
|
95294
|
+
return _context14.stop();
|
|
95295
|
+
}
|
|
95296
|
+
}
|
|
95297
|
+
}, _callee10);
|
|
95298
|
+
})));
|
|
95299
|
+
|
|
95300
|
+
case 17:
|
|
95301
|
+
_context15.next = 20;
|
|
95302
|
+
break;
|
|
95303
|
+
|
|
95304
|
+
case 19:
|
|
95305
|
+
emit("changeTreeLoading", false);
|
|
95306
|
+
|
|
95307
|
+
case 20:
|
|
95308
|
+
case "end":
|
|
95309
|
+
return _context15.stop();
|
|
95310
|
+
}
|
|
95311
|
+
}
|
|
95312
|
+
}, _callee11);
|
|
95313
|
+
})));
|
|
95314
|
+
|
|
95315
|
+
case 28:
|
|
95316
|
+
case "end":
|
|
95317
|
+
return _context16.stop();
|
|
95137
95318
|
}
|
|
95138
|
-
} else {
|
|
95139
|
-
emit("changeTreeLoading", false);
|
|
95140
95319
|
}
|
|
95141
|
-
}
|
|
95320
|
+
}, _loop5);
|
|
95321
|
+
});
|
|
95322
|
+
|
|
95323
|
+
_iterator3.s();
|
|
95324
|
+
|
|
95325
|
+
case 13:
|
|
95326
|
+
if ((_step3 = _iterator3.n()).done) {
|
|
95327
|
+
_context17.next = 20;
|
|
95328
|
+
break;
|
|
95142
95329
|
}
|
|
95143
|
-
|
|
95330
|
+
|
|
95331
|
+
return _context17.delegateYield(_loop5(), "t0", 15);
|
|
95332
|
+
|
|
95333
|
+
case 15:
|
|
95334
|
+
_ret = _context17.t0;
|
|
95335
|
+
|
|
95336
|
+
if (!(Object(esm_typeof["a" /* default */])(_ret) === "object")) {
|
|
95337
|
+
_context17.next = 18;
|
|
95338
|
+
break;
|
|
95339
|
+
}
|
|
95340
|
+
|
|
95341
|
+
return _context17.abrupt("return", _ret.v);
|
|
95342
|
+
|
|
95343
|
+
case 18:
|
|
95344
|
+
_context17.next = 13;
|
|
95345
|
+
break;
|
|
95346
|
+
|
|
95347
|
+
case 20:
|
|
95348
|
+
_context17.next = 25;
|
|
95349
|
+
break;
|
|
95350
|
+
|
|
95351
|
+
case 22:
|
|
95352
|
+
_context17.prev = 22;
|
|
95353
|
+
_context17.t1 = _context17["catch"](10);
|
|
95354
|
+
|
|
95355
|
+
_iterator3.e(_context17.t1);
|
|
95356
|
+
|
|
95357
|
+
case 25:
|
|
95358
|
+
_context17.prev = 25;
|
|
95359
|
+
|
|
95360
|
+
_iterator3.f();
|
|
95361
|
+
|
|
95362
|
+
return _context17.finish(25);
|
|
95363
|
+
|
|
95364
|
+
case 28:
|
|
95365
|
+
case "end":
|
|
95366
|
+
return _context17.stop();
|
|
95144
95367
|
}
|
|
95145
95368
|
}
|
|
95146
|
-
};
|
|
95147
|
-
|
|
95148
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
95149
|
-
var _ret = _loop5();
|
|
95369
|
+
}, _callee12, null, [[10, 22, 25, 28]]);
|
|
95370
|
+
}));
|
|
95150
95371
|
|
|
95151
|
-
|
|
95152
|
-
|
|
95153
|
-
}
|
|
95154
|
-
|
|
95155
|
-
} finally {
|
|
95156
|
-
_iterator3.f();
|
|
95157
|
-
}
|
|
95158
|
-
};
|
|
95372
|
+
return function getCheckedInfoByKeys() {
|
|
95373
|
+
return _ref9.apply(this, arguments);
|
|
95374
|
+
};
|
|
95375
|
+
}();
|
|
95159
95376
|
|
|
95160
95377
|
var fKeyMap = {
|
|
95161
95378
|
village: "build",
|
|
@@ -95182,8 +95399,9 @@ var util_utils = {
|
|
|
95182
95399
|
});
|
|
95183
95400
|
}
|
|
95184
95401
|
|
|
95185
|
-
var
|
|
95186
|
-
|
|
95402
|
+
var _result2 = getInitKeys(initKeys, fKey);
|
|
95403
|
+
|
|
95404
|
+
filterKeys = [].concat(Object(toConsumableArray["a" /* default */])(filterKeys), Object(toConsumableArray["a" /* default */])(_result2));
|
|
95187
95405
|
} else {
|
|
95188
95406
|
// type = room
|
|
95189
95407
|
filterKeys = [].concat(Object(toConsumableArray["a" /* default */])(filterKeys), Object(toConsumableArray["a" /* default */])(initKeys));
|
|
@@ -95215,36 +95433,36 @@ var util_utils = {
|
|
|
95215
95433
|
}
|
|
95216
95434
|
|
|
95217
95435
|
var getRoomAsync = /*#__PURE__*/function () {
|
|
95218
|
-
var
|
|
95436
|
+
var _ref14 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
95219
95437
|
var index;
|
|
95220
|
-
return regeneratorRuntime.wrap(function
|
|
95438
|
+
return regeneratorRuntime.wrap(function _callee13$(_context18) {
|
|
95221
95439
|
while (1) {
|
|
95222
|
-
switch (
|
|
95440
|
+
switch (_context18.prev = _context18.next) {
|
|
95223
95441
|
case 0:
|
|
95224
95442
|
if (!(props.checkType == "layer")) {
|
|
95225
|
-
|
|
95443
|
+
_context18.next = 3;
|
|
95226
95444
|
break;
|
|
95227
95445
|
}
|
|
95228
95446
|
|
|
95229
95447
|
resolve(result);
|
|
95230
|
-
return
|
|
95448
|
+
return _context18.abrupt("return");
|
|
95231
95449
|
|
|
95232
95450
|
case 3:
|
|
95233
95451
|
if (!result.layerList.length) {
|
|
95234
|
-
|
|
95452
|
+
_context18.next = 14;
|
|
95235
95453
|
break;
|
|
95236
95454
|
}
|
|
95237
95455
|
|
|
95238
|
-
|
|
95456
|
+
_context18.t0 = regeneratorRuntime.keys(result.layerList);
|
|
95239
95457
|
|
|
95240
95458
|
case 5:
|
|
95241
|
-
if ((
|
|
95242
|
-
|
|
95459
|
+
if ((_context18.t1 = _context18.t0()).done) {
|
|
95460
|
+
_context18.next = 11;
|
|
95243
95461
|
break;
|
|
95244
95462
|
}
|
|
95245
95463
|
|
|
95246
|
-
index =
|
|
95247
|
-
|
|
95464
|
+
index = _context18.t1.value;
|
|
95465
|
+
_context18.next = 9;
|
|
95248
95466
|
return getRoomList(result.layerList[index]).then(function (roomList) {
|
|
95249
95467
|
if (roomList && roomList.length) {
|
|
95250
95468
|
var list = roomList.filter(function (item) {
|
|
@@ -95255,12 +95473,12 @@ var util_utils = {
|
|
|
95255
95473
|
});
|
|
95256
95474
|
|
|
95257
95475
|
case 9:
|
|
95258
|
-
|
|
95476
|
+
_context18.next = 5;
|
|
95259
95477
|
break;
|
|
95260
95478
|
|
|
95261
95479
|
case 11:
|
|
95262
95480
|
resolve(result);
|
|
95263
|
-
|
|
95481
|
+
_context18.next = 15;
|
|
95264
95482
|
break;
|
|
95265
95483
|
|
|
95266
95484
|
case 14:
|
|
@@ -95268,35 +95486,35 @@ var util_utils = {
|
|
|
95268
95486
|
|
|
95269
95487
|
case 15:
|
|
95270
95488
|
case "end":
|
|
95271
|
-
return
|
|
95489
|
+
return _context18.stop();
|
|
95272
95490
|
}
|
|
95273
95491
|
}
|
|
95274
|
-
},
|
|
95492
|
+
}, _callee13);
|
|
95275
95493
|
}));
|
|
95276
95494
|
|
|
95277
95495
|
return function getRoomAsync() {
|
|
95278
|
-
return
|
|
95496
|
+
return _ref14.apply(this, arguments);
|
|
95279
95497
|
};
|
|
95280
95498
|
}();
|
|
95281
95499
|
|
|
95282
95500
|
if (result.buildList.length) {
|
|
95283
95501
|
var getLayerAsync = /*#__PURE__*/function () {
|
|
95284
|
-
var
|
|
95502
|
+
var _ref15 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
95285
95503
|
var index;
|
|
95286
|
-
return regeneratorRuntime.wrap(function
|
|
95504
|
+
return regeneratorRuntime.wrap(function _callee14$(_context19) {
|
|
95287
95505
|
while (1) {
|
|
95288
|
-
switch (
|
|
95506
|
+
switch (_context19.prev = _context19.next) {
|
|
95289
95507
|
case 0:
|
|
95290
|
-
|
|
95508
|
+
_context19.t0 = regeneratorRuntime.keys(result.buildList);
|
|
95291
95509
|
|
|
95292
95510
|
case 1:
|
|
95293
|
-
if ((
|
|
95294
|
-
|
|
95511
|
+
if ((_context19.t1 = _context19.t0()).done) {
|
|
95512
|
+
_context19.next = 7;
|
|
95295
95513
|
break;
|
|
95296
95514
|
}
|
|
95297
95515
|
|
|
95298
|
-
index =
|
|
95299
|
-
|
|
95516
|
+
index = _context19.t1.value;
|
|
95517
|
+
_context19.next = 5;
|
|
95300
95518
|
return getLayerList(result.buildList[index]).then(function (layerList) {
|
|
95301
95519
|
if (layerList && layerList.length) {
|
|
95302
95520
|
var list = layerList.filter(function (item) {
|
|
@@ -95307,19 +95525,19 @@ var util_utils = {
|
|
|
95307
95525
|
});
|
|
95308
95526
|
|
|
95309
95527
|
case 5:
|
|
95310
|
-
|
|
95528
|
+
_context19.next = 1;
|
|
95311
95529
|
break;
|
|
95312
95530
|
|
|
95313
95531
|
case 7:
|
|
95314
95532
|
case "end":
|
|
95315
|
-
return
|
|
95533
|
+
return _context19.stop();
|
|
95316
95534
|
}
|
|
95317
95535
|
}
|
|
95318
|
-
},
|
|
95536
|
+
}, _callee14);
|
|
95319
95537
|
}));
|
|
95320
95538
|
|
|
95321
95539
|
return function getLayerAsync() {
|
|
95322
|
-
return
|
|
95540
|
+
return _ref15.apply(this, arguments);
|
|
95323
95541
|
};
|
|
95324
95542
|
}();
|
|
95325
95543
|
|
|
@@ -95429,15 +95647,21 @@ var util_utils = {
|
|
|
95429
95647
|
return;
|
|
95430
95648
|
}
|
|
95431
95649
|
|
|
95650
|
+
var paramsObj = {
|
|
95651
|
+
village_id: layer.extra.village_id,
|
|
95652
|
+
layer_id: layer.id
|
|
95653
|
+
};
|
|
95654
|
+
|
|
95655
|
+
if (!props.showRoomArea) {
|
|
95656
|
+
paramsObj.exclude_area = 1;
|
|
95657
|
+
}
|
|
95658
|
+
|
|
95432
95659
|
emit("request", {
|
|
95433
95660
|
params: {
|
|
95434
95661
|
method: "get",
|
|
95435
95662
|
server: "/village",
|
|
95436
95663
|
url: "/project/room/all",
|
|
95437
|
-
extra: {
|
|
95438
|
-
village_id: layer.extra.village_id,
|
|
95439
|
-
layer_id: layer.id
|
|
95440
|
-
}
|
|
95664
|
+
extra: Object(objectSpread2["a" /* default */])({}, paramsObj)
|
|
95441
95665
|
},
|
|
95442
95666
|
success: function success(res) {
|
|
95443
95667
|
if (res.list.length) {
|
|
@@ -95523,16 +95747,22 @@ var util_utils = {
|
|
|
95523
95747
|
return;
|
|
95524
95748
|
}
|
|
95525
95749
|
|
|
95750
|
+
var paramsObj = {
|
|
95751
|
+
village_id: room.extra.village_id,
|
|
95752
|
+
layer_id: room.extra.layer_id,
|
|
95753
|
+
parent_room_id: room.id
|
|
95754
|
+
};
|
|
95755
|
+
|
|
95756
|
+
if (!props.showRoomArea) {
|
|
95757
|
+
paramsObj.exclude_area = 1;
|
|
95758
|
+
}
|
|
95759
|
+
|
|
95526
95760
|
emit("request", {
|
|
95527
95761
|
params: {
|
|
95528
95762
|
method: "get",
|
|
95529
95763
|
server: "/village",
|
|
95530
95764
|
url: "/project/room/all",
|
|
95531
|
-
extra: {
|
|
95532
|
-
village_id: room.extra.village_id,
|
|
95533
|
-
layer_id: room.extra.layer_id,
|
|
95534
|
-
parent_room_id: room.id
|
|
95535
|
-
}
|
|
95765
|
+
extra: Object(objectSpread2["a" /* default */])({}, paramsObj)
|
|
95536
95766
|
},
|
|
95537
95767
|
success: function success(res) {
|
|
95538
95768
|
if (res.list.length) {
|
|
@@ -95858,14 +96088,15 @@ var util_utils = {
|
|
|
95858
96088
|
|
|
95859
96089
|
if (defaultCheckedIds.villageId) {
|
|
95860
96090
|
var itemKey = "";
|
|
95861
|
-
var result = getVillageById(defaultCheckedIds.villageId);
|
|
95862
96091
|
|
|
95863
|
-
|
|
96092
|
+
var _result3 = getVillageById(defaultCheckedIds.villageId);
|
|
96093
|
+
|
|
96094
|
+
if (!_result3) {
|
|
95864
96095
|
emitError();
|
|
95865
96096
|
return;
|
|
95866
96097
|
}
|
|
95867
96098
|
|
|
95868
|
-
itemKey =
|
|
96099
|
+
itemKey = _result3.depId ? "department-".concat(_result3.depId, "-village_").concat(defaultCheckedIds.villageId) : "village_".concat(defaultCheckedIds.villageId);
|
|
95869
96100
|
|
|
95870
96101
|
if (defaultCheckedIds.buildId) {
|
|
95871
96102
|
itemKey = "".concat(itemKey, "_build_").concat(defaultCheckedIds.buildId);
|
|
@@ -95991,26 +96222,26 @@ var util_utils = {
|
|
|
95991
96222
|
var _village2 = _step6.value;
|
|
95992
96223
|
|
|
95993
96224
|
if (_village2.children && _village2.children.length) {
|
|
95994
|
-
var
|
|
96225
|
+
var _build3 = void 0;
|
|
95995
96226
|
|
|
95996
96227
|
_village2.children.forEach(function (v) {
|
|
95997
96228
|
if (v.childType === "buildLevel") {
|
|
95998
96229
|
if (v.children.find(function (item) {
|
|
95999
96230
|
return item.id == buildId;
|
|
96000
96231
|
})) {
|
|
96001
|
-
|
|
96232
|
+
_build3 = v.children.find(function (item) {
|
|
96002
96233
|
return item.id == buildId;
|
|
96003
96234
|
});
|
|
96004
96235
|
}
|
|
96005
96236
|
} else {
|
|
96006
96237
|
if (v.id == buildId) {
|
|
96007
|
-
|
|
96238
|
+
_build3 = v;
|
|
96008
96239
|
}
|
|
96009
96240
|
}
|
|
96010
96241
|
}); // const build = village.children.find((b) => b.id == buildId);
|
|
96011
96242
|
|
|
96012
96243
|
|
|
96013
|
-
if (
|
|
96244
|
+
if (_build3) {
|
|
96014
96245
|
return _village2.id;
|
|
96015
96246
|
}
|
|
96016
96247
|
}
|
|
@@ -96201,7 +96432,7 @@ var util_utils = {
|
|
|
96201
96432
|
} else {
|
|
96202
96433
|
if (village.buildList && village.buildList.length) {
|
|
96203
96434
|
var regExp = new RegExp("(.+?(".concat(utils_util.buildLevelArr.join("|"), "))"));
|
|
96204
|
-
var
|
|
96435
|
+
var _result4 = [];
|
|
96205
96436
|
village.isLeaf = false;
|
|
96206
96437
|
village.buildList.forEach(function (build) {
|
|
96207
96438
|
var buildItem = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, build), {}, {
|
|
@@ -96225,18 +96456,18 @@ var util_utils = {
|
|
|
96225
96456
|
var group1 = match[1]; // 提取"数字栋"
|
|
96226
96457
|
|
|
96227
96458
|
if (group1.length >= 2 && build.build_name.slice(group1.length).length > 0) {
|
|
96228
|
-
var index =
|
|
96459
|
+
var index = _result4.findIndex(function (v) {
|
|
96229
96460
|
return v.title === group1;
|
|
96230
96461
|
});
|
|
96231
96462
|
|
|
96232
96463
|
if (index !== -1) {
|
|
96233
|
-
|
|
96464
|
+
_result4[index].children.push(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, buildItem), {}, {
|
|
96234
96465
|
title: build.build_name.slice(group1.length) // 1单元
|
|
96235
96466
|
|
|
96236
96467
|
}));
|
|
96237
96468
|
} else {
|
|
96238
96469
|
// 将结果添加到数组
|
|
96239
|
-
|
|
96470
|
+
_result4.push({
|
|
96240
96471
|
childType: "buildLevel",
|
|
96241
96472
|
title: group1,
|
|
96242
96473
|
// 2栋
|
|
@@ -96252,14 +96483,14 @@ var util_utils = {
|
|
|
96252
96483
|
}
|
|
96253
96484
|
} else {
|
|
96254
96485
|
// 没匹配到
|
|
96255
|
-
|
|
96486
|
+
_result4.push(Object(objectSpread2["a" /* default */])({}, buildItem));
|
|
96256
96487
|
}
|
|
96257
96488
|
} else {
|
|
96258
96489
|
// 没匹配到
|
|
96259
|
-
|
|
96490
|
+
_result4.push(Object(objectSpread2["a" /* default */])({}, buildItem));
|
|
96260
96491
|
}
|
|
96261
96492
|
});
|
|
96262
|
-
|
|
96493
|
+
_result4 = _result4.map(function (v) {
|
|
96263
96494
|
var _v$children4, _v$children5;
|
|
96264
96495
|
|
|
96265
96496
|
if (v.childType === "buildLevel" && ((_v$children4 = v.children) === null || _v$children4 === void 0 ? void 0 : _v$children4.length) === 1) {
|
|
@@ -96276,7 +96507,7 @@ var util_utils = {
|
|
|
96276
96507
|
|
|
96277
96508
|
return v;
|
|
96278
96509
|
});
|
|
96279
|
-
village.children =
|
|
96510
|
+
village.children = _result4; // village.children = village.buildList.map((build) => ({
|
|
96280
96511
|
// ...build,
|
|
96281
96512
|
// level,
|
|
96282
96513
|
// childType: "build",
|
|
@@ -96359,8 +96590,8 @@ var util_utils = {
|
|
|
96359
96590
|
}));
|
|
96360
96591
|
// CONCATENATED MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=script&lang=js
|
|
96361
96592
|
|
|
96362
|
-
// EXTERNAL MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=style&index=0&id=
|
|
96363
|
-
var
|
|
96593
|
+
// EXTERNAL MODULE: ./src/components/ChooseHousingResources/index.vue?vue&type=style&index=0&id=47afd95d&lang=less&scoped=true
|
|
96594
|
+
var ChooseHousingResourcesvue_type_style_index_0_id_47afd95d_lang_less_scoped_true = __webpack_require__("2fea");
|
|
96364
96595
|
|
|
96365
96596
|
// CONCATENATED MODULE: ./src/components/ChooseHousingResources/index.vue
|
|
96366
96597
|
|
|
@@ -96370,7 +96601,7 @@ var ChooseHousingResourcesvue_type_style_index_0_id_ef1ec100_lang_less_scoped_tr
|
|
|
96370
96601
|
|
|
96371
96602
|
|
|
96372
96603
|
|
|
96373
|
-
const ChooseHousingResources_exports_ = /*#__PURE__*/exportHelper_default()(ChooseHousingResourcesvue_type_script_lang_js, [['render',
|
|
96604
|
+
const ChooseHousingResources_exports_ = /*#__PURE__*/exportHelper_default()(ChooseHousingResourcesvue_type_script_lang_js, [['render',ChooseHousingResourcesvue_type_template_id_47afd95d_scoped_true_render],['__scopeId',"data-v-47afd95d"]])
|
|
96374
96605
|
|
|
96375
96606
|
/* harmony default export */ var ChooseHousingResources = (ChooseHousingResources_exports_);
|
|
96376
96607
|
// 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
|