Commit 90a348b7 by lizhi

子组件调用父组件方法

parent 42460d03
......@@ -408,7 +408,7 @@ export default {
});
// location.reload();
this.dialogFormVisible = false;
this.$forceUpdate();
this.$emit("update");
});
// console.log(this.UserInfoDetail, "submitForm");
});
......
......@@ -151,7 +151,10 @@
<!-- <div v-for="(item, name, index) in userInfo" :key="index">
{{ name }} : {{ item }}
</div> -->
<stuDetailInfo :UserInfoDetail="UserInfoDetail"></stuDetailInfo>
<stuDetailInfo
@update="update"
:UserInfoDetail="UserInfoDetail"
></stuDetailInfo>
</el-tab-pane>
<el-tab-pane label="沟通记录" name="ChatRecord">
<!-- <ChatRecord></ChatRecord> -->
......@@ -496,6 +499,10 @@ export default {
// this.inputVisible = false;
this.inputValue = null;
},
update() {
this.getUserInfoDetail(this.id);
console.log("66666");
}
},
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