this.$refs["gatewayModal"].ok = function(){_this.$refs["gatewayModal"].$emit('on-ok')}; // 重新组件内ok方法(默认会直接关闭modal)