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
f6ec26a0
Commit
f6ec26a0
authored
Oct 25, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分支处理
parent
ecd11c25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
generateOrRefreshToken.js
src/api/generateOrRefreshToken.js
+0
-1
MenuManagement.vue
src/components/pages/CanteenManagement/MenuManagement.vue
+1
-1
No files found.
src/api/generateOrRefreshToken.js
View file @
f6ec26a0
...
@@ -2,7 +2,6 @@ import * as dd from 'dingtalk-jsapi'
...
@@ -2,7 +2,6 @@ import * as dd from 'dingtalk-jsapi'
import
router
from
'../router'
import
router
from
'../router'
import
axios
from
'axios'
import
axios
from
'axios'
import
qs
from
'qs'
import
qs
from
'qs'
import
{
message
}
from
'ant-design-vue'
var
instance
=
axios
.
create
()
var
instance
=
axios
.
create
()
const
BASE_URL
=
process
.
env
.
VUE_APP_API_URL
const
BASE_URL
=
process
.
env
.
VUE_APP_API_URL
...
...
src/components/pages/CanteenManagement/MenuManagement.vue
View file @
f6ec26a0
...
@@ -357,7 +357,7 @@ export default {
...
@@ -357,7 +357,7 @@ export default {
saveProduct
()
{
saveProduct
()
{
const
temp
=
/^
\d
+
\.?\d{0,2}
$/
const
temp
=
/^
\d
+
\.?\d{0,2}
$/
if
(
!
temp
.
test
(
this
.
addProduct
.
productPrice
)
||
parseFloat
(
this
.
addProduct
.
productPrice
)
>
1000
)
{
if
(
!
temp
.
test
(
this
.
addProduct
.
productPrice
)
||
parseFloat
(
this
.
addProduct
.
productPrice
)
>
1000
)
{
this
.
$message
.
error
(
'请输入正确的数字金额,最多保留小数点后两位'
)
this
.
$message
.
error
(
'请输入正确的数字金额,最多保留小数点后两位
,最高金额为1000
'
)
return
return
}
}
if
(
!
/^
[
0-9
]
*$/
.
test
(
this
.
addProduct
.
sort
))
{
if
(
!
/^
[
0-9
]
*$/
.
test
(
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