add mockjs“

This commit is contained in:
lb
2023-03-22 15:41:28 +08:00
parent 7f7192f38a
commit a861c23d67
3 changed files with 7 additions and 6 deletions

View File

@@ -3,8 +3,9 @@ const Random = Mock.Random
const pageViewModel = () => ({
code: Random.county(),
stateDictValue: Random.integer(1, 7),
orderCode: Random.string(10),
stateDictValue: Random.integer(0, 3),
// orderCode: Random.string(10),
orderCode: Random.integer(1,7),
posCode: Random.string(10),
startTime: Random.datetime(),
endTime: Random.datetime(),

View File

@@ -10,7 +10,7 @@ function m(url, type, fn) {
m(carManagement.url, carManagement.type, opt => {
let { limit, page } = JSON.parse(opt.body)
// console.log('limit, page', limit, page, opt.body)
limit = 5
// limit = 5
return {
code: 0,
data: {