+ Transaction edit history is only kept for the most recent 12 months.
+ Transaction 的编辑历史记录仅保存最近 12 个月。
+
+
+
+
+
+
+
+ CANCEL
+
+
@@ -31,7 +45,7 @@ import { provide, reactive, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRoute } from 'vue-router'
import PopupForm from './popupForm.vue'
-import { add, url } from '/@/api/backend/user/moneyLog'
+import { add, logHistory, url } from '/@/api/backend/user/moneyLog'
import { baTableApi } from '/@/api/common'
import TableHeader from '/@/components/table/header/index.vue'
import Table from '/@/components/table/index.vue'
@@ -48,6 +62,84 @@ const defalutUser = (route.query.user_id ?? '') as string
const state = reactive({
userInfo: {} as anyObj,
})
+interface HistoryRow {
+ id: number | string
+ editedBy: string
+ editedTime: string
+ changes: string
+}
+
+const historyDialog = reactive({
+ visible: false,
+ loading: false,
+ rows: [] as HistoryRow[],
+})
+const gameTypeMap = scoreLog.game_type as Record