Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
4b5b5dae
Commit
4b5b5dae
authored
Dec 13, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api-外样式
parent
7b2a4100
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
83 deletions
+58
-83
data.ts
src/views/mallResourceDevelopment/API/apiByApply/data.ts
+1
-1
index.vue
src/views/mallResourceDevelopment/API/apiByApply/index.vue
+57
-82
No files found.
src/views/mallResourceDevelopment/API/apiByApply/data.ts
View file @
4b5b5dae
...
@@ -36,7 +36,7 @@ export const applyColumns: BasicColumn[] = [
...
@@ -36,7 +36,7 @@ export const applyColumns: BasicColumn[] = [
export
const
applyFormSchema
:
FormSchema
[]
=
[
export
const
applyFormSchema
:
FormSchema
[]
=
[
{
{
field
:
'name'
,
field
:
'name'
,
label
:
'
'
,
label
:
''
,
component
:
'Input'
,
component
:
'Input'
,
componentProps
:
{
componentProps
:
{
placeholder
:
'搜索资源名称'
,
placeholder
:
'搜索资源名称'
,
...
...
src/views/mallResourceDevelopment/API/apiByApply/index.vue
View file @
4b5b5dae
<
template
>
<
template
>
<PageWrapper
class=
"content-padding"
contentBackground
>
<PageWrapper
dense
contentBackground
headerSticky
>
<template
#
headerContent
>
<template
#
headerContent
>
<div
class=
"header"
>
<div
class=
"header"
>
<Icon
icon=
"hugeicons:file-euro"
class=
"h-icon"
:color=
"'#6499e9'"
/>
<Icon
icon=
"hugeicons:file-euro"
class=
"h-icon"
:color=
"'#6499e9'"
/>
...
@@ -8,81 +8,75 @@
...
@@ -8,81 +8,75 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
template
#
footer
>
<!-- <template #extra></template>-->
<a-tabs
v-model:activeKey=
"currentKey"
>
<div
class=
"h-full"
style=
"padding: 0 25px"
>
<a-tab-pane
key=
"1"
tab=
"申请成功"
/>
<Tabs
v-model:activeKey=
"currentKey"
>
<a-tab-pane
key=
"2"
tab=
"申请中"
/>
<TabPane
key=
"1"
tab=
"申请成功"
>
<a-tab-pane
key=
"3"
tab=
"申请失败"
/>
<BasicTable
@
register=
"registerApplySuccessTable"
>
</a-tabs>
<
template
#
bodyCell=
"{ column, record }"
>
</
template
>
<template
v-if=
"column.key === 'action'"
>
<div
class=
"pt-4 m-4 desc-wrap"
>
<TableAction
<
template
v-if=
"currentKey == '1'"
>
:actions=
"[
<BasicTable
@
register=
"registerApplySuccessTable"
>
{
<template
#
bodyCell=
"
{ column, record }">
label: '详情',
<template
v-if=
"column.key === 'action'"
>
onClick: handleDetail.bind(null, record),
<TableAction
},
:actions=
"[
]"
{
/>
label: '详情',
</
template
>
onClick: handleDetail.bind(null, record),
},
]"
/>
</template>
</template>
</
templat
e>
</
BasicTabl
e>
</
BasicTabl
e>
</
TabPan
e>
</template
>
<TabPane
key=
"2"
tab=
"申请中"
>
<
template
v-if=
"currentKey == '2'
"
>
<BasicTable
@
register=
"registerApplyTable
"
>
<BasicTable
@
register=
"registerApplyTable
"
>
<
template
#
bodyCell=
"{ column, record }
"
>
<template
#
bodyCell=
"
{ column, record }
">
<template
v-if=
"column.key === 'action'
"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
label: '详情',
label: '详情'
,
onClick: handleDetail.bind(null, record)
,
onClick: handleDetail.bind(null, record)
,
}
,
},
]"
]"
/>
/
>
</
template
>
</template>
</template>
</
templat
e>
</
BasicTabl
e>
</
BasicTabl
e>
</
TabPan
e>
</template
>
<TabPane
key=
"3"
tab=
"申请失败"
>
<
template
v-if=
"currentKey == '3'
"
>
<BasicTable
@
register=
"registerApplyFailedTable
"
>
<BasicTable
@
register=
"registerApplyFailedTable
"
>
<
template
#
bodyCell=
"{ column, record }
"
>
<template
#
bodyCell=
"
{ column, record }
">
<template
v-if=
"column.key === 'action'
"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
label: '详情',
label: '详情'
,
onClick: handleDetail.bind(null, record)
,
onClick: handleDetail.bind(null, record)
,
}
,
},
]"
]"
/>
/
>
</
template
>
</template>
</template>
</
templat
e>
</
BasicTabl
e>
</
BasicTabl
e>
</
TabPan
e>
</
template
>
</
Tabs
>
</div>
</div>
</PageWrapper>
</PageWrapper>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
PageWrapper
}
from
'@/components/Pag
e'
;
import
PageWrapper
from
'@/components/Page/src/PageWrapper.vu
e'
;
import
{
useTabs
}
from
'@/hooks/web/useTabs'
;
import
{
useTabs
}
from
'@/hooks/web/useTabs'
;
import
{
Tabs
}
from
'ant-design-vue'
;
import
{
Tabs
,
TabPane
}
from
'ant-design-vue'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
Icon
from
'@/components/Icon/Icon.vue'
;
import
Icon
from
'@/components/Icon/Icon.vue'
;
import
{
BasicTable
,
TableAction
,
useTable
}
from
'@/components/Table'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
applyColumns
,
applyFormSchema
}
from
'./data'
;
import
{
applyColumns
,
applyFormSchema
}
from
'./data'
;
import
{
applyData
,
applyFailedData
,
applySuccessData
}
from
'./apiByApplyData'
;
import
{
applyData
,
applyFailedData
,
applySuccessData
}
from
'./apiByApplyData'
;
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
}
=
useMessage
();
const
ATabs
=
Tabs
;
const
ATabPane
=
Tabs
.
TabPane
;
const
currentKey
=
ref
(
'1'
);
const
currentKey
=
ref
(
'1'
);
const
{
setTitle
}
=
useTabs
();
const
{
setTitle
}
=
useTabs
();
setTitle
(
'我申请的'
);
setTitle
(
'我申请的'
);
...
@@ -101,7 +95,6 @@
...
@@ -101,7 +95,6 @@
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
},
},
pagination
:
true
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
});
});
...
@@ -119,7 +112,6 @@
...
@@ -119,7 +112,6 @@
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
},
},
pagination
:
true
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
});
});
...
@@ -137,7 +129,6 @@
...
@@ -137,7 +129,6 @@
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
},
},
pagination
:
true
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
});
});
...
@@ -158,26 +149,7 @@
...
@@ -158,26 +149,7 @@
.content-padding
{
.content-padding
{
background-color
:
white
;
background-color
:
white
;
}
}
.modal_top
{
display
:
flex
;
align-items
:
center
;
.title
{
font-size
:
25px
;
font-weight
:
500
;
margin-left
:
10px
;
margin-top
:
20px
;
}
.path
{
font-size
:
14px
;
color
:
gray
;
}
.buttonGroup
{
margin-left
:
auto
;
display
:
flex
;
gap
:
5px
;
align-items
:
center
;
}
}
.selected-row
{
.selected-row
{
background-color
:
#5cb3ff
;
/* 可以根据需要调整颜色 */
background-color
:
#5cb3ff
;
/* 可以根据需要调整颜色 */
}
}
...
@@ -198,4 +170,7 @@
...
@@ -198,4 +170,7 @@
font-size
:
12px
;
font-size
:
12px
;
}
}
}
}
//:deep(.vben-basic-table-form-container) {
// padding: 0;
//}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment