This commit is contained in:
zds
2022-11-17 14:44:42 +08:00
parent 08123cbf5e
commit 7c2fe0ea60
2 changed files with 10 additions and 16 deletions

View File

@@ -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
})
}
}