|
|
|
@ -244,23 +244,16 @@ |
|
|
|
|
<el-tab-pane label="进度历史" name="history"> |
|
|
|
|
<div class="overflow-y-auto pl-15px" style="height: calc(100% - 50px)"> |
|
|
|
|
<el-timeline class="ml-10px"> |
|
|
|
|
<el-timeline-item placement="bottom" timestamp="2025-01-20" color="#30d1fc"> |
|
|
|
|
<div>张三</div> |
|
|
|
|
<div class="mt-10px text-14px" style="line-height: 24px; color: #666"> |
|
|
|
|
进度变化:40% -> 60% |
|
|
|
|
(节点进度是读取目标进度计算的,目标进度根据关键成果计算,关键成果在提交跟新时会有) |
|
|
|
|
</div> |
|
|
|
|
</el-timeline-item> |
|
|
|
|
<el-timeline-item placement="bottom" timestamp="2025-01-15" color="#30d1fc"> |
|
|
|
|
<div>张三</div> |
|
|
|
|
<div class="mt-10px text-14px" style="line-height: 24px; color: #666"> |
|
|
|
|
更新节点 |
|
|
|
|
</div> |
|
|
|
|
</el-timeline-item> |
|
|
|
|
<el-timeline-item placement="bottom" timestamp="2025-01-01" color="#30d1fc"> |
|
|
|
|
<div>张三</div> |
|
|
|
|
<el-timeline-item |
|
|
|
|
v-for="item in nodeRecords" |
|
|
|
|
:key="item.recordId" |
|
|
|
|
placement="bottom" |
|
|
|
|
:timestamp="formatDate(item.createTime)" |
|
|
|
|
color="#30d1fc" |
|
|
|
|
> |
|
|
|
|
<div>{{ item.creator }}</div> |
|
|
|
|
<div class="mt-10px text-14px" style="line-height: 24px; color: #666"> |
|
|
|
|
创建节点 |
|
|
|
|
{{ item.content }} |
|
|
|
|
</div> |
|
|
|
|
</el-timeline-item> |
|
|
|
|
</el-timeline> |
|
|
|
@ -274,9 +267,10 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup name="DialogOkr"> |
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
import OkrTable from './OkrTable.vue' |
|
|
|
|
|
|
|
|
|
import { getOkrNodeDetail } from '@/api/okr/okr' |
|
|
|
|
import { getOkrNodeDetail, getOkrNodeHistory } from '@/api/okr/okr' |
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['edit']) |
|
|
|
|
|
|
|
|
@ -306,6 +300,8 @@ const sideIndex = ref('subNode') |
|
|
|
|
const okrTableRef = ref(null) |
|
|
|
|
const nodeInfo = ref({}) |
|
|
|
|
|
|
|
|
|
const nodeRecords = ref([]) |
|
|
|
|
|
|
|
|
|
async function open(id) { |
|
|
|
|
try { |
|
|
|
|
getOkrNodeDetail(id).then((resp) => { |
|
|
|
@ -323,6 +319,9 @@ async function open(id) { |
|
|
|
|
okrTableRef.value.prepareData(okrList.value) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
getOkrNodeHistory(id).then((resp) => { |
|
|
|
|
nodeRecords.value = resp |
|
|
|
|
}) |
|
|
|
|
} finally { |
|
|
|
|
} |
|
|
|
|
show.value = true |
|
|
|
|