代码调整

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

View File

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