|
|
@@ -295,7 +295,7 @@
|
|
|
<el-tab-pane label="备注日志" name="logs">
|
|
|
<el-timeline style="margin-top: 10px; padding-left: 5px">
|
|
|
<el-timeline-item v-for="(log, index) in changeLogs" :key="index" :timestamp="log.createTime" type="primary">
|
|
|
- [{{ log.changeType }}] {{ log.content }}
|
|
|
+ [{{ log.logType }}] {{ log.content }}
|
|
|
<div style="font-size: 12px; color: #999; margin-top: 4px">操作人: {{ log.operatorName }}</div>
|
|
|
</el-timeline-item>
|
|
|
</el-timeline>
|
|
|
@@ -485,6 +485,12 @@ const saveRemark = () => {
|
|
|
ElMessage.success('备注添加成功');
|
|
|
remarkDialogVisible.value = false;
|
|
|
getList();
|
|
|
+ // 刷新 drawer 中的变更日志
|
|
|
+ if (drawerVisible.value) {
|
|
|
+ listAllChangeLog(currentPet.value.id, 'pet').then((logRes) => {
|
|
|
+ changeLogs.value = logRes.data || [];
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
};
|
|
|
|