Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ai_web_page_prod
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
ai_web_page_prod
Commits
8a22c915
Commit
8a22c915
authored
Apr 19, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
de3c427c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
4 deletions
+95
-4
src/layout/UserDropdown.vue
+2
-2
src/pages/CreationRecord/index.vue
+79
-0
src/pages/PayRecord/index.vue
+5
-2
src/router/modules/home.ts
+9
-0
No files found.
src/layout/UserDropdown.vue
View file @
8a22c915
...
...
@@ -58,11 +58,11 @@ const OptionsList = [
},
{
label
:
'创作记录'
,
value
:
''
,
//CreationRecord
value
:
'
/CreationRecord
'
,
//CreationRecord
},
{
label
:
'产品订单'
,
value
:
'
/PayRecord'
,
value
:
'
'
,
// /PayRecord
},
{
label
:
'合作咨询'
,
...
...
src/pages/CreationRecord/index.vue
0 → 100644
View file @
8a22c915
<
template
>
<div
class=
"custom-creation-record"
>
<div
class=
"label-box"
>
<span
:class=
"
{
active: item.value == DefaultTable,
}"
v-for="item in label_list"
:key="item.value"
>
{{
item
.
label
}}
</span
>
</div>
<CustomTTable
:columns=
"columns"
:list=
"RecordList.list"
></CustomTTable>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
CustomTTable
from
'@/components/custom/TTable.vue'
;
import
{
reactive
,
ref
}
from
'vue'
;
// 默认展示绘图记录
const
DefaultTable
=
ref
<
'img'
|
'text'
>
(
'img'
);
const
RecordList
=
reactive
({
// 绘图列表
list
:
[],
// 文案记录
textlist
:
[],
});
const
label_list
=
[
{
label
:
'绘图记录'
,
value
:
'img'
,
},
{
label
:
'文案记录'
,
value
:
'text'
,
},
];
const
columns
=
[
{
title
:
'账号'
,
colKey
:
'name'
,
},
{
title
:
'套餐'
,
colKey
:
'packages'
,
align
:
'center'
,
className
:
'n_quantity'
,
},
{
title
:
'状况'
,
colKey
:
'n_funds'
,
align
:
'center'
,
className
:
'n_funds'
,
},
{
title
:
'到期时间'
,
colKey
:
'operation'
,
align
:
'right'
,
},
];
</
script
>
<
style
lang=
"less"
>
@import
'@/style/variables.less'
;
.custom-creation-record
{
margin-top
:
@
page-margin-top
;
.label-box
{
font-weight
:
600
;
font-size
:
@
font-size-18
;
margin-bottom
:
16px
;
.active
{
color
:
#00f9f9
;
}
&
>
:not
(
:first-child
)
{
margin-left
:
12px
;
}
}
}
</
style
>
src/pages/PayRecord/index.vue
View file @
8a22c915
<
template
>
<div
class=
"custom-my-payrecord"
>
<CustomTTable></CustomTTable>
<CustomTTable
:columns=
"columns"
:list=
"RecordList.list"
></CustomTTable>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
CustomTTable
from
'@/components/custom/TTable.vue'
;
import
{
reactive
}
from
'vue'
;
const
RecordList
=
reactive
({
list
:
[],
});
const
columns
=
[
{
title
:
'账号'
,
...
...
src/router/modules/home.ts
View file @
8a22c915
...
...
@@ -74,6 +74,15 @@ export default [
header
:
true
,
},
},
// 创作记录--CreationRecord
{
path
:
'/CreationRecord'
,
name
:
'CreationRecord'
,
component
:
()
=>
import
(
'@/pages/CreationRecord/index.vue'
),
meta
:
{
header
:
true
,
},
},
// {
// path: '/gpt',
// name: 'gpt',
...
...
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