From 6a0c3570f6e3e62b06f7c92359c1bb2d24a4876e Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 6 Jun 2024 19:50:46 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E4=B8=8A=E6=8A=A5=E7=9A=84=E4=B8=93=E9=A1=B9=E8=B5=84?= =?UTF-8?q?=E9=87=91=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetailComponent/SummaryDetail.vue | 2 +- src/views/project-demand/summary/add.vue | 31 ++++++++++--------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/components/DetailComponent/SummaryDetail.vue b/src/components/DetailComponent/SummaryDetail.vue index 0e3c422..0b1f73f 100644 --- a/src/components/DetailComponent/SummaryDetail.vue +++ b/src/components/DetailComponent/SummaryDetail.vue @@ -110,7 +110,7 @@ + v-if="localFormData.specialFundAmount"> {{ localFormData.specialFundAmount }} diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue index b1cfc7c..647142f 100644 --- a/src/views/project-demand/summary/add.vue +++ b/src/views/project-demand/summary/add.vue @@ -8,25 +8,25 @@ - - + + - + - - - - + {{ getSpecialFundName(formData.specialFund) }} + + + @@ -238,7 +238,7 @@
- + 发布 重新发布
@@ -274,6 +274,7 @@ const showTable = ref(true) const otherFileList = ref([]) const file = ref({}) const formData = ref({ + isSpecialFund: false, industryUniversityResearch: '0', governmentDeclaration: '0', }) @@ -417,7 +418,7 @@ const handleSubmit = debounce(async (instance) => { // } let params = { ...formData.value, - isSpecialFund: formData.value.isSpecialFund? formData.value.isSpecialFund : false, + isSpecialFund: formData.value.isSpecialFund ? formData.value.isSpecialFund : false, deploymentId: deploymentId.value, fileList: otherFiles, singleFile: singleFile, @@ -472,7 +473,7 @@ const handleResubmit = debounce(() => { //todo requirementId let params = { ...formData.value, - isSpecialFund: formData.value.isSpecialFund? formData.value.isSpecialFund : false, + isSpecialFund: formData.value.isSpecialFund ? formData.value.isSpecialFund : false, deploymentId: deploymentId.value, fileList: otherFiles, singleFile: singleFile, From a8921a06839e6baf520120b5e0691cedb216dc75 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 6 Jun 2024 21:44:43 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E4=B8=8A=E6=8A=A5=E6=95=B0=E5=AD=97=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E5=92=8C=E4=BA=BA=E5=91=98=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project-demand/summary/add.vue | 26 +- .../workflow/process/common/UserPicker.vue | 301 +++++++++--------- .../process/config/ApprovalNodeConfig.vue | 2 +- 3 files changed, 160 insertions(+), 169 deletions(-) diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue index 647142f..eb08312 100644 --- a/src/views/project-demand/summary/add.vue +++ b/src/views/project-demand/summary/add.vue @@ -180,37 +180,37 @@
- + - + - + - + - + - + - + @@ -229,13 +229,9 @@ @getAttachment="getAttachment" @getOtherFile="getOtherFile" :showFileList="true" :formData="formData" :preview="name === 'Summary/edit'"/> -
- - -
@@ -561,5 +557,13 @@ const staging = async () => { .detail-block { overflow: hidden; padding-bottom: 30px; + + :deep(.el-input-number) { + width: 100%; + + .el-input__inner { + text-align: left; + } + } } diff --git a/src/views/workflow/process/common/UserPicker.vue b/src/views/workflow/process/common/UserPicker.vue index faf145a..d9acfee 100644 --- a/src/views/workflow/process/common/UserPicker.vue +++ b/src/views/workflow/process/common/UserPicker.vue @@ -1,69 +1,67 @@ @@ -109,14 +107,11 @@ const defaultProps = { value: "value", label: "name", children: "children", - // isLeaf:(data, node) => - // { - // console.log('data, node',data, node) - // if (node.level === 2) { - // return true - // } - // } - + isLeaf: (data) => { + if (data.type === 0) { + return true + } + } }; const emit = defineEmits(); @@ -200,7 +195,6 @@ const showUserPicker = () => { getList(); }; const handleChange = (item, data) => { - console.log('item', item, data) selectItem = item; if (isSearch.value && item.type !== 0) { filterText.value = "" @@ -283,116 +277,109 @@ defineExpose({