Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
8e9bce61
Commit
8e9bce61
authored
Jun 03, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户
parent
840ca97d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
src/views/customer/orderTable.vue
+17
-3
No files found.
src/views/customer/orderTable.vue
View file @
8e9bce61
...
@@ -8,8 +8,12 @@
...
@@ -8,8 +8,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"商品数量"
align=
"center"
prop=
"goodsNum"
/>
<el-table-column
label=
"商品数量"
align=
"center"
prop=
"goodsNum"
/>
<el-table-column
label=
"金额"
align=
"center"
prop=
"amount"
/>
<el-table-column
label=
"金额"
align=
"center"
prop=
"amount"
/>
<el-table-column
label=
"城市"
align=
"center"
prop=
""
/>
<el-table-column
label=
"城市"
align=
"center"
>
<el-table-column
label=
"店铺"
align=
"center"
prop=
""
/>
<
template
slot-scope=
"scope"
>
{{
getProvince
(
scope
.
row
.
shop
.
city
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"店铺"
align=
"center"
prop=
"shop.name"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createdAt"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createdAt"
/>
<el-table-column
label=
"订单状态"
align=
"center"
prop=
"state"
>
<el-table-column
label=
"订单状态"
align=
"center"
prop=
"state"
>
<
template
slot-scope=
"scope"
>
{{
formatterState
(
scope
.
row
.
state
)
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
formatterState
(
scope
.
row
.
state
)
}}
</
template
>
...
@@ -28,6 +32,7 @@
...
@@ -28,6 +32,7 @@
</template>
</template>
<
script
>
<
script
>
import
OrderDetial
from
'@/components/order/orderDetial.vue'
;
import
OrderDetial
from
'@/components/order/orderDetial.vue'
;
import
piovince
from
'@/utils/piovince'
;
export
default
{
export
default
{
components
:
{
OrderDetial
},
components
:
{
OrderDetial
},
name
:
"orderTable"
,
name
:
"orderTable"
,
...
@@ -35,10 +40,19 @@ export default {
...
@@ -35,10 +40,19 @@ export default {
data
()
{
data
()
{
return
{
return
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
,
piovince
}
}
},
},
methods
:
{
methods
:
{
getProvince
(
city
){
let
list
=
this
.
piovince
;
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
if
(
list
[
i
].
value
==
city
){
return
list
[
i
].
name
;
}
}
},
getList
(){
getList
(){
this
.
$emit
(
"getOrderList"
,
this
.
pageNum
,
this
.
pageSize
)
this
.
$emit
(
"getOrderList"
,
this
.
pageNum
,
this
.
pageSize
)
},
},
...
...
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