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'); + } })