fix
This commit is contained in:
@@ -245,7 +245,7 @@ const onSubmit = async () => {
|
|||||||
if (response.success) {
|
if (response.success) {
|
||||||
showToast('保存成功')
|
showToast('保存成功')
|
||||||
visible.value = false
|
visible.value = false
|
||||||
emit('save')
|
emit('save', data)
|
||||||
// 重新加载分类列表
|
// 重新加载分类列表
|
||||||
await loadClassifyList(editForm.type)
|
await loadClassifyList(editForm.type)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -209,10 +209,20 @@ const viewDetail = async (transaction) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 详情保存后的回调
|
// 详情保存后的回调
|
||||||
const onDetailSave = () => {
|
const onDetailSave = async (saveData) => {
|
||||||
// 重新加载当前日期的交易列表
|
// 重新加载当前日期的交易列表
|
||||||
if (selectedDate.value) {
|
if (saveData && dateTransactions.value) {
|
||||||
fetchDateTransactions(selectedDate.value);
|
var updatedIndex = dateTransactions.value.findIndex(tx => tx.id === saveData.id);
|
||||||
|
if (updatedIndex !== -1) {
|
||||||
|
// 更新已有记录
|
||||||
|
dateTransactions.value[updatedIndex].amount = saveData.amount;
|
||||||
|
dateTransactions.value[updatedIndex].balance = saveData.balance;
|
||||||
|
dateTransactions.value[updatedIndex].type = saveData.type;
|
||||||
|
dateTransactions.value[updatedIndex].upsetedType = '';
|
||||||
|
dateTransactions.value[updatedIndex].classify = saveData.classify;
|
||||||
|
dateTransactions.value[updatedIndex].upsetedClassify = '';
|
||||||
|
dateTransactions.value[updatedIndex].reason = saveData.reason;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 重新加载当前月份的统计数据
|
// 重新加载当前月份的统计数据
|
||||||
|
|||||||
176239
WebApi/Resources/idf.txt
Normal file
176239
WebApi/Resources/idf.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -21,12 +21,9 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- 移除默认包含的 Resources JSON 文件,然后显式添加并设置复制规则 -->
|
<!-- 禁用默认的 Content 包含,然后显式添加 Resources 文件 -->
|
||||||
<Content Remove="Resources\*.json" />
|
<Content Remove="Resources\**" />
|
||||||
<Content Include="Resources\*.txt">
|
<Content Include="Resources\*">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="Resources\*.json">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user