var vue = new Vue({ el: "#listdiv", data: { VolatilityQuotation: VolatilityQuotation, quotation: quotation, Model: { EndDate: valuedate } }, mounted: function () { $('#createexcel').click( function () { $("#DateTitle").show(); ExcellentExport.excel(this, 'info', 'quotationpreview'); return $("#DateTitle").hide(); } ); }, filters: { Percent: function (data1, data2) { return numeral(data1 / data2).format("0.00%"); }, Fix4Number: function (desc) { // 返回处理后的值 if (isNaN(desc)) return "NaN"; return numeral(desc).format("0.0000"); } }, methods: { createriskparameter: function () { var thisObj = this; }, output: function () { var thisObj = this; window.location.href = "/quotationconfirm/OutPutPDF?endDate=" + thisObj.Model.EndDate + "&assetType=" + $("#assetType").val(); window.open("/quotationconfirm/OutPutPDF2?assetType=" + $("#assetType").val()); }, outputexcel: function () { $('#createexcel').attr('download', "报价预览_" + new moment().format("YYYYMMDDHHmm") + ".xls"); document.getElementById('createexcel').click(); }, refresh: function (item, index) { window.location.reload(); }, query: function () { var valueDate = $("#DateHistoryDate").val(); if (!valueDate) { return main.message("请选择有效日期!"); } changeDate(valueDate); }, closePage: function (cid) { parent.layer.closeAll(); } } });