From b8fae45ebee47e0e5fc9c1bf1e1653e78e6d62b0 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Tue, 22 Oct 2024 17:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B9=A6-=E9=99=84=E4=BB=B6&?= =?UTF-8?q?=E6=AD=A3=E6=96=87=20=E5=8A=9F=E8=83=BD=E6=B7=BB=E5=8A=A0=2010.?= =?UTF-8?q?22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectApplication/kejigongguan/xiangmushu/index.vue | 2 +- jeecgboot-vue3/src/views/projectFile/ProjectFile.data.ts | 4 ++-- .../src/views/projectFile/components/ProjectFileModal.vue | 7 ++++++- .../projectFile/zhengwen/components/ProjectFileModal.vue | 5 +++++ .../projectOpinion/components/ProjectOpinionModal.vue | 5 ++++- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue index 0a5d40b..a3796ae 100644 --- a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue +++ b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue @@ -58,7 +58,7 @@ //使用component动态切换tab function tabChange(key) { activeKey.value = key; - alert("activeKey.value-"+activeKey.value) + // alert("activeKey.value-"+activeKey.value) } /*function goBack() { diff --git a/jeecgboot-vue3/src/views/projectFile/ProjectFile.data.ts b/jeecgboot-vue3/src/views/projectFile/ProjectFile.data.ts index eac21f7..2420cbb 100644 --- a/jeecgboot-vue3/src/views/projectFile/ProjectFile.data.ts +++ b/jeecgboot-vue3/src/views/projectFile/ProjectFile.data.ts @@ -22,11 +22,11 @@ export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ - { + /*{ label: '项目表id', field: 'projectId', component: 'Input', - }, + },*/ { label: '上传附件', field: 'fileUrl', diff --git a/jeecgboot-vue3/src/views/projectFile/components/ProjectFileModal.vue b/jeecgboot-vue3/src/views/projectFile/components/ProjectFileModal.vue index b06b4e1..240b93e 100644 --- a/jeecgboot-vue3/src/views/projectFile/components/ProjectFileModal.vue +++ b/jeecgboot-vue3/src/views/projectFile/components/ProjectFileModal.vue @@ -10,6 +10,8 @@ import {BasicForm, useForm} from '/@/components/Form/index'; import {formSchema} from '../ProjectFile.data'; import {saveOrUpdate} from '../ProjectFile.api'; + import {useRoute} from "vue-router"; + const route = useRoute(); // Emits声明 const emit = defineEmits(['register','success']); const isUpdate = ref(true); @@ -43,6 +45,9 @@ async function handleSubmit(v) { try { let values = await validate(); + //设置项目id + values.porjectId = route.query.id + values.fileFlag = 'fujian' setModalProps({confirmLoading: true}); //提交表单 await saveOrUpdate(values, isUpdate.value); @@ -73,4 +78,4 @@ :deep(.ant-calendar-picker) { width: 100%; } - \ No newline at end of file + diff --git a/jeecgboot-vue3/src/views/projectFile/zhengwen/components/ProjectFileModal.vue b/jeecgboot-vue3/src/views/projectFile/zhengwen/components/ProjectFileModal.vue index 26fd80c..478cdf8 100644 --- a/jeecgboot-vue3/src/views/projectFile/zhengwen/components/ProjectFileModal.vue +++ b/jeecgboot-vue3/src/views/projectFile/zhengwen/components/ProjectFileModal.vue @@ -10,6 +10,8 @@ import {BasicForm, useForm} from '/@/components/Form/index'; import {formSchema} from '../ProjectFile4ZhengWen.data'; import {saveOrUpdate} from '../ProjectFile4ZhengWen.api'; + import {useRoute} from "vue-router"; + const route = useRoute(); // Emits声明 const emit = defineEmits(['register','success']); const isUpdate = ref(true); @@ -43,6 +45,9 @@ async function handleSubmit(v) { try { let values = await validate(); + //设置项目id + values.porjectId = route.query.id + values.fileFlag = 'zhengwen' setModalProps({confirmLoading: true}); //提交表单 await saveOrUpdate(values, isUpdate.value); diff --git a/jeecgboot-vue3/src/views/projectOpinion/components/ProjectOpinionModal.vue b/jeecgboot-vue3/src/views/projectOpinion/components/ProjectOpinionModal.vue index 124ff79..fb9934e 100644 --- a/jeecgboot-vue3/src/views/projectOpinion/components/ProjectOpinionModal.vue +++ b/jeecgboot-vue3/src/views/projectOpinion/components/ProjectOpinionModal.vue @@ -10,6 +10,8 @@ import {BasicForm, useForm} from '/@/components/Form/index'; import {formSchema} from '../ProjectOpinion.data'; import {saveOrUpdate} from '../ProjectOpinion.api'; + import {useRoute} from "vue-router"; + const route = useRoute(); // Emits声明 const emit = defineEmits(['register','success']); const isUpdate = ref(true); @@ -43,6 +45,7 @@ async function handleSubmit(v) { try { let values = await validate(); + values.projectId= route.query.id; setModalProps({confirmLoading: true}); //提交表单 await saveOrUpdate(values, isUpdate.value); @@ -73,4 +76,4 @@ :deep(.ant-calendar-picker) { width: 100%; } - \ No newline at end of file +