设备管理

This commit is contained in:
2023-11-03 09:05:17 +08:00
parent bd17db7d04
commit 651f591e46
8 changed files with 20 additions and 20 deletions

View File

@@ -55,7 +55,7 @@ export default {
// grid // grid
async _devicesportcheckmstGetDtl () { async _devicesportcheckmstGetDtl () {
let res = await devicesportcheckmstGetDtl(this.$route.query.id) let res = await devicesportcheckmstGetDtl(this.$route.query.id)
this.dataList = [...res.data] this.dataList = [...res.content]
}, },
toJump () { toJump () {
this.$router.push('/checkorder') this.$router.push('/checkorder')

View File

@@ -76,8 +76,8 @@ export default {
this.desc = '' this.desc = ''
let res = await devicesportcheckmstByuser(this.page + '', this.size) let res = await devicesportcheckmstByuser(this.page + '', this.size)
this.dataList = [] this.dataList = []
this.dataList = [...res.data] this.dataList = [...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} }
@@ -86,8 +86,8 @@ export default {
this.busy = true this.busy = true
this.page++ this.page++
let res = await devicesportcheckmstByuser(this.page + '', this.size) let res = await devicesportcheckmstByuser(this.page + '', this.size)
this.dataList = [...this.dataList, ...res.data] this.dataList = [...this.dataList, ...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} else { } else {

View File

@@ -55,7 +55,7 @@ export default {
// grid // grid
async _devicelubricatemstGetDtl () { async _devicelubricatemstGetDtl () {
let res = await devicelubricatemstGetDtl(this.$route.query.id) let res = await devicelubricatemstGetDtl(this.$route.query.id)
this.dataList = [...res.data] this.dataList = [...res.content]
}, },
toJump () { toJump () {
this.$router.push('/lubricorder') this.$router.push('/lubricorder')

View File

@@ -76,8 +76,8 @@ export default {
this.desc = '' this.desc = ''
let res = await devicelubricatemstByuser(this.page + '', this.size) let res = await devicelubricatemstByuser(this.page + '', this.size)
this.dataList = [] this.dataList = []
this.dataList = [...res.data] this.dataList = [...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} }
@@ -86,8 +86,8 @@ export default {
this.busy = true this.busy = true
this.page++ this.page++
let res = await devicelubricatemstByuser(this.page + '', this.size) let res = await devicelubricatemstByuser(this.page + '', this.size)
this.dataList = [...this.dataList, ...res.data] this.dataList = [...this.dataList, ...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} else { } else {

View File

@@ -55,7 +55,7 @@ export default {
// grid // grid
async _devicemaintenancemstGetDtl () { async _devicemaintenancemstGetDtl () {
let res = await devicemaintenancemstGetDtl(this.$route.query.id) let res = await devicemaintenancemstGetDtl(this.$route.query.id)
this.dataList = [...res.data] this.dataList = [...res.content]
}, },
toJump () { toJump () {
this.$router.push('/maintainorder') this.$router.push('/maintainorder')

View File

@@ -76,8 +76,8 @@ export default {
this.desc = '' this.desc = ''
let res = await devicemaintenancemstByuser(this.page + '', this.size) let res = await devicemaintenancemstByuser(this.page + '', this.size)
this.dataList = [] this.dataList = []
this.dataList = [...res.data] this.dataList = [...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} }
@@ -86,8 +86,8 @@ export default {
this.busy = true this.busy = true
this.page++ this.page++
let res = await devicemaintenancemstByuser(this.page + '', this.size) let res = await devicemaintenancemstByuser(this.page + '', this.size)
this.dataList = [...this.dataList, ...res.data] this.dataList = [...this.dataList, ...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} else { } else {

View File

@@ -55,7 +55,7 @@ export default {
// grid // grid
async _devicerepairmstGetDtl () { async _devicerepairmstGetDtl () {
let res = await devicerepairmstGetDtl(this.$route.query.id) let res = await devicerepairmstGetDtl(this.$route.query.id)
this.dataList = [...res.data] this.dataList = [...res.content]
}, },
toJump () { toJump () {
this.$router.push('/repairorder') this.$router.push('/repairorder')

View File

@@ -76,8 +76,8 @@ export default {
this.desc = '' this.desc = ''
let res = await devicerepairmstByuser(this.page + '', this.size) let res = await devicerepairmstByuser(this.page + '', this.size)
this.dataList = [] this.dataList = []
this.dataList = [...res.data] this.dataList = [...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} }
@@ -86,8 +86,8 @@ export default {
this.busy = true this.busy = true
this.page++ this.page++
let res = await devicerepairmstByuser(this.page + '', this.size) let res = await devicerepairmstByuser(this.page + '', this.size)
this.dataList = [...this.dataList, ...res.data] this.dataList = [...this.dataList, ...res.content]
if (res.data.length < 30) { if (res.content.length < 30) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} else { } else {