From ffe7d0bb6cb7d4ff3e9d27530f23963cca7317a0 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 25 Oct 2024 21:41:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat=20:=20=E9=98=B6=E6=AE=B5=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E7=9A=84=E9=A1=B9=E7=9B=AE=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8A=A0=E4=B8=8A"=E6=98=AF=E5=90=A6=E5=9C=A8?= =?UTF-8?q?=E9=A2=84=E7=AE=97=E5=86=85"=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../implementation/phase.vue | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue index 4ad4806..7e36b12 100644 --- a/src/views/project-management/implementation/phase.vue +++ b/src/views/project-management/implementation/phase.vue @@ -15,6 +15,12 @@ + + + + + + @@ -79,7 +85,8 @@ const singleList = ref([]) const name = ref(router.currentRoute.value.name) const loading = ref(false) const formData = ref({ - changeState:'0' + changeState:'0', + isStop:'0' }) const file = ref({}) const deploymentId = ref() @@ -291,6 +298,22 @@ const schema = computed(() => { ) }, + { + label: '是否在预算内', + prop: 'isWithinBudget', + colProps: { + span: 6 + }, + component: () => ( +
+ { + baseFormData.value?.isWithinBudget!=null ? baseFormData.value?.isWithinBudget? + {'预算内'} + : {'预算外'}:'--' + } +
+ ) + }, { label: '部门分管领导', prop: 'optionalChargeLeadership', From 5c2ec69fd676949603f56fbe253bbba5746a3349 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 25 Oct 2024 21:49:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat=20:=20=E9=A1=B9=E7=9B=AE=E5=AE=9E?= =?UTF-8?q?=E6=96=BD-=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project-management/implementation/upload.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/project-management/implementation/upload.vue b/src/views/project-management/implementation/upload.vue index 9914e30..207915c 100644 --- a/src/views/project-management/implementation/upload.vue +++ b/src/views/project-management/implementation/upload.vue @@ -41,7 +41,7 @@ import {useTagsView} from '@/stores/tagsview.js' import {uploadFileList} from "@/api/project-manage/attachment"; import {computed, ref} from "vue"; import {getBaseInfoApi} from "@/components/steps/api"; -import {downloadFile, deleteFile} from "@/api/project-demand"; +import {deleteFile, downloadFile} from "@/api/project-demand"; import {useCacheStore} from '@/stores/cache.js' @@ -338,6 +338,13 @@ const filePreviewParam = ref({ fileType: 'pdf' }) const filePreviewShow = ref(false) +if(localStorage.getItem('implementFile')){ + fileList.value=JSON.parse(localStorage.getItem('implementFile')) +} +const changeImplementFile=()=>{ + localStorage.setItem('implementFile', JSON.stringify(fileList.value)) +} + const clickToPreview=(row)=>{ filePreviewShow.value = false filePreviewParam.value = { @@ -392,6 +399,7 @@ const handleDelete = (row) => { }) if (res.code === 1000) { fileList.value.splice(fileList.value.findIndex((item) => item.fileId === row.fileId), 1); + changeImplementFile() } }); } @@ -459,6 +467,7 @@ const getFile = (val) => { nextTick(() => { showTable.value = true }) + changeImplementFile() } const handleSubmit = async (instance) => { if (!instance) return @@ -514,6 +523,7 @@ const handleSubmit = async (instance) => { }) } } + localStorage.removeItem('implementFile') } }) }