fix:员工概况loading添加
This commit is contained in:
parent
7884b74565
commit
6f0ba03418
@ -51,7 +51,16 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async handleGetEmployeessItuation (data = {}) {
|
async handleGetEmployeessItuation (data = {}) {
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
let result = await apiEmployeessItuation(data)
|
let result = await apiEmployeessItuation(data)
|
||||||
|
setTimeout(() => {
|
||||||
|
loading.close()
|
||||||
|
}, 500)
|
||||||
console.log('result: ', result)
|
console.log('result: ', result)
|
||||||
if (result.code === 0) {
|
if (result.code === 0) {
|
||||||
this.dataInfo = result.data
|
this.dataInfo = result.data
|
||||||
@ -61,14 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取页面数据
|
// 获取页面数据
|
||||||
async initData () {
|
async initData () {
|
||||||
const loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: 'Loading',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
})
|
|
||||||
await this.handleGetEmployeessItuation()
|
await this.handleGetEmployeessItuation()
|
||||||
loading.close()
|
|
||||||
},
|
},
|
||||||
submit (data) {
|
submit (data) {
|
||||||
this.handleGetEmployeessItuation(data)
|
this.handleGetEmployeessItuation(data)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user