add
This commit is contained in:
@@ -92,7 +92,7 @@ const btn = {
|
||||
},
|
||||
methods: {
|
||||
handleClick() {
|
||||
this.$emit('emitData', { type: this.injectData.label });
|
||||
this.$emit('emitData', { action: this.injectData.label, value: null });
|
||||
},
|
||||
},
|
||||
render: function (h) {
|
||||
@@ -220,6 +220,17 @@ export default {
|
||||
);
|
||||
});
|
||||
},
|
||||
handleEmitFun({action, value}) {
|
||||
switch (action) {
|
||||
// 查看详情
|
||||
case '设备保养':
|
||||
alert('设备保养');
|
||||
break;
|
||||
case '保养记录':
|
||||
alert('保养记录');
|
||||
break;
|
||||
}
|
||||
},
|
||||
/** 查询列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
||||
Reference in New Issue
Block a user