综合查询loading
This commit is contained in:
@@ -146,6 +146,7 @@
|
|||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
v-model="searchCriteria"
|
v-model="searchCriteria"
|
||||||
:fetch-suggestions="querySearch"
|
:fetch-suggestions="querySearch"
|
||||||
|
:disabled="loading0"
|
||||||
clearable
|
clearable
|
||||||
style="width: 200px;margin-left: 10px"
|
style="width: 200px;margin-left: 10px"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -154,6 +155,7 @@
|
|||||||
@clear="clearMachine"
|
@clear="clearMachine"
|
||||||
@select="SearchMachine"/>
|
@select="SearchMachine"/>
|
||||||
<el-table
|
<el-table
|
||||||
|
v-loading="loading0"
|
||||||
:data="tableDataDiv0"
|
:data="tableDataDiv0"
|
||||||
height="340"
|
height="340"
|
||||||
style="width: 100%;min-height: 300px;"
|
style="width: 100%;min-height: 300px;"
|
||||||
@@ -1979,6 +1981,7 @@ export default {
|
|||||||
showDiv22: false,
|
showDiv22: false,
|
||||||
valueDiv1: null, // div1 客户评级
|
valueDiv1: null, // div1 客户评级
|
||||||
maxDiv1: 6, // div1 客户评级最大值
|
maxDiv1: 6, // div1 客户评级最大值
|
||||||
|
loading0: false,
|
||||||
tableDataDiv0: [],
|
tableDataDiv0: [],
|
||||||
tableDataDiv2: [],
|
tableDataDiv2: [],
|
||||||
tableDataDiv3: [],
|
tableDataDiv3: [],
|
||||||
@@ -2296,10 +2299,11 @@ export default {
|
|||||||
this.data2[0].冷作 = 0
|
this.data2[0].冷作 = 0
|
||||||
this.data2[0].油漆 = 0
|
this.data2[0].油漆 = 0
|
||||||
this.data2[0].装配质检 = 0
|
this.data2[0].装配质检 = 0
|
||||||
this.machineValue ? this.check = 1 : this.check = 0
|
this.SearchMachine1()
|
||||||
searchMachine(this.check, this.machineValue).then(response => {
|
// this.machineValue ? this.check = 1 : this.check = 0
|
||||||
this.tableDataDiv0 = response.data
|
// searchMachine(this.check, this.machineValue).then(response => {
|
||||||
})
|
// this.tableDataDiv0 = response.data
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
// 机床名称查询函数
|
// 机床名称查询函数
|
||||||
querySearch(queryString, cb) {
|
querySearch(queryString, cb) {
|
||||||
@@ -2333,8 +2337,10 @@ export default {
|
|||||||
},
|
},
|
||||||
SearchMachine1() {
|
SearchMachine1() {
|
||||||
this.machineValue ? this.check = 1 : this.check = 0
|
this.machineValue ? this.check = 1 : this.check = 0
|
||||||
|
this.loading0 = true
|
||||||
searchMachine(this.check, this.machineValue).then(response => {
|
searchMachine(this.check, this.machineValue).then(response => {
|
||||||
this.tableDataDiv0 = response.data
|
this.tableDataDiv0 = response.data
|
||||||
|
this.loading0 = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
SearchMachine(item) {
|
SearchMachine(item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user