diff --git a/src/views/system/checkPlan/index.vue b/src/views/system/checkPlan/index.vue index a40a612bfe97c465dfd322840d8a68485e108260..d97436aeaf398527f523cd5e0f17c61decd52f14 100644 --- a/src/views/system/checkPlan/index.vue +++ b/src/views/system/checkPlan/index.vue @@ -368,23 +368,29 @@ export default { }) .catch(() => {}); }, - + /** 瀵煎嚭鎸夐挳鎿嶄綔 */ exportExcl() { - exportModel().then((res) => { - this.$modal - .confirm("鏄惁纭瀵煎嚭锛�") - .then(function () { - return window.open( - `${this.$store.getters.appPicApi}/excel/${res.msg}`, - "_blank" - ); - }) - .then(() => { - this.$modal.msgSuccess("瀵煎嚭鎴愬姛"); - }) - .catch(() => {}); - }); + this.download('slope/plan/export/model', { + }, `checkplan_${new Date().getTime()}.xlsx`) }, + // exportExcl() { + // exportModel().then((res) => { + + + // this.$modal + // .confirm("鏄惁纭瀵煎嚭锛�") + // .then(function () { + // return window.open( + // `${this.$store.getters.appPicApi}/excel/${res.msg}`, + // "_blank" + // ); + // }) + // .then(() => { + // this.$modal.msgSuccess("瀵煎嚭鎴愬姛"); + // }) + // .catch(() => {}); + // }); + // }, onChange(e) { this.formData = new FormData(); this.formData.append("file", e.raw);