BUG优化

dev
xiepeng 2024-06-05 18:00:28 +08:00
parent 7681bd4a5a
commit db462d943f
2 changed files with 18 additions and 1 deletions

View File

@ -109,6 +109,9 @@
<td>{{ item.TOTAL }}</td> <td>{{ item.TOTAL }}</td>
</tr> </tr>
</tbody> </tbody>
<tr>
<td v-for="(item, index) in totalList" :key="index">{{item}}</td>
</tr>
</table> </table>
<div v-html="PRINT_STYLE" /> <div v-html="PRINT_STYLE" />
</div> </div>
@ -202,8 +205,22 @@ const fnGetSummaries = ({ columns, data }) => {
}) || "--"; }) || "--";
} else sums[index] = "--"; } else sums[index] = "--";
}); });
fnGetTotal(sums);
return 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( const fnDelete = debounce(
1000, 1000,
async () => { async () => {

View File

@ -139,7 +139,7 @@ const fnSubmit = debounce(
]; ];
formData.append("CATEGORY_LIST", JSON.stringify(CATEGORY_LIST)); formData.append("CATEGORY_LIST", JSON.stringify(CATEGORY_LIST));
formData.append("ASSOCIATION", props.association); formData.append("ASSOCIATION", props.association);
formData.append("ISADD", "1"); formData.append("OPERATE", props.type);
await setThreeInstitutionalLibrariesSave(formData); await setThreeInstitutionalLibrariesSave(formData);
ElMessage.success("操作成功"); ElMessage.success("操作成功");
fnClose(); fnClose();