perf: add view name

This commit is contained in:
xingyu 2022-11-23 22:26:25 +08:00
parent 9d05b97451
commit 824c54088b
54 changed files with 54 additions and 84 deletions

View File

@ -74,7 +74,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="${table.moduleName}">
// 全局相关的 import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -1,5 +1,5 @@
<template>
<ContentWrap title="{{ upperFirstName }}"> {{ name }} </ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="{{ name }}">
</script>

View File

@ -160,7 +160,7 @@
</el-col>
</el-row>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Home">
import { ref, reactive } from 'vue'
import { set } from 'lodash-es'
import { EChartsOption } from 'echarts'

View File

@ -33,7 +33,6 @@
</template>
</Form>
</template>
<script setup lang="ts">
import { computed, reactive, ref, unref } from 'vue'
import { ElInput, FormRules } from 'element-plus'

View File

@ -30,7 +30,7 @@
</el-card>
</div>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Profile">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { ElCard, ElTabs, ElTabPane } from 'element-plus'

View File

@ -1,7 +1,7 @@
<template>
<div></div>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Redirect">
import { unref } from 'vue'
import { useRouter } from 'vue-router'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Form">
import { ref, unref } from 'vue'
import dayjs from 'dayjs'
import { ElMessage } from 'element-plus'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Group">
import { ref, unref, onMounted } from 'vue'
import dayjs from 'dayjs'
import { ElMessage, ElSelect, ElOption } from 'element-plus'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Model">
import { ref, unref } from 'vue'
import dayjs from 'dayjs'
import { ElTableColumn, ElTag, ElSwitch } from 'element-plus'

View File

@ -1,7 +1,4 @@
<script setup lang="ts"></script>
<template>
<div>index</div>
</template>
<style scoped></style>
<script setup lang="ts" name="Oa"></script>

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="ProcessInstance">
import { ref } from 'vue'
import dayjs from 'dayjs'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Done">
import dayjs from 'dayjs'
import duration from 'dayjs/plugin/duration'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -1,7 +1,4 @@
<script setup lang="ts"></script>
<template>
<div>index</div>
</template>
<style scoped></style>
<script setup lang="ts" name="My"></script>

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Todo">
import dayjs from 'dayjs'
import { DICT_TYPE } from '@/utils/dict'
import { useTable } from '@/hooks/web/useTable'

View File

@ -1,7 +1,4 @@
<script setup lang="ts"></script>
<template>
<div>index</div>
</template>
<style scoped></style>
<script setup lang="ts" name="TaskAssignRule"></script>

View File

@ -35,8 +35,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="ApiAccessLog">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useVxeGrid } from '@/hooks/web/useVxeGrid'

View File

@ -51,7 +51,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="ApiErrorLog">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useVxeGrid } from '@/hooks/web/useVxeGrid'

View File

@ -1,7 +1,4 @@
<script setup lang="ts"></script>
<template>
<div>index</div>
</template>
<style scoped></style>
<script setup lang="ts" name="Build"></script>

View File

@ -48,7 +48,7 @@
<ImportTable ref="importRef" @ok="handleQuery()" />
<Preview ref="previewRef" />
</template>
<script setup lang="ts">
<script setup lang="ts" name="Codegen">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { VxeGridInstance } from 'vxe-table'

View File

@ -85,8 +85,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Config">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -65,7 +65,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="DataSourceConfig">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -24,7 +24,7 @@
<IFrame v-if="!loding" v-loading="loding" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="DbDoc">
import { onMounted, ref } from 'vue'
import download from '@/utils/download'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -3,7 +3,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Druid">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'

View File

@ -46,7 +46,6 @@
</template>
</vxe-grid>
</ContentWrap>
<XModal v-model="dialogVisible" :title="dialogTitle">
<!-- 对话框(添加 / 修改) -->
<Form
@ -76,7 +75,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="FileConfig">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -26,7 +26,6 @@
</template>
</vxe-grid>
</ContentWrap>
<XModal v-model="dialogVisible" :title="dialogTitle">
<!-- 对话框(详情) -->
<Descriptions :schema="allSchemas.detailSchema" :data="detailData">
@ -78,7 +77,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="FileList">
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'

View File

@ -47,8 +47,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="JobLog">
import { ref } from 'vue'
import dayjs from 'dayjs'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -113,8 +113,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Job">
import { ref, unref } from 'vue'
import { useRouter } from 'vue-router'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -128,7 +128,7 @@
</el-row>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Redis">
import { onBeforeMount, ref } from 'vue'
import {
ElRow,

View File

@ -3,7 +3,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Server">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'

View File

@ -3,7 +3,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Skywalking">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'

View File

@ -3,7 +3,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Swagger">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'

View File

@ -1,7 +1,4 @@
<script setup lang="ts"></script>
<template>
<div>index</div>
</template>
<style scoped></style>
<script setup lang="ts" name="TestDome"></script>

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="App">
import { ref, unref } from 'vue'
import dayjs from 'dayjs'
import { ElMessage } from 'element-plus'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Merchant">
import { ref, unref } from 'vue'
import dayjs from 'dayjs'
import { ElMessage } from 'element-plus'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Order">
import { ref, unref } from 'vue'
import { ElMessage } from 'element-plus'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" name="Refund">
import { ref } from 'vue'
import dayjs from 'dayjs'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -117,7 +117,7 @@
</XModal>
</div>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Dict">
import { ref, unref, reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'

View File

@ -66,8 +66,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="ErrorCode">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -27,7 +27,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Loginlog">
// import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -241,7 +241,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Menu">
// import
import { onMounted, reactive, ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -70,7 +70,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Notice">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -129,7 +129,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Client">
// import
import { ref, unref } from 'vue'
import { ElTag } from 'element-plus'

View File

@ -24,8 +24,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Token">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'

View File

@ -41,7 +41,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="OperateLog">
// import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -74,7 +74,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Post">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -141,7 +141,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Role">
import { onMounted, reactive, ref, unref } from 'vue'
import {
ElForm,

View File

@ -89,7 +89,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="SensitiveWord">
import { onMounted, ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'

View File

@ -67,8 +67,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="SmsChannel">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -30,8 +30,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="SmsLog">
// import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -43,7 +43,6 @@
</template>
</vxe-grid>
</ContentWrap>
<XModal id="smsTemplate" v-model="dialogVisible" :title="dialogTitle">
<!-- 对话框(添加 / 修改) -->
<Form
@ -109,8 +108,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="SmsTemplate">
// import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -51,7 +51,6 @@
</template>
</vxe-grid>
</ContentWrap>
<XModal v-model="dialogVisible" :title="dialogTitle">
<!-- 对话框(添加 / 修改) -->
<Form
@ -97,7 +96,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Tenant">
import { ref, unref, onMounted } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'

View File

@ -16,7 +16,6 @@
</template>
</vxe-grid>
</ContentWrap>
<XModal v-model="dialogVisible" :title="dialogTitle">
<!-- 对话框(添加 / 修改) -->
<Form
@ -65,7 +64,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="TenantPackage">
import { onMounted, ref, unref } from 'vue'
import { handleTree } from '@/utils/tree'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -235,7 +235,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script setup lang="ts" name="User">
import { nextTick, onMounted, reactive, ref, unref, watch } from 'vue'
import {
ElTag,
@ -267,8 +267,8 @@ import { FormExpose } from '@/components/Form'
import { rules, allSchemas } from './user.data'
import * as UserApi from '@/api/system/user'
import { listSimpleDeptApi } from '@/api/system/dept'
import { listSimplePostsApi, PostVO } from '@/api/system/post'
import { listSimpleRolesApi } from '@/api/system/role'
import { listSimplePostsApi, PostVO } from '@/api/system/post'
import {
aassignUserRoleApi,
listUserRolesApi,

View File

@ -3,7 +3,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script setup lang="ts" name="Jmreport">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
import { getAccessToken } from '@/utils/auth'