|
@@ -315,15 +315,25 @@
|
|
|
});
|
|
|
modelRef.id = id;
|
|
|
modelRef.subNum = lookNum + shotNum;
|
|
|
- minNumber.lookNum = lookNum;
|
|
|
- minNumber.shotNum = shotNum;
|
|
|
searchInfo.id = id;
|
|
|
await reloadSubtable();
|
|
|
-
|
|
|
- const total = getDataSource();
|
|
|
- console.log('total', total);
|
|
|
+ let tableLIst = await getDataSource();
|
|
|
+ let look = 0,
|
|
|
+ shoot = 0;
|
|
|
+ tableLIst.map((ele) => {
|
|
|
+ if (ele.roleId == 8) {
|
|
|
+ look++;
|
|
|
+ shoot++;
|
|
|
+ } else if (ele.roleId == 81) {
|
|
|
+ look++;
|
|
|
+ } else if (ele.roleId == 82) {
|
|
|
+ shoot++;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ minNumber.lookNum = look;
|
|
|
+ minNumber.shotNum = shoot;
|
|
|
setFieldsValue({
|
|
|
- addeduser: total?.length || 0,
|
|
|
+ addeduser: tableLIst?.length || 0,
|
|
|
});
|
|
|
}
|
|
|
async function numOnChange() {
|