Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
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
fengzhaoyu
mingPayPc
Commits
46de6851
Commit
46de6851
authored
Oct 23, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token更新
parent
1644de7d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
generateOrRefreshToken.js
src/api/generateOrRefreshToken.js
+2
-0
ClassificationOfDishes.vue
...onents/pages/CanteenManagement/ClassificationOfDishes.vue
+2
-2
MenuManagement.vue
src/components/pages/CanteenManagement/MenuManagement.vue
+2
-2
No files found.
src/api/generateOrRefreshToken.js
View file @
46de6851
...
...
@@ -38,6 +38,8 @@ function getToken () {
console
.
log
(
res
.
data
.
resultCode
)
if
(
res
.
data
.
resultCode
===
0
)
{
return
res
.
data
.
data
.
mingUserId
}
else
if
(
res
.
data
.
resultCode
===
40003
)
{
return
Promise
.
reject
(
new
Error
(
'无权登录'
))
}
}).
then
((
mingUserId
)
=>
{
let
loginData
=
qs
.
stringify
({
...
...
src/components/pages/CanteenManagement/ClassificationOfDishes.vue
View file @
46de6851
...
...
@@ -24,7 +24,7 @@
<label>
分类名称:
</label><a-input
v-model=
"productCategoryName"
placeholder=
"请输入分类名称"
/>
</div>
<div
class=
"item"
>
<label>
排序值:
</label><a-input
v-model=
"sort"
placeholder=
"排序值为
数字
"
/>
<label>
排序值:
</label><a-input
v-model=
"sort"
placeholder=
"排序值为
正整数
"
/>
</div>
</a-modal>
</div>
...
...
@@ -172,7 +172,7 @@ export default {
let
that
=
this
let
reg
=
'^[0-9]*$'
if
(
!
/^
[
0-9
]
*$/
.
test
(
this
.
sort
))
{
this
.
$message
.
error
(
'排序值为
数字
'
)
this
.
$message
.
error
(
'排序值为
正整数
'
)
return
false
}
if
(
this
.
productCategoryName
===
''
)
{
...
...
src/components/pages/CanteenManagement/MenuManagement.vue
View file @
46de6851
...
...
@@ -56,7 +56,7 @@
<label>
设置价格:
</label><a-input
v-model=
"addProduct.productPrice"
placeholder=
"请输入菜品单价(元/份))"
/>
</div>
<div
class=
"item"
>
<label>
排序值:
</label><a-input
v-model=
"addProduct.sort"
placeholder=
"
请输入
"
/>
<label>
排序值:
</label><a-input
v-model=
"addProduct.sort"
placeholder=
"
排序值为正整数
"
/>
</div>
<div
class=
"item"
>
<label>
上传图片:
</label>
...
...
@@ -361,7 +361,7 @@ export default {
return
}
if
(
!
/^
[
0-9
]
*$/
.
test
(
this
.
addProduct
.
sort
))
{
this
.
$message
.
error
(
'排序值为
数字
'
)
this
.
$message
.
error
(
'排序值为
正整数
'
)
return
false
}
if
(
!
this
.
addProduct
.
uploadSuccess
||
!
this
.
addProduct
.
productName
||
!
this
.
addProduct
.
productPrice
||
!
this
.
addProduct
.
productIcon
||
!
this
.
addProduct
.
sort
)
{
...
...
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