代码调整

This commit is contained in:
dong 2022-08-23 15:42:24 +08:00
parent 806f20dc9f
commit 1d128f92eb
3 changed files with 8 additions and 8 deletions

View File

@ -6,19 +6,19 @@
<el-button size="small" @click="showList">实训列表</el-button>
</el-button-group>
</div>
<TrainingList ref="trainingList" @editBlob="editBlob" />
<EditContent ref="EditBlob" v-dialogDrag :edit-data="editData" />
<TrainingList ref="trainingList" @updateDetails="updateDetails" />
<EditDetails ref="editDetails" v-dialogDrag :edit-data="editData" />
</div>
</template>
<script>
import TrainingList from './trainingList.vue';
import EditContent from './editDetails.vue';
import EditDetails from './editDetails.vue';
export default {
name:'DemonMenu',
components:{
TrainingList,
EditContent
EditDetails
},
props:{
},
@ -54,9 +54,9 @@ export default {
showList() {
this.$refs.trainingList.doShow();
},
editBlob(data) {
updateDetails(data) {
this.editData = data;
this.$refs.EditBlob.doShow(data);
this.$refs.editDetails.doShow(data);
}
}

View File

@ -25,7 +25,7 @@ import Vue from 'vue';
import {covertMemberData} from '@/views/newMap/displayNew/utils';
export default {
name: 'EditContent',
name: 'EditDetails',
components:{},
props: {
editData: {

View File

@ -141,7 +141,7 @@ export default {
},
drawUp(index, row) {
console.log('编辑', index, row);
this.$emit('editBlob', row);
this.$emit('updateDetails', row);
this.doClose();
},
handleModify(index, row) {