ecinc-cloud-mappaio 9.7.74 → 9.7.76
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/ecmappaio.common.js +42 -35
- package/lib/ecmappaio.umd.js +42 -35
- package/lib/ecmappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -23881,7 +23881,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".van-input-field[data-v-702e82f7]{posi
|
|
|
23881
23881
|
|
|
23882
23882
|
/***/ }),
|
|
23883
23883
|
|
|
23884
|
-
/***/
|
|
23884
|
+
/***/ 9860:
|
|
23885
23885
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
23886
23886
|
|
|
23887
23887
|
"use strict";
|
|
@@ -23895,7 +23895,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23895
23895
|
|
|
23896
23896
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
23897
23897
|
// Module
|
|
23898
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".van-select-field[data-v-
|
|
23898
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".van-select-field[data-v-2227a196]{position:relative}.van-select-field[data-v-2227a196]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}", ""]);
|
|
23899
23899
|
// Exports
|
|
23900
23900
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
23901
23901
|
|
|
@@ -51761,19 +51761,19 @@ var update = add("54974a74", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
51761
51761
|
|
|
51762
51762
|
/***/ }),
|
|
51763
51763
|
|
|
51764
|
-
/***/
|
|
51764
|
+
/***/ 7554:
|
|
51765
51765
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
51766
51766
|
|
|
51767
51767
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
51768
51768
|
|
|
51769
51769
|
// load the styles
|
|
51770
|
-
var content = __webpack_require__(
|
|
51770
|
+
var content = __webpack_require__(9860);
|
|
51771
51771
|
if(content.__esModule) content = content.default;
|
|
51772
51772
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
51773
51773
|
if(content.locals) module.exports = content.locals;
|
|
51774
51774
|
// add the styles to the DOM
|
|
51775
51775
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
51776
|
-
var update = add("
|
|
51776
|
+
var update = add("fbf912be", content, true, {"sourceMap":false,"shadowMode":false});
|
|
51777
51777
|
|
|
51778
51778
|
/***/ }),
|
|
51779
51779
|
|
|
@@ -72073,8 +72073,8 @@ var InputField_component = (0,componentNormalizer/* default */.A)(
|
|
|
72073
72073
|
)
|
|
72074
72074
|
|
|
72075
72075
|
/* harmony default export */ var InputField = (InputField_component.exports);
|
|
72076
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=template&id=
|
|
72077
|
-
var
|
|
72076
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=template&id=2227a196&scoped=true
|
|
72077
|
+
var SelectFieldvue_type_template_id_2227a196_scoped_true_render = function render() {
|
|
72078
72078
|
var _vm = this,
|
|
72079
72079
|
_c = _vm._self._c;
|
|
72080
72080
|
return _vm.isShowField ? _c('div', {
|
|
@@ -72126,7 +72126,7 @@ var SelectFieldvue_type_template_id_f6029e90_scoped_true_render = function rende
|
|
|
72126
72126
|
}], null, false, 957041049)
|
|
72127
72127
|
})], 1) : _vm._e();
|
|
72128
72128
|
};
|
|
72129
|
-
var
|
|
72129
|
+
var SelectFieldvue_type_template_id_2227a196_scoped_true_staticRenderFns = [];
|
|
72130
72130
|
|
|
72131
72131
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=script&lang=js
|
|
72132
72132
|
function SelectFieldvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return SelectFieldvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, SelectFieldvue_type_script_lang_js_typeof(o); }
|
|
@@ -72244,7 +72244,7 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72244
72244
|
vo: {
|
|
72245
72245
|
handler: function handler(val) {
|
|
72246
72246
|
this.setTextValue();
|
|
72247
|
-
if (val.passenger && val.passenger[this.model + 'Options']) {
|
|
72247
|
+
if (val.passenger && val.passenger[this.model + 'Options'] !== undefined) {
|
|
72248
72248
|
this.initVerify();
|
|
72249
72249
|
}
|
|
72250
72250
|
},
|
|
@@ -72299,28 +72299,36 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72299
72299
|
},
|
|
72300
72300
|
beforeDestroy: function beforeDestroy() {
|
|
72301
72301
|
this.fieldDom.removeEventListener('change', this.initVerify);
|
|
72302
|
-
this.$bus.off('setSubFiledOptions', this.setSubFiledOptions);
|
|
72303
72302
|
},
|
|
72304
72303
|
mounted: function mounted() {
|
|
72305
72304
|
this.fieldDom = this.$el;
|
|
72306
72305
|
this.fieldDom.addEventListener('change', this.initVerify);
|
|
72307
72306
|
this.initVerify();
|
|
72308
|
-
this.$bus.on('setSubFiledOptions', this.setSubFiledOptions);
|
|
72309
72307
|
},
|
|
72310
72308
|
methods: {
|
|
72311
|
-
|
|
72312
|
-
|
|
72313
|
-
|
|
72314
|
-
|
|
72315
|
-
|
|
72316
|
-
|
|
72317
|
-
|
|
72318
|
-
|
|
72319
|
-
|
|
72320
|
-
|
|
72309
|
+
// 级联下发:同步子字段选项到 passenger;仅当子字段当前值不在新选项中时才清值,避免误清刚选中的值
|
|
72310
|
+
dispatchSubFiledOptions: function dispatchSubFiledOptions(subFiled, options) {
|
|
72311
|
+
var newList = options || [];
|
|
72312
|
+
if (this.vo.passenger) {
|
|
72313
|
+
this.$set(this.vo.passenger, subFiled + 'Options', newList);
|
|
72314
|
+
}
|
|
72315
|
+
// 子字段值的读取与清空均支持 dynamicFields.xxx 带点号路径(与 setFieldValue 的点号处理约定一致)
|
|
72316
|
+
var propNames = subFiled.split('.');
|
|
72317
|
+
var currentValue = null;
|
|
72318
|
+
if (propNames.length === 1) {
|
|
72319
|
+
currentValue = this.vo[subFiled];
|
|
72320
|
+
} else if (SelectFieldvue_type_script_lang_js_typeof(this.vo[propNames[0]]) === 'object' && this.vo[propNames[0]] != null) {
|
|
72321
|
+
currentValue = this.vo[propNames[0]][propNames[1]];
|
|
72322
|
+
}
|
|
72323
|
+
var stillExists = currentValue !== '' && currentValue !== null && currentValue !== undefined && newList.some(function (item) {
|
|
72324
|
+
return item.value == currentValue;
|
|
72325
|
+
});
|
|
72326
|
+
if (!stillExists) {
|
|
72327
|
+
if (propNames.length === 1) {
|
|
72328
|
+
this.$set(this.vo, subFiled, '');
|
|
72329
|
+
} else if (SelectFieldvue_type_script_lang_js_typeof(this.vo[propNames[0]]) === 'object' && this.vo[propNames[0]] != null) {
|
|
72330
|
+
this.$set(this.vo[propNames[0]], propNames[1], '');
|
|
72321
72331
|
}
|
|
72322
|
-
this.itemList = newList;
|
|
72323
|
-
this.setTextValue();
|
|
72324
72332
|
}
|
|
72325
72333
|
},
|
|
72326
72334
|
collectSubFiledOptions: function collectSubFiledOptions(currentValue) {
|
|
@@ -72340,8 +72348,10 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72340
72348
|
this.isShowField = true;
|
|
72341
72349
|
}
|
|
72342
72350
|
var itemList = [];
|
|
72343
|
-
if (this.vo.passenger && this.vo.passenger[this.getOptionsName()] !== undefined && SelectFieldvue_type_script_lang_js_typeof(this.vo.passenger[this.getOptionsName()]) === 'object'
|
|
72351
|
+
if (this.vo.passenger && this.vo.passenger[this.getOptionsName()] !== undefined && SelectFieldvue_type_script_lang_js_typeof(this.vo.passenger[this.getOptionsName()]) === 'object') {
|
|
72344
72352
|
itemList = this.vo.passenger[this.getOptionsName()];
|
|
72353
|
+
} else if (this.vo.passenger && this.vo.passenger[this.model + 'Options'] !== undefined && SelectFieldvue_type_script_lang_js_typeof(this.vo.passenger[this.model + 'Options']) === 'object') {
|
|
72354
|
+
itemList = this.vo.passenger[this.model + 'Options'];
|
|
72345
72355
|
} else if (this.options !== undefined && this.options !== null) {
|
|
72346
72356
|
// console.log(this.options)
|
|
72347
72357
|
var options = JSON.parse(this.options);
|
|
@@ -72381,7 +72391,7 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72381
72391
|
setTimeout(function () {
|
|
72382
72392
|
var finalOptions = _this4.collectSubFiledOptions(_this4.getFieldValue());
|
|
72383
72393
|
Object.keys(finalOptions).forEach(function (subFiled) {
|
|
72384
|
-
_this4
|
|
72394
|
+
_this4.dispatchSubFiledOptions(subFiled, finalOptions[subFiled]);
|
|
72385
72395
|
});
|
|
72386
72396
|
}, 100);
|
|
72387
72397
|
}
|
|
@@ -72484,10 +72494,7 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72484
72494
|
if (this.itemList && this.itemList.length > 0) {
|
|
72485
72495
|
var finalOptions = this.collectSubFiledOptions(val);
|
|
72486
72496
|
Object.keys(finalOptions).forEach(function (subFiled) {
|
|
72487
|
-
|
|
72488
|
-
_this6.$set(_this6.vo.passenger, subFiled, finalOptions[subFiled]);
|
|
72489
|
-
}
|
|
72490
|
-
_this6.$bus.emit('setSubFiledOptions', subFiled, finalOptions[subFiled]);
|
|
72497
|
+
_this6.dispatchSubFiledOptions(subFiled, finalOptions[subFiled]);
|
|
72491
72498
|
});
|
|
72492
72499
|
}
|
|
72493
72500
|
},
|
|
@@ -72498,9 +72505,9 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72498
72505
|
});
|
|
72499
72506
|
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=script&lang=js
|
|
72500
72507
|
/* harmony default export */ var FormField_SelectFieldvue_type_script_lang_js = (SelectFieldvue_type_script_lang_js);
|
|
72501
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=
|
|
72502
|
-
var
|
|
72503
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=
|
|
72508
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=2227a196&prod&scoped=true&lang=scss
|
|
72509
|
+
var SelectFieldvue_type_style_index_0_id_2227a196_prod_scoped_true_lang_scss = __webpack_require__(7554);
|
|
72510
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=2227a196&prod&scoped=true&lang=scss
|
|
72504
72511
|
|
|
72505
72512
|
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue
|
|
72506
72513
|
|
|
@@ -72513,11 +72520,11 @@ var SelectFieldvue_type_style_index_0_id_f6029e90_prod_scoped_true_lang_scss = _
|
|
|
72513
72520
|
|
|
72514
72521
|
var SelectField_component = (0,componentNormalizer/* default */.A)(
|
|
72515
72522
|
FormField_SelectFieldvue_type_script_lang_js,
|
|
72516
|
-
|
|
72517
|
-
|
|
72523
|
+
SelectFieldvue_type_template_id_2227a196_scoped_true_render,
|
|
72524
|
+
SelectFieldvue_type_template_id_2227a196_scoped_true_staticRenderFns,
|
|
72518
72525
|
false,
|
|
72519
72526
|
null,
|
|
72520
|
-
"
|
|
72527
|
+
"2227a196",
|
|
72521
72528
|
null
|
|
72522
72529
|
|
|
72523
72530
|
)
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -23891,7 +23891,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".van-input-field[data-v-702e82f7]{posi
|
|
|
23891
23891
|
|
|
23892
23892
|
/***/ }),
|
|
23893
23893
|
|
|
23894
|
-
/***/
|
|
23894
|
+
/***/ 1262:
|
|
23895
23895
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
23896
23896
|
|
|
23897
23897
|
"use strict";
|
|
@@ -23905,7 +23905,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23905
23905
|
|
|
23906
23906
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
23907
23907
|
// Module
|
|
23908
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".van-select-field[data-v-
|
|
23908
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".van-select-field[data-v-2227a196]{position:relative}.van-select-field[data-v-2227a196]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}", ""]);
|
|
23909
23909
|
// Exports
|
|
23910
23910
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
23911
23911
|
|
|
@@ -51771,19 +51771,19 @@ var update = add("aff90698", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
51771
51771
|
|
|
51772
51772
|
/***/ }),
|
|
51773
51773
|
|
|
51774
|
-
/***/
|
|
51774
|
+
/***/ 31:
|
|
51775
51775
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
51776
51776
|
|
|
51777
51777
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
51778
51778
|
|
|
51779
51779
|
// load the styles
|
|
51780
|
-
var content = __webpack_require__(
|
|
51780
|
+
var content = __webpack_require__(1262);
|
|
51781
51781
|
if(content.__esModule) content = content.default;
|
|
51782
51782
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
51783
51783
|
if(content.locals) module.exports = content.locals;
|
|
51784
51784
|
// add the styles to the DOM
|
|
51785
51785
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
51786
|
-
var update = add("
|
|
51786
|
+
var update = add("a9a7ce3e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
51787
51787
|
|
|
51788
51788
|
/***/ }),
|
|
51789
51789
|
|
|
@@ -72091,8 +72091,8 @@ var InputField_component = (0,componentNormalizer/* default */.A)(
|
|
|
72091
72091
|
)
|
|
72092
72092
|
|
|
72093
72093
|
/* harmony default export */ var InputField = (InputField_component.exports);
|
|
72094
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=template&id=
|
|
72095
|
-
var
|
|
72094
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=template&id=2227a196&scoped=true
|
|
72095
|
+
var SelectFieldvue_type_template_id_2227a196_scoped_true_render = function render() {
|
|
72096
72096
|
var _vm = this,
|
|
72097
72097
|
_c = _vm._self._c;
|
|
72098
72098
|
return _vm.isShowField ? _c('div', {
|
|
@@ -72144,7 +72144,7 @@ var SelectFieldvue_type_template_id_f6029e90_scoped_true_render = function rende
|
|
|
72144
72144
|
}], null, false, 957041049)
|
|
72145
72145
|
})], 1) : _vm._e();
|
|
72146
72146
|
};
|
|
72147
|
-
var
|
|
72147
|
+
var SelectFieldvue_type_template_id_2227a196_scoped_true_staticRenderFns = [];
|
|
72148
72148
|
|
|
72149
72149
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=script&lang=js
|
|
72150
72150
|
function SelectFieldvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return SelectFieldvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, SelectFieldvue_type_script_lang_js_typeof(o); }
|
|
@@ -72262,7 +72262,7 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72262
72262
|
vo: {
|
|
72263
72263
|
handler: function handler(val) {
|
|
72264
72264
|
this.setTextValue();
|
|
72265
|
-
if (val.passenger && val.passenger[this.model + 'Options']) {
|
|
72265
|
+
if (val.passenger && val.passenger[this.model + 'Options'] !== undefined) {
|
|
72266
72266
|
this.initVerify();
|
|
72267
72267
|
}
|
|
72268
72268
|
},
|
|
@@ -72317,28 +72317,36 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72317
72317
|
},
|
|
72318
72318
|
beforeDestroy: function beforeDestroy() {
|
|
72319
72319
|
this.fieldDom.removeEventListener('change', this.initVerify);
|
|
72320
|
-
this.$bus.off('setSubFiledOptions', this.setSubFiledOptions);
|
|
72321
72320
|
},
|
|
72322
72321
|
mounted: function mounted() {
|
|
72323
72322
|
this.fieldDom = this.$el;
|
|
72324
72323
|
this.fieldDom.addEventListener('change', this.initVerify);
|
|
72325
72324
|
this.initVerify();
|
|
72326
|
-
this.$bus.on('setSubFiledOptions', this.setSubFiledOptions);
|
|
72327
72325
|
},
|
|
72328
72326
|
methods: {
|
|
72329
|
-
|
|
72330
|
-
|
|
72331
|
-
|
|
72332
|
-
|
|
72333
|
-
|
|
72334
|
-
|
|
72335
|
-
|
|
72336
|
-
|
|
72337
|
-
|
|
72338
|
-
|
|
72327
|
+
// 级联下发:同步子字段选项到 passenger;仅当子字段当前值不在新选项中时才清值,避免误清刚选中的值
|
|
72328
|
+
dispatchSubFiledOptions: function dispatchSubFiledOptions(subFiled, options) {
|
|
72329
|
+
var newList = options || [];
|
|
72330
|
+
if (this.vo.passenger) {
|
|
72331
|
+
this.$set(this.vo.passenger, subFiled + 'Options', newList);
|
|
72332
|
+
}
|
|
72333
|
+
// 子字段值的读取与清空均支持 dynamicFields.xxx 带点号路径(与 setFieldValue 的点号处理约定一致)
|
|
72334
|
+
var propNames = subFiled.split('.');
|
|
72335
|
+
var currentValue = null;
|
|
72336
|
+
if (propNames.length === 1) {
|
|
72337
|
+
currentValue = this.vo[subFiled];
|
|
72338
|
+
} else if (SelectFieldvue_type_script_lang_js_typeof(this.vo[propNames[0]]) === 'object' && this.vo[propNames[0]] != null) {
|
|
72339
|
+
currentValue = this.vo[propNames[0]][propNames[1]];
|
|
72340
|
+
}
|
|
72341
|
+
var stillExists = currentValue !== '' && currentValue !== null && currentValue !== undefined && newList.some(function (item) {
|
|
72342
|
+
return item.value == currentValue;
|
|
72343
|
+
});
|
|
72344
|
+
if (!stillExists) {
|
|
72345
|
+
if (propNames.length === 1) {
|
|
72346
|
+
this.$set(this.vo, subFiled, '');
|
|
72347
|
+
} else if (SelectFieldvue_type_script_lang_js_typeof(this.vo[propNames[0]]) === 'object' && this.vo[propNames[0]] != null) {
|
|
72348
|
+
this.$set(this.vo[propNames[0]], propNames[1], '');
|
|
72339
72349
|
}
|
|
72340
|
-
this.itemList = newList;
|
|
72341
|
-
this.setTextValue();
|
|
72342
72350
|
}
|
|
72343
72351
|
},
|
|
72344
72352
|
collectSubFiledOptions: function collectSubFiledOptions(currentValue) {
|
|
@@ -72358,8 +72366,10 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72358
72366
|
this.isShowField = true;
|
|
72359
72367
|
}
|
|
72360
72368
|
var itemList = [];
|
|
72361
|
-
if (this.vo.passenger && this.vo.passenger[this.getOptionsName()] !== undefined && SelectFieldvue_type_script_lang_js_typeof(this.vo.passenger[this.getOptionsName()]) === 'object'
|
|
72369
|
+
if (this.vo.passenger && this.vo.passenger[this.getOptionsName()] !== undefined && SelectFieldvue_type_script_lang_js_typeof(this.vo.passenger[this.getOptionsName()]) === 'object') {
|
|
72362
72370
|
itemList = this.vo.passenger[this.getOptionsName()];
|
|
72371
|
+
} else if (this.vo.passenger && this.vo.passenger[this.model + 'Options'] !== undefined && SelectFieldvue_type_script_lang_js_typeof(this.vo.passenger[this.model + 'Options']) === 'object') {
|
|
72372
|
+
itemList = this.vo.passenger[this.model + 'Options'];
|
|
72363
72373
|
} else if (this.options !== undefined && this.options !== null) {
|
|
72364
72374
|
// console.log(this.options)
|
|
72365
72375
|
var options = JSON.parse(this.options);
|
|
@@ -72399,7 +72409,7 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72399
72409
|
setTimeout(function () {
|
|
72400
72410
|
var finalOptions = _this4.collectSubFiledOptions(_this4.getFieldValue());
|
|
72401
72411
|
Object.keys(finalOptions).forEach(function (subFiled) {
|
|
72402
|
-
_this4
|
|
72412
|
+
_this4.dispatchSubFiledOptions(subFiled, finalOptions[subFiled]);
|
|
72403
72413
|
});
|
|
72404
72414
|
}, 100);
|
|
72405
72415
|
}
|
|
@@ -72502,10 +72512,7 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72502
72512
|
if (this.itemList && this.itemList.length > 0) {
|
|
72503
72513
|
var finalOptions = this.collectSubFiledOptions(val);
|
|
72504
72514
|
Object.keys(finalOptions).forEach(function (subFiled) {
|
|
72505
|
-
|
|
72506
|
-
_this6.$set(_this6.vo.passenger, subFiled, finalOptions[subFiled]);
|
|
72507
|
-
}
|
|
72508
|
-
_this6.$bus.emit('setSubFiledOptions', subFiled, finalOptions[subFiled]);
|
|
72515
|
+
_this6.dispatchSubFiledOptions(subFiled, finalOptions[subFiled]);
|
|
72509
72516
|
});
|
|
72510
72517
|
}
|
|
72511
72518
|
},
|
|
@@ -72516,9 +72523,9 @@ function SelectFieldvue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
72516
72523
|
});
|
|
72517
72524
|
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=script&lang=js
|
|
72518
72525
|
/* harmony default export */ var FormField_SelectFieldvue_type_script_lang_js = (SelectFieldvue_type_script_lang_js);
|
|
72519
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=
|
|
72520
|
-
var
|
|
72521
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=
|
|
72526
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=2227a196&prod&scoped=true&lang=scss
|
|
72527
|
+
var SelectFieldvue_type_style_index_0_id_2227a196_prod_scoped_true_lang_scss = __webpack_require__(31);
|
|
72528
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue?vue&type=style&index=0&id=2227a196&prod&scoped=true&lang=scss
|
|
72522
72529
|
|
|
72523
72530
|
;// CONCATENATED MODULE: ./packages/ecmapp/Basicform/src/FormField/SelectField.vue
|
|
72524
72531
|
|
|
@@ -72531,11 +72538,11 @@ var SelectFieldvue_type_style_index_0_id_f6029e90_prod_scoped_true_lang_scss = _
|
|
|
72531
72538
|
|
|
72532
72539
|
var SelectField_component = (0,componentNormalizer/* default */.A)(
|
|
72533
72540
|
FormField_SelectFieldvue_type_script_lang_js,
|
|
72534
|
-
|
|
72535
|
-
|
|
72541
|
+
SelectFieldvue_type_template_id_2227a196_scoped_true_render,
|
|
72542
|
+
SelectFieldvue_type_template_id_2227a196_scoped_true_staticRenderFns,
|
|
72536
72543
|
false,
|
|
72537
72544
|
null,
|
|
72538
|
-
"
|
|
72545
|
+
"2227a196",
|
|
72539
72546
|
null
|
|
72540
72547
|
|
|
72541
72548
|
)
|