Commit 824c54088bd9000ce641a697dbe08c48f94a848c

Authored by xingyu
1 parent 9d05b974

perf: add view name

Showing 54 changed files with 54 additions and 84 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm
... ... @@ -74,7 +74,7 @@
74 74 </template>
75 75 </XModal>
76 76 </template>
77   -<script setup lang="ts">
  77 +<script setup lang="ts" name="${table.moduleName}">
78 78 // 全局相关的 import
79 79 import { ref, unref } from 'vue'
80 80 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/plop/view/view.hbs
1 1 <template>
2 2 <ContentWrap title="{{ upperFirstName }}"> {{ name }} </ContentWrap>
3 3 </template>
4   -<script setup lang="ts">
  4 +<script setup lang="ts" name="{{ name }}">
5 5 </script>
... ...
yudao-ui-admin-vue3/src/views/Home/Index.vue
... ... @@ -160,7 +160,7 @@
160 160 </el-col>
161 161 </el-row>
162 162 </template>
163   -<script setup lang="ts">
  163 +<script setup lang="ts" name="Home">
164 164 import { ref, reactive } from 'vue'
165 165 import { set } from 'lodash-es'
166 166 import { EChartsOption } from 'echarts'
... ...
yudao-ui-admin-vue3/src/views/Login/components/RegisterForm.vue
... ... @@ -33,7 +33,6 @@
33 33 </template>
34 34 </Form>
35 35 </template>
36   -
37 36 <script setup lang="ts">
38 37 import { computed, reactive, ref, unref } from 'vue'
39 38 import { ElInput, FormRules } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/Profile/Index.vue
... ... @@ -30,7 +30,7 @@
30 30 </el-card>
31 31 </div>
32 32 </template>
33   -<script setup lang="ts">
  33 +<script setup lang="ts" name="Profile">
34 34 import { ref } from 'vue'
35 35 import { useI18n } from '@/hooks/web/useI18n'
36 36 import { ElCard, ElTabs, ElTabPane } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/Redirect/Redirect.vue
1 1 <template>
2 2 <div></div>
3 3 </template>
4   -<script setup lang="ts">
  4 +<script setup lang="ts" name="Redirect">
5 5 import { unref } from 'vue'
6 6 import { useRouter } from 'vue-router'
7 7  
... ...
yudao-ui-admin-vue3/src/views/bpm/form/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Form">
2 2 import { ref, unref } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { ElMessage } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/bpm/group/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Group">
2 2 import { ref, unref, onMounted } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { ElMessage, ElSelect, ElOption } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/bpm/model/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Model">
2 2 import { ref, unref } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { ElTableColumn, ElTag, ElSwitch } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/bpm/oa/index.vue
1   -<script setup lang="ts"></script>
2   -
3 1 <template>
4 2 <div>index</div>
5 3 </template>
6   -
7   -<style scoped></style>
  4 +<script setup lang="ts" name="Oa"></script>
... ...
yudao-ui-admin-vue3/src/views/bpm/processInstance/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="ProcessInstance">
2 2 import { ref } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { DICT_TYPE } from '@/utils/dict'
... ...
yudao-ui-admin-vue3/src/views/bpm/task/done/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Done">
2 2 import dayjs from 'dayjs'
3 3 import duration from 'dayjs/plugin/duration'
4 4 import { DICT_TYPE } from '@/utils/dict'
... ...
yudao-ui-admin-vue3/src/views/bpm/task/my/index.vue
1   -<script setup lang="ts"></script>
2   -
3 1 <template>
4 2 <div>index</div>
5 3 </template>
6   -
7   -<style scoped></style>
  4 +<script setup lang="ts" name="My"></script>
... ...
yudao-ui-admin-vue3/src/views/bpm/task/todo/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Todo">
2 2 import dayjs from 'dayjs'
3 3 import { DICT_TYPE } from '@/utils/dict'
4 4 import { useTable } from '@/hooks/web/useTable'
... ...
yudao-ui-admin-vue3/src/views/bpm/taskAssignRule/index.vue
1   -<script setup lang="ts"></script>
2   -
3 1 <template>
4 2 <div>index</div>
5 3 </template>
6   -
7   -<style scoped></style>
  4 +<script setup lang="ts" name="TaskAssignRule"></script>
... ...
yudao-ui-admin-vue3/src/views/infra/apiAccessLog/index.vue
... ... @@ -35,8 +35,7 @@
35 35 </template>
36 36 </XModal>
37 37 </template>
38   -
39   -<script setup lang="ts">
  38 +<script setup lang="ts" name="ApiAccessLog">
40 39 import { ref } from 'vue'
41 40 import { useI18n } from '@/hooks/web/useI18n'
42 41 import { useVxeGrid } from '@/hooks/web/useVxeGrid'
... ...
yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
... ... @@ -51,7 +51,7 @@
51 51 </template>
52 52 </XModal>
53 53 </template>
54   -<script setup lang="ts">
  54 +<script setup lang="ts" name="ApiErrorLog">
55 55 import { ref } from 'vue'
56 56 import { useI18n } from '@/hooks/web/useI18n'
57 57 import { useVxeGrid } from '@/hooks/web/useVxeGrid'
... ...
yudao-ui-admin-vue3/src/views/infra/build/index.vue
1   -<script setup lang="ts"></script>
2   -
3 1 <template>
4 2 <div>index</div>
5 3 </template>
6   -
7   -<style scoped></style>
  4 +<script setup lang="ts" name="Build"></script>
... ...
yudao-ui-admin-vue3/src/views/infra/codegen/index.vue
... ... @@ -48,7 +48,7 @@
48 48 <ImportTable ref="importRef" @ok="handleQuery()" />
49 49 <Preview ref="previewRef" />
50 50 </template>
51   -<script setup lang="ts">
  51 +<script setup lang="ts" name="Codegen">
52 52 import { ref } from 'vue'
53 53 import { useRouter } from 'vue-router'
54 54 import { VxeGridInstance } from 'vxe-table'
... ...
yudao-ui-admin-vue3/src/views/infra/config/index.vue
... ... @@ -85,8 +85,7 @@
85 85 </template>
86 86 </XModal>
87 87 </template>
88   -
89   -<script setup lang="ts">
  88 +<script setup lang="ts" name="Config">
90 89 // 全局相关的 import
91 90 import { ref, unref } from 'vue'
92 91 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/infra/dataSourceConfig/index.vue
... ... @@ -65,7 +65,7 @@
65 65 </template>
66 66 </XModal>
67 67 </template>
68   -<script setup lang="ts">
  68 +<script setup lang="ts" name="DataSourceConfig">
69 69 // 全局相关的 import
70 70 import { ref, unref } from 'vue'
71 71 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/infra/dbDoc/index.vue
... ... @@ -24,7 +24,7 @@
24 24 <IFrame v-if="!loding" v-loading="loding" :src="src" />
25 25 </ContentWrap>
26 26 </template>
27   -<script setup lang="ts">
  27 +<script setup lang="ts" name="DbDoc">
28 28 import { onMounted, ref } from 'vue'
29 29 import download from '@/utils/download'
30 30 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/infra/druid/index.vue
... ... @@ -3,7 +3,7 @@
3 3 <IFrame :src="src" />
4 4 </ContentWrap>
5 5 </template>
6   -<script setup lang="ts">
  6 +<script setup lang="ts" name="Druid">
7 7 import { ref } from 'vue'
8 8 import { IFrame } from '@/components/IFrame'
9 9  
... ...
yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue
... ... @@ -46,7 +46,6 @@
46 46 </template>
47 47 </vxe-grid>
48 48 </ContentWrap>
49   -
50 49 <XModal v-model="dialogVisible" :title="dialogTitle">
51 50 <!-- 对话框(添加 / 修改) -->
52 51 <Form
... ... @@ -76,7 +75,7 @@
76 75 </template>
77 76 </XModal>
78 77 </template>
79   -<script setup lang="ts">
  78 +<script setup lang="ts" name="FileConfig">
80 79 // 全局相关的 import
81 80 import { ref, unref } from 'vue'
82 81 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/infra/fileList/index.vue
... ... @@ -26,7 +26,6 @@
26 26 </template>
27 27 </vxe-grid>
28 28 </ContentWrap>
29   -
30 29 <XModal v-model="dialogVisible" :title="dialogTitle">
31 30 <!-- 对话框(详情) -->
32 31 <Descriptions :schema="allSchemas.detailSchema" :data="detailData">
... ... @@ -78,7 +77,7 @@
78 77 </template>
79 78 </XModal>
80 79 </template>
81   -<script setup lang="ts">
  80 +<script setup lang="ts" name="FileList">
82 81 import { ref, unref } from 'vue'
83 82 import { useI18n } from '@/hooks/web/useI18n'
84 83 import { useMessage } from '@/hooks/web/useMessage'
... ...
yudao-ui-admin-vue3/src/views/infra/job/JobLog.vue
... ... @@ -47,8 +47,7 @@
47 47 </template>
48 48 </XModal>
49 49 </template>
50   -
51   -<script setup lang="ts">
  50 +<script setup lang="ts" name="JobLog">
52 51 import { ref } from 'vue'
53 52 import dayjs from 'dayjs'
54 53 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/infra/job/index.vue
... ... @@ -113,8 +113,7 @@
113 113 </template>
114 114 </XModal>
115 115 </template>
116   -
117   -<script setup lang="ts">
  116 +<script setup lang="ts" name="Job">
118 117 import { ref, unref } from 'vue'
119 118 import { useRouter } from 'vue-router'
120 119 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/infra/redis/index.vue
... ... @@ -128,7 +128,7 @@
128 128 </el-row>
129 129 </XModal>
130 130 </template>
131   -<script setup lang="ts">
  131 +<script setup lang="ts" name="Redis">
132 132 import { onBeforeMount, ref } from 'vue'
133 133 import {
134 134 ElRow,
... ...
yudao-ui-admin-vue3/src/views/infra/server/index.vue
... ... @@ -3,7 +3,7 @@
3 3 <IFrame :src="src" />
4 4 </ContentWrap>
5 5 </template>
6   -<script setup lang="ts">
  6 +<script setup lang="ts" name="Server">
7 7 import { ref } from 'vue'
8 8 import { IFrame } from '@/components/IFrame'
9 9  
... ...
yudao-ui-admin-vue3/src/views/infra/skywalking/index.vue
... ... @@ -3,7 +3,7 @@
3 3 <IFrame :src="src" />
4 4 </ContentWrap>
5 5 </template>
6   -<script setup lang="ts">
  6 +<script setup lang="ts" name="Skywalking">
7 7 import { ref } from 'vue'
8 8 import { IFrame } from '@/components/IFrame'
9 9  
... ...
yudao-ui-admin-vue3/src/views/infra/swagger/index.vue
... ... @@ -3,7 +3,7 @@
3 3 <IFrame :src="src" />
4 4 </ContentWrap>
5 5 </template>
6   -<script setup lang="ts">
  6 +<script setup lang="ts" name="Swagger">
7 7 import { ref } from 'vue'
8 8 import { IFrame } from '@/components/IFrame'
9 9  
... ...
yudao-ui-admin-vue3/src/views/infra/testDemo/index.vue
1   -<script setup lang="ts"></script>
2   -
3 1 <template>
4 2 <div>index</div>
5 3 </template>
6   -
7   -<style scoped></style>
  4 +<script setup lang="ts" name="TestDome"></script>
... ...
yudao-ui-admin-vue3/src/views/pay/app/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="App">
2 2 import { ref, unref } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { ElMessage } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/pay/merchant/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Merchant">
2 2 import { ref, unref } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { ElMessage } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/pay/order/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Order">
2 2 import { ref, unref } from 'vue'
3 3 import { ElMessage } from 'element-plus'
4 4 import { DICT_TYPE } from '@/utils/dict'
... ...
yudao-ui-admin-vue3/src/views/pay/refund/index.vue
1   -<script setup lang="ts">
  1 +<script setup lang="ts" name="Refund">
2 2 import { ref } from 'vue'
3 3 import dayjs from 'dayjs'
4 4 import { DICT_TYPE } from '@/utils/dict'
... ...
yudao-ui-admin-vue3/src/views/system/dict/index.vue
... ... @@ -117,7 +117,7 @@
117 117 </XModal>
118 118 </div>
119 119 </template>
120   -<script setup lang="ts">
  120 +<script setup lang="ts" name="Dict">
121 121 import { ref, unref, reactive } from 'vue'
122 122 import { useI18n } from '@/hooks/web/useI18n'
123 123 import { useMessage } from '@/hooks/web/useMessage'
... ...
yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
... ... @@ -66,8 +66,7 @@
66 66 </template>
67 67 </XModal>
68 68 </template>
69   -
70   -<script setup lang="ts">
  69 +<script setup lang="ts" name="ErrorCode">
71 70 // 全局相关的 import
72 71 import { ref, unref } from 'vue'
73 72 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/loginlog/index.vue
... ... @@ -27,7 +27,7 @@
27 27 </template>
28 28 </XModal>
29 29 </template>
30   -<script setup lang="ts">
  30 +<script setup lang="ts" name="Loginlog">
31 31 // 全局相关的 import
32 32 import { ref } from 'vue'
33 33 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/menu/index.vue
... ... @@ -241,7 +241,7 @@
241 241 </template>
242 242 </XModal>
243 243 </template>
244   -<script setup lang="ts">
  244 +<script setup lang="ts" name="Menu">
245 245 // 全局相关的 import
246 246 import { onMounted, reactive, ref } from 'vue'
247 247 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/notice/index.vue
... ... @@ -70,7 +70,7 @@
70 70 </template>
71 71 </XModal>
72 72 </template>
73   -<script setup lang="ts">
  73 +<script setup lang="ts" name="Notice">
74 74 // 全局相关的 import
75 75 import { ref, unref } from 'vue'
76 76 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue
... ... @@ -129,7 +129,7 @@
129 129 </template>
130 130 </XModal>
131 131 </template>
132   -<script setup lang="ts">
  132 +<script setup lang="ts" name="Client">
133 133 // 全局相关的 import
134 134 import { ref, unref } from 'vue'
135 135 import { ElTag } from 'element-plus'
... ...
yudao-ui-admin-vue3/src/views/system/oauth2/token/index.vue
... ... @@ -24,8 +24,7 @@
24 24 </template>
25 25 </XModal>
26 26 </template>
27   -
28   -<script setup lang="ts">
  27 +<script setup lang="ts" name="Token">
29 28 import { ref } from 'vue'
30 29 import { useI18n } from '@/hooks/web/useI18n'
31 30 import { useMessage } from '@/hooks/web/useMessage'
... ...
yudao-ui-admin-vue3/src/views/system/operatelog/index.vue
... ... @@ -41,7 +41,7 @@
41 41 </template>
42 42 </XModal>
43 43 </template>
44   -<script setup lang="ts">
  44 +<script setup lang="ts" name="OperateLog">
45 45 // 全局相关的 import
46 46 import { ref } from 'vue'
47 47 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/post/index.vue
... ... @@ -74,7 +74,7 @@
74 74 </template>
75 75 </XModal>
76 76 </template>
77   -<script setup lang="ts">
  77 +<script setup lang="ts" name="Post">
78 78 // 全局相关的 import
79 79 import { ref, unref } from 'vue'
80 80 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/role/index.vue
... ... @@ -141,7 +141,7 @@
141 141 </template>
142 142 </XModal>
143 143 </template>
144   -<script setup lang="ts">
  144 +<script setup lang="ts" name="Role">
145 145 import { onMounted, reactive, ref, unref } from 'vue'
146 146 import {
147 147 ElForm,
... ...
yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue
... ... @@ -89,7 +89,7 @@
89 89 </template>
90 90 </XModal>
91 91 </template>
92   -<script setup lang="ts">
  92 +<script setup lang="ts" name="SensitiveWord">
93 93 import { onMounted, ref, unref } from 'vue'
94 94 import { useI18n } from '@/hooks/web/useI18n'
95 95 import { useMessage } from '@/hooks/web/useMessage'
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue
... ... @@ -67,8 +67,7 @@
67 67 </template>
68 68 </XModal>
69 69 </template>
70   -
71   -<script setup lang="ts">
  70 +<script setup lang="ts" name="SmsChannel">
72 71 // 全局相关的 import
73 72 import { ref, unref } from 'vue'
74 73 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsLog/index.vue
... ... @@ -30,8 +30,7 @@
30 30 </template>
31 31 </XModal>
32 32 </template>
33   -
34   -<script setup lang="ts">
  33 +<script setup lang="ts" name="SmsLog">
35 34 // 全局相关的 import
36 35 import { ref } from 'vue'
37 36 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
... ... @@ -43,7 +43,6 @@
43 43 </template>
44 44 </vxe-grid>
45 45 </ContentWrap>
46   -
47 46 <XModal id="smsTemplate" v-model="dialogVisible" :title="dialogTitle">
48 47 <!-- 对话框(添加 / 修改) -->
49 48 <Form
... ... @@ -109,8 +108,7 @@
109 108 </template>
110 109 </XModal>
111 110 </template>
112   -
113   -<script setup lang="ts">
  111 +<script setup lang="ts" name="SmsTemplate">
114 112 // 全局相关的 import
115 113 import { ref, unref } from 'vue'
116 114 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/tenant/index.vue
... ... @@ -51,7 +51,6 @@
51 51 </template>
52 52 </vxe-grid>
53 53 </ContentWrap>
54   -
55 54 <XModal v-model="dialogVisible" :title="dialogTitle">
56 55 <!-- 对话框(添加 / 修改) -->
57 56 <Form
... ... @@ -97,7 +96,7 @@
97 96 </template>
98 97 </XModal>
99 98 </template>
100   -<script setup lang="ts">
  99 +<script setup lang="ts" name="Tenant">
101 100 import { ref, unref, onMounted } from 'vue'
102 101 import { useI18n } from '@/hooks/web/useI18n'
103 102 import { useMessage } from '@/hooks/web/useMessage'
... ...
yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
... ... @@ -16,7 +16,6 @@
16 16 </template>
17 17 </vxe-grid>
18 18 </ContentWrap>
19   -
20 19 <XModal v-model="dialogVisible" :title="dialogTitle">
21 20 <!-- 对话框(添加 / 修改) -->
22 21 <Form
... ... @@ -65,7 +64,7 @@
65 64 </template>
66 65 </XModal>
67 66 </template>
68   -<script setup lang="ts">
  67 +<script setup lang="ts" name="TenantPackage">
69 68 import { onMounted, ref, unref } from 'vue'
70 69 import { handleTree } from '@/utils/tree'
71 70 import { useI18n } from '@/hooks/web/useI18n'
... ...
yudao-ui-admin-vue3/src/views/system/user/index.vue
... ... @@ -235,7 +235,7 @@
235 235 </template>
236 236 </XModal>
237 237 </template>
238   -<script setup lang="ts">
  238 +<script setup lang="ts" name="User">
239 239 import { nextTick, onMounted, reactive, ref, unref, watch } from 'vue'
240 240 import {
241 241 ElTag,
... ... @@ -267,8 +267,8 @@ import { FormExpose } from &#39;@/components/Form&#39;
267 267 import { rules, allSchemas } from './user.data'
268 268 import * as UserApi from '@/api/system/user'
269 269 import { listSimpleDeptApi } from '@/api/system/dept'
270   -import { listSimplePostsApi, PostVO } from '@/api/system/post'
271 270 import { listSimpleRolesApi } from '@/api/system/role'
  271 +import { listSimplePostsApi, PostVO } from '@/api/system/post'
272 272 import {
273 273 aassignUserRoleApi,
274 274 listUserRolesApi,
... ...
yudao-ui-admin-vue3/src/views/visualization/jmreport/index.vue
... ... @@ -3,7 +3,7 @@
3 3 <IFrame :src="src" />
4 4 </ContentWrap>
5 5 </template>
6   -<script setup lang="ts">
  6 +<script setup lang="ts" name="Jmreport">
7 7 import { ref } from 'vue'
8 8 import { IFrame } from '@/components/IFrame'
9 9 import { getAccessToken } from '@/utils/auth'
... ...