|
@@ -1166,13 +1166,16 @@ export default {
|
|
|
updateUser(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
- this.getList();
|
|
|
+ // ⚠️⚠️⚠️调用查询组件中查询函数-》handleQuery回调getList();
|
|
|
+ this.$refs.mychild.handleQuery();
|
|
|
+
|
|
|
});
|
|
|
} else {
|
|
|
addUser(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
- this.getList();
|
|
|
+ // ⚠️⚠️⚠️调用查询组件中查询函数-》handleQuery回调getList();
|
|
|
+ this.$refs.mychild.handleQuery();
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1499,7 +1502,8 @@ export default {
|
|
|
} catch (error) {
|
|
|
this.$message.error("网络异常,请稍后再试");
|
|
|
}
|
|
|
- this.getList();
|
|
|
+ // ⚠️⚠️⚠️调用查询组件中查询函数-》handleQuery回调getList();
|
|
|
+ this.$refs.mychild.handleQuery();
|
|
|
this.defaultValue = {};
|
|
|
this.open = false;
|
|
|
})
|
|
@@ -1781,7 +1785,8 @@ export default {
|
|
|
let res = await btnCommonApi(data);
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("操作成功");
|
|
|
- this.getList();
|
|
|
+ // ⚠️⚠️⚠️调用查询组件中查询函数-》handleQuery回调getList();
|
|
|
+ this.$refs.mychild.handleQuery();
|
|
|
this.defaultValue = {};
|
|
|
this.open = false;
|
|
|
} else {
|
|
@@ -1836,7 +1841,8 @@ export default {
|
|
|
} catch (error) {
|
|
|
this.$message.error("网络异常,请稍后再试");
|
|
|
}
|
|
|
- this.getList();
|
|
|
+ // ⚠️⚠️⚠️调用查询组件中查询函数-》handleQuery回调getList();
|
|
|
+ this.$refs.mychild.handleQuery();
|
|
|
this.defaultValue = {};
|
|
|
this.open = false;
|
|
|
}
|