Commit 90a348b7 by lizhi

子组件调用父组件方法

parent 42460d03
...@@ -408,7 +408,7 @@ export default { ...@@ -408,7 +408,7 @@ export default {
}); });
// location.reload(); // location.reload();
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.$forceUpdate(); this.$emit("update");
}); });
// console.log(this.UserInfoDetail, "submitForm"); // console.log(this.UserInfoDetail, "submitForm");
}); });
......
...@@ -151,7 +151,10 @@ ...@@ -151,7 +151,10 @@
<!-- <div v-for="(item, name, index) in userInfo" :key="index"> <!-- <div v-for="(item, name, index) in userInfo" :key="index">
{{ name }} : {{ item }} {{ name }} : {{ item }}
</div> --> </div> -->
<stuDetailInfo :UserInfoDetail="UserInfoDetail"></stuDetailInfo> <stuDetailInfo
@update="update"
:UserInfoDetail="UserInfoDetail"
></stuDetailInfo>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="沟通记录" name="ChatRecord"> <el-tab-pane label="沟通记录" name="ChatRecord">
<!-- <ChatRecord></ChatRecord> --> <!-- <ChatRecord></ChatRecord> -->
...@@ -496,6 +499,10 @@ export default { ...@@ -496,6 +499,10 @@ export default {
// this.inputVisible = false; // this.inputVisible = false;
this.inputValue = null; this.inputValue = null;
},
update() {
this.getUserInfoDetail(this.id);
console.log("66666");
} }
}, },
mounted() { mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment