xydata-tools 1.1.16 → 1.1.17

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.
@@ -100,35 +100,6 @@ var SMSConfig = function SMSConfig() {
100
100
  return _ref2.apply(this, arguments);
101
101
  };
102
102
  }();
103
- var handleSwitchChange = /*#__PURE__*/function () {
104
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(checked, record) {
105
- var res;
106
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
107
- while (1) switch (_context3.prev = _context3.next) {
108
- case 0:
109
- _context3.next = 2;
110
- return saveSmsProperty({
111
- id: record.id,
112
- value: checked.toString()
113
- });
114
- case 2:
115
- res = _context3.sent;
116
- if (res && res.rspCode === '000000') {
117
- message.success("".concat(record.propertyName, " \u5DF2").concat(checked ? '开启' : '关闭'));
118
- fetchData();
119
- } else {
120
- message.error((res === null || res === void 0 ? void 0 : res.rspMsg) || '操作失败');
121
- }
122
- case 4:
123
- case "end":
124
- return _context3.stop();
125
- }
126
- }, _callee3);
127
- }));
128
- return function handleSwitchChange(_x2, _x3) {
129
- return _ref3.apply(this, arguments);
130
- };
131
- }();
132
103
 
133
104
  // 数据按 groupName 分组
134
105
  var groupedData = dataSource.reduce(function (acc, item) {
@@ -210,7 +181,8 @@ var SMSConfig = function SMSConfig() {
210
181
  onCancel: function onCancel() {
211
182
  setModalVisible(false);
212
183
  setEditingRecord(null);
213
- }
184
+ },
185
+ onOk: handleEditSave
214
186
  }));
215
187
  };
216
188
  export default SMSConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xydata-tools",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "xydata tools",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",