eoss-mobiles 0.2.30 → 0.2.31

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.
@@ -5500,8 +5500,8 @@ radio_src_main.install = function (Vue) {
5500
5500
  };
5501
5501
 
5502
5502
  /* harmony default export */ var packages_radio = (radio_src_main);
5503
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=f54ad734&
5504
- var mainvue_type_template_id_f54ad734_render = function () {
5503
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=6f8d4ed8&
5504
+ var mainvue_type_template_id_6f8d4ed8_render = function () {
5505
5505
  var _vm = this
5506
5506
  var _h = _vm.$createElement
5507
5507
  var _c = _vm._self._c || _h
@@ -5768,11 +5768,11 @@ var mainvue_type_template_id_f54ad734_render = function () {
5768
5768
  1
5769
5769
  )
5770
5770
  }
5771
- var mainvue_type_template_id_f54ad734_staticRenderFns = []
5772
- mainvue_type_template_id_f54ad734_render._withStripped = true
5771
+ var mainvue_type_template_id_6f8d4ed8_staticRenderFns = []
5772
+ mainvue_type_template_id_6f8d4ed8_render._withStripped = true
5773
5773
 
5774
5774
 
5775
- // CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=f54ad734&
5775
+ // CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=6f8d4ed8&
5776
5776
 
5777
5777
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=script&lang=js&
5778
5778
  var src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -5980,6 +5980,10 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
5980
5980
  type: String,
5981
5981
  default: 'name'
5982
5982
  },
5983
+ objectType: {
5984
+ type: Boolean,
5985
+ default: true
5986
+ },
5983
5987
  sysAppCode: {
5984
5988
  type: String,
5985
5989
  default: ''
@@ -6028,7 +6032,20 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6028
6032
  return this.getValue();
6029
6033
  },
6030
6034
  set: function set(val) {
6031
- this.$emit('input', val);
6035
+ var _this = this;
6036
+
6037
+ if (!this.objectType && val.length === undefined) {
6038
+ this.$emit('input', val[this.sysAppCode ? 'cciValue' : this.valueKey]);
6039
+ } else if (!this.objectType && val.length != undefined) {
6040
+ val.map(function (x) {
6041
+ if ((typeof x === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(x)) === 'object') {
6042
+ x = x[_this.sysAppCode ? 'cciValue' : _this.valueKey];
6043
+ }
6044
+ });
6045
+ this.$emit('input', val);
6046
+ } else {
6047
+ this.$emit('input', val);
6048
+ }
6032
6049
  }
6033
6050
  }
6034
6051
  },
@@ -6076,7 +6093,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6076
6093
  }
6077
6094
  },
6078
6095
  mounted: function mounted() {
6079
- var _this = this;
6096
+ var _this2 = this;
6080
6097
 
6081
6098
  if ((this.sysAppCode || this.url) && this.newColumns.length == 0 && !this.isCheck) {
6082
6099
  this.getSysCode();
@@ -6091,7 +6108,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6091
6108
  } else if (this.isCheck) {
6092
6109
  var _data = this.value;
6093
6110
  _data.map(function (item) {
6094
- _this.checkList.push(item[_this.valueKey] || item.value || item);
6111
+ _this2.checkList.push(item[_this2.valueKey] || item.value || item);
6095
6112
  });
6096
6113
  }
6097
6114
  },
@@ -6132,13 +6149,13 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6132
6149
  this.$refs.checkboxes[index].toggle();
6133
6150
  },
6134
6151
  onConfirm: function onConfirm(value, isConfirm) {
6135
- var _this2 = this;
6152
+ var _this3 = this;
6136
6153
 
6137
6154
  if (isConfirm) {
6138
6155
  if (this.isCheck) {
6139
6156
  var data = [];
6140
6157
  this.newColumns.filter(function (x) {
6141
- _this2.checkList.find(function (y) {
6158
+ _this3.checkList.find(function (y) {
6142
6159
  if (x.value === y) {
6143
6160
  data.push(x);
6144
6161
  }
@@ -6152,7 +6169,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6152
6169
  if (this.isCheck) {
6153
6170
  this.checkList = [];
6154
6171
  this.pickerValue.map(function (x) {
6155
- _this2.checkList.push(x.value);
6172
+ _this3.checkList.push(x.value);
6156
6173
  });
6157
6174
  }
6158
6175
  }
@@ -6160,15 +6177,15 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6160
6177
  this.showPicker = false;
6161
6178
  },
6162
6179
  getValue: function getValue() {
6163
- var _this3 = this;
6180
+ var _this4 = this;
6164
6181
 
6165
6182
  var value = '';
6166
6183
  if (this.isCheck) {
6167
6184
  var val = [];
6168
6185
  if (this.newColumns && this.newColumns.length > 0) {
6169
6186
  this.newColumns.filter(function (x) {
6170
- _this3.value.find(function (y) {
6171
- if (x[_this3.valueKey] == y || x[_this3.valueKey] == y.value) {
6187
+ _this4.value.find(function (y) {
6188
+ if (x[_this4.valueKey] == y || x[_this4.valueKey] == y.value) {
6172
6189
  val.push(x);
6173
6190
  }
6174
6191
  });
@@ -6186,7 +6203,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6186
6203
  this.newColumns.map(function (x, i) {
6187
6204
  if (typeof x === 'string' && value.indexOf(x) != -1) {
6188
6205
  index = i;
6189
- } else if (x[_this3.newValueKey] == value || x[_this3.newValueKey].indexOf(value) != -1) {
6206
+ } else if (x[_this4.newValueKey] == value || x[_this4.newValueKey].indexOf(value) != -1) {
6190
6207
  index = i;
6191
6208
  }
6192
6209
  });
@@ -6194,8 +6211,8 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6194
6211
  } else {
6195
6212
  var list = [];
6196
6213
  this.value.map(function (item) {
6197
- if (item[_this3.labelKey] || item[_this3.newValueKey]) {
6198
- list.push(item[_this3.labelKey] || item[_this3.newValueKey]);
6214
+ if (item[_this4.labelKey] || item[_this4.newValueKey]) {
6215
+ list.push(item[_this4.labelKey] || item[_this4.newValueKey]);
6199
6216
  } else if (typeof item === 'string') {
6200
6217
  list.push(item);
6201
6218
  }
@@ -6205,7 +6222,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6205
6222
  this.newColumns.map(function (x, i) {
6206
6223
  if (typeof x === 'string' && value.indexOf(x) != -1) {
6207
6224
  _index = i;
6208
- } else if (x[_this3.newValueKey] === value) {
6225
+ } else if (x[_this4.newValueKey] === value) {
6209
6226
  _index = i;
6210
6227
  }
6211
6228
  });
@@ -6218,9 +6235,9 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6218
6235
  if (typeof x === 'string' && value.indexOf(x) != -1) {
6219
6236
  _index2 = i;
6220
6237
  value = x;
6221
- } else if (x[_this3.newValueKey] === value) {
6238
+ } else if (x[_this4.newValueKey] === value) {
6222
6239
  _index2 = i;
6223
- value = x[_this3.labelKey] || x[_this3.newValueKey];
6240
+ value = x[_this4.labelKey] || x[_this4.newValueKey];
6224
6241
  }
6225
6242
  });
6226
6243
  this.newDefaultIndex = _index2;
@@ -6230,7 +6247,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6230
6247
  return value;
6231
6248
  },
6232
6249
  getSysCode: function getSysCode() {
6233
- var _this4 = this;
6250
+ var _this5 = this;
6234
6251
 
6235
6252
  var url = this.url,
6236
6253
  method = this.method,
@@ -6253,45 +6270,45 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6253
6270
  rCode = res.rCode,
6254
6271
  results = res.results;
6255
6272
 
6256
- _this4.listLoading = false;
6273
+ _this5.listLoading = false;
6257
6274
  if (status == 'success' || rCode === 0 || status === true) {
6258
- var info = _this4.resultsName ? data ? data[_this4.resultsName] : results[_this4.resultsName] : data ? data : results;
6275
+ var info = _this5.resultsName ? data ? data[_this5.resultsName] : results[_this5.resultsName] : data ? data : results;
6259
6276
  info.map(function (x) {
6260
- if (_this4.isCheck) {
6261
- x.name = x[sysAppCode ? 'shortName' : _this4.labelKey] && x[sysAppCode ? 'shortName' : _this4.labelKey].replace(/<[^>]+>/g, '');
6277
+ if (_this5.isCheck) {
6278
+ x.name = x[sysAppCode ? 'shortName' : _this5.labelKey] && x[sysAppCode ? 'shortName' : _this5.labelKey].replace(/<[^>]+>/g, '');
6262
6279
  } else {
6263
- x.name = x[sysAppCode ? 'shortName' : _this4.labelKey];
6280
+ x.name = x[sysAppCode ? 'shortName' : _this5.labelKey];
6264
6281
  }
6265
- x.value = x[sysAppCode ? 'cciValue' : _this4.valueKey];
6282
+ x.value = x[sysAppCode ? 'cciValue' : _this5.valueKey];
6266
6283
  });
6267
6284
  if (data && data.totalCount) {
6268
- _this4.total = data.totalCount;
6269
- if (data.totalCount === _this4.newColumns.length) {
6270
- _this4.listFinished = true;
6285
+ _this5.total = data.totalCount;
6286
+ if (data.totalCount === _this5.newColumns.length) {
6287
+ _this5.listFinished = true;
6271
6288
  } else {
6272
- if (_this4.newColumns.length != 0) {
6273
- _this4.newColumns.push.apply(_this4.newColumns, info);
6289
+ if (_this5.newColumns.length != 0) {
6290
+ _this5.newColumns.push.apply(_this5.newColumns, info);
6274
6291
  } else {
6275
- _this4.newColumns = info;
6292
+ _this5.newColumns = info;
6276
6293
  }
6277
- _this4.pageIndex = res.data.nextPageNo;
6294
+ _this5.pageIndex = res.data.nextPageNo;
6278
6295
  }
6279
6296
  } else {
6280
- _this4.listFinished = true;
6281
- _this4.newColumns = info;
6297
+ _this5.listFinished = true;
6298
+ _this5.newColumns = info;
6282
6299
  }
6283
- if (_this4.beforResponse) {
6284
- _this4.newColumns = _this4.beforResponse(_this4.newColumns);
6285
- _this4.getValue();
6300
+ if (_this5.beforResponse) {
6301
+ _this5.newColumns = _this5.beforResponse(_this5.newColumns);
6302
+ _this5.getValue();
6286
6303
  } else {
6287
- _this4.getValue();
6304
+ _this5.getValue();
6288
6305
  }
6289
6306
  } else {
6290
- _this4.$toast(message);
6307
+ _this5.$toast(message);
6291
6308
  }
6292
- _this4.newLoading = false;
6309
+ _this5.newLoading = false;
6293
6310
  }).catch(function (err) {
6294
- _this4.$toast(err.message);
6311
+ _this5.$toast(err.message);
6295
6312
  });
6296
6313
  },
6297
6314
  handlePicker: function handlePicker() {
@@ -6313,8 +6330,8 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6313
6330
 
6314
6331
  var picker_src_main_component = normalizeComponent(
6315
6332
  packages_picker_src_mainvue_type_script_lang_js_,
6316
- mainvue_type_template_id_f54ad734_render,
6317
- mainvue_type_template_id_f54ad734_staticRenderFns,
6333
+ mainvue_type_template_id_6f8d4ed8_render,
6334
+ mainvue_type_template_id_6f8d4ed8_staticRenderFns,
6318
6335
  false,
6319
6336
  null,
6320
6337
  null,
@@ -21771,7 +21788,7 @@ if (typeof window !== 'undefined' && window.Vue) {
21771
21788
  }
21772
21789
 
21773
21790
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
21774
- version: '0.2.30',
21791
+ version: '0.2.31',
21775
21792
  install: install,
21776
21793
  Button: packages_button,
21777
21794
  ButtonGroup: button_group,