设备管理
This commit is contained in:
@@ -55,7 +55,7 @@ export default {
|
||||
// grid
|
||||
async _devicesportcheckmstGetDtl () {
|
||||
let res = await devicesportcheckmstGetDtl(this.$route.query.id)
|
||||
this.dataList = [...res.data]
|
||||
this.dataList = [...res.content]
|
||||
},
|
||||
toJump () {
|
||||
this.$router.push('/checkorder')
|
||||
|
||||
@@ -76,8 +76,8 @@ export default {
|
||||
this.desc = ''
|
||||
let res = await devicesportcheckmstByuser(this.page + '', this.size)
|
||||
this.dataList = []
|
||||
this.dataList = [...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
}
|
||||
@@ -86,8 +86,8 @@ export default {
|
||||
this.busy = true
|
||||
this.page++
|
||||
let res = await devicesportcheckmstByuser(this.page + '', this.size)
|
||||
this.dataList = [...this.dataList, ...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...this.dataList, ...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
} else {
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
// grid
|
||||
async _devicelubricatemstGetDtl () {
|
||||
let res = await devicelubricatemstGetDtl(this.$route.query.id)
|
||||
this.dataList = [...res.data]
|
||||
this.dataList = [...res.content]
|
||||
},
|
||||
toJump () {
|
||||
this.$router.push('/lubricorder')
|
||||
|
||||
@@ -76,8 +76,8 @@ export default {
|
||||
this.desc = ''
|
||||
let res = await devicelubricatemstByuser(this.page + '', this.size)
|
||||
this.dataList = []
|
||||
this.dataList = [...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
}
|
||||
@@ -86,8 +86,8 @@ export default {
|
||||
this.busy = true
|
||||
this.page++
|
||||
let res = await devicelubricatemstByuser(this.page + '', this.size)
|
||||
this.dataList = [...this.dataList, ...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...this.dataList, ...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
} else {
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
// grid
|
||||
async _devicemaintenancemstGetDtl () {
|
||||
let res = await devicemaintenancemstGetDtl(this.$route.query.id)
|
||||
this.dataList = [...res.data]
|
||||
this.dataList = [...res.content]
|
||||
},
|
||||
toJump () {
|
||||
this.$router.push('/maintainorder')
|
||||
|
||||
@@ -76,8 +76,8 @@ export default {
|
||||
this.desc = ''
|
||||
let res = await devicemaintenancemstByuser(this.page + '', this.size)
|
||||
this.dataList = []
|
||||
this.dataList = [...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
}
|
||||
@@ -86,8 +86,8 @@ export default {
|
||||
this.busy = true
|
||||
this.page++
|
||||
let res = await devicemaintenancemstByuser(this.page + '', this.size)
|
||||
this.dataList = [...this.dataList, ...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...this.dataList, ...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
} else {
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
// grid
|
||||
async _devicerepairmstGetDtl () {
|
||||
let res = await devicerepairmstGetDtl(this.$route.query.id)
|
||||
this.dataList = [...res.data]
|
||||
this.dataList = [...res.content]
|
||||
},
|
||||
toJump () {
|
||||
this.$router.push('/repairorder')
|
||||
|
||||
@@ -76,8 +76,8 @@ export default {
|
||||
this.desc = ''
|
||||
let res = await devicerepairmstByuser(this.page + '', this.size)
|
||||
this.dataList = []
|
||||
this.dataList = [...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
}
|
||||
@@ -86,8 +86,8 @@ export default {
|
||||
this.busy = true
|
||||
this.page++
|
||||
let res = await devicerepairmstByuser(this.page + '', this.size)
|
||||
this.dataList = [...this.dataList, ...res.data]
|
||||
if (res.data.length < 30) {
|
||||
this.dataList = [...this.dataList, ...res.content]
|
||||
if (res.content.length < 30) {
|
||||
this.busy = true
|
||||
this.desc = '已加载全部数据'
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user