Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
source-trace-manage
Commits
37c08560
Commit
37c08560
authored
Jul 29, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e4624295
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
112 additions
and
8 deletions
+112
-8
draftBoxTable.vue
src/views/draftBox/draftBoxTable.vue
+20
-8
index.vue
src/views/userCenter/components/OrderRecords/index.vue
+64
-0
table.ts
src/views/userCenter/components/OrderRecords/table.ts
+24
-0
index.vue
src/views/userCenter/index.vue
+4
-0
No files found.
src/views/draftBox/draftBoxTable.vue
View file @
37c08560
...
...
@@ -10,7 +10,7 @@
<template
#
operate=
"slotProps"
>
<syMoreOperate
:teleport=
"true"
:list=
"
getOperateList(slotProps)
"
:list=
"
operateList
"
@
click-item=
"(value) => handleClickItem(value, slotProps)"
:margin-left=
"-30"
>
...
...
@@ -45,14 +45,26 @@ defineProps<{
loading
:
boolean
;
}
>
();
const
getOperateList
=
(
slotProps
:
any
)
=>
{
return
[
{
name
:
"编辑"
,
value
:
"编辑"
},
{
name
:
"删除"
,
value
:
"删除"
},
];
};
const
operateList
=
[
{
name
:
"编辑"
,
value
:
"编辑"
,
click
:
(
slotProps
:
any
)
=>
{
//
},
},
{
name
:
"删除"
,
value
:
"删除"
,
click
:
(
slotProps
:
any
)
=>
{
//
},
},
];
const
handleClickItem
=
(
value
:
any
,
slotProps
:
any
)
=>
{};
const
handleClickItem
=
(
value
:
any
,
slotProps
:
any
)
=>
{
operateList
.
find
((
i
)
=>
i
.
value
===
value
)?.
click
(
slotProps
);
};
</
script
>
<
style
></
style
>
src/views/userCenter/components/OrderRecords/index.vue
0 → 100644
View file @
37c08560
<
template
>
<Table
class=
"filingPersonTable"
ref=
"tableRef"
:columns=
"tableColumns"
height=
"100%"
:data=
"data"
v-loading=
"loading"
element-loading-text=
"加载中..."
>
<template
#
fee=
"slotProps"
>
<div
:style=
"
{
color: green.color || red.color,
}"
>
{{
11
}}
元 积分
</div>
</
template
>
</Table>
</template>
<
script
setup
lang=
"ts"
>
import
Table
from
"@/components/Table/index.vue"
;
import
{
tableColumns
}
from
"./table"
;
import
{
ref
}
from
"vue"
;
import
{
eStatusOfCopyright
}
from
"@/components/ApproveStatus/status"
;
import
{
useTableScrollListener
}
from
"@/components/Table/hooks"
;
import
{
green
,
red
}
from
"@/components/ApproveStatus/btnStyle"
;
// defineProps
<
{
// // data: any[];
// // loading: boolean;
// }>();
const
data
=
[]
as
any
[];
const
loading
=
false
;
const
emit
=
defineEmits
<
{
(
e
:
"scrollToEnd"
):
void
;
(
e
:
"clickOperate"
,
payload
:
{
type
:
Exclude
<
eStatusOfCopyright
,
eStatusOfCopyright
.
ALL
>
;
raw
:
any
;
}
):
void
;
(
e
:
"clickStatusFilter"
,
payload
:
eStatusOfCopyright
):
void
;
}
>
();
const
tableRef
=
ref
<
InstanceType
<
typeof
Table
>>
();
useTableScrollListener
(
tableRef
,
()
=>
{
emit
(
"scrollToEnd"
);
});
</
script
>
<
style
lang=
"scss"
>
.filingPersonTable
{
.el-table__cell
{
height
:
50px
;
}
}
</
style
>
src/views/userCenter/components/OrderRecords/table.ts
0 → 100644
View file @
37c08560
import
{
iTableColumn
}
from
"@/components/Table/types"
;
export
const
tableColumns
=
[
{
label
:
"费用名称"
,
prop
:
"name"
,
},
{
label
:
"商品名称"
,
prop
:
"address"
,
},
{
label
:
"费用"
,
slotName
:
"fee"
,
},
{
label
:
"费用类型"
,
prop
:
"date"
,
},
{
label
:
"费用时间"
,
},
]
as
iTableColumn
[];
\ No newline at end of file
src/views/userCenter/index.vue
View file @
37c08560
...
...
@@ -38,6 +38,7 @@
:infos=
"userInfo"
@
ToUpdate=
"ToUpdate"
></Secutiry>
<OrderRecords></OrderRecords>
</ModuleContainer>
</div>
<div
class=
""
>
...
...
@@ -102,6 +103,7 @@ import ModuleContainer from "./components/ModuleContainer/index.vue";
import
Authenticate
from
"./components/Authenticate/index.vue"
;
import
Secutiry
from
"./components/Secutiry/index.vue"
;
import
{
router
}
from
"@/router"
;
import
OrderRecords
from
"./components/OrderRecords/index.vue"
;
export
default
defineComponent
({
provide
()
{
...
...
@@ -131,6 +133,7 @@ export default defineComponent({
ModuleContainer
,
Authenticate
,
Secutiry
,
OrderRecords
,
},
data
()
{
return
{
...
...
@@ -139,6 +142,7 @@ export default defineComponent({
{
label
:
"认证信息"
,
value
:
"authenticate"
},
{
label
:
"资产管理"
,
value
:
"asset"
},
{
label
:
"账户安全"
,
value
:
"security"
},
{
label
:
"订单记录"
,
value
:
"orderRecords"
},
]
as
any
[],
userInfo
:
{}
as
any
,
setOptions
:
{
...
...
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