From 6f676747216d14633058d856af1a169c9decf883 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Tue, 25 Feb 2025 10:31:35 +0800 Subject: [PATCH] init --- src/views/contract/contractList.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index a47037b..f20a179 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -693,8 +693,8 @@ export default { plan_id: "", outcome_type: 1, plan_name: "请选择预算计划", - start_plan_price: undefined, - end_plan_price: undefined, + // start_plan_price: undefined, + // end_plan_price: undefined, is_myself: 0, is_purchase: 1, flow_link: [] @@ -711,8 +711,8 @@ export default { plan_id: "", outcome_type: 1, plan_name: "请选择预算计划", - start_plan_price: undefined, - end_plan_price: undefined, + // start_plan_price: undefined, + // end_plan_price: undefined, is_myself: 0, is_purchase: 1, flow_link: [] @@ -1867,8 +1867,12 @@ export default { let tokens = getToken(); if (is_export && this.select.is_export === 1) { var url = "/api/ht/contract/index?is_auth=1&token=" + tokens; - Object.keys(this.select).map((key, item) => { - url += "&" + key + "=" + this.select[key]; + Object.entries({ + ...this.select, + start_plan_price: this.select['start_plan_price'] ? this.select.start_plan_price : '', + end_plan_price: this.select['end_plan_price'] ? this.select.end_plan_price : '' + }).forEach(([key, value], item) => { + url += "&" + key + "=" + value; }); url = location.host + url; console.log(url); @@ -1884,6 +1888,8 @@ export default { const res = await getContract({ is_auth: 1, ...this.select, + start_plan_price: this.select['start_plan_price'] ? this.select.start_plan_price : '', + end_plan_price: this.select['end_plan_price'] ? this.select.end_plan_price : '' },noloading); delete this.select.id;