xydata-tools 1.1.20 → 1.1.22
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/dist/components/aaa/setting/permission/index.js +55 -62
- package/dist/components/aaa/setting/requesturl/index.js +29 -30
- package/dist/components/aaa/setting/role/index.js +6 -6
- package/dist/components/aaa/setting/user/index.js +84 -85
- package/dist/components/dictionary/index.js +34 -35
- package/dist/components/payment/components/PaymentDetailModal.js +0 -4
- package/dist/components/payment/order/components/RefundModal.js +0 -2
- package/dist/components/sms/conf/index.js +0 -4
- package/dist/components/sms/gateway/index.js +1 -5
- package/dist/components/sms/log/components/SMSLogDetailModal.js +0 -2
- package/dist/components/sms/template/components/SMSTemplateDetailModal.js +0 -2
- package/dist/components/sms/template/index.js +1 -5
- package/dist/components/uni-app/media-picker/media-picker.vue +18 -48
- package/dist/components/uni-app/media-picker/shmily-drag-media.vue +1 -1
- package/package.json +2 -3
|
@@ -13,11 +13,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
15
15
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
|
-
import { ExclamationCircleOutlined, PlusOutlined, SyncOutlined } from
|
|
17
|
-
import { Button, Divider, message, Modal } from
|
|
18
|
-
import React, { useEffect, useRef, useState } from
|
|
19
|
-
import ProTable from
|
|
20
|
-
;
|
|
16
|
+
import { ExclamationCircleOutlined, PlusOutlined, SyncOutlined } from '@ant-design/icons';
|
|
17
|
+
import { Button, Divider, message, Modal } from 'antd';
|
|
18
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
19
|
+
import ProTable from '@ant-design/pro-table';
|
|
21
20
|
import Auth from "../../auth";
|
|
22
21
|
import UpdateForm from "./components/UpdateForm";
|
|
23
22
|
import UriModal from "./components/UriModal";
|
|
@@ -33,25 +32,23 @@ var handleAdd = /*#__PURE__*/function () {
|
|
|
33
32
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34
33
|
while (1) switch (_context.prev = _context.next) {
|
|
35
34
|
case 0:
|
|
36
|
-
hide = message.loading(
|
|
35
|
+
hide = message.loading('正在添加');
|
|
37
36
|
isSuccess = false;
|
|
38
37
|
_context.prev = 2;
|
|
39
38
|
_context.next = 5;
|
|
40
39
|
return addPerm(_objectSpread({}, fields));
|
|
41
40
|
case 5:
|
|
42
41
|
res = _context.sent;
|
|
43
|
-
if (res.rspCode ===
|
|
44
|
-
message.success(
|
|
42
|
+
if (res.rspCode === '000000') {
|
|
43
|
+
message.success('添加成功');
|
|
45
44
|
isSuccess = true;
|
|
46
|
-
} else {
|
|
47
|
-
message.error(res.rspMsg);
|
|
48
45
|
}
|
|
49
46
|
_context.next = 12;
|
|
50
47
|
break;
|
|
51
48
|
case 9:
|
|
52
49
|
_context.prev = 9;
|
|
53
50
|
_context.t0 = _context["catch"](2);
|
|
54
|
-
message.error(
|
|
51
|
+
message.error('添加失败请重试!');
|
|
55
52
|
case 12:
|
|
56
53
|
hide();
|
|
57
54
|
return _context.abrupt("return", isSuccess);
|
|
@@ -76,7 +73,7 @@ var handleUpdate = /*#__PURE__*/function () {
|
|
|
76
73
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
77
74
|
while (1) switch (_context2.prev = _context2.next) {
|
|
78
75
|
case 0:
|
|
79
|
-
hide = message.loading(
|
|
76
|
+
hide = message.loading('正在更新');
|
|
80
77
|
isSuccess = false;
|
|
81
78
|
_context2.prev = 2;
|
|
82
79
|
_context2.next = 5;
|
|
@@ -89,18 +86,16 @@ var handleUpdate = /*#__PURE__*/function () {
|
|
|
89
86
|
});
|
|
90
87
|
case 5:
|
|
91
88
|
res = _context2.sent;
|
|
92
|
-
if (res.rspCode ===
|
|
93
|
-
message.success(
|
|
89
|
+
if (res.rspCode === '000000') {
|
|
90
|
+
message.success('更新成功');
|
|
94
91
|
isSuccess = true;
|
|
95
|
-
} else {
|
|
96
|
-
message.error(res.rspMsg);
|
|
97
92
|
}
|
|
98
93
|
_context2.next = 12;
|
|
99
94
|
break;
|
|
100
95
|
case 9:
|
|
101
96
|
_context2.prev = 9;
|
|
102
97
|
_context2.t0 = _context2["catch"](2);
|
|
103
|
-
message.error(
|
|
98
|
+
message.error('更新失败请重试!');
|
|
104
99
|
case 12:
|
|
105
100
|
hide();
|
|
106
101
|
return _context2.abrupt("return", isSuccess);
|
|
@@ -125,25 +120,23 @@ var handleRemove = /*#__PURE__*/function () {
|
|
|
125
120
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
126
121
|
while (1) switch (_context3.prev = _context3.next) {
|
|
127
122
|
case 0:
|
|
128
|
-
hide = message.loading(
|
|
123
|
+
hide = message.loading('正在删除');
|
|
129
124
|
isSuccess = false;
|
|
130
125
|
_context3.prev = 2;
|
|
131
126
|
_context3.next = 5;
|
|
132
127
|
return removePerm(record);
|
|
133
128
|
case 5:
|
|
134
129
|
res = _context3.sent;
|
|
135
|
-
if (res.rspCode ===
|
|
136
|
-
message.success(
|
|
130
|
+
if (res.rspCode === '000000') {
|
|
131
|
+
message.success('删除成功');
|
|
137
132
|
isSuccess = true;
|
|
138
|
-
} else {
|
|
139
|
-
message.error(res.rspMsg);
|
|
140
133
|
}
|
|
141
134
|
_context3.next = 12;
|
|
142
135
|
break;
|
|
143
136
|
case 9:
|
|
144
137
|
_context3.prev = 9;
|
|
145
138
|
_context3.t0 = _context3["catch"](2);
|
|
146
|
-
message.error(
|
|
139
|
+
message.error('删除失败,请重试');
|
|
147
140
|
case 12:
|
|
148
141
|
hide();
|
|
149
142
|
return _context3.abrupt("return", isSuccess);
|
|
@@ -188,27 +181,27 @@ var PermList = function PermList() {
|
|
|
188
181
|
setUriModalLoading = _useState14[1];
|
|
189
182
|
var actionRef = useRef();
|
|
190
183
|
var columns = [{
|
|
191
|
-
title:
|
|
192
|
-
dataIndex:
|
|
184
|
+
title: '权限代码',
|
|
185
|
+
dataIndex: 'permCode',
|
|
193
186
|
rules: [{
|
|
194
187
|
required: true,
|
|
195
|
-
message:
|
|
188
|
+
message: '权限代码为必填项'
|
|
196
189
|
}]
|
|
197
190
|
}, {
|
|
198
|
-
title:
|
|
199
|
-
dataIndex:
|
|
191
|
+
title: '权限类型',
|
|
192
|
+
dataIndex: 'permType',
|
|
200
193
|
valueEnum: {
|
|
201
194
|
url: {
|
|
202
|
-
text:
|
|
203
|
-
permType:
|
|
195
|
+
text: 'URL',
|
|
196
|
+
permType: 'URL'
|
|
204
197
|
},
|
|
205
198
|
btn: {
|
|
206
|
-
text:
|
|
207
|
-
permType:
|
|
199
|
+
text: 'BTN',
|
|
200
|
+
permType: 'BTN'
|
|
208
201
|
},
|
|
209
202
|
data: {
|
|
210
|
-
text:
|
|
211
|
-
permType:
|
|
203
|
+
text: 'DATA',
|
|
204
|
+
permType: 'DATA'
|
|
212
205
|
}
|
|
213
206
|
},
|
|
214
207
|
fieldProps: {
|
|
@@ -217,17 +210,17 @@ var PermList = function PermList() {
|
|
|
217
210
|
}
|
|
218
211
|
}
|
|
219
212
|
}, {
|
|
220
|
-
title:
|
|
221
|
-
dataIndex:
|
|
222
|
-
valueType:
|
|
213
|
+
title: '权限名称',
|
|
214
|
+
dataIndex: 'permName',
|
|
215
|
+
valueType: 'text'
|
|
223
216
|
}, {
|
|
224
|
-
title:
|
|
225
|
-
dataIndex:
|
|
226
|
-
valueType:
|
|
217
|
+
title: '模块',
|
|
218
|
+
dataIndex: 'moduleName',
|
|
219
|
+
valueType: 'text'
|
|
227
220
|
}, {
|
|
228
|
-
title:
|
|
229
|
-
dataIndex:
|
|
230
|
-
valueType:
|
|
221
|
+
title: '操作',
|
|
222
|
+
dataIndex: 'option',
|
|
223
|
+
valueType: 'option',
|
|
231
224
|
render: function render(_, record, index, action) {
|
|
232
225
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Auth, {
|
|
233
226
|
code: "PERM_EDIT"
|
|
@@ -243,9 +236,9 @@ var PermList = function PermList() {
|
|
|
243
236
|
}, /*#__PURE__*/React.createElement("a", {
|
|
244
237
|
onClick: function onClick() {
|
|
245
238
|
Modal.confirm({
|
|
246
|
-
title:
|
|
239
|
+
title: '确定删除吗?',
|
|
247
240
|
icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
|
|
248
|
-
content:
|
|
241
|
+
content: '',
|
|
249
242
|
onOk: function () {
|
|
250
243
|
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
251
244
|
var success;
|
|
@@ -281,7 +274,7 @@ var PermList = function PermList() {
|
|
|
281
274
|
}
|
|
282
275
|
}, "\u5220\u9664")), /*#__PURE__*/React.createElement(Auth, {
|
|
283
276
|
code: "PERM_URI"
|
|
284
|
-
}, record.permType ===
|
|
277
|
+
}, record.permType === 'URL' ? [/*#__PURE__*/React.createElement(Divider, {
|
|
285
278
|
type: "vertical"
|
|
286
279
|
}), /*#__PURE__*/React.createElement("a", {
|
|
287
280
|
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
@@ -289,7 +282,7 @@ var PermList = function PermList() {
|
|
|
289
282
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
290
283
|
while (1) switch (_context5.prev = _context5.next) {
|
|
291
284
|
case 0:
|
|
292
|
-
hide = message.loading(
|
|
285
|
+
hide = message.loading('正在获取请求信息');
|
|
293
286
|
_context5.prev = 1;
|
|
294
287
|
_context5.next = 4;
|
|
295
288
|
return getPermUris({
|
|
@@ -297,7 +290,7 @@ var PermList = function PermList() {
|
|
|
297
290
|
});
|
|
298
291
|
case 4:
|
|
299
292
|
res = _context5.sent;
|
|
300
|
-
if (res.rspCode ===
|
|
293
|
+
if (res.rspCode === '000000') {
|
|
301
294
|
_uriList = res.data.map(function (e) {
|
|
302
295
|
return e.requestPathId;
|
|
303
296
|
});
|
|
@@ -305,14 +298,14 @@ var PermList = function PermList() {
|
|
|
305
298
|
setCurrentItem(record);
|
|
306
299
|
setUriModalVisible(true);
|
|
307
300
|
} else {
|
|
308
|
-
|
|
301
|
+
console.error(res.rspMsg);
|
|
309
302
|
}
|
|
310
303
|
_context5.next = 11;
|
|
311
304
|
break;
|
|
312
305
|
case 8:
|
|
313
306
|
_context5.prev = 8;
|
|
314
307
|
_context5.t0 = _context5["catch"](1);
|
|
315
|
-
message.error(
|
|
308
|
+
message.error('获取权限请求失败');
|
|
316
309
|
case 11:
|
|
317
310
|
hide();
|
|
318
311
|
case 12:
|
|
@@ -336,17 +329,17 @@ var PermList = function PermList() {
|
|
|
336
329
|
return getUriList({});
|
|
337
330
|
case 3:
|
|
338
331
|
res = _context6.sent;
|
|
339
|
-
if (res.rspCode ===
|
|
332
|
+
if (res.rspCode === '000000') {
|
|
340
333
|
setUriList(res.data);
|
|
341
334
|
} else {
|
|
342
|
-
|
|
335
|
+
console.error(res.rspMsg);
|
|
343
336
|
}
|
|
344
337
|
_context6.next = 10;
|
|
345
338
|
break;
|
|
346
339
|
case 7:
|
|
347
340
|
_context6.prev = 7;
|
|
348
341
|
_context6.t0 = _context6["catch"](0);
|
|
349
|
-
message.error(
|
|
342
|
+
message.error('获取请求列表失败');
|
|
350
343
|
case 10:
|
|
351
344
|
case "end":
|
|
352
345
|
return _context6.stop();
|
|
@@ -380,23 +373,23 @@ var PermList = function PermList() {
|
|
|
380
373
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
381
374
|
while (1) switch (_context7.prev = _context7.next) {
|
|
382
375
|
case 0:
|
|
383
|
-
hide = message.loading(
|
|
376
|
+
hide = message.loading('正在刷新权限缓存');
|
|
384
377
|
_context7.prev = 1;
|
|
385
378
|
_context7.next = 4;
|
|
386
379
|
return loadPermData({});
|
|
387
380
|
case 4:
|
|
388
381
|
res = _context7.sent;
|
|
389
|
-
if (res.rspCode ===
|
|
390
|
-
message.success(
|
|
382
|
+
if (res.rspCode === '000000') {
|
|
383
|
+
message.success('刷新成功');
|
|
391
384
|
} else {
|
|
392
|
-
|
|
385
|
+
console.error(res.rspMsg);
|
|
393
386
|
}
|
|
394
387
|
_context7.next = 11;
|
|
395
388
|
break;
|
|
396
389
|
case 8:
|
|
397
390
|
_context7.prev = 8;
|
|
398
391
|
_context7.t0 = _context7["catch"](1);
|
|
399
|
-
message.error(
|
|
392
|
+
message.error('刷新失败');
|
|
400
393
|
case 11:
|
|
401
394
|
hide();
|
|
402
395
|
case 12:
|
|
@@ -548,19 +541,19 @@ var PermList = function PermList() {
|
|
|
548
541
|
});
|
|
549
542
|
case 4:
|
|
550
543
|
res = _context11.sent;
|
|
551
|
-
if (res.rspCode ===
|
|
552
|
-
message.success(
|
|
544
|
+
if (res.rspCode === '000000') {
|
|
545
|
+
message.success('设置成功');
|
|
553
546
|
setUriModalVisible(false);
|
|
554
547
|
setCurrentUris([]);
|
|
555
548
|
} else {
|
|
556
|
-
|
|
549
|
+
console.error(res.rspMsg);
|
|
557
550
|
}
|
|
558
551
|
_context11.next = 11;
|
|
559
552
|
break;
|
|
560
553
|
case 8:
|
|
561
554
|
_context11.prev = 8;
|
|
562
555
|
_context11.t0 = _context11["catch"](1);
|
|
563
|
-
message.error(
|
|
556
|
+
message.error('设置请求失败');
|
|
564
557
|
case 11:
|
|
565
558
|
setUriModalLoading(false);
|
|
566
559
|
case 12:
|
|
@@ -13,11 +13,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
15
15
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
|
-
import { PlusOutlined, ExclamationCircleOutlined } from
|
|
17
|
-
import { Button, Divider, message, Modal } from
|
|
18
|
-
import React, { useState, useRef } from
|
|
19
|
-
import ProTable from
|
|
20
|
-
;
|
|
16
|
+
import { PlusOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
|
|
17
|
+
import { Button, Divider, message, Modal } from 'antd';
|
|
18
|
+
import React, { useState, useRef } from 'react';
|
|
19
|
+
import ProTable from '@ant-design/pro-table';
|
|
21
20
|
import Auth from "../../auth";
|
|
22
21
|
import UpdateForm from "./components/UpdateForm";
|
|
23
22
|
import { queryUri, updateUri, addUri, removeUri } from "./service.js";
|
|
@@ -32,25 +31,25 @@ var handleAdd = /*#__PURE__*/function () {
|
|
|
32
31
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33
32
|
while (1) switch (_context.prev = _context.next) {
|
|
34
33
|
case 0:
|
|
35
|
-
hide = message.loading(
|
|
34
|
+
hide = message.loading('正在添加');
|
|
36
35
|
isSuccess = false;
|
|
37
36
|
_context.prev = 2;
|
|
38
37
|
_context.next = 5;
|
|
39
38
|
return addUri(_objectSpread({}, fields));
|
|
40
39
|
case 5:
|
|
41
40
|
res = _context.sent;
|
|
42
|
-
if (res.rspCode ===
|
|
43
|
-
message.success(
|
|
41
|
+
if (res.rspCode === '000000') {
|
|
42
|
+
message.success('添加成功');
|
|
44
43
|
isSuccess = true;
|
|
45
44
|
} else {
|
|
46
|
-
|
|
45
|
+
console.error(res.rspMsg);
|
|
47
46
|
}
|
|
48
47
|
_context.next = 12;
|
|
49
48
|
break;
|
|
50
49
|
case 9:
|
|
51
50
|
_context.prev = 9;
|
|
52
51
|
_context.t0 = _context["catch"](2);
|
|
53
|
-
message.error(
|
|
52
|
+
message.error('添加失败请重试!');
|
|
54
53
|
case 12:
|
|
55
54
|
hide();
|
|
56
55
|
return _context.abrupt("return", isSuccess);
|
|
@@ -75,7 +74,7 @@ var handleUpdate = /*#__PURE__*/function () {
|
|
|
75
74
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
76
75
|
while (1) switch (_context2.prev = _context2.next) {
|
|
77
76
|
case 0:
|
|
78
|
-
hide = message.loading(
|
|
77
|
+
hide = message.loading('正在更新');
|
|
79
78
|
isSuccess = false;
|
|
80
79
|
_context2.prev = 2;
|
|
81
80
|
_context2.next = 5;
|
|
@@ -86,18 +85,18 @@ var handleUpdate = /*#__PURE__*/function () {
|
|
|
86
85
|
});
|
|
87
86
|
case 5:
|
|
88
87
|
res = _context2.sent;
|
|
89
|
-
if (res.rspCode ===
|
|
90
|
-
message.success(
|
|
88
|
+
if (res.rspCode === '000000') {
|
|
89
|
+
message.success('更新成功');
|
|
91
90
|
isSuccess = true;
|
|
92
91
|
} else {
|
|
93
|
-
|
|
92
|
+
console.error(res.rspMsg);
|
|
94
93
|
}
|
|
95
94
|
_context2.next = 12;
|
|
96
95
|
break;
|
|
97
96
|
case 9:
|
|
98
97
|
_context2.prev = 9;
|
|
99
98
|
_context2.t0 = _context2["catch"](2);
|
|
100
|
-
message.error(
|
|
99
|
+
message.error('更新失败请重试!');
|
|
101
100
|
case 12:
|
|
102
101
|
hide();
|
|
103
102
|
return _context2.abrupt("return", isSuccess);
|
|
@@ -122,25 +121,25 @@ var handleRemove = /*#__PURE__*/function () {
|
|
|
122
121
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
123
122
|
while (1) switch (_context3.prev = _context3.next) {
|
|
124
123
|
case 0:
|
|
125
|
-
hide = message.loading(
|
|
124
|
+
hide = message.loading('正在删除');
|
|
126
125
|
isSuccess = false;
|
|
127
126
|
_context3.prev = 2;
|
|
128
127
|
_context3.next = 5;
|
|
129
128
|
return removeUri(record);
|
|
130
129
|
case 5:
|
|
131
130
|
res = _context3.sent;
|
|
132
|
-
if (res.rspCode ===
|
|
133
|
-
message.success(
|
|
131
|
+
if (res.rspCode === '000000') {
|
|
132
|
+
message.success('删除成功');
|
|
134
133
|
isSuccess = true;
|
|
135
134
|
} else {
|
|
136
|
-
|
|
135
|
+
console.error(res.rspMsg);
|
|
137
136
|
}
|
|
138
137
|
_context3.next = 12;
|
|
139
138
|
break;
|
|
140
139
|
case 9:
|
|
141
140
|
_context3.prev = 9;
|
|
142
141
|
_context3.t0 = _context3["catch"](2);
|
|
143
|
-
message.error(
|
|
142
|
+
message.error('删除失败,请重试');
|
|
144
143
|
case 12:
|
|
145
144
|
hide();
|
|
146
145
|
return _context3.abrupt("return", isSuccess);
|
|
@@ -169,19 +168,19 @@ var RequestUriList = function RequestUriList() {
|
|
|
169
168
|
setCurrentItem = _useState6[1];
|
|
170
169
|
var actionRef = useRef();
|
|
171
170
|
var columns = [{
|
|
172
|
-
title:
|
|
173
|
-
dataIndex:
|
|
171
|
+
title: 'URI',
|
|
172
|
+
dataIndex: 'url',
|
|
174
173
|
rules: [{
|
|
175
174
|
required: true,
|
|
176
|
-
message:
|
|
175
|
+
message: 'URI为必填项'
|
|
177
176
|
}]
|
|
178
177
|
}, {
|
|
179
|
-
title:
|
|
180
|
-
dataIndex:
|
|
178
|
+
title: '描述',
|
|
179
|
+
dataIndex: 'description'
|
|
181
180
|
}, {
|
|
182
|
-
title:
|
|
183
|
-
dataIndex:
|
|
184
|
-
valueType:
|
|
181
|
+
title: '操作',
|
|
182
|
+
dataIndex: 'option',
|
|
183
|
+
valueType: 'option',
|
|
185
184
|
render: function render(_, record, index, action) {
|
|
186
185
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Auth, {
|
|
187
186
|
code: "URI_EDIT"
|
|
@@ -197,9 +196,9 @@ var RequestUriList = function RequestUriList() {
|
|
|
197
196
|
}, /*#__PURE__*/React.createElement("a", {
|
|
198
197
|
onClick: function onClick() {
|
|
199
198
|
Modal.confirm({
|
|
200
|
-
title:
|
|
199
|
+
title: '确定删除吗?',
|
|
201
200
|
icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
|
|
202
|
-
content:
|
|
201
|
+
content: '',
|
|
203
202
|
onOk: function () {
|
|
204
203
|
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
205
204
|
var success;
|
|
@@ -47,7 +47,7 @@ var handleAdd = /*#__PURE__*/function () {
|
|
|
47
47
|
message.success('添加成功');
|
|
48
48
|
isSuccess = true;
|
|
49
49
|
} else {
|
|
50
|
-
|
|
50
|
+
console.error(res.rspMsg);
|
|
51
51
|
}
|
|
52
52
|
_context.next = 12;
|
|
53
53
|
break;
|
|
@@ -94,7 +94,7 @@ var handleUpdate = /*#__PURE__*/function () {
|
|
|
94
94
|
message.success('更新成功');
|
|
95
95
|
isSuccess = true;
|
|
96
96
|
} else {
|
|
97
|
-
|
|
97
|
+
console.error(res.rspMsg);
|
|
98
98
|
}
|
|
99
99
|
_context2.next = 12;
|
|
100
100
|
break;
|
|
@@ -137,7 +137,7 @@ var handleRemove = /*#__PURE__*/function () {
|
|
|
137
137
|
message.success('删除成功');
|
|
138
138
|
isSuccess = true;
|
|
139
139
|
} else {
|
|
140
|
-
|
|
140
|
+
console.error(res.rspMsg);
|
|
141
141
|
}
|
|
142
142
|
_context3.next = 13;
|
|
143
143
|
break;
|
|
@@ -222,7 +222,7 @@ var RoleList = function RoleList() {
|
|
|
222
222
|
});
|
|
223
223
|
setPermList(tree);
|
|
224
224
|
} else {
|
|
225
|
-
|
|
225
|
+
console.error(res.rspMsg);
|
|
226
226
|
}
|
|
227
227
|
_context4.next = 11;
|
|
228
228
|
break;
|
|
@@ -334,7 +334,7 @@ var RoleList = function RoleList() {
|
|
|
334
334
|
setCurrentItem(record);
|
|
335
335
|
setPermModalVisible(true);
|
|
336
336
|
} else {
|
|
337
|
-
|
|
337
|
+
console.error(res.rspMsg);
|
|
338
338
|
}
|
|
339
339
|
_context6.next = 11;
|
|
340
340
|
break;
|
|
@@ -502,7 +502,7 @@ var RoleList = function RoleList() {
|
|
|
502
502
|
message.success('设置成功');
|
|
503
503
|
setPermModalVisible(false);
|
|
504
504
|
} else {
|
|
505
|
-
|
|
505
|
+
console.error(res.rspMsg);
|
|
506
506
|
}
|
|
507
507
|
_context10.next = 10;
|
|
508
508
|
break;
|