Skip to content

Commit 4dfff16

Browse files
YunaiVgitee-org
authored andcommitted
!2 遇到多个问题并修改
Merge pull request !2 from 毕梅/master
2 parents f71e749 + 5718c78 commit 4dfff16

File tree

10 files changed

+17
-7
lines changed

10 files changed

+17
-7
lines changed

src/components/Search/src/Search.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { FormSchema } from '@/types/form'
99
1010
const { t } = useI18n()
1111
12+
const slots = useSlots()
13+
1214
const props = defineProps({
1315
// 生成Form的布局结构数组
1416
schema: {
@@ -123,6 +125,7 @@ const setVisible = () => {
123125
</ElButton>
124126
</div>
125127
</template>
128+
<template v-for="(slot, name) in slots" #[name]><slot :name="name"></slot></template>
126129
</Form>
127130

128131
<template v-if="layout === 'bottom'">

src/store/modules/tagsView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const useTagsViewStore = defineStore('tagsView', {
5858
// 删除某个
5959
delView(view: RouteLocationNormalizedLoaded) {
6060
this.delVisitedView(view)
61-
this.addCachedView()
61+
this.delCachedView()
6262
},
6363
// 删除tag
6464
delVisitedView(view: RouteLocationNormalizedLoaded) {
@@ -80,7 +80,7 @@ export const useTagsViewStore = defineStore('tagsView', {
8080
// 删除所有缓存和tag
8181
delAllViews() {
8282
this.delAllVisitedViews()
83-
this.addCachedView()
83+
this.delCachedView()
8484
},
8585
// 删除所有tag
8686
delAllVisitedViews() {

src/utils/routerHelper.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,11 @@ const addToChildren = (
212212
}
213213
}
214214
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
215-
str = (str || '').toLowerCase().replace(/-(.)/g, function (group1: string) {
216-
return group1.toUpperCase()
217-
})
215+
str = (str || '')
216+
.replace(/-(.)/g, function (group1: string) {
217+
return group1.toUpperCase()
218+
})
219+
.replaceAll('-', '')
218220

219221
if (upperCaseFirst && str) {
220222
str = str.charAt(0).toUpperCase() + str.slice(1)

src/views/bpm/task/done/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const { push } = useRouter() // 路由
2121
2222
const [registerTable] = useXTable({
2323
allSchemas: allSchemas,
24+
topActionSlots: false,
2425
getListApi: TaskApi.getDoneTaskPage
2526
})
2627

src/views/bpm/task/todo/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const { push } = useRouter() // 路由
2222
2323
const [registerTable] = useXTable({
2424
allSchemas: allSchemas,
25+
topActionSlots: false,
2526
getListApi: TaskApi.getTodoTaskPage
2627
})
2728

src/views/infra/server/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<IFrame :src="src" />
44
</ContentWrap>
55
</template>
6-
<script setup lang="ts" name="Server">
6+
<script setup lang="ts" name="AdminServer">
77
const BASE_URL = import.meta.env.VITE_BASE_URL
88
const src = ref(BASE_URL + '/admin/applications')
99
</script>

src/views/report/jmreport/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<IFrame :src="src" />
44
</ContentWrap>
55
</template>
6-
<script setup lang="ts" name="Jmreport">
6+
<script setup lang="ts" name="JimuReport">
77
import { getAccessToken } from '@/utils/auth'
88
99
const BASE_URL = import.meta.env.VITE_BASE_URL

src/views/system/dict/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ const tableTypeSelect = ref(false)
179179
const cellClickEvent: VxeTableEvents.CellClick = async ({ row }) => {
180180
tableTypeSelect.value = true
181181
queryParams.dictType = row['type']
182+
await nextTick()
182183
await dataGetList()
183184
parentType.value = row['type']
184185
}

src/views/system/mail/log/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const queryParams = reactive({
5959
})
6060
const [registerTable] = useXTable({
6161
allSchemas: allSchemas,
62+
topActionSlots: false,
6263
params: queryParams,
6364
getListApi: MailLogApi.getMailLogPageApi
6465
})

src/views/system/notify/message/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const { t } = useI18n() // 国际化
3737
// 列表相关的变量
3838
const [registerTable] = useXTable({
3939
allSchemas: allSchemas,
40+
topActionSlots: false,
4041
getListApi: NotifyMessageApi.getNotifyMessagePageApi
4142
})
4243

0 commit comments

Comments
 (0)