import Magix from 'magix' import View from '../../../view' Magix.applyStyle('@./crowd-tips.less') export default View.extend({ tmpl: '@crowd-tips.html', init (options) { this.options = options }, render () { const { extra } = this.options.data this.updater.digest({ extra, crowd: this.options.data }) }, async 'showReports' (e) { const { id, crowdName } = e.params const viewPath = '@../reports/crowds/detail-new' const viewOptions = { id, crowdName, noChannels: true } const dialogOptions = { width: 1300, header: { title: `人群报表:${crowdName}` }, footer: { cancel: false, enterText: '关闭' } } this.mxModal(viewPath, viewOptions, dialogOptions) } })