Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c469e02b
提交
c469e02b
编写于
12月 02, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加关闭医生小店功能
上级
f20354e3
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
1 行删除
+24
-1
index.js
src/utils/shop/index.js
+13
-0
shop-list.vue
src/views/shop/shop-list.vue
+11
-1
未找到文件。
src/utils/shop/index.js
浏览文件 @
c469e02b
...
...
@@ -78,3 +78,16 @@ export const refundApply = (params) => {
description
:
'退货'
,
})
};
// 关闭医生店铺
export
const
closeShop
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
'store/close'
),
method
:
'post'
,
data
:
params
,
description
:
'退货'
,
})
};
src/views/shop/shop-list.vue
浏览文件 @
c469e02b
...
...
@@ -77,6 +77,7 @@
<el-button
@
click=
"editShop(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"shopManage(scope.row)"
type=
"text"
size=
"small"
>
商品管理
</el-button>
<el-button
@
click=
"orderManage(scope.row)"
type=
"text"
size=
"small"
>
订单管理
</el-button>
<el-button
v-if=
"scope.row.tradeStore.storeType == 3 && scope.row.tradeStore.storeStatus == 0"
@
click=
"closeShopAction(scope.row)"
type=
"text"
size=
"small"
>
关闭店铺
</el-button>
</div>
</
template
>
</el-table-column>
...
...
@@ -99,7 +100,7 @@
<
script
>
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
queryStore
,
queryShopAuth
}
from
'@/utils/shop'
;
import
{
queryStore
,
queryShopAuth
,
closeShop
}
from
'@/utils/shop'
;
export
default
{
components
:
{
BreadCrumb
...
...
@@ -238,6 +239,15 @@
this
.
searchForm
.
pageNo
=
val
;
this
.
searchList
();
},
// 关闭医生小店
closeShopAction
(
row
)
{
closeShop
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
searchList
();
}
})
}
},
filters
:
{
storeTypeFormat
:
function
(
value
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录