const Magix = require('magix') Magix.applyStyle('@./direction.less') const GetPreRunData = require('@./getPreRunData') const View = require('dmp-new/view') module.exports = View.extend({ tmpl: '@preRunResult.html', mixins: [GetPreRunData], init: function (options) { const me = this me.options = options }, async render (params = { currentPage: 1 }) { const all = this.updater.get('all') const data = await this.getPreRunData(params) data.packagePreRunMap = all.packagePreRunMap data.id = this.options.data.id this.updater.digest(data) }, 'cancel': function (e) { const me = this me.options.dialog.close() }, 'changePage' (e) { this.render({ currentPage: e.page }) } })