|
@@ -62,12 +62,12 @@
|
|
|
ifShow: getCheckRole('super') && record.companyId != 1058,
|
|
|
onClick: handleMove.bind(null, record),
|
|
|
},
|
|
|
- // {
|
|
|
- // color: 'warning',
|
|
|
- // label: '虚实同步',
|
|
|
- // ifShow: true,
|
|
|
- // onClick: syncReality.bind(null, record),
|
|
|
- // },
|
|
|
+ {
|
|
|
+ color: 'warning',
|
|
|
+ label: '虚实同步',
|
|
|
+ ifShow: true,
|
|
|
+ onClick: syncReality.bind(null, record),
|
|
|
+ },
|
|
|
{
|
|
|
color: 'error',
|
|
|
label: '分享',
|
|
@@ -353,10 +353,14 @@
|
|
|
content: t('routes.scenes.copyInfi.content'),
|
|
|
onOk: async () => {
|
|
|
setLoading(true);
|
|
|
- sceneCopy({ num: record.num }).then(() => {
|
|
|
- createMessage.success(t('routes.scenes.copyInfi.ok'));
|
|
|
- reload();
|
|
|
- });
|
|
|
+ sceneCopy({ num: record.num })
|
|
|
+ .then(() => {
|
|
|
+ createMessage.success(t('routes.scenes.copyInfi.ok'));
|
|
|
+ reload();
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ setLoading(false);
|
|
|
+ });
|
|
|
},
|
|
|
});
|
|
|
}
|