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 +