diff --git a/src/mixins/treeMixin.js b/src/mixins/treeMixin.js index 74d03ef..20905fc 100644 --- a/src/mixins/treeMixin.js +++ b/src/mixins/treeMixin.js @@ -19,11 +19,9 @@ export default { cursor: "pointer", backgroundColor: node.node.selected ? "#e5e5e5" : "" }, - on: { - click: (e) => { - e.stopPropagation() + onClick: (e) => { + e.stopPropagation(); this.$emit("on-tree-change", node.node); - } } }, data.title) ]); diff --git a/src/views/classManage/Christianity.vue b/src/views/classManage/Christianity.vue index f5e7502..80f8340 100644 --- a/src/views/classManage/Christianity.vue +++ b/src/views/classManage/Christianity.vue @@ -365,9 +365,7 @@ style: { width: '150px' }}) cursor: 'pointer', margin: '0 auto' }, - on: { - click: () => this.openTeacherSelect(params.index, 'headTeacher') - } + onClick: () => this.openTeacherSelect(params.index, 'headTeacher') }, [ h('span', { style: { @@ -391,8 +389,7 @@ style: { width: '150px' }}) flexShrink: 0, fontSize: '14px' }, - on: { - click: (e) => { + onClick: (e) => { e.stopPropagation() var item={ id:params.row.id, @@ -407,7 +404,6 @@ style: { width: '150px' }}) } }); } - } }, '×') : null ]) } @@ -428,9 +424,7 @@ style: { width: '150px' }}) cursor: 'pointer', margin: '0 auto' }, - on: { - click: () => this.openTeacherSelect(params.index, 'secondTeacherName') - } + onClick: () => this.openTeacherSelect(params.index, 'secondTeacherName') }, [ h('span', { style: { @@ -454,8 +448,7 @@ style: { width: '150px' }}) flexShrink: 0, fontSize: '14px' }, - on: { - click: (e) => { + onClick: (e) => { e.stopPropagation() var item={ id:params.row.id, @@ -470,7 +463,6 @@ style: { width: '150px' }}) } }); } - } }, '×') : null ]) } @@ -491,9 +483,7 @@ style: { width: '150px' }}) cursor: 'pointer', margin: '0 auto' }, - on: { - click: () => this.openCampusSelect(params.index) - } + onClick: () => this.openCampusSelect(params.index) }, [ h('span', { style: { @@ -517,8 +507,7 @@ style: { width: '150px' }}) flexShrink: 0, fontSize: '14px' }, - on: { - click: (e) => { + onClick: (e) => { e.stopPropagation() var item={ id:params.row.id, @@ -533,7 +522,6 @@ style: { width: '150px' }}) } }); } - } }, '×') : null ]) } @@ -726,17 +714,7 @@ onClick: () => this.deleteRow(params.index, params.row)})