Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_36793584
vue2-manage
提交
86cf1605
V
vue2-manage
项目概览
qq_36793584
/
vue2-manage
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue2-manage
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
86cf1605
编写于
7月 19, 2018
作者:
M
maguohua1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixed
上级
06d9d6c7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
25 deletion
+25
-25
src/components/headTop.vue
src/components/headTop.vue
+1
-1
src/page/addGoods.vue
src/page/addGoods.vue
+2
-2
src/page/addShop.vue
src/page/addShop.vue
+9
-9
src/page/foodList.vue
src/page/foodList.vue
+7
-7
src/page/orderList.vue
src/page/orderList.vue
+4
-4
src/page/shopList.vue
src/page/shopList.vue
+2
-2
未找到文件。
src/components/headTop.vue
浏览文件 @
86cf1605
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item
:to=
"
{ path: '/manage' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/manage' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item
v-for=
"(item, index) in $route.meta"
key=
"index"
>
{{
item
}}
</el-breadcrumb-item>
<el-breadcrumb-item
v-for=
"(item, index) in $route.meta"
:
key=
"index"
>
{{
item
}}
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
<el-dropdown
@
command=
"handleCommand"
menu-align=
'start'
>
<el-dropdown
@
command=
"handleCommand"
menu-align=
'start'
>
<img
:src=
"baseImgPath + adminInfo.avatar"
class=
"avator"
>
<img
:src=
"baseImgPath + adminInfo.avatar"
class=
"avator"
>
...
...
src/page/addGoods.vue
浏览文件 @
86cf1605
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
label=
"价格"
>
label=
"价格"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<template
s
cope=
"scope"
>
<template
s
lot-scope=
"scope"
>
<el-button
<el-button
size=
"small"
size=
"small"
type=
"danger"
type=
"danger"
...
@@ -421,7 +421,7 @@
...
@@ -421,7 +421,7 @@
}
}
span{
span{
.sc(14px, #999);
.sc(14px, #999);
transition: all 400ms;
transition: all 400ms;
}
}
.edit_icon{
.edit_icon{
color: #ccc;
color: #ccc;
...
...
src/page/addShop.vue
浏览文件 @
86cf1605
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
}">
}">
</el-time-select>
</el-time-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传店铺头像"
>
<el-form-item
label=
"上传店铺头像"
>
<el-upload
<el-upload
class=
"avatar-uploader"
class=
"avatar-uploader"
...
@@ -142,10 +142,10 @@
...
@@ -142,10 +142,10 @@
align=
"cneter"
align=
"cneter"
label=
"活动详情"
>
label=
"活动详情"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"操作"
label=
"操作"
width=
"120"
>
width=
"120"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
<el-button
<el-button
size=
"small"
size=
"small"
type=
"danger"
type=
"danger"
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
image_path
:
''
,
image_path
:
''
,
business_license_image
:
''
,
business_license_image
:
''
,
catering_service_license_image
:
''
,
catering_service_license_image
:
''
,
},
},
rules
:
{
rules
:
{
name
:
[
name
:
[
...
@@ -336,7 +336,7 @@
...
@@ -336,7 +336,7 @@
this
.
$message
({
this
.
$message
({
type
:
'
info
'
,
type
:
'
info
'
,
message
:
'
请输入活动详情
'
message
:
'
请输入活动详情
'
});
});
return
return
}
}
let
newObj
=
{};
let
newObj
=
{};
...
@@ -368,14 +368,14 @@
...
@@ -368,14 +368,14 @@
name
:
'
进店领券
'
,
name
:
'
进店领券
'
,
description
:
value
,
description
:
value
,
}
}
break
;
break
;
}
}
this
.
activities
.
push
(
newObj
);
this
.
activities
.
push
(
newObj
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
({
this
.
$message
({
type
:
'
info
'
,
type
:
'
info
'
,
message
:
'
取消输入
'
message
:
'
取消输入
'
});
});
});
});
},
},
handleDelete
(
index
){
handleDelete
(
index
){
...
@@ -414,7 +414,7 @@
...
@@ -414,7 +414,7 @@
endTime
:
''
,
endTime
:
''
,
image_path
:
''
,
image_path
:
''
,
business_license_image
:
''
,
business_license_image
:
''
,
catering_service_license_image
:
''
,
catering_service_license_image
:
''
,
};
};
this
.
selectedCategory
=
[
'
快餐便当
'
,
'
简餐
'
];
this
.
selectedCategory
=
[
'
快餐便当
'
,
'
简餐
'
];
this
.
activities
=
[{
this
.
activities
=
[{
...
...
src/page/foodList.vue
浏览文件 @
86cf1605
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
:row-key=
"row => row.index"
:row-key=
"row => row.index"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
type=
"expand"
>
<el-table-column
type=
"expand"
>
<template
scope=
"props"
>
<template
s
lot-s
cope=
"props"
>
<el-form
label-position=
"left"
inline
class=
"demo-table-expand"
>
<el-form
label-position=
"left"
inline
class=
"demo-table-expand"
>
<el-form-item
label=
"食品名称"
>
<el-form-item
label=
"食品名称"
>
<span>
{{
props
.
row
.
name
}}
</span>
<span>
{{
props
.
row
.
name
}}
</span>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
prop=
"rating"
>
prop=
"rating"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
label=
"操作"
width=
"160"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-button
<el-button
size=
"small"
size=
"small"
@
click=
"handleEdit(scope.row)"
>
编辑
</el-button>
@
click=
"handleEdit(scope.row)"
>
编辑
</el-button>
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
label=
"价格"
>
label=
"价格"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<
template
s
cope=
"scope"
>
<
template
s
lot-scope=
"scope"
>
<el-button
<el-button
size=
"small"
size=
"small"
type=
"danger"
type=
"danger"
...
@@ -138,8 +138,8 @@
...
@@ -138,8 +138,8 @@
<el-button
type=
"primary"
@
click=
"updateFood"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"updateFood"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"添加规格"
v-model=
"specsFormVisible"
>
<el-dialog
title=
"添加规格"
v-model=
"specsFormVisible"
>
<el-form
:rules=
"specsFormrules"
:model=
"specsForm"
>
<el-form
:rules=
"specsFormrules"
:model=
"specsForm"
>
<el-form-item
label=
"规格"
label-width=
"100px"
prop=
"specs"
>
<el-form-item
label=
"规格"
label-width=
"100px"
prop=
"specs"
>
...
@@ -309,10 +309,10 @@
...
@@ -309,10 +309,10 @@
this
.
selectTable
=
{...
row
,
...{
restaurant_name
:
restaurant
.
name
,
restaurant_address
:
restaurant
.
address
,
category_name
:
category
.
name
}};
this
.
selectTable
=
{...
row
,
...{
restaurant_name
:
restaurant
.
name
,
restaurant_address
:
restaurant
.
address
,
category_name
:
category
.
name
}};
this
.
selectMenu
=
{
label
:
category
.
name
,
value
:
row
.
category_id
}
this
.
selectMenu
=
{
label
:
category
.
name
,
value
:
row
.
category_id
}
this
.
tableData
.
splice
(
row
.
index
,
1
,
{...
this
.
selectTable
});
this
.
tableData
.
splice
(
row
.
index
,
1
,
{...
this
.
selectTable
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
expendRow
.
push
(
row
.
index
);
this
.
expendRow
.
push
(
row
.
index
);
})
})
if
(
type
==
'
edit
'
&&
this
.
restaurant_id
!=
row
.
restaurant_id
)
{
if
(
type
==
'
edit
'
&&
this
.
restaurant_id
!=
row
.
restaurant_id
)
{
this
.
getMenu
();
this
.
getMenu
();
}
}
...
...
src/page/orderList.vue
浏览文件 @
86cf1605
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
:row-key=
"row => row.index"
:row-key=
"row => row.index"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
type=
"expand"
>
<el-table-column
type=
"expand"
>
<template
scope=
"props"
>
<template
s
lot-s
cope=
"props"
>
<el-form
label-position=
"left"
inline
class=
"demo-table-expand"
>
<el-form
label-position=
"left"
inline
class=
"demo-table-expand"
>
<el-form-item
label=
"用户名"
>
<el-form-item
label=
"用户名"
>
<span>
{{
props
.
row
.
user_name
}}
</span>
<span>
{{
props
.
row
.
user_name
}}
</span>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
this
.
initData
();
this
.
initData
();
},
},
mounted
(){
mounted
(){
},
},
methods
:
{
methods
:
{
async
initData
(){
async
initData
(){
...
@@ -125,10 +125,10 @@
...
@@ -125,10 +125,10 @@
const
userInfo
=
await
getUserInfo
(
row
.
user_id
);
const
userInfo
=
await
getUserInfo
(
row
.
user_id
);
const
addressInfo
=
await
getAddressById
(
row
.
address_id
);
const
addressInfo
=
await
getAddressById
(
row
.
address_id
);
this
.
tableData
.
splice
(
row
.
index
,
1
,
{...
row
,
...{
restaurant_name
:
restaurant
.
name
,
restaurant_address
:
restaurant
.
address
,
address
:
addressInfo
.
address
,
user_name
:
userInfo
.
username
}});
this
.
tableData
.
splice
(
row
.
index
,
1
,
{...
row
,
...{
restaurant_name
:
restaurant
.
name
,
restaurant_address
:
restaurant
.
address
,
address
:
addressInfo
.
address
,
user_name
:
userInfo
.
username
}});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
expendRow
.
push
(
row
.
index
);
this
.
expendRow
.
push
(
row
.
index
);
})
})
}
else
{
}
else
{
const
index
=
this
.
expendRow
.
indexOf
(
row
.
index
);
const
index
=
this
.
expendRow
.
indexOf
(
row
.
index
);
this
.
expendRow
.
splice
(
index
,
1
)
this
.
expendRow
.
splice
(
index
,
1
)
...
...
src/page/shopList.vue
浏览文件 @
86cf1605
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
:data=
"tableData"
:data=
"tableData"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
type=
"expand"
>
<el-table-column
type=
"expand"
>
<template
scope=
"props"
>
<template
s
lot-s
cope=
"props"
>
<el-form
label-position=
"left"
inline
class=
"demo-table-expand"
>
<el-form
label-position=
"left"
inline
class=
"demo-table-expand"
>
<el-form-item
label=
"店铺名称"
>
<el-form-item
label=
"店铺名称"
>
<span>
{{
props
.
row
.
name
}}
</span>
<span>
{{
props
.
row
.
name
}}
</span>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
prop=
"description"
>
prop=
"description"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"200"
>
<el-table-column
label=
"操作"
width=
"200"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-button
<el-button
size=
"mini"
size=
"mini"
@
click=
"handleEdit(scope.$index, scope.row)"
>
编辑
</el-button>
@
click=
"handleEdit(scope.$index, scope.row)"
>
编辑
</el-button>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录