bl-common-vue3 3.3.73 → 3.3.74
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/.idea/components_vue3.iml +7 -4
- package/lib/vue3common.common.js +453 -0
- package/lib/vue3common.umd.js +453 -0
- package/lib/vue3common.umd.min.js +5 -5
- package/package.json +1 -1
- package/.idea/misc.xml +0 -6
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="
|
|
3
|
-
<component name="NewModuleRootManager"
|
|
4
|
-
<
|
|
5
|
-
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
6
9
|
<orderEntry type="inheritedJdk" />
|
|
7
10
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
11
|
</component>
|
package/lib/vue3common.common.js
CHANGED
|
@@ -781,6 +781,48 @@ module.exports = function (matched, str, position, captures, namedCaptures, repl
|
|
|
781
781
|
};
|
|
782
782
|
|
|
783
783
|
|
|
784
|
+
/***/ }),
|
|
785
|
+
|
|
786
|
+
/***/ "0ccb":
|
|
787
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
788
|
+
|
|
789
|
+
// https://github.com/tc39/proposal-string-pad-start-end
|
|
790
|
+
var uncurryThis = __webpack_require__("e330");
|
|
791
|
+
var toLength = __webpack_require__("50c4");
|
|
792
|
+
var toString = __webpack_require__("577e");
|
|
793
|
+
var $repeat = __webpack_require__("1148");
|
|
794
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
795
|
+
|
|
796
|
+
var repeat = uncurryThis($repeat);
|
|
797
|
+
var stringSlice = uncurryThis(''.slice);
|
|
798
|
+
var ceil = Math.ceil;
|
|
799
|
+
|
|
800
|
+
// `String.prototype.{ padStart, padEnd }` methods implementation
|
|
801
|
+
var createMethod = function (IS_END) {
|
|
802
|
+
return function ($this, maxLength, fillString) {
|
|
803
|
+
var S = toString(requireObjectCoercible($this));
|
|
804
|
+
var intMaxLength = toLength(maxLength);
|
|
805
|
+
var stringLength = S.length;
|
|
806
|
+
var fillStr = fillString === undefined ? ' ' : toString(fillString);
|
|
807
|
+
var fillLen, stringFiller;
|
|
808
|
+
if (intMaxLength <= stringLength || fillStr == '') return S;
|
|
809
|
+
fillLen = intMaxLength - stringLength;
|
|
810
|
+
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
|
|
811
|
+
if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);
|
|
812
|
+
return IS_END ? S + stringFiller : stringFiller + S;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
module.exports = {
|
|
817
|
+
// `String.prototype.padStart` method
|
|
818
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
819
|
+
start: createMethod(false),
|
|
820
|
+
// `String.prototype.padEnd` method
|
|
821
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padend
|
|
822
|
+
end: createMethod(true)
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
|
|
784
826
|
/***/ }),
|
|
785
827
|
|
|
786
828
|
/***/ "0cfb":
|
|
@@ -58695,6 +58737,26 @@ module.exports = {
|
|
|
58695
58737
|
};
|
|
58696
58738
|
|
|
58697
58739
|
|
|
58740
|
+
/***/ }),
|
|
58741
|
+
|
|
58742
|
+
/***/ "4d90":
|
|
58743
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
58744
|
+
|
|
58745
|
+
"use strict";
|
|
58746
|
+
|
|
58747
|
+
var $ = __webpack_require__("23e7");
|
|
58748
|
+
var $padStart = __webpack_require__("0ccb").start;
|
|
58749
|
+
var WEBKIT_BUG = __webpack_require__("9a0c");
|
|
58750
|
+
|
|
58751
|
+
// `String.prototype.padStart` method
|
|
58752
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
58753
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
58754
|
+
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
58755
|
+
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
58756
|
+
}
|
|
58757
|
+
});
|
|
58758
|
+
|
|
58759
|
+
|
|
58698
58760
|
/***/ }),
|
|
58699
58761
|
|
|
58700
58762
|
/***/ "4d91":
|
|
@@ -60145,6 +60207,17 @@ function _typeof(obj) {
|
|
|
60145
60207
|
}, _typeof(obj);
|
|
60146
60208
|
}
|
|
60147
60209
|
|
|
60210
|
+
/***/ }),
|
|
60211
|
+
|
|
60212
|
+
/***/ "54cf":
|
|
60213
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
60214
|
+
|
|
60215
|
+
"use strict";
|
|
60216
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_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_13c099dc_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b015");
|
|
60217
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_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_13c099dc_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_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_13c099dc_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
60218
|
+
/* unused harmony reexport * */
|
|
60219
|
+
|
|
60220
|
+
|
|
60148
60221
|
/***/ }),
|
|
60149
60222
|
|
|
60150
60223
|
/***/ "5530":
|
|
@@ -67291,6 +67364,20 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.displayName = 'Exclama
|
|
|
67291
67364
|
icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
67292
67365
|
/* harmony default export */ var icons_ExclamationCircleOutlined = __webpack_exports__["a"] = (icons_ExclamationCircleOutlined_ExclamationCircleOutlined);
|
|
67293
67366
|
|
|
67367
|
+
/***/ }),
|
|
67368
|
+
|
|
67369
|
+
/***/ "985f":
|
|
67370
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
67371
|
+
|
|
67372
|
+
// Imports
|
|
67373
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
67374
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
67375
|
+
// Module
|
|
67376
|
+
exports.push([module.i, ".icones{cursor:pointer}.disabledicones,.icones{display:inline-block;height:32px;line-height:32px;width:32px;text-align:center;color:#888787;border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9}.disabledicones{background:#f5f5f5;cursor:not-allowed}", ""]);
|
|
67377
|
+
// Exports
|
|
67378
|
+
module.exports = exports;
|
|
67379
|
+
|
|
67380
|
+
|
|
67294
67381
|
/***/ }),
|
|
67295
67382
|
|
|
67296
67383
|
/***/ "9890":
|
|
@@ -67393,6 +67480,17 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
67393
67480
|
});
|
|
67394
67481
|
|
|
67395
67482
|
|
|
67483
|
+
/***/ }),
|
|
67484
|
+
|
|
67485
|
+
/***/ "9a0c":
|
|
67486
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
67487
|
+
|
|
67488
|
+
// https://github.com/zloirock/core-js/issues/280
|
|
67489
|
+
var userAgent = __webpack_require__("342f");
|
|
67490
|
+
|
|
67491
|
+
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
|
|
67492
|
+
|
|
67493
|
+
|
|
67396
67494
|
/***/ }),
|
|
67397
67495
|
|
|
67398
67496
|
/***/ "9a1f":
|
|
@@ -70198,6 +70296,22 @@ var getTransitionName = function getTransitionName(rootPrefixCls, motion, transi
|
|
|
70198
70296
|
|
|
70199
70297
|
/***/ }),
|
|
70200
70298
|
|
|
70299
|
+
/***/ "b015":
|
|
70300
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
70301
|
+
|
|
70302
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
70303
|
+
|
|
70304
|
+
// load the styles
|
|
70305
|
+
var content = __webpack_require__("985f");
|
|
70306
|
+
if(content.__esModule) content = content.default;
|
|
70307
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
70308
|
+
if(content.locals) module.exports = content.locals;
|
|
70309
|
+
// add the styles to the DOM
|
|
70310
|
+
var add = __webpack_require__("499e").default
|
|
70311
|
+
var update = add("8da4b618", content, true, {"sourceMap":false,"shadowMode":false});
|
|
70312
|
+
|
|
70313
|
+
/***/ }),
|
|
70314
|
+
|
|
70201
70315
|
/***/ "b041":
|
|
70202
70316
|
/***/ (function(module, exports, __webpack_require__) {
|
|
70203
70317
|
|
|
@@ -79442,6 +79556,7 @@ __webpack_require__.d(__webpack_exports__, "ChooseHousingModal", function() { re
|
|
|
79442
79556
|
__webpack_require__.d(__webpack_exports__, "ViewPropertyList", function() { return /* reexport */ ViewPropertyList; });
|
|
79443
79557
|
__webpack_require__.d(__webpack_exports__, "LinkLibrary", function() { return /* reexport */ LinkLibrary; });
|
|
79444
79558
|
__webpack_require__.d(__webpack_exports__, "ExportComponents", function() { return /* reexport */ ExportComponents; });
|
|
79559
|
+
__webpack_require__.d(__webpack_exports__, "TenantComponent", function() { return /* reexport */ TenantComponent; });
|
|
79445
79560
|
__webpack_require__.d(__webpack_exports__, "install", function() { return /* reexport */ index_install; });
|
|
79446
79561
|
|
|
79447
79562
|
// NAMESPACE OBJECT: ./src/components/components.js
|
|
@@ -79469,6 +79584,7 @@ __webpack_require__.d(components_namespaceObject, "ChooseHousingModal", function
|
|
|
79469
79584
|
__webpack_require__.d(components_namespaceObject, "ViewPropertyList", function() { return ViewPropertyList; });
|
|
79470
79585
|
__webpack_require__.d(components_namespaceObject, "LinkLibrary", function() { return LinkLibrary; });
|
|
79471
79586
|
__webpack_require__.d(components_namespaceObject, "ExportComponents", function() { return ExportComponents; });
|
|
79587
|
+
__webpack_require__.d(components_namespaceObject, "TenantComponent", function() { return TenantComponent; });
|
|
79472
79588
|
|
|
79473
79589
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
79474
79590
|
// This file is imported into lib/wc client bundles.
|
|
@@ -144624,6 +144740,342 @@ var currentImg = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(""
|
|
|
144624
144740
|
const ExportComponents_exports_ = /*#__PURE__*/exportHelper_default()(ExportComponentsvue_type_script_lang_js, [['render',ExportComponentsvue_type_template_id_5175b21c_render]])
|
|
144625
144741
|
|
|
144626
144742
|
/* harmony default export */ var ExportComponents = (ExportComponents_exports_);
|
|
144743
|
+
// 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/TenantComponent/index.vue?vue&type=template&id=13c099dc
|
|
144744
|
+
|
|
144745
|
+
var TenantComponentvue_type_template_id_13c099dc_hoisted_1 = {
|
|
144746
|
+
style: {
|
|
144747
|
+
"display": "flex"
|
|
144748
|
+
}
|
|
144749
|
+
};
|
|
144750
|
+
var TenantComponentvue_type_template_id_13c099dc_hoisted_2 = {
|
|
144751
|
+
key: 0,
|
|
144752
|
+
class: "disabledicones"
|
|
144753
|
+
};
|
|
144754
|
+
function TenantComponentvue_type_template_id_13c099dc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
144755
|
+
var _component_a_spin = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-spin");
|
|
144756
|
+
|
|
144757
|
+
var _component_a_select = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select");
|
|
144758
|
+
|
|
144759
|
+
var _component_diff_filled = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("diff-filled");
|
|
144760
|
+
|
|
144761
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TenantComponentvue_type_template_id_13c099dc_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_select, {
|
|
144762
|
+
value: _ctx.owner_id,
|
|
144763
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
144764
|
+
return _ctx.owner_id = $event;
|
|
144765
|
+
}),
|
|
144766
|
+
"label-in-value": "",
|
|
144767
|
+
"show-search": "",
|
|
144768
|
+
placeholder: "可直接录入名称搜索",
|
|
144769
|
+
style: {
|
|
144770
|
+
"width": "calc(100% - 32px)"
|
|
144771
|
+
},
|
|
144772
|
+
"filter-option": false,
|
|
144773
|
+
allowClear: _ctx.allowes,
|
|
144774
|
+
disabled: _ctx.types,
|
|
144775
|
+
"not-found-content": _ctx.fetching ? undefined : null,
|
|
144776
|
+
options: _ctx.ownerList,
|
|
144777
|
+
onSelect: _ctx.onOwnerSelect,
|
|
144778
|
+
onSearch: _ctx.onOwnerSearch,
|
|
144779
|
+
onChange: _ctx.onchanges
|
|
144780
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createSlots"])({
|
|
144781
|
+
_: 2
|
|
144782
|
+
}, [_ctx.fetching ? {
|
|
144783
|
+
name: "notFoundContent",
|
|
144784
|
+
fn: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
144785
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_spin, {
|
|
144786
|
+
size: "small"
|
|
144787
|
+
})];
|
|
144788
|
+
}),
|
|
144789
|
+
key: "0"
|
|
144790
|
+
} : undefined]), 1032, ["value", "allowClear", "disabled", "not-found-content", "options", "onSelect", "onSearch", "onChange"]), _ctx.types ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TenantComponentvue_type_template_id_13c099dc_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_diff_filled)])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
144791
|
+
key: 1,
|
|
144792
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
144793
|
+
return _ctx.getlistes && _ctx.getlistes.apply(_ctx, arguments);
|
|
144794
|
+
}),
|
|
144795
|
+
class: "icones"
|
|
144796
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_diff_filled)]))]);
|
|
144797
|
+
}
|
|
144798
|
+
// CONCATENATED MODULE: ./src/components/TenantComponent/index.vue?vue&type=template&id=13c099dc
|
|
144799
|
+
|
|
144800
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
144801
|
+
var es_string_pad_start = __webpack_require__("4d90");
|
|
144802
|
+
|
|
144803
|
+
// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DiffFilled.js
|
|
144804
|
+
// This icon file is generated automatically.
|
|
144805
|
+
var DiffFilled_DiffFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z" } }] }, "name": "diff", "theme": "filled" };
|
|
144806
|
+
/* harmony default export */ var asn_DiffFilled = (DiffFilled_DiffFilled);
|
|
144807
|
+
|
|
144808
|
+
// CONCATENATED MODULE: ./node_modules/@ant-design/icons-vue/es/icons/DiffFilled.js
|
|
144809
|
+
|
|
144810
|
+
|
|
144811
|
+
function DiffFilled_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { DiffFilled_defineProperty(target, key, source[key]); }); } return target; }
|
|
144812
|
+
|
|
144813
|
+
function DiffFilled_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
144814
|
+
|
|
144815
|
+
// GENERATE BY ./scripts/generate.ts
|
|
144816
|
+
// DON NOT EDIT IT MANUALLY
|
|
144817
|
+
|
|
144818
|
+
|
|
144819
|
+
|
|
144820
|
+
var icons_DiffFilled_DiffFilled = function DiffFilled(props, context) {
|
|
144821
|
+
var p = DiffFilled_objectSpread({}, props, context.attrs);
|
|
144822
|
+
|
|
144823
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(AntdIcon["a" /* default */], DiffFilled_objectSpread({}, p, {
|
|
144824
|
+
"icon": asn_DiffFilled
|
|
144825
|
+
}), null);
|
|
144826
|
+
};
|
|
144827
|
+
|
|
144828
|
+
icons_DiffFilled_DiffFilled.displayName = 'DiffFilled';
|
|
144829
|
+
icons_DiffFilled_DiffFilled.inheritAttrs = false;
|
|
144830
|
+
/* harmony default export */ var icons_DiffFilled = (icons_DiffFilled_DiffFilled);
|
|
144831
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/TenantComponent/index.vue?vue&type=script&lang=js
|
|
144832
|
+
|
|
144833
|
+
|
|
144834
|
+
|
|
144835
|
+
|
|
144836
|
+
|
|
144837
|
+
|
|
144838
|
+
|
|
144839
|
+
/* harmony default export */ var TenantComponentvue_type_script_lang_js = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
144840
|
+
name: "TenantComponent",
|
|
144841
|
+
components: {
|
|
144842
|
+
DiffFilled: icons_DiffFilled
|
|
144843
|
+
},
|
|
144844
|
+
props: {
|
|
144845
|
+
ownerId: {
|
|
144846
|
+
//租客id
|
|
144847
|
+
type: [String, Number],
|
|
144848
|
+
default: undefined
|
|
144849
|
+
},
|
|
144850
|
+
types: {
|
|
144851
|
+
//是否禁用
|
|
144852
|
+
type: Boolean,
|
|
144853
|
+
default: false
|
|
144854
|
+
},
|
|
144855
|
+
allowes: {
|
|
144856
|
+
//是否支持清除功能 默认不支持
|
|
144857
|
+
type: Boolean,
|
|
144858
|
+
default: false
|
|
144859
|
+
},
|
|
144860
|
+
titleser: {
|
|
144861
|
+
//弹窗组件名称
|
|
144862
|
+
type: String,
|
|
144863
|
+
default: ''
|
|
144864
|
+
},
|
|
144865
|
+
isCostContractes: {
|
|
144866
|
+
//是否是成本合同的账单
|
|
144867
|
+
type: Boolean,
|
|
144868
|
+
default: false
|
|
144869
|
+
}
|
|
144870
|
+
},
|
|
144871
|
+
setup: function setup(props, context) {
|
|
144872
|
+
var state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
144873
|
+
fetching: false,
|
|
144874
|
+
//加载状态
|
|
144875
|
+
owner_id: undefined,
|
|
144876
|
+
//租客id
|
|
144877
|
+
ownerList: [],
|
|
144878
|
+
//租客列表
|
|
144879
|
+
SelectTenant: {},
|
|
144880
|
+
//已选中的租客信息
|
|
144881
|
+
notices: 0 //是否是本次发起的通知,非本次通知不获取
|
|
144882
|
+
|
|
144883
|
+
}); //延迟时间
|
|
144884
|
+
|
|
144885
|
+
var timeoutes = null; //选中回显
|
|
144886
|
+
|
|
144887
|
+
var onOwnerSelect = function onOwnerSelect(value, option) {
|
|
144888
|
+
state.owner_id = option.value;
|
|
144889
|
+
state.SelectTenant = option;
|
|
144890
|
+
context.emit("selectcancel", state.owner_id, state.SelectTenant);
|
|
144891
|
+
}; //清除功能,如果不需要清除功能可以不调用
|
|
144892
|
+
|
|
144893
|
+
|
|
144894
|
+
var onchanges = function onchanges() {
|
|
144895
|
+
if (!state.owner_id) {
|
|
144896
|
+
state.owner_id = undefined;
|
|
144897
|
+
state.SelectTenant = {};
|
|
144898
|
+
context.emit("changeallowes", state.owner_id, state.SelectTenant);
|
|
144899
|
+
}
|
|
144900
|
+
}; //延迟加载
|
|
144901
|
+
|
|
144902
|
+
|
|
144903
|
+
var onOwnerSearch = function onOwnerSearch(value) {
|
|
144904
|
+
if (timeoutes) {
|
|
144905
|
+
clearTimeout(timeoutes);
|
|
144906
|
+
timeoutes = null;
|
|
144907
|
+
}
|
|
144908
|
+
|
|
144909
|
+
var getOwnerResult = function getOwnerResult() {
|
|
144910
|
+
getOwnerList(value);
|
|
144911
|
+
};
|
|
144912
|
+
|
|
144913
|
+
timeoutes = setTimeout(getOwnerResult, 600);
|
|
144914
|
+
}; //通过id获取当前回显
|
|
144915
|
+
|
|
144916
|
+
|
|
144917
|
+
var getOwnerListes = function getOwnerListes() {
|
|
144918
|
+
var params = {
|
|
144919
|
+
page: 1,
|
|
144920
|
+
pageSize: 9999,
|
|
144921
|
+
owner_id: props.ownerId || undefined
|
|
144922
|
+
};
|
|
144923
|
+
context.emit("request", {
|
|
144924
|
+
params: {
|
|
144925
|
+
method: "get",
|
|
144926
|
+
server: "/org",
|
|
144927
|
+
url: "/owner/manage",
|
|
144928
|
+
extra: params
|
|
144929
|
+
},
|
|
144930
|
+
success: function success(res) {
|
|
144931
|
+
state.ownerList = res.list.map(function (item) {
|
|
144932
|
+
return Object(objectSpread2["a" /* default */])({
|
|
144933
|
+
value: item.id,
|
|
144934
|
+
label: item.name
|
|
144935
|
+
}, item);
|
|
144936
|
+
});
|
|
144937
|
+
|
|
144938
|
+
if (state.ownerList.length > 0) {
|
|
144939
|
+
for (var i = 0; i < state.ownerList.length; i++) {
|
|
144940
|
+
if (props.ownerId == state.ownerList[i].id) {
|
|
144941
|
+
state.SelectTenant = state.ownerList[i];
|
|
144942
|
+
}
|
|
144943
|
+
}
|
|
144944
|
+
}
|
|
144945
|
+
}
|
|
144946
|
+
});
|
|
144947
|
+
}; //搜索名称查找
|
|
144948
|
+
|
|
144949
|
+
|
|
144950
|
+
var getOwnerList = function getOwnerList(keywords) {
|
|
144951
|
+
if (!keywords) {
|
|
144952
|
+
state.ownerList = [];
|
|
144953
|
+
return;
|
|
144954
|
+
}
|
|
144955
|
+
|
|
144956
|
+
state.fetching = true;
|
|
144957
|
+
var params = {
|
|
144958
|
+
keywords: keywords,
|
|
144959
|
+
sham: 0,
|
|
144960
|
+
type: 0
|
|
144961
|
+
};
|
|
144962
|
+
context.emit("request", {
|
|
144963
|
+
params: {
|
|
144964
|
+
method: "get",
|
|
144965
|
+
server: "/org",
|
|
144966
|
+
url: "/org/getOwnerList",
|
|
144967
|
+
extra: params
|
|
144968
|
+
},
|
|
144969
|
+
success: function success(res) {
|
|
144970
|
+
state.fetching = false;
|
|
144971
|
+
var result = [];
|
|
144972
|
+
|
|
144973
|
+
if (res.list) {
|
|
144974
|
+
result = res.list.map(function (item) {
|
|
144975
|
+
return Object(objectSpread2["a" /* default */])({
|
|
144976
|
+
value: item.id,
|
|
144977
|
+
label: item.name
|
|
144978
|
+
}, item);
|
|
144979
|
+
});
|
|
144980
|
+
}
|
|
144981
|
+
|
|
144982
|
+
state.ownerList = result;
|
|
144983
|
+
}
|
|
144984
|
+
});
|
|
144985
|
+
}; //点击打开组件
|
|
144986
|
+
|
|
144987
|
+
|
|
144988
|
+
var getlistes = function getlistes() {
|
|
144989
|
+
// 使用Math.random()方法生成一个介于0和1之间的随机数,并乘以100000,然后使用Math.floor()方法向下取整,确保为整数
|
|
144990
|
+
var randomNumber = Math.floor(Math.random() * 100000); // 如果生成的随机数不到5位数,可以使用padStart()方法在前面补0,确保为5位数
|
|
144991
|
+
|
|
144992
|
+
var randomCode = String(randomNumber).padStart(5, '0');
|
|
144993
|
+
state.notices = randomCode;
|
|
144994
|
+
|
|
144995
|
+
if (state.owner_id) {
|
|
144996
|
+
state.data = {
|
|
144997
|
+
id: state.SelectTenant.id,
|
|
144998
|
+
name: state.SelectTenant.name,
|
|
144999
|
+
tenant_no: state.SelectTenant.tenant_no,
|
|
145000
|
+
tel: state.SelectTenant.tel
|
|
145001
|
+
};
|
|
145002
|
+
}
|
|
145003
|
+
|
|
145004
|
+
window.microApp.forceDispatch({
|
|
145005
|
+
type: "TenantComponent",
|
|
145006
|
+
visible: true,
|
|
145007
|
+
data: state.data,
|
|
145008
|
+
title: props.titleser,
|
|
145009
|
+
notices: state.notices
|
|
145010
|
+
});
|
|
145011
|
+
};
|
|
145012
|
+
|
|
145013
|
+
var mainAppDataChange = function mainAppDataChange(data) {
|
|
145014
|
+
if (data.successInfo && data.successInfo.pitchon) {
|
|
145015
|
+
if (state.notices == data.successInfo.notices) {
|
|
145016
|
+
state.SelectTenant = data.successInfo.data;
|
|
145017
|
+
state.owner_id = data.successInfo.pitchon.id;
|
|
145018
|
+
context.emit("selectcancel", state.owner_id, state.SelectTenant);
|
|
145019
|
+
onOwnerSearch(data.successInfo.pitchon.name);
|
|
145020
|
+
}
|
|
145021
|
+
}
|
|
145022
|
+
};
|
|
145023
|
+
|
|
145024
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
|
|
145025
|
+
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
145026
|
+
window.microApp.addDataListener(mainAppDataChange, true);
|
|
145027
|
+
}
|
|
145028
|
+
});
|
|
145029
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
145030
|
+
return props.ownerId;
|
|
145031
|
+
}, function (val) {
|
|
145032
|
+
if (val) {
|
|
145033
|
+
if (state.owner_id != props.ownerId) {
|
|
145034
|
+
state.owner_id = props.ownerId;
|
|
145035
|
+
state.SelectTenant = {};
|
|
145036
|
+
getOwnerListes();
|
|
145037
|
+
}
|
|
145038
|
+
}
|
|
145039
|
+
});
|
|
145040
|
+
|
|
145041
|
+
var into = function into() {
|
|
145042
|
+
if (props.ownerId) {
|
|
145043
|
+
state.owner_id = props.ownerId;
|
|
145044
|
+
getOwnerListes();
|
|
145045
|
+
}
|
|
145046
|
+
|
|
145047
|
+
state.SelectTenant = {};
|
|
145048
|
+
};
|
|
145049
|
+
|
|
145050
|
+
into();
|
|
145051
|
+
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(state)), {}, {
|
|
145052
|
+
onOwnerSelect: onOwnerSelect,
|
|
145053
|
+
onOwnerSearch: onOwnerSearch,
|
|
145054
|
+
getOwnerListes: getOwnerListes,
|
|
145055
|
+
getOwnerList: getOwnerList,
|
|
145056
|
+
getlistes: getlistes,
|
|
145057
|
+
mainAppDataChange: mainAppDataChange,
|
|
145058
|
+
into: into,
|
|
145059
|
+
onchanges: onchanges
|
|
145060
|
+
});
|
|
145061
|
+
}
|
|
145062
|
+
}));
|
|
145063
|
+
// CONCATENATED MODULE: ./src/components/TenantComponent/index.vue?vue&type=script&lang=js
|
|
145064
|
+
|
|
145065
|
+
// EXTERNAL MODULE: ./src/components/TenantComponent/index.vue?vue&type=style&index=0&id=13c099dc&lang=css
|
|
145066
|
+
var TenantComponentvue_type_style_index_0_id_13c099dc_lang_css = __webpack_require__("54cf");
|
|
145067
|
+
|
|
145068
|
+
// CONCATENATED MODULE: ./src/components/TenantComponent/index.vue
|
|
145069
|
+
|
|
145070
|
+
|
|
145071
|
+
|
|
145072
|
+
|
|
145073
|
+
|
|
145074
|
+
|
|
145075
|
+
|
|
145076
|
+
const TenantComponent_exports_ = /*#__PURE__*/exportHelper_default()(TenantComponentvue_type_script_lang_js, [['render',TenantComponentvue_type_template_id_13c099dc_render]])
|
|
145077
|
+
|
|
145078
|
+
/* harmony default export */ var TenantComponent = (TenantComponent_exports_);
|
|
144627
145079
|
// CONCATENATED MODULE: ./src/components/components.js
|
|
144628
145080
|
/**
|
|
144629
145081
|
* 组件导出
|
|
@@ -144648,6 +145100,7 @@ const ExportComponents_exports_ = /*#__PURE__*/exportHelper_default()(ExportComp
|
|
|
144648
145100
|
|
|
144649
145101
|
|
|
144650
145102
|
|
|
145103
|
+
|
|
144651
145104
|
|
|
144652
145105
|
|
|
144653
145106
|
// CONCATENATED MODULE: ./index.js
|