scada数据查询页面增加loading遮罩层
This commit is contained in:
@@ -94,6 +94,7 @@
|
|||||||
<c-grid
|
<c-grid
|
||||||
:filter="tableFilter"
|
:filter="tableFilter"
|
||||||
:key='key'
|
:key='key'
|
||||||
|
:loading="loading"
|
||||||
:data="data">
|
:data="data">
|
||||||
<c-grid-column
|
<c-grid-column
|
||||||
field="id"
|
field="id"
|
||||||
@@ -209,6 +210,7 @@ export default {
|
|||||||
time: [now - 3600 * 1000 * 24 * 7, +now],
|
time: [now - 3600 * 1000 * 24 * 7, +now],
|
||||||
code: ''
|
code: ''
|
||||||
},
|
},
|
||||||
|
loading: false,
|
||||||
workingSubclasses: [],
|
workingSubclasses: [],
|
||||||
codes: [],
|
codes: [],
|
||||||
data: [],
|
data: [],
|
||||||
@@ -334,6 +336,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getData () {
|
async getData () {
|
||||||
|
this.loading = true
|
||||||
this.excelData = []
|
this.excelData = []
|
||||||
if (!this.formInline.workingSubclass) {
|
if (!this.formInline.workingSubclass) {
|
||||||
this.$message.error('请选择工序单元')
|
this.$message.error('请选择工序单元')
|
||||||
@@ -348,6 +351,7 @@ export default {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
this.loading = false
|
||||||
},
|
},
|
||||||
async exportExcel () {
|
async exportExcel () {
|
||||||
const data = this.excelData.length === 0 ? this.data : this.excelData
|
const data = this.excelData.length === 0 ? this.data : this.excelData
|
||||||
@@ -390,6 +394,7 @@ export default {
|
|||||||
this.$message.error('请先选择比较方法!')
|
this.$message.error('请先选择比较方法!')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
this.excelData = []
|
this.excelData = []
|
||||||
this.key = !this.key // 取反重新组件渲染
|
this.key = !this.key // 取反重新组件渲染
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user