ScheduleLogViewModal.vue
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<div>
<BasicModal
v-bind="$attrs"
width="62rem"
:height="heightNum"
@register="register"
title="调度日志详细信息"
@cancel="handleCancel"
:showOkBtn="false"
style="font-size: 12px"
>
<div>
<Description :column="3" size="middle" @register="registeDesc" />
</div>
</BasicModal>
</div>
</template>
<script setup lang="ts">
import { ref, nextTick, reactive } from 'vue';
import { BasicModal, useModalInner } from '/@/components/Modal';
import { scheduleLogDetailSchema } from './config.data';
import { Description } from '/@/components/Description/index';
import { useDescription } from '/@/components/Description';
import { schedueLogDetailPage } from '/@/api/schedue/schedueManager';
const heightNum = ref(800);
let personData = reactive({});
const [registeDesc, { setDescProps }] = useDescription({
data: personData,
schema: scheduleLogDetailSchema,
column: 3,
});
const [register] = useModalInner(async (data) => {
const res = await schedueLogDetailPage(data.record.jobId, data.record.id);
if (res.code === 200) {
nextTick(() => {
for (let i in res.data) {
Reflect.set(personData, i, res.data[i]);
}
setDescProps(personData);
});
}
});
const handleCancel = () => {};
</script>
<style lang="less" scoped>
:deep(.vben-basic-title-normal) {
font-size: 16px;
font-weight: 500;
}
:deep(.vben-collapse-container__header) {
border-bottom: none;
}
</style>