hrsass-components 2.2.5 → 2.2.7

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "2.2.5";
68
+ var version = "2.2.7";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -8044,14 +8044,16 @@ var index = {
8044
8044
  //根据回填传的rowIds,过滤选中的行
8045
8045
  selectedRowsList: {
8046
8046
  handler: function handler(rowIds) {
8047
+ var _this2 = this;
8047
8048
  var _selectedUpdateRows = this.dataSource.filter(function (item) {
8048
8049
  return rowIds.includes(item.t_0_hid) || rowIds.map(function (id) {
8049
8050
  return id + '';
8050
8051
  }).includes(item.id + '');
8051
8052
  });
8052
- this.selectedUpdateRows = _selectedUpdateRows;
8053
- this.selectedUpdateRows = this.selectedUpdateRows.find(function (item) {
8054
- return item.t_0_hid === _selectedUpdateRows[0].t_0_hid || item.id === _selectedUpdateRows[0].id;
8053
+ this.selectedUpdateRows = _selectedUpdateRows.some(function (item) {
8054
+ return _this2.selectedUpdateRows.find(function (selectedItem) {
8055
+ return selectedItem.id === item.id || selectedItem.t_0_hid === item.t_0_hid;
8056
+ });
8055
8057
  }) ? this.selectedUpdateRows : this.selectedUpdateRows.concat(_selectedUpdateRows);
8056
8058
  },
8057
8059
  immediate: true
@@ -8082,7 +8084,7 @@ var index = {
8082
8084
  methods: {
8083
8085
  //方案列表
8084
8086
  _getSchemeList: function _getSchemeList(id) {
8085
- var _this2 = this;
8087
+ var _this3 = this;
8086
8088
  var _getOptionProps2 = getOptionProps(this),
8087
8089
  code = _getOptionProps2.code;
8088
8090
  this.setState({
@@ -8090,19 +8092,19 @@ var index = {
8090
8092
  });
8091
8093
  if (code) {
8092
8094
  this.$axios.get("/platform/userself/condition/getUserScreeningSchemeList.search?gridCode=".concat(code)).then(function (res) {
8093
- _this2.schemeList = res || [];
8095
+ _this3.schemeList = res || [];
8094
8096
  //当前已选中修改的方案,则查看是否在列表中
8095
8097
  //在方案列表中,说明是修改,需更新当前条件
8096
8098
  //不在方案列表中,则为删除,清空条件
8097
- if (id && id === _this2.selectedSchemeId) {
8098
- var _selectedScheme = _this2.schemeList.find(function (item) {
8099
+ if (id && id === _this3.selectedSchemeId) {
8100
+ var _selectedScheme = _this3.schemeList.find(function (item) {
8099
8101
  return item.id === id;
8100
8102
  });
8101
- _this2.conditionListByScheme = [];
8102
- _this2.schemeSearchHandler(_selectedScheme);
8103
+ _this3.conditionListByScheme = [];
8104
+ _this3.schemeSearchHandler(_selectedScheme);
8103
8105
  }
8104
8106
  })["finally"](function () {
8105
- _this2.setState({
8107
+ _this3.setState({
8106
8108
  loading: false
8107
8109
  });
8108
8110
  });
@@ -8110,18 +8112,18 @@ var index = {
8110
8112
  },
8111
8113
  //包装请求函数
8112
8114
  _getWrapAjax: function _getWrapAjax() {
8113
- var _this3 = this;
8115
+ var _this4 = this;
8114
8116
  var _getOptionProps3 = getOptionProps(this),
8115
8117
  code = _getOptionProps3.code;
8116
8118
  if (code && !this.ajax) {
8117
8119
  var url = "platform/metadata/executeGridSearch.search?code=".concat(code);
8118
8120
  this.ajax = warpFun(function (data) {
8119
- return _this3.$axios.post(url, data);
8121
+ return _this4.$axios.post(url, data);
8120
8122
  });
8121
8123
  }
8122
8124
  },
8123
8125
  _getConfig: function _getConfig() {
8124
- var _this4 = this;
8126
+ var _this5 = this;
8125
8127
  var _getOptionProps4 = getOptionProps(this),
8126
8128
  code = _getOptionProps4.code,
8127
8129
  _getOptionProps4$quer = _getOptionProps4.queryData,
@@ -8137,13 +8139,13 @@ var index = {
8137
8139
  if (lodash.isFunction(normalizeConfig)) {
8138
8140
  res = normalizeConfig(res);
8139
8141
  }
8140
- _this4.configState = stateMap.loaded;
8142
+ _this5.configState = stateMap.loaded;
8141
8143
  var conditions = res.conditions || [];
8142
8144
  var _query = queryData;
8143
- if (_this4.stack.length > 0) {
8144
- _query = _this4.stack[_this4.stack.length - 1];
8145
- _this4.stack.length = 0;
8146
- _this4.data = _query;
8145
+ if (_this5.stack.length > 0) {
8146
+ _query = _this5.stack[_this5.stack.length - 1];
8147
+ _this5.stack.length = 0;
8148
+ _this5.data = _query;
8147
8149
  }
8148
8150
  Object.keys(_query || {}).map(function (key) {
8149
8151
  var condition = conditions.find(function (item) {
@@ -8164,14 +8166,14 @@ var index = {
8164
8166
  columns = columns.map(function (item) {
8165
8167
  return item;
8166
8168
  });
8167
- _this4.setState({
8169
+ _this5.setState({
8168
8170
  columnList: columns,
8169
8171
  conditionList: conditions
8170
8172
  }, function () {
8171
- if (_this4.autoLoad) {
8172
- _this4._getData();
8173
+ if (_this5.autoLoad) {
8174
+ _this5._getData();
8173
8175
  } else {
8174
- _this4.setState({
8176
+ _this5.setState({
8175
8177
  loading: false
8176
8178
  });
8177
8179
  }
@@ -8180,7 +8182,7 @@ var index = {
8180
8182
  }
8181
8183
  },
8182
8184
  _getData: function _getData() {
8183
- var _this5 = this;
8185
+ var _this6 = this;
8184
8186
  var pagination = this.pagination,
8185
8187
  conditionList = this.conditionList,
8186
8188
  sorter = this.sorter,
@@ -8234,32 +8236,32 @@ var index = {
8234
8236
  sortList: sort,
8235
8237
  conditionList: [].concat(_toConsumableArray(fitlerOtehrConditionListDeepClone), _toConsumableArray(fitlerConditionListDeepClone))
8236
8238
  }).then(function (res) {
8237
- var _this5$selectedRowsLi, _this5$selectedUpdate, _this5$dataSource;
8239
+ var _this6$selectedRowsLi, _this6$selectedUpdate, _this6$dataSource;
8238
8240
  //外部处理数据
8239
8241
  if (lodash.isFunction(normalizeData)) {
8240
8242
  res = normalizeData(res);
8241
8243
  }
8242
8244
  //处理props传入的已选中
8243
- if ((_this5 === null || _this5 === void 0 || (_this5$selectedRowsLi = _this5.selectedRowsList) === null || _this5$selectedRowsLi === void 0 ? void 0 : _this5$selectedRowsLi.length) > 0 && (_this5 === null || _this5 === void 0 || (_this5$selectedUpdate = _this5.selectedUpdateRows) === null || _this5$selectedUpdate === void 0 ? void 0 : _this5$selectedUpdate.length) == 0 && (_this5 === null || _this5 === void 0 || (_this5$dataSource = _this5.dataSource) === null || _this5$dataSource === void 0 ? void 0 : _this5$dataSource.length) == 0) {
8244
- _this5.selectedUpdateRows = res.dataList.filter(function (item) {
8245
- return _this5.selectedRowsList.includes(item.t_0_hid) || (_this5.selectedRowsList || []).map(function (id) {
8245
+ if ((_this6 === null || _this6 === void 0 || (_this6$selectedRowsLi = _this6.selectedRowsList) === null || _this6$selectedRowsLi === void 0 ? void 0 : _this6$selectedRowsLi.length) > 0 && (_this6 === null || _this6 === void 0 || (_this6$selectedUpdate = _this6.selectedUpdateRows) === null || _this6$selectedUpdate === void 0 ? void 0 : _this6$selectedUpdate.length) == 0 && (_this6 === null || _this6 === void 0 || (_this6$dataSource = _this6.dataSource) === null || _this6$dataSource === void 0 ? void 0 : _this6$dataSource.length) == 0) {
8246
+ _this6.selectedUpdateRows = res.dataList.filter(function (item) {
8247
+ return _this6.selectedRowsList.includes(item.t_0_hid) || (_this6.selectedRowsList || []).map(function (id) {
8246
8248
  return id + '';
8247
8249
  }).includes(item.id + '');
8248
8250
  });
8249
8251
  }
8250
- _this5.setState({
8252
+ _this6.setState({
8251
8253
  pagination: _objectSpread$d(_objectSpread$d({}, pagination), {}, {
8252
8254
  total: res.total
8253
8255
  }),
8254
8256
  dataSource: res.dataList,
8255
8257
  loading: false
8256
8258
  });
8257
- _this5.$emit("load");
8259
+ _this6.$emit("load");
8258
8260
  });
8259
8261
  },
8260
8262
  //分页、排序
8261
8263
  _handleTableChange: function _handleTableChange(pager, filters) {
8262
- var _this6 = this;
8264
+ var _this7 = this;
8263
8265
  var sort = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8264
8266
  var pagination = this.pagination;
8265
8267
  this.setState({
@@ -8273,7 +8275,7 @@ var index = {
8273
8275
  field: sort.field
8274
8276
  }
8275
8277
  }, function () {
8276
- _this6._getData();
8278
+ _this7._getData();
8277
8279
  });
8278
8280
  },
8279
8281
  /**
@@ -8360,10 +8362,10 @@ var index = {
8360
8362
  new Vue({
8361
8363
  el: div,
8362
8364
  mounted: function mounted() {
8363
- var _this7 = this;
8365
+ var _this8 = this;
8364
8366
  setTimeout(function () {
8365
- _this7.$destroy();
8366
- _this7.$el.parentNode.removeChild(_this7.$el);
8367
+ _this8.$destroy();
8368
+ _this8.$el.parentNode.removeChild(_this8.$el);
8367
8369
  }, (duration + 0.5) * 1000);
8368
8370
  },
8369
8371
  render: function render() {
@@ -8392,19 +8394,19 @@ var index = {
8392
8394
  * 刷新表格
8393
8395
  */
8394
8396
  refresh: function refresh() {
8395
- var _this8 = this;
8397
+ var _this9 = this;
8396
8398
  var pagination = this.pagination;
8397
8399
  pagination.current = 1;
8398
8400
  this.setState({
8399
8401
  pagination: pagination
8400
8402
  }, function () {
8401
- _this8._getData();
8403
+ _this9._getData();
8402
8404
  });
8403
8405
  },
8404
8406
  getSchemeConditionList: function getSchemeConditionList(id) {
8405
- var _this9 = this;
8407
+ var _this10 = this;
8406
8408
  return new Promise(function (resolve, reject) {
8407
- _this9.$axios.get("/platform/userself/condition/getUserScreeningScheme.search?id=".concat(id)).then(function (res) {
8409
+ _this10.$axios.get("/platform/userself/condition/getUserScreeningScheme.search?id=".concat(id)).then(function (res) {
8408
8410
  var list = [];
8409
8411
  (res && res.userScreeningConditionVOList || []).map(function (item) {
8410
8412
  if (item.conditionList) {
@@ -8424,20 +8426,20 @@ var index = {
8424
8426
  },
8425
8427
  //选择方案搜索
8426
8428
  schemeSearchHandler: function schemeSearchHandler(scheme) {
8427
- var _this10 = this;
8429
+ var _this11 = this;
8428
8430
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
8429
8431
  var list;
8430
8432
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8431
8433
  while (1) switch (_context.prev = _context.next) {
8432
8434
  case 0:
8433
- _this10.loading = true;
8434
- _this10.tempConditionListByScheme = [];
8435
- _this10.selectedSchemeId = scheme && scheme.id;
8435
+ _this11.loading = true;
8436
+ _this11.tempConditionListByScheme = [];
8437
+ _this11.selectedSchemeId = scheme && scheme.id;
8436
8438
  if (scheme) {
8437
8439
  _context.next = 7;
8438
8440
  break;
8439
8441
  }
8440
- _this10.conditionListByScheme = [];
8442
+ _this11.conditionListByScheme = [];
8441
8443
  _context.next = 16;
8442
8444
  break;
8443
8445
  case 7:
@@ -8445,18 +8447,18 @@ var index = {
8445
8447
  _context.next = 11;
8446
8448
  break;
8447
8449
  }
8448
- _this10.conditionListByScheme = scheme.$$conditionList;
8450
+ _this11.conditionListByScheme = scheme.$$conditionList;
8449
8451
  _context.next = 16;
8450
8452
  break;
8451
8453
  case 11:
8452
8454
  _context.next = 13;
8453
- return _this10.getSchemeConditionList(scheme.id);
8455
+ return _this11.getSchemeConditionList(scheme.id);
8454
8456
  case 13:
8455
8457
  list = _context.sent;
8456
- _this10.setSchemeConditionList(scheme.id, list);
8457
- _this10.conditionListByScheme = list;
8458
+ _this11.setSchemeConditionList(scheme.id, list);
8459
+ _this11.conditionListByScheme = list;
8458
8460
  case 16:
8459
- _this10.searchHandler();
8461
+ _this11.searchHandler();
8460
8462
  case 17:
8461
8463
  case "end":
8462
8464
  return _context.stop();
@@ -8466,7 +8468,7 @@ var index = {
8466
8468
  },
8467
8469
  //搜索
8468
8470
  searchHandler: function searchHandler() {
8469
- var _this11 = this;
8471
+ var _this12 = this;
8470
8472
  var pagination = this.pagination;
8471
8473
  if (this.$listeners.search) {
8472
8474
  this.setState({
@@ -8474,9 +8476,9 @@ var index = {
8474
8476
  current: 1
8475
8477
  })
8476
8478
  }, function () {
8477
- _this11.$emit("search", function () {
8478
- _this11._getData();
8479
- }, _this11);
8479
+ _this12.$emit("search", function () {
8480
+ _this12._getData();
8481
+ }, _this12);
8480
8482
  });
8481
8483
  } else {
8482
8484
  this.setState({
@@ -8484,7 +8486,7 @@ var index = {
8484
8486
  current: 1
8485
8487
  })
8486
8488
  }, function () {
8487
- _this11._getData();
8489
+ _this12._getData();
8488
8490
  });
8489
8491
  }
8490
8492
  },
@@ -8493,7 +8495,7 @@ var index = {
8493
8495
  }
8494
8496
  },
8495
8497
  render: function render() {
8496
- var _this12 = this;
8498
+ var _this13 = this;
8497
8499
  var h = arguments[0];
8498
8500
  var $scopedSlots = this.$scopedSlots,
8499
8501
  loading = this.loading,
@@ -8551,42 +8553,42 @@ var index = {
8551
8553
  scopedSlots: $scopedSlots,
8552
8554
  on: {
8553
8555
  "change": function change(pagination, filters, sorter) {
8554
- _this12._handleTableChange(pagination, filters, sorter);
8556
+ _this13._handleTableChange(pagination, filters, sorter);
8555
8557
  },
8556
8558
  "download": function download(columns, e) {
8557
- _this12._downloadHandler(columns, e);
8559
+ _this13._downloadHandler(columns, e);
8558
8560
  },
8559
8561
  "rowSelected": function rowSelected(rows) {
8560
- _this12.$emit("rowSelected", rows);
8562
+ _this13.$emit("rowSelected", rows);
8561
8563
  },
8562
8564
  "schemeChange": function schemeChange(id) {
8563
- _this12.editSchemeId = null;
8565
+ _this13.editSchemeId = null;
8564
8566
  if (id) {
8565
- _this12._getSchemeList(id);
8567
+ _this13._getSchemeList(id);
8566
8568
  } else {
8567
8569
  // this.selectedSchemeId = null;
8568
- _this12._getSchemeList();
8570
+ _this13._getSchemeList();
8569
8571
  }
8570
8572
  },
8571
8573
  "tempSearch": function tempSearch(tempConditionList, schemeId) {
8572
- _this12.tempConditionListByScheme = tempConditionList;
8573
- _this12.editSchemeId = schemeId;
8574
- _this12.searchHandler();
8574
+ _this13.tempConditionListByScheme = tempConditionList;
8575
+ _this13.editSchemeId = schemeId;
8576
+ _this13.searchHandler();
8575
8577
  },
8576
8578
  "schemeSearch": function schemeSearch(scheme) {
8577
- _this12.editSchemeId = null;
8578
- _this12.schemeSearchHandler(scheme);
8579
+ _this13.editSchemeId = null;
8580
+ _this13.schemeSearchHandler(scheme);
8579
8581
  },
8580
8582
  "search": function search() {
8581
- _this12.tempConditionListByScheme = [];
8582
- _this12.editSchemeId = null;
8583
- _this12.searchHandler();
8583
+ _this13.tempConditionListByScheme = [];
8584
+ _this13.editSchemeId = null;
8585
+ _this13.searchHandler();
8584
8586
  },
8585
8587
  "cellClick": function cellClick(column, record) {
8586
- _this12.$emit("cellClick", column, record);
8588
+ _this13.$emit("cellClick", column, record);
8587
8589
  },
8588
8590
  "settingChange": function settingChange(cols) {
8589
- _this12.setState({
8591
+ _this13.setState({
8590
8592
  columnList: columnList.map(function (c) {
8591
8593
  var column = cols.find(function (o) {
8592
8594
  return o.columnName === c.columnName;
@@ -8596,7 +8598,7 @@ var index = {
8596
8598
  });
8597
8599
  })
8598
8600
  }, function () {
8599
- _this12._setMaxWidth();
8601
+ _this13._setMaxWidth();
8600
8602
  });
8601
8603
  }
8602
8604
  }
@@ -12920,7 +12922,8 @@ var HrAddrBookCard = {
12920
12922
  absolute: VuePropTypes.bool,
12921
12923
  bordered: VuePropTypes.bool,
12922
12924
  hoverable: VuePropTypes.bool,
12923
- leftLine: VuePropTypes.bool
12925
+ leftLine: VuePropTypes.bool,
12926
+ sort: VuePropTypes.array
12924
12927
  }, {
12925
12928
  prefixCls: "hr-add-book-card",
12926
12929
  hoverable: true,
@@ -13091,11 +13094,12 @@ var HrAddrBookCard = {
13091
13094
  color: "orange",
13092
13095
  title: sub_status
13093
13096
  }
13094
- }, [sub_status])])]), !data.hide ? h("ul", {
13097
+ }, [sub_status])])]), !data.hide ? this.sortList(h("ul", {
13095
13098
  "class": prefixCls + "-other-info"
13096
13099
  }, [this.isShow("dept_name") && h("li", {
13097
13100
  attrs: {
13098
- title: data.dept_name
13101
+ title: data.dept_name,
13102
+ fieldKey: "dept_name"
13099
13103
  }
13100
13104
  }, [h(antDesignVue.Icon, {
13101
13105
  attrs: {
@@ -13105,7 +13109,8 @@ var HrAddrBookCard = {
13105
13109
  "class": "item-info"
13106
13110
  }, [data.dept_name || "-"])]), this.isShow("mobile_phone_number") && h("li", {
13107
13111
  attrs: {
13108
- title: data.mobile_phone_number
13112
+ title: data.mobile_phone_number,
13113
+ fieldKey: "mobile_phone_number"
13109
13114
  }
13110
13115
  }, [h(antDesignVue.Icon, {
13111
13116
  attrs: {
@@ -13115,7 +13120,8 @@ var HrAddrBookCard = {
13115
13120
  "class": "item-info"
13116
13121
  }, [data.mobile_phone_number || "-"])]), this.isShow("personal_mailbox") && h("li", {
13117
13122
  attrs: {
13118
- title: data.personal_mailbox
13123
+ title: data.personal_mailbox,
13124
+ fieldKey: "personal_mailbox"
13119
13125
  }
13120
13126
  }, [h(antDesignVue.Icon, {
13121
13127
  attrs: {
@@ -13125,7 +13131,8 @@ var HrAddrBookCard = {
13125
13131
  "class": "item-info"
13126
13132
  }, [this.showEmailLink(data.personal_mailbox)])]), this.isShow("company_mailbox") && h("li", {
13127
13133
  attrs: {
13128
- title: data.company_mailbox
13134
+ title: data.company_mailbox,
13135
+ fieldKey: "company_mailbox"
13129
13136
  }
13130
13137
  }, [h(antDesignVue.Icon, {
13131
13138
  attrs: {
@@ -13135,7 +13142,8 @@ var HrAddrBookCard = {
13135
13142
  "class": "item-info"
13136
13143
  }, [this.showEmailLink(data.company_mailbox)])]), this.isShow("qq") && h("li", {
13137
13144
  attrs: {
13138
- title: data.qq
13145
+ title: data.qq,
13146
+ fieldKey: "qq"
13139
13147
  }
13140
13148
  }, [h(antDesignVue.Icon, {
13141
13149
  attrs: {
@@ -13145,7 +13153,8 @@ var HrAddrBookCard = {
13145
13153
  "class": "item-info"
13146
13154
  }, [data.qq || "-"])]), this.isShow("wechat") && h("li", {
13147
13155
  attrs: {
13148
- title: data.wechat
13156
+ title: data.wechat,
13157
+ fieldKey: "wechat"
13149
13158
  }
13150
13159
  }, [h(antDesignVue.Icon, {
13151
13160
  attrs: {
@@ -13155,7 +13164,8 @@ var HrAddrBookCard = {
13155
13164
  "class": "item-info"
13156
13165
  }, [data.wechat || "-"])]), this.isShow("hobbies_interests") && h("li", {
13157
13166
  attrs: {
13158
- title: data.hobbies_interests
13167
+ title: data.hobbies_interests,
13168
+ fieldKey: "hobbies_interests"
13159
13169
  }
13160
13170
  }, [h(antDesignVue.Icon, {
13161
13171
  attrs: {
@@ -13165,7 +13175,8 @@ var HrAddrBookCard = {
13165
13175
  "class": "item-info"
13166
13176
  }, [data.hobbies_interests || "-"])]), this.isShow("political_status") && h("li", {
13167
13177
  attrs: {
13168
- title: data.political_status
13178
+ title: data.political_status,
13179
+ fieldKey: "political_status"
13169
13180
  }
13170
13181
  }, [h(antDesignVue.Icon, {
13171
13182
  attrs: {
@@ -13175,7 +13186,8 @@ var HrAddrBookCard = {
13175
13186
  "class": "item-info"
13176
13187
  }, [data.political_status || "-"])]), this.isShow("work_place") && h("li", {
13177
13188
  attrs: {
13178
- title: data.work_place
13189
+ title: data.work_place,
13190
+ fieldKey: "work_place"
13179
13191
  }
13180
13192
  }, [h(antDesignVue.Icon, {
13181
13193
  attrs: {
@@ -13185,7 +13197,8 @@ var HrAddrBookCard = {
13185
13197
  "class": "item-info"
13186
13198
  }, [data.work_place || "-"])]), this.isShow("highest_education") && h("li", {
13187
13199
  attrs: {
13188
- title: data.highest_education
13200
+ title: data.highest_education,
13201
+ fieldKey: "highest_education"
13189
13202
  }
13190
13203
  }, [h(antDesignVue.Icon, {
13191
13204
  attrs: {
@@ -13205,7 +13218,7 @@ var HrAddrBookCard = {
13205
13218
  attrs: {
13206
13219
  href: "#"
13207
13220
  }
13208
- }, [locale.viewReportRelate])])])]) : h("p", {
13221
+ }, [locale.viewReportRelate])])])])) : h("p", {
13209
13222
  "class": "info-hide"
13210
13223
  }, [locale.infoHidden]), !data.hide && h(antDesignVue.Icon, {
13211
13224
  "class": "arrow",
@@ -13213,13 +13226,37 @@ var HrAddrBookCard = {
13213
13226
  type: "down"
13214
13227
  }
13215
13228
  })])])]);
13229
+ },
13230
+ sortList: function sortList(list) {
13231
+ var _getOptionProps2 = getOptionProps(this),
13232
+ _getOptionProps2$sort = _getOptionProps2.sort,
13233
+ sort = _getOptionProps2$sort === void 0 ? [] : _getOptionProps2$sort;
13234
+ console.log(list, sort);
13235
+ if (sort.length > 0) {
13236
+ list.children.sort(function (a, b) {
13237
+ var fieldKeyA = a.data.attrs.fieldKey;
13238
+ var fieldKeyB = b.data.attrs.fieldKey;
13239
+ var indexA = sort.indexOf(fieldKeyA);
13240
+ var indexB = sort.indexOf(fieldKeyB);
13241
+ if (indexA === -1 && indexB === -1) {
13242
+ return 0;
13243
+ } else if (indexA === -1) {
13244
+ return 1;
13245
+ } else if (indexB === -1) {
13246
+ return -1;
13247
+ } else {
13248
+ return indexA - indexB;
13249
+ }
13250
+ });
13251
+ }
13252
+ return list;
13216
13253
  }
13217
13254
  },
13218
13255
  render: function render() {
13219
13256
  var h = arguments[0];
13220
- var _getOptionProps2 = getOptionProps(this),
13221
- _getOptionProps2$data = _getOptionProps2.data,
13222
- data = _getOptionProps2$data === void 0 ? {} : _getOptionProps2$data;
13257
+ var _getOptionProps3 = getOptionProps(this),
13258
+ _getOptionProps3$data = _getOptionProps3.data,
13259
+ data = _getOptionProps3$data === void 0 ? {} : _getOptionProps3$data;
13223
13260
  return data.name ? h(HrLocaleReceiver, {
13224
13261
  attrs: {
13225
13262
  componentName: "HrAddrBookCard",