forked from integrated_whb/integrated_whb_vue
BUG优化
parent
7681bd4a5a
commit
db462d943f
|
@ -109,6 +109,9 @@
|
|||
<td>{{ item.TOTAL }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tr>
|
||||
<td v-for="(item, index) in totalList" :key="index">{{item}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div v-html="PRINT_STYLE" />
|
||||
</div>
|
||||
|
@ -202,8 +205,22 @@ const fnGetSummaries = ({ columns, data }) => {
|
|||
}) || "--";
|
||||
} else sums[index] = "--";
|
||||
});
|
||||
fnGetTotal(sums);
|
||||
return sums;
|
||||
};
|
||||
let totalList = [];
|
||||
const fnGetTotal = (sums) => {
|
||||
totalList = sums;
|
||||
const totalAll = [];
|
||||
for (let i = 0; i < totalList.length; i++) {
|
||||
if (i === 1 || i === 2) {
|
||||
continue;
|
||||
}
|
||||
totalAll.push(totalList[i]);
|
||||
}
|
||||
totalList = totalAll;
|
||||
};
|
||||
|
||||
const fnDelete = debounce(
|
||||
1000,
|
||||
async () => {
|
||||
|
|
|
@ -139,7 +139,7 @@ const fnSubmit = debounce(
|
|||
];
|
||||
formData.append("CATEGORY_LIST", JSON.stringify(CATEGORY_LIST));
|
||||
formData.append("ASSOCIATION", props.association);
|
||||
formData.append("ISADD", "1");
|
||||
formData.append("OPERATE", props.type);
|
||||
await setThreeInstitutionalLibrariesSave(formData);
|
||||
ElMessage.success("操作成功");
|
||||
fnClose();
|
||||
|
|
Loading…
Reference in New Issue