From 46bfa429d393269350294b302cde9b90578b510a Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Mon, 25 Aug 2025 17:31:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ctr):=20=E9=87=8D=E6=96=B0=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E5=90=88=E5=90=8C=E6=94=B6=E5=85=A5=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 恢复了根据路由查询参数 id 获取合同信息的逻辑 - 移除了无用的下载文件代码 - 优化了页面加载时的数据处理流程 --- src/views/ctr/update/index.vue | 98 +++------------------------------- 1 file changed, 8 insertions(+), 90 deletions(-) diff --git a/src/views/ctr/update/index.vue b/src/views/ctr/update/index.vue index c6aa4d8..13be196 100644 --- a/src/views/ctr/update/index.vue +++ b/src/views/ctr/update/index.vue @@ -220,96 +220,14 @@ const handleChoose = async () => { } onMounted(async () => { - // const id = route.query.id; - // if (id) { - // const { data } = await getIncomeContract(id); - // form.value.id = data.id; - // form.value.contractOwner = data.contractOwner - // } else { - // router.push('/ctr/incomeContract'); - // } - - proxy?.download( - '/progress/progressCategory/export', - { - "ids": [ - "1951552037761114114", - "1951552037811445761", - "1951552037811445762", - "1951552037811445763", - "1951552037811445764", - "1951552037811445765", - "1951552037811445766", - "1951552037811445767", - "1951552037865971713", - "1951552037865971714", - "1951552037865971715", - "1951552037865971716", - "1951552037865971717", - "1951552037865971718", - "1951552037865971719", - "1951552037865971720", - "1951552037865971721", - "1951552037865971722", - "1951552037865971723", - "1951552037865971724", - "1951552037865971725", - "1951552037924691969", - "1951552037924691970", - "1951552037924691971", - "1951552037924691972", - "1951552037924691973", - "1951552037924691974", - "1951552037924691975", - "1951552037924691976", - "1951552037924691977", - "1951552037962440706", - "1951552037962440707", - "1951552037962440708", - "1951552037962440709", - "1951552037962440710", - "1951552037962440711", - "1951552037962440712", - "1951552038004383745", - "1951552038004383746", - "1951552038004383747", - "1951552038004383748", - "1951552038004383749", - "1951552038004383750", - "1951552038004383751", - "1951552038004383752", - "1951552038004383753", - "1951552038004383754", - "1951552038058909698", - "1951552038058909699", - "1951552038058909700", - "1951552038058909701", - "1951552038058909702", - "1951552038058909703", - "1951552038058909704", - "1951552038096658434", - "1951552038096658435", - "1951552038096658436", - "1951552038096658437", - "1951552038096658438", - "1951552038096658439", - "1951552038096658440", - "1951552038096658441", - "1951552038096658442", - "1951552038096658443", - "1951552038096658444", - "1951552038146990081", - "1951552038146990082", - "1951552038146990083", - "1951552038146990084", - "1951552038146990085", - "1951552038188933122", - "1951552038188933123", - "1951552038188933124" - ] - }, - `1.xlsx` - ); + const id = route.query.id; + if (id) { + const { data } = await getIncomeContract(id); + form.value.id = data.id; + form.value.contractOwner = data.contractOwner + } else { + router.push('/ctr/incomeContract'); + } })