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
ce83b235
Commit
ce83b235
authored
May 23, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序、去掉订单lodding
parent
60358df6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
src/api/system/category.js
+9
-0
src/views/goods/category/index.vue
+10
-8
src/views/order/index.vue
+5
-5
No files found.
src/api/system/category.js
View file @
ce83b235
...
@@ -50,3 +50,12 @@ export function delClass(id) {
...
@@ -50,3 +50,12 @@ export function delClass(id) {
method
:
"delete"
,
method
:
"delete"
,
});
});
}
}
// 查询排序列表
export
function
turnList
(
query
)
{
return
request
({
url
:
"/system/category/turnOrder"
,
method
:
"get"
,
params
:
query
,
});
}
src/views/goods/category/index.vue
View file @
ce83b235
...
@@ -40,10 +40,10 @@
...
@@ -40,10 +40,10 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
<div>
<div>
<el-button
v-show=
"scope.$index!=0"
size=
"mini"
round
icon=
"el-icon-arrow-up"
@
click=
"
upClick(scope.row,'up
')"
></el-button>
<el-button
v-show=
"scope.$index!=0"
size=
"mini"
round
icon=
"el-icon-arrow-up"
@
click=
"
turnClick(scope.row,'1
')"
></el-button>
</div>
</div>
<div>
<div>
<el-button
v-show=
"scope.$index+1!=total"
size=
"mini"
round
icon=
"el-icon-arrow-down"
@
click=
"
downClick(scope.row,'down
')"
></el-button>
<el-button
v-show=
"scope.$index+1!=total"
size=
"mini"
round
icon=
"el-icon-arrow-down"
@
click=
"
turnClick(scope.row,'2
')"
></el-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -92,6 +92,7 @@ import {
...
@@ -92,6 +92,7 @@ import {
delClass
,
delClass
,
addClass
,
addClass
,
updateClass
,
updateClass
,
turnList
}
from
"@/api/system/category"
;
}
from
"@/api/system/category"
;
export
default
{
export
default
{
...
@@ -148,12 +149,13 @@ export default {
...
@@ -148,12 +149,13 @@ export default {
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
downClick
(
row
,
tag
){
turnClick
(
row
,
tag
){
turnList
({
"id"
:
row
.
id
,
"pointer"
:
tag
}).
then
((
response
)
=>
{
console
.
log
(
"response"
,
response
);
},
// this.classList = response.rows;
upClick
(
row
,
tag
){
// this.total = response.total;
// this.loading = false;
});
},
},
/** 查询列表 */
/** 查询列表 */
...
...
src/views/order/index.vue
View file @
ce83b235
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"orderList"
>
<el-table
:data=
"orderList"
>
<el-table-column
label=
"订单编号"
align=
"center"
>
<el-table-column
label=
"订单编号"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<a
@
click=
"handleUpdate(scope.row)"
style=
"color: blue"
>
{{
scope
.
row
.
orderNo
}}
</a>
<a
@
click=
"handleUpdate(scope.row)"
style=
"color: blue"
>
{{
scope
.
row
.
orderNo
}}
</a>
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"goodsList"
>
<el-table
:data=
"goodsList"
>
<el-table-column
label=
"商品名称"
align=
"center"
prop=
"goodsName"
/>
<el-table-column
label=
"商品名称"
align=
"center"
prop=
"goodsName"
/>
<el-table-column
label=
"缩略图"
align=
"center"
>
<el-table-column
label=
"缩略图"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
</el-form>
</el-form>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"订单日志"
name=
"second"
>
<el-tab-pane
label=
"订单日志"
name=
"second"
>
<el-table
v-loading=
"loading"
:data=
"logList"
>
<el-table
:data=
"logList"
>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
/>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
/>
<el-table-column
label=
"操作"
align=
"center"
prop=
"operation"
/>
<el-table-column
label=
"操作"
align=
"center"
prop=
"operation"
/>
<el-table-column
label=
"时间"
align=
"center"
prop=
"createAt"
/>
<el-table-column
label=
"时间"
align=
"center"
prop=
"createAt"
/>
...
@@ -216,7 +216,7 @@ export default {
...
@@ -216,7 +216,7 @@ export default {
],
],
piovince
,
piovince
,
// 遮罩层
// 遮罩层
loading
:
true
,
//
loading: true,
// 选中数组
// 选中数组
ids
:
[],
ids
:
[],
// 非单个禁用
// 非单个禁用
...
@@ -336,7 +336,7 @@ export default {
...
@@ -336,7 +336,7 @@ export default {
},
},
/** 查询订单日志列表 */
/** 查询订单日志列表 */
getLogList
()
{
getLogList
()
{
this
.
loading
=
true
;
//
this.loading = true;
getLogList
({
orderId
:
this
.
orderId
}).
then
(
response
=>
{
getLogList
({
orderId
:
this
.
orderId
}).
then
(
response
=>
{
if
(
response
.
code
==
"200"
){
if
(
response
.
code
==
"200"
){
this
.
logList
=
response
.
data
;
this
.
logList
=
response
.
data
;
...
...
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