mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
修复在线表单bug
This commit is contained in:
@@ -185,25 +185,6 @@ const onDeleteRow = (data: ANY_OBJECT) => {
|
|||||||
const onTableDataListChange = (dataList: ANY_OBJECT[]) => {
|
const onTableDataListChange = (dataList: ANY_OBJECT[]) => {
|
||||||
emit('input', dataList);
|
emit('input', dataList);
|
||||||
};
|
};
|
||||||
const refreshData = (data: ANY_OBJECT) => {
|
|
||||||
if (data.path === 'thirdOnlineEditForm/' + props.widget.variableName) {
|
|
||||||
handlerEditOperate(data.rowData, data.data);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
//let widget = props.widget;
|
|
||||||
//widget.widgetImpl = getCurrentInstance();
|
|
||||||
window.addEventListener(
|
|
||||||
'message',
|
|
||||||
event => {
|
|
||||||
if (event.data.type === 'refreshData') {
|
|
||||||
refreshData(event.data.data);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
false,
|
|
||||||
);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user