Skip to content

Commit ce78192

Browse files
wangdan-fit2cloudshaohuzhang1
authored andcommitted
fix: 应用分页从20改为30
1 parent 76a65d6 commit ce78192

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

ui/src/views/application/index.vue

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const applicationList = ref<any[]>([])
171171
172172
const paginationConfig = reactive({
173173
current_page: 1,
174-
page_size: 20,
174+
page_size: 30,
175175
total: 0
176176
})
177177
interface UserOption {
@@ -248,18 +248,18 @@ function mapToUrlParams(map: any[]) {
248248
}
249249
250250
function getAccessToken(id: string) {
251-
applicationList.value.filter((app)=>app.id === id)[0]?.work_flow?.nodes
252-
?.filter((v: any) => v.id === 'base-node')
253-
.map((v: any) => {
254-
apiInputParams.value = v.properties.api_input_field_list
255-
? v.properties.api_input_field_list
256-
.map((v: any) => {
257-
return {
258-
name: v.variable,
259-
value: v.default_value
260-
}
261-
})
262-
: v.properties.input_field_list
251+
applicationList.value
252+
.filter((app) => app.id === id)[0]
253+
?.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')
254+
.map((v: any) => {
255+
apiInputParams.value = v.properties.api_input_field_list
256+
? v.properties.api_input_field_list.map((v: any) => {
257+
return {
258+
name: v.variable,
259+
value: v.default_value
260+
}
261+
})
262+
: v.properties.input_field_list
263263
? v.properties.input_field_list
264264
.filter((v: any) => v.assignment_method === 'api_input')
265265
.map((v: any) => {
@@ -269,9 +269,11 @@ function getAccessToken(id: string) {
269269
}
270270
})
271271
: []
272-
})
272+
})
273273
274-
const apiParams = mapToUrlParams(apiInputParams.value) ? '?' + mapToUrlParams(apiInputParams.value) : ''
274+
const apiParams = mapToUrlParams(apiInputParams.value)
275+
? '?' + mapToUrlParams(apiInputParams.value)
276+
: ''
275277
application.asyncGetAccessToken(id, loading).then((res: any) => {
276278
window.open(application.location + res?.data?.access_token + apiParams)
277279
})

0 commit comments

Comments
 (0)