fix
This commit is contained in:
@@ -245,7 +245,7 @@ const onSubmit = async () => {
|
||||
if (response.success) {
|
||||
showToast('保存成功')
|
||||
visible.value = false
|
||||
emit('save')
|
||||
emit('save', data)
|
||||
// 重新加载分类列表
|
||||
await loadClassifyList(editForm.type)
|
||||
} else {
|
||||
|
||||
@@ -209,10 +209,20 @@ const viewDetail = async (transaction) => {
|
||||
};
|
||||
|
||||
// 详情保存后的回调
|
||||
const onDetailSave = () => {
|
||||
const onDetailSave = async (saveData) => {
|
||||
// 重新加载当前日期的交易列表
|
||||
if (selectedDate.value) {
|
||||
fetchDateTransactions(selectedDate.value);
|
||||
if (saveData && dateTransactions.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>
|
||||
<!-- 移除默认包含的 Resources JSON 文件,然后显式添加并设置复制规则 -->
|
||||
<Content Remove="Resources\*.json" />
|
||||
<Content Include="Resources\*.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Resources\*.json">
|
||||
<!-- 禁用默认的 Content 包含,然后显式添加 Resources 文件 -->
|
||||
<Content Remove="Resources\**" />
|
||||
<Content Include="Resources\*">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user