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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<template> <template>
<div></div> <div></div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts" name="Redirect">
import { unref } from 'vue' import { unref } from 'vue'
import { useRouter } from 'vue-router' 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 { ref, unref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElMessage } from 'element-plus' 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 { ref, unref, onMounted } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElMessage, ElSelect, ElOption } from 'element-plus' 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 { ref, unref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElTableColumn, ElTag, ElSwitch } from 'element-plus' import { ElTableColumn, ElTag, ElSwitch } from 'element-plus'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
<script setup lang="ts"> <script setup lang="ts" name="App">
import { ref, unref } from 'vue' import { ref, unref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElMessage } from 'element-plus' 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 { ref, unref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElMessage } from 'element-plus' 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 { ref, unref } from 'vue'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import { DICT_TYPE } from '@/utils/dict' 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 { ref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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