|
@@ -37,14 +37,10 @@ export default {
|
|
|
watch: {
|
|
|
|
|
|
},
|
|
|
+ inject:['tableData'],
|
|
|
data() {
|
|
|
return {
|
|
|
- tempData:[
|
|
|
- {
|
|
|
- id:'1',
|
|
|
- user_name:'张三',
|
|
|
- }
|
|
|
- ],
|
|
|
+ tempData:[],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -56,13 +52,16 @@ export default {
|
|
|
this.$emit('change',selection.map(item=>item.id))
|
|
|
},
|
|
|
|
|
|
+
|
|
|
},
|
|
|
created() {
|
|
|
- console.log('record',this.record);
|
|
|
- console.log('value',this.value);
|
|
|
- console.log('dynamicData',this.dynamicData);
|
|
|
- console.log('parentDisabled',this.parentDisabled);
|
|
|
- console.log('config',this.config);
|
|
|
+ // console.log('record',this.record);
|
|
|
+ // console.log('value',this.value);
|
|
|
+ // console.log('dynamicData',this.dynamicData);
|
|
|
+ // console.log('parentDisabled',this.parentDisabled);
|
|
|
+ // console.log('config', this.config);
|
|
|
+ // console.log(this.tableData());
|
|
|
+ this.tempData = this.tableData();
|
|
|
}
|
|
|
};
|
|
|
</script>
|