父组件
this.settingTableVisible = true;
this.tableNodeObjTemp = part.data
this.$nextTick(() => {
this.$refs.settingTable.init(part.data);
});
<setting-table v-if="settingTableVisible" :nodeObjTemp="tableNodeObjTemp"
@submit-update="changeNode"
@execute="execute" ref="settingTable"></setting-table>
import SettingTable from "./setting-table"; //数据表设置弹窗
components: {
SettingTable, //数据表设置弹窗
},
子组件
props: {
nodeObjTemp: {},
},
props: ["idName","jobId"],
init(data) {
this.visible = true
},
save(){
this.visible = false;
this.nodeObjTemp.nodeTaskType = this.specialalgorithmId;
this.$emit("submit-update", this.nodeObjTemp);
},