vue-vben-admin/src/views/sys/error-log/DetailModal.vue

39 lines
992 B
Vue
Raw Normal View History

2020-10-18 21:55:21 +08:00
<template>
2020-11-23 00:35:15 +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">
import { defineComponent, PropType } from 'vue';
2020-11-23 00:35:15 +08:00
import { useI18n } from 'vue-i18n';
2020-10-18 21:55:21 +08:00
import { BasicModal } from '/@/components/Modal/index';
import { ErrorInfo } from '/@/store/modules/error';
import { Description, useDescription } from '/@/components/Description/index';
2020-11-23 00:35:15 +08:00
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-11-23 00:35:15 +08:00
const { t } = useI18n();
2020-10-18 21:55:21 +08:00
const [register] = useDescription({
column: 2,
schema: getDescSchema(),
});
return {
register,
2020-11-23 00:35:15 +08:00
useI18n,
t,
2020-10-18 21:55:21 +08:00
};
},
});
</script>