代码调整
This commit is contained in:
parent
806f20dc9f
commit
1d128f92eb
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ import Vue from 'vue';
|
||||
import {covertMemberData} from '@/views/newMap/displayNew/utils';
|
||||
|
||||
export default {
|
||||
name: 'EditContent',
|
||||
name: 'EditDetails',
|
||||
components:{},
|
||||
props: {
|
||||
editData: {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user