kts-components-document-access-point 1.4.10 → 1.4.11
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/index.esm.js +24 -10
- package/dist/index.js +24 -10
- package/package.json +1 -1
- package/src/DocumentsList/index.less +0 -41
- package/src/DocumentsRule/ui/main/index.tsx +13 -8
package/dist/index.esm.js
CHANGED
|
@@ -3724,7 +3724,7 @@ var PageHeader = (function () {
|
|
|
3724
3724
|
}));
|
|
3725
3725
|
});
|
|
3726
3726
|
|
|
3727
|
-
var css_248z$3 = "
|
|
3727
|
+
var css_248z$3 = "";
|
|
3728
3728
|
styleInject(css_248z$3);
|
|
3729
3729
|
|
|
3730
3730
|
var attributionEnum = {
|
|
@@ -5130,14 +5130,19 @@ function Rule(props) {
|
|
|
5130
5130
|
|
|
5131
5131
|
var _controller$useRuning = controller.useRuning(controller.configupdate, controller.configsave),
|
|
5132
5132
|
_controller$useRuning2 = _slicedToArray(_controller$useRuning, 1),
|
|
5133
|
-
loading = _controller$useRuning2[0];
|
|
5134
|
-
// const [first, setFirst] = useState(true);
|
|
5135
|
-
|
|
5133
|
+
loading = _controller$useRuning2[0];
|
|
5136
5134
|
|
|
5137
5135
|
var _useState15 = useState(false),
|
|
5138
5136
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5139
|
-
|
|
5140
|
-
|
|
5137
|
+
sendloading = _useState16[0],
|
|
5138
|
+
setloading = _useState16[1]; // const [status, setStatus] = useState(0);
|
|
5139
|
+
// const [first, setFirst] = useState(true);
|
|
5140
|
+
|
|
5141
|
+
|
|
5142
|
+
var _useState17 = useState(false),
|
|
5143
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
5144
|
+
hasChange = _useState18[0],
|
|
5145
|
+
setChange = _useState18[1];
|
|
5141
5146
|
|
|
5142
5147
|
var history = useHistory();
|
|
5143
5148
|
var search = history.location.search && qs.parse(history.location.search);
|
|
@@ -5493,10 +5498,17 @@ function Rule(props) {
|
|
|
5493
5498
|
sendPublic: true,
|
|
5494
5499
|
senderParticipantNote: note && note.remarkName
|
|
5495
5500
|
});
|
|
5496
|
-
|
|
5501
|
+
|
|
5502
|
+
if (sendloading) {
|
|
5503
|
+
_context7.next = 9;
|
|
5504
|
+
break;
|
|
5505
|
+
}
|
|
5506
|
+
|
|
5507
|
+
setloading(true);
|
|
5508
|
+
_context7.next = 6;
|
|
5497
5509
|
return controller.batchsend([data]);
|
|
5498
5510
|
|
|
5499
|
-
case
|
|
5511
|
+
case 6:
|
|
5500
5512
|
res = _context7.sent;
|
|
5501
5513
|
|
|
5502
5514
|
if (res.res) {
|
|
@@ -5510,14 +5522,16 @@ function Rule(props) {
|
|
|
5510
5522
|
});
|
|
5511
5523
|
}
|
|
5512
5524
|
|
|
5513
|
-
|
|
5525
|
+
setloading(false);
|
|
5526
|
+
|
|
5527
|
+
case 9:
|
|
5514
5528
|
case "end":
|
|
5515
5529
|
return _context7.stop();
|
|
5516
5530
|
}
|
|
5517
5531
|
}
|
|
5518
5532
|
}, _callee7);
|
|
5519
5533
|
}))();
|
|
5520
|
-
}, [targetId, record]);
|
|
5534
|
+
}, [targetId, record, sendloading]);
|
|
5521
5535
|
var targetSelect = useCallback(function (e) {
|
|
5522
5536
|
setTarget(e.target.value);
|
|
5523
5537
|
}, []);
|
package/dist/index.js
CHANGED
|
@@ -3738,7 +3738,7 @@ var PageHeader = (function () {
|
|
|
3738
3738
|
}));
|
|
3739
3739
|
});
|
|
3740
3740
|
|
|
3741
|
-
var css_248z$3 = "
|
|
3741
|
+
var css_248z$3 = "";
|
|
3742
3742
|
styleInject(css_248z$3);
|
|
3743
3743
|
|
|
3744
3744
|
var attributionEnum = {
|
|
@@ -5144,14 +5144,19 @@ function Rule(props) {
|
|
|
5144
5144
|
|
|
5145
5145
|
var _controller$useRuning = controller.useRuning(controller.configupdate, controller.configsave),
|
|
5146
5146
|
_controller$useRuning2 = _slicedToArray(_controller$useRuning, 1),
|
|
5147
|
-
loading = _controller$useRuning2[0];
|
|
5148
|
-
// const [first, setFirst] = useState(true);
|
|
5149
|
-
|
|
5147
|
+
loading = _controller$useRuning2[0];
|
|
5150
5148
|
|
|
5151
5149
|
var _useState15 = React.useState(false),
|
|
5152
5150
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5153
|
-
|
|
5154
|
-
|
|
5151
|
+
sendloading = _useState16[0],
|
|
5152
|
+
setloading = _useState16[1]; // const [status, setStatus] = useState(0);
|
|
5153
|
+
// const [first, setFirst] = useState(true);
|
|
5154
|
+
|
|
5155
|
+
|
|
5156
|
+
var _useState17 = React.useState(false),
|
|
5157
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
5158
|
+
hasChange = _useState18[0],
|
|
5159
|
+
setChange = _useState18[1];
|
|
5155
5160
|
|
|
5156
5161
|
var history = reactRouterDom.useHistory();
|
|
5157
5162
|
var search = history.location.search && qs__default['default'].parse(history.location.search);
|
|
@@ -5507,10 +5512,17 @@ function Rule(props) {
|
|
|
5507
5512
|
sendPublic: true,
|
|
5508
5513
|
senderParticipantNote: note && note.remarkName
|
|
5509
5514
|
});
|
|
5510
|
-
|
|
5515
|
+
|
|
5516
|
+
if (sendloading) {
|
|
5517
|
+
_context7.next = 9;
|
|
5518
|
+
break;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5521
|
+
setloading(true);
|
|
5522
|
+
_context7.next = 6;
|
|
5511
5523
|
return controller.batchsend([data]);
|
|
5512
5524
|
|
|
5513
|
-
case
|
|
5525
|
+
case 6:
|
|
5514
5526
|
res = _context7.sent;
|
|
5515
5527
|
|
|
5516
5528
|
if (res.res) {
|
|
@@ -5524,14 +5536,16 @@ function Rule(props) {
|
|
|
5524
5536
|
});
|
|
5525
5537
|
}
|
|
5526
5538
|
|
|
5527
|
-
|
|
5539
|
+
setloading(false);
|
|
5540
|
+
|
|
5541
|
+
case 9:
|
|
5528
5542
|
case "end":
|
|
5529
5543
|
return _context7.stop();
|
|
5530
5544
|
}
|
|
5531
5545
|
}
|
|
5532
5546
|
}, _callee7);
|
|
5533
5547
|
}))();
|
|
5534
|
-
}, [targetId, record]);
|
|
5548
|
+
}, [targetId, record, sendloading]);
|
|
5535
5549
|
var targetSelect = React.useCallback(function (e) {
|
|
5536
5550
|
setTarget(e.target.value);
|
|
5537
5551
|
}, []);
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.header{
|
|
2
|
-
padding:10px 0px;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
.buttonGroup{
|
|
6
|
-
margin-right: 20px;
|
|
7
|
-
white-space: nowrap;
|
|
8
|
-
}
|
|
9
|
-
.buttons{
|
|
10
|
-
text-align: right;
|
|
11
|
-
flex: 1;
|
|
12
|
-
white-space: nowrap;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.tabel-action{
|
|
16
|
-
padding: 0 5px;
|
|
17
|
-
font-size: 12px;
|
|
18
|
-
font-family: PingFangSC-Regular,PingFang SC;
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
color: #0074ff;
|
|
21
|
-
white-space: nowrap;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
}
|
|
24
|
-
// .ktsAntX-xui-page-header-foot{
|
|
25
|
-
// overflow: inherit !important;
|
|
26
|
-
// }
|
|
27
|
-
// .ktsAntX-table .ktsAntX-table-thead > tr > th{
|
|
28
|
-
// background:#fafafa !important
|
|
29
|
-
// }
|
|
30
|
-
// .ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before{
|
|
31
|
-
// box-shadow:none !important;
|
|
32
|
-
// }
|
|
33
|
-
// .fixheight {
|
|
34
|
-
// .ktsAntX-table .ktsAntX-table-thead > tr > th, .ktsAntX-table .ktsAntX-table-tbody > tr > td, .ktsAntX-table .ktsAntX-table tfoot > tr > th, .ktsAntX-table .ktsAntX-table tfoot > tr > td{
|
|
35
|
-
// padding: 5px 16px;
|
|
36
|
-
// height: 50px;
|
|
37
|
-
// }
|
|
38
|
-
// }
|
|
39
|
-
// .ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before{
|
|
40
|
-
// opacity: 0;
|
|
41
|
-
// }
|
|
@@ -16,7 +16,8 @@ export default function Rule(props: any) {
|
|
|
16
16
|
const [visible, setVisible] = useState(false);
|
|
17
17
|
const [targetId, setTarget] = useState();
|
|
18
18
|
const [targetList, setList] = useState<any[]>([]);
|
|
19
|
-
const [loading] = controller.useRuning(controller.configupdate,controller.configsave)
|
|
19
|
+
const [loading] = controller.useRuning(controller.configupdate, controller.configsave);
|
|
20
|
+
const [sendloading, setloading] = useState(false);
|
|
20
21
|
// const [status, setStatus] = useState(0);
|
|
21
22
|
// const [first, setFirst] = useState(true);
|
|
22
23
|
const [hasChange, setChange] = useState(false);
|
|
@@ -136,7 +137,7 @@ export default function Rule(props: any) {
|
|
|
136
137
|
* 手动保存
|
|
137
138
|
*/
|
|
138
139
|
|
|
139
|
-
|
|
140
|
+
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
const onSave = useCallback((publish: boolean = false) => {
|
|
@@ -197,14 +198,18 @@ export default function Rule(props: any) {
|
|
|
197
198
|
sendPublic: true,
|
|
198
199
|
senderParticipantNote: note && note.remarkName
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
if (!sendloading) {
|
|
202
|
+
setloading(true)
|
|
203
|
+
const res = await controller.batchsend([data]);
|
|
204
|
+
if (res.res) {
|
|
205
|
+
message.success('操作成功');
|
|
206
|
+
handleCancel()
|
|
207
|
+
history.push({ pathname: `/rulelist`, state: { type: 2 } })
|
|
208
|
+
}
|
|
209
|
+
setloading(false)
|
|
205
210
|
}
|
|
206
211
|
})()
|
|
207
|
-
}, [targetId, record]);
|
|
212
|
+
}, [targetId, record,sendloading]);
|
|
208
213
|
const targetSelect = useCallback((e) => {
|
|
209
214
|
setTarget(e.target.value);
|
|
210
215
|
}, []);
|