Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
f2cbe176
Commit
f2cbe176
authored
May 19, 2021
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
6bf640c8
fe3e49b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4375 additions
and
73 deletions
+4375
-73
demesticRestaurantInfoManage.vue
src/components/Restaurant/demesticRestaurantInfoManage.vue
+2094
-0
demesticRestaurantPackage.vue
src/components/Restaurant/demesticRestaurantPackage.vue
+414
-0
demesticRestaurantPrice.vue
src/components/Restaurant/demesticRestaurantPrice.vue
+884
-0
domesticRestaurantList.vue
src/components/Restaurant/domesticRestaurantList.vue
+642
-0
foodClassification.vue
src/components/Restaurant/foodClassification.vue
+293
-0
index.js
src/plug/index.js
+2
-70
config.js
src/router/config.js
+46
-3
No files found.
src/components/Restaurant/demesticRestaurantInfoManage.vue
0 → 100644
View file @
f2cbe176
This diff is collapsed.
Click to expand it.
src/components/Restaurant/demesticRestaurantPackage.vue
0 → 100644
View file @
f2cbe176
This diff is collapsed.
Click to expand it.
src/components/Restaurant/demesticRestaurantPrice.vue
0 → 100644
View file @
f2cbe176
This diff is collapsed.
Click to expand it.
src/components/Restaurant/domesticRestaurantList.vue
0 → 100644
View file @
f2cbe176
This diff is collapsed.
Click to expand it.
src/components/Restaurant/foodClassification.vue
0 → 100644
View file @
f2cbe176
<
style
>
.foodClassification
.query_box
{
font-size
:
12px
;
padding
:
29px
0
;
padding-right
:
30px
;
display
:
flex
;
justify-content
:
space-between
;
}
.foodClassification
.query_box
label
{
display
:
inline-block
;
margin-right
:
25px
;
width
:
80px
;
text-align
:
right
;
}
.foodClassification
.addCompany
{
width
:
440px
;
max-height
:
600px
;
}
.foodClassification
.addCompany
.el-dialog__body
{
padding-bottom
:
0
;
}
.foodClassification
.el-switch.is-checked
.el-switch__core
{
border-color
:
#4bca81
;
background-color
:
#4bca81
;
}
.noData
{
text-align
:
center
;
padding
:
20px
;
}
.foodClassification
.city_box
{
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
}
.foodClassification
.city_box
.el-input
{
width
:
88%
;
}
.foodClassification
.city_box
.el-input
input
{
width
:
100%
;
}
.foodClassification
.query_box
li
label
{
display
:
inline-block
;
min-width
:
80px
;
text-align
:
right
;
font-style
:
normal
;
margin
:
0
20px
0
0
;
}
</
style
>
<
template
>
<div
class=
"flexOne foodClassification"
>
<div
class=
"query-box"
>
<ul>
<li>
<span>
<em>
名称
</em>
<el-input
v-model=
"msg.Name"
:placeholder=
"$t('system.ph_in')"
@
keyup
.
enter
.
native=
"getList"
class=
"w210"
></el-input>
</span>
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"查询"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"outerVisible = true,dialogTitle='新增'"
/>
</li>
</ul>
</div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th
width=
""
>
编号
</th>
<th
width=
""
>
名称
</th>
<th>
父级名称
</th>
<th>
排序
</th>
<th>
操作人
</th>
<th
width=
"200"
>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
>
<td>
{{
item
.
ID
}}
</td>
<td>
{{
item
.
Name
}}
</td>
<td>
{{
item
.
ParentName
?
item
.
ParentName
:
'无'
}}
</td>
<td>
{{
item
.
Sort
}}
</td>
<td>
{{
item
.
UpdateName
}}
</td>
<td
style=
"position: relative;"
>
<el-row>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"updateData(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"deleteFoodClass(item.ID)"
></el-button>
</el-tooltip>
</el-row>
</td>
</tr>
</table>
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
<el-dialog
custom-class=
'addCompany'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form-item
label=
"分类名称"
prop=
"Name"
>
<el-input
type=
"text"
v-model=
"addMsg.Name"
placeholder=
"请填写分类名称"
class=
"w210"
></el-input>
</el-form-item>
<el-form-item
label=
"父级"
prop=
"ParentID"
>
<el-select
v-model=
"addMsg.ParentID"
filterable
placeholder=
"请选择父级"
class=
"w210"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
'item in ParentList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"排序"
prop=
"Sort"
>
<el-input
type=
"number"
v-model
.
number=
"addMsg.Sort"
class=
"w210"
placeholder=
"请填写排序"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"outerVisible = false,resetForm('addMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
ParentList
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
Name
:
""
,
Status
:
"0"
},
addMsg
:
{
Name
:
""
,
ParentID
:
0
,
Sort
:
0
,
ID
:
0
,
},
DataList
:
[],
loading
:
true
,
total
:
0
,
currentPage
:
1
,
outerVisible
:
false
,
noData
:
false
,
dialogTitle
:
""
,
rules
:
{
Name
:
[
{
required
:
true
,
message
:
"请填写分类名称"
,
trigger
:
"change"
}
],
ParentID
:
[
{
required
:
true
,
message
:
"请选择父级"
,
trigger
:
"change"
}
],
Sort
:
[
{
required
:
true
,
message
:
"请填写排序"
,
trigger
:
"change"
}
],
}
};
},
methods
:
{
getList
()
{
//获取数据分页
this
.
loading
=
true
;
this
.
apipost
(
"foodtype_post_GetList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
noData
=
!
this
.
total
>
0
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
//获取父级下拉列表
getParentList
()
{
let
msg
=
{
ParentID
:
this
.
addMsg
.
ParentID
};
this
.
apipost
(
"foodtype_post_GetDropDownFoodType"
,
msg
,
res
=>
{
this
.
ParentList
=
res
.
data
.
data
;
},
err
=>
{}
);
},
updateData
(
row
)
{
if
(
row
){
this
.
addMsg
=
{
Name
:
row
.
Name
,
ParentID
:
row
.
ParentID
,
Sort
:
row
.
Sort
,
ID
:
row
.
ID
}
}
this
.
outerVisible
=
true
this
.
dialogTitle
=
'修改'
},
//新增/修改
saveSet
(){
this
.
apipost
(
"foodtype_post_Set"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
outerVisible
=
false
;
this
.
getList
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{}
);
},
//删除
deleteFoodClass
(
ID
)
{
var
that
=
this
;
this
.
Confirm
(
"是否删除?"
,
function
()
{
var
msg
=
{
ID
:
ID
};
that
.
apipost
(
"foodtype_post_Remove"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"删除成功"
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
)
}
},
null
);
});
},
handleCurrentChange
(
val
)
{
//翻页功能按钮
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
(
valid
=>
{
if
(
valid
)
{
that
.
saveSet
();
}
else
{
return
false
;
}
});
},
initAddMsg
()
{
//初始化查询数据
let
newMsg
=
{
Name
:
""
,
ParentID
:
0
,
Sort
:
0
,
ID
:
0
,
};
this
.
addMsg
=
newMsg
;
},
resetPageIndex
()
{
//查询初始化页码
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
},
closeChangeMachie
(
done
)
{
done
();
this
.
resetForm
(
"addMsg"
);
this
.
getParentList
();
},
resetForm
(
formName
)
{
this
.
initAddMsg
();
this
.
$refs
[
formName
].
resetFields
();
}
},
mounted
()
{
this
.
getList
();
this
.
getParentList
();
}
};
</
script
>
src/plug/index.js
View file @
f2cbe176
...
...
@@ -116,9 +116,8 @@ export default {
let
domainUrl
=
''
;
let
mallUrl
=
""
;
//商城API
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://127.0.0.1"
;
domainUrl
=
"http://192.168.1.21:8069"
;
domainUrl
=
"http://192.168.20.9:8083"
;
// domainUrl = "http://127.0.0.1";
domainUrl
=
"http://192.168.20.17:8015"
;
let
javaUrldo
=
""
;
javaUrldo
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://efficient.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.215:9000"
;
//商城API
...
...
@@ -1292,73 +1291,6 @@ export default {
css
=
'default-small'
}
return
css
;
},
//HTTP提交数据 5-18新的 司导旅行新加的
Vue
.
prototype
.
lxymallapipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
var
apiurl
=
this
.
domainManager
().
mallUrl
+
cmd
;
var
postData
=
this
.
GetNewPostData
(
cmd
,
msg
,
""
);
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
);
}
else
{
successCall
(
res
);
}
},
faildCall
)
},
//公用跳转
Vue
.
prototype
.
CommonJump
=
function
(
path
,
obj
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
obj
});
}
//获取请求参数
Vue
.
prototype
.
GetNewPostData
=
function
(
cmd
,
msg
,
newCmd
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
timestamp
=
(
new
Date
()).
valueOf
();
var
token
=
""
;
var
key
=
""
;
var
MallBaseId
=
1
;
//小程序ID
var
TenantId
=
1
;
//商户Id
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
let
tempLanguage
=
0
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
mlxy_token
;
MallBaseId
=
this
.
getLocalStorage
().
LXYMallBaseId
;
TenantId
=
this
.
getLocalStorage
().
LXYTenantId
;
}
if
(
localStorage
.
language
&&
localStorage
.
language
!=
''
)
{
if
(
localStorage
.
language
==
"zh-TW"
)
{
tempLanguage
=
1
;
}
else
if
(
localStorage
.
language
==
"Japanese"
)
{
tempLanguage
=
2
;
}
}
var
cmdStr
=
""
;
if
(
newCmd
)
{
cmdStr
=
newCmd
;
}
var
postData
=
{
msg
:
msg
,
timestamp
:
timestamp
,
token
:
token
,
sign
:
md5Str
,
languageId
:
tempLanguage
,
cmd
:
cmdStr
,
MallBaseId
:
MallBaseId
,
TenantId
:
TenantId
,
}
return
postData
}
}
}
src/router/config.js
View file @
f2cbe176
...
...
@@ -1328,14 +1328,16 @@ export default {
meta
:
{
title
:
'餐厅列表'
},
},
{
},
{
path
:
'/restaurantInfoManage'
,
//餐厅信息管理
name
:
'restaurantInfoManage'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/restaurantInfoManage'
],
resolve
),
meta
:
{
title
:
'餐厅信息管理'
},
},
{
},
{
path
:
'/RestaurantPackage'
,
//餐厅套餐查询
name
:
'RestaurantPackage'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/RestaurantPackage'
],
resolve
),
...
...
@@ -1343,6 +1345,46 @@ export default {
title
:
'餐厅套餐查询'
},
},
{
path
:
'/domesticRestaurantList'
,
//国内餐厅列表
name
:
'domesticRestaurantList'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/domesticRestaurantList'
],
resolve
),
meta
:
{
title
:
'国内餐厅列表'
},
},
{
path
:
'/demesticRestaurantInfoManage'
,
//国内餐厅信息管理
name
:
'demesticRestaurantInfoManage'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/demesticRestaurantInfoManage'
],
resolve
),
meta
:
{
title
:
'国内餐厅信息管理'
},
},
{
path
:
'/demesticRestaurantPackage'
,
//国内餐厅套餐查询
name
:
'demesticRestaurantPackage'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/demesticRestaurantPackage'
],
resolve
),
meta
:
{
title
:
'国内餐厅套餐查询'
},
},
{
path
:
'/demesticRestaurantPrice'
,
//国内餐厅报价
name
:
'demesticRestaurantPrice'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/demesticRestaurantPrice'
],
resolve
),
meta
:
{
title
:
'国内餐厅报价'
},
},
{
path
:
'/foodClassification'
,
//美食分类
name
:
'foodClassification'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/foodClassification'
],
resolve
),
meta
:
{
title
:
'美食分类'
},
},
{
path
:
'/bookDinnerStatistics'
,
//餐厅套餐查询
name
:
'bookDinnerStatistics'
,
...
...
@@ -1390,7 +1432,8 @@ export default {
meta
:
{
title
:
'餐厅报价'
},
},
{
},
{
path
:
'/RestaurantSupplier'
,
//餐厅供应商
name
:
'RestaurantSupplier'
,
component
:
resolve
=>
require
([
'@/components/Restaurant/RestaurantSupplier'
],
resolve
),
...
...
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