Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
happiness-plus-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a546bab
authored
Sep 04, 2019
by
dongjipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
28c49e55
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
admin.zip
+0
-0
src/main.js
+1
-1
src/views/restaurant/NationalRestaurant.vue
+8
-3
No files found.
admin.zip
0 → 100644
View file @
1a546bab
File added
src/main.js
View file @
1a546bab
...
@@ -23,7 +23,7 @@ axios.defaults.timeout = 50000
...
@@ -23,7 +23,7 @@ axios.defaults.timeout = 50000
axios
.
defaults
.
headers
.
post
[
'Content-Type'
]
=
'application/x-www-form-urlencoded;charset=UTF-8'
axios
.
defaults
.
headers
.
post
[
'Content-Type'
]
=
'application/x-www-form-urlencoded;charset=UTF-8'
axios
.
defaults
.
withCredentials
=
true
axios
.
defaults
.
withCredentials
=
true
const
DOMAIN_NAME
=
'cfld
pe
'
// 测试
const
DOMAIN_NAME
=
'cfld
cn
'
// 测试
var
ssoHttp
=
''
var
ssoHttp
=
''
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
// 开发
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
// 开发
ssoHttp
=
'http://sso.'
+
DOMAIN_NAME
+
'.com/'
ssoHttp
=
'http://sso.'
+
DOMAIN_NAME
+
'.com/'
...
...
src/views/restaurant/NationalRestaurant.vue
View file @
1a546bab
...
@@ -154,8 +154,9 @@
...
@@ -154,8 +154,9 @@
<el-row
type=
"flex"
justify=
"center"
>
<el-row
type=
"flex"
justify=
"center"
>
<el-col
:sm=
"10"
>
<el-col
:sm=
"10"
>
<div
class=
"btn-warp"
>
<div
class=
"btn-warp"
>
<el-button
@
click=
"restaurantImgDialogVisible = false"
class=
"mr30"
>
取 消
</el-button>
<el-button
@
click=
"restaurantImgDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"danger"
@
click=
"addNewResImg('myForm')"
>
确 定
</el-button>
<el-button
type=
"danger"
@
click=
"addNewResImg('myForm', '1')"
>
上传并继续
</el-button>
<el-button
type=
"danger"
@
click=
"addNewResImg('myForm', '2')"
>
确 定
</el-button>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -288,7 +289,7 @@ export default {
...
@@ -288,7 +289,7 @@ export default {
this
.
ruleForm
.
imgFilePath
=
res
.
data
.
filePath
this
.
ruleForm
.
imgFilePath
=
res
.
data
.
filePath
this
.
ruleForm
.
resImgName
=
res
.
data
.
fileOriginalName
this
.
ruleForm
.
resImgName
=
res
.
data
.
fileOriginalName
},
},
addNewResImg
(
myForm
)
{
// 添加餐厅菜单
addNewResImg
(
myForm
,
type
)
{
// 添加餐厅菜单
this
.
$refs
[
myForm
].
validate
((
valid
)
=>
{
this
.
$refs
[
myForm
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
_this
=
this
let
_this
=
this
...
@@ -305,8 +306,12 @@ export default {
...
@@ -305,8 +306,12 @@ export default {
type
:
'success'
,
type
:
'success'
,
message
:
'菜单添加成功!'
message
:
'菜单添加成功!'
})
})
_this
.
ruleForm
.
imgFilePath
=
''
_this
.
ruleForm
.
resImgName
=
''
if
(
type
===
'2'
)
{
_this
.
$router
.
push
({
name
:
'restaurantMenus'
})
_this
.
$router
.
push
({
name
:
'restaurantMenus'
})
}
}
}
})
})
}
else
{
return
false
}
}
else
{
return
false
}
})
})
...
...
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