function heixiang_daliypnl(pageData) { return new Vue({ el: '#hxVue', data: { volType: '对冲', settleDate: pageData.settleDate, hxMainTradeNumber: '', showList: [] }, methods: { getDatas() { let postData = { volType: this.volType, settleDate: this.settleDate, hxMainTradeNumber: _.trim(this.hxMainTradeNumber) }; if (!postData.settleDate) { return main.alert("结算日期 必须填写!"); } if (!postData.hxMainTradeNumber) { return main.alert("黑箱主交易编号 必须填写!"); } let self = this; main.post("/systool/AjaxHeixiangDailyPnl", postData).done(function (resp) { self.showList = resp.obj; }); } } }); }; function WordDocumentInfo() { return new Vue({ el: '#mainVue', data: { showDocGrid: [] }, methods: { getWordDocumentInfo() { var formData = new FormData(document.getElementById('form1')); if (!formData.get('file').name) { return main.alert("请选择word docx文件!"); } let self = this; $.ajax({ url: '/systool/AjaxGetWordDocumentInfo', type: 'POST', success: function (resp) { $("#WordTemplateFile").val(""); if (resp.success) { self.showDocGrid = resp.obj; } else { self.showDocGrid = []; main.alert(resp.msg||"出现错误"); } }, error: function (data) { $("#WordTemplateFile").val(""); main.alert("导入失败:" + data.msg); }, data: formData, cache: false, contentType: false, processData: false }); } } }); };