perf: 修改任务时间日志

This commit is contained in:
kuaifan 2022-02-23 09:58:55 +08:00
parent cb6cf1e34b
commit 10ff02b8a0
3 changed files with 11 additions and 3 deletions

View File

@ -725,7 +725,7 @@ class ProjectTask extends AbstractModel
}
});
}
$newStringAt = $this->start_at ? ($oldAt[0]->toDateTimeString() . '~' . $oldAt[1]->toDateTimeString()) : '';
$newStringAt = $this->start_at ? ($this->start_at->toDateTimeString() . '~' . $this->end_at->toDateTimeString()) : '';
$this->addLog("修改{任务}时间", [
'change' => [$oldStringAt, $newStringAt]
]);

View File

@ -172,9 +172,11 @@ export default {
let [before, now] = record.change
vNode.push(h('span', ': '))
if (before && before != now) {
vNode.push(h('span', `${before || '-'} => ${now || '-'}`))
vNode.push(h('span', {class:'change-value'}, `${before || '-'}`))
vNode.push(h('span', ' => '))
vNode.push(h('span', {class:'change-value'}, `${now || '-'}`))
} else {
vNode.push(h('span', now || '-'))
vNode.push(h('span', {class:'change-value'}, now || '-'))
}
}
if (record.userid) {

View File

@ -120,6 +120,12 @@
display: inline-block;
color: rgba(0, 0, 0, .72);
.change-value {
&:hover {
border-bottom: 1px dotted rgba(0, 0, 0, .3);
}
}
.detail-user {
display: inline-block;
vertical-align: top;