2020-10-18 21:55:21 +08:00
|
|
|
<template>
|
2020-12-01 23:51:39 +08:00
|
|
|
<BasicModal :width="800" :title="t('sys.errorLog.tableActionDesc')" v-bind="$attrs">
|
2020-10-18 21:55:21 +08:00
|
|
|
<Description :data="info" @register="register" />
|
|
|
|
|
</BasicModal>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
2021-02-10 00:53:47 +08:00
|
|
|
import type { PropType } from 'vue';
|
2020-11-23 00:35:15 +08:00
|
|
|
|
2021-02-10 00:53:47 +08:00
|
|
|
import { defineComponent } from 'vue';
|
2020-10-18 21:55:21 +08:00
|
|
|
import { BasicModal } from '/@/components/Modal/index';
|
|
|
|
|
import { Description, useDescription } from '/@/components/Description/index';
|
2021-02-10 00:53:47 +08:00
|
|
|
|
2020-11-25 23:20:30 +08:00
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
2020-11-23 00:35:15 +08:00
|
|
|
|
2021-02-10 00:53:47 +08:00
|
|
|
import { ErrorInfo } from '/@/store/modules/error';
|
|
|
|
|
|
2020-10-18 21:55:21 +08:00
|
|
|
import { getDescSchema } from './data';
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
name: 'ErrorLogDetailModal',
|
|
|
|
|
components: { BasicModal, Description },
|
|
|
|
|
props: {
|
|
|
|
|
info: {
|
|
|
|
|
type: Object as PropType<ErrorInfo>,
|
|
|
|
|
default: null,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
setup() {
|
2020-12-01 23:51:39 +08:00
|
|
|
const { t } = useI18n();
|
2021-02-10 00:53:47 +08:00
|
|
|
|
2020-10-18 21:55:21 +08:00
|
|
|
const [register] = useDescription({
|
|
|
|
|
column: 2,
|
|
|
|
|
schema: getDescSchema(),
|
|
|
|
|
});
|
2021-02-10 00:53:47 +08:00
|
|
|
|
2020-10-18 21:55:21 +08:00
|
|
|
return {
|
|
|
|
|
register,
|
2020-11-23 00:35:15 +08:00
|
|
|
useI18n,
|
|
|
|
|
t,
|
2020-10-18 21:55:21 +08:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
</script>
|