Showing
1 changed file
with
6 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-21 11:58:41 | 4 | + * @LastEditTime: 2024-07-22 12:00:06 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -1079,8 +1079,11 @@ const onSubmit = async (values) => { | ... | @@ -1079,8 +1079,11 @@ const onSubmit = async (values) => { |
| 1079 | showSuccessToast("操作成功"); | 1079 | showSuccessToast("操作成功"); |
| 1080 | // 缓存表单返回值 | 1080 | // 缓存表单返回值 |
| 1081 | // store.changeSuccessInfo(result.data); | 1081 | // store.changeSuccessInfo(result.data); |
| 1082 | - // 表单成功提交后续操作 | 1082 | + //在 iframe 中调用父页面中定义的变量 - Doris需要自由控制 |
| 1083 | - // successHandle(); | 1083 | + let getChildVal = parent.parent.getChildVal; |
| 1084 | + if (getChildVal) { | ||
| 1085 | + getChildVal(); | ||
| 1086 | + } | ||
| 1084 | } else { | 1087 | } else { |
| 1085 | // 提交按钮禁用状态 | 1088 | // 提交按钮禁用状态 |
| 1086 | submitStatus.value = false; | 1089 | submitStatus.value = false; | ... | ... |
-
Please register or login to post a comment