优化
This commit is contained in:
@@ -150,6 +150,7 @@
|
||||
type="success"
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
:disabled="open_flag"
|
||||
@click="phySync"
|
||||
>
|
||||
理化同步
|
||||
@@ -315,6 +316,7 @@ export default {
|
||||
materShow: false,
|
||||
materType: '11',
|
||||
visiable1: false,
|
||||
open_flag: false,
|
||||
inspection_id: null,
|
||||
statusList: [],
|
||||
permission: {
|
||||
@@ -441,9 +443,16 @@ export default {
|
||||
const data = {
|
||||
'data': _selectData
|
||||
}
|
||||
this.open_flag = true
|
||||
this.crud.loading = true
|
||||
crudPhysicalMst.hpySync(data).then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.loading = false
|
||||
this.open_flag = false
|
||||
this.crud.toQuery()
|
||||
}).catch(() => {
|
||||
this.crud.loading = false
|
||||
this.open_flag = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user