更新
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<el-col style="width: 60%">
|
||||
<el-card>
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
v-loading="listLoading1"
|
||||
:data="tableData"
|
||||
size="mini"
|
||||
border
|
||||
@@ -318,6 +318,7 @@ export default {
|
||||
tableDataAll: [],
|
||||
tableData10: [],
|
||||
listLoading: false,
|
||||
listLoading1: false,
|
||||
unSpecification: [],
|
||||
pageCurrent: 1,
|
||||
pageSize: 10,
|
||||
@@ -366,6 +367,9 @@ export default {
|
||||
if (this.unSpecification.data) {
|
||||
return this.unSpecification.data.length > 0
|
||||
}
|
||||
if (this.listLoading === true) {
|
||||
return true
|
||||
}
|
||||
return true
|
||||
},
|
||||
materialName() {
|
||||
@@ -438,7 +442,7 @@ export default {
|
||||
this.pageCurrent = 1
|
||||
this.tableData10 = []
|
||||
try {
|
||||
this.listLoading = true
|
||||
this.listLoading1 = true
|
||||
this.total = 0
|
||||
this.tableDataAll = []
|
||||
const projectCheck = this.projectName ? 1 : 0
|
||||
@@ -468,7 +472,7 @@ export default {
|
||||
}
|
||||
this.total = this.tableDataAll.length
|
||||
this.pagination(this.pageCurrent, this.pageSize) // 前端分页,数据很多生成DOM节点也多,分页效果很明显。
|
||||
this.listLoading = false
|
||||
this.listLoading1 = false
|
||||
} catch (e) {
|
||||
console.log(`查询零件发生错误:${e}`)
|
||||
}
|
||||
@@ -649,7 +653,9 @@ export default {
|
||||
} else {
|
||||
this.$message.error(`${this.err}个零件传递失败`)
|
||||
}
|
||||
this.listLoading = false
|
||||
setTimeout(() => {
|
||||
this.listLoading = false
|
||||
}, 6000)
|
||||
} else {
|
||||
this.$message.warning(`请选择分组传递`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user