perf: 修改任务时间日志
This commit is contained in:
parent
cb6cf1e34b
commit
10ff02b8a0
@ -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]
|
||||
]);
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user