项目申报表单添加 10.18

master
zhc077 1 month ago
parent 9605d25f7a
commit fecd768869
  1. 59
      jeecgboot-vue3/src/views/projectApplication/kejigongguan/projectApplicationList.vue

@ -11,18 +11,18 @@
</a-card> </a-card>
<template #rightFooter> <template #rightFooter>
<a-button @click="cancel">取消</a-button>
<a-button type="primary" @click="submitAll">提交</a-button> <a-button type="primary" @click="submitAll">提交</a-button>
</template> </template>
</PageWrapper> </PageWrapper>
</template> </template>
<script lang="ts"> <script lang="ts">
import {BasicForm, useForm} from '@/components/Form'; import {BasicForm, useForm} from '@/components/Form';
import { defineComponent, ref } from 'vue'; import {defineComponent} from 'vue';
// import PersonTable from './PersonTable.vue'; // import PersonTable from './PersonTable.vue';
import {PageWrapper} from '@/components/Page'; import {PageWrapper} from '@/components/Page';
import { projectBaseInfoSchemas, userSchemas, departSchemas } from './data'; import {departSchemas, projectBaseInfoSchemas, userSchemas} from './data';
import {Card} from 'ant-design-vue'; import {Card} from 'ant-design-vue';
import {defHttp} from "@/utils/http/axios";
import {save4shenbao} from './data.api'; import {save4shenbao} from './data.api';
export default defineComponent({ export default defineComponent({
@ -59,45 +59,35 @@
showActionButtonGroup: false, showActionButtonGroup: false,
}); });
// async function submitForm() {
// let data = getFieldsValue();
// let params = Object.assign({}, formData, data);
// console.log('', params)
// await saveOrUpdate(params, true)
// }
async function submitAll() { async function submitAll() {
try { try {
// if (tableRef.value) { async function submitAll() {
// console.log('table data:', tableRef.value.getDataSource()); try {
// } Promise.all([validateProjectInfoForm(), validateUserForm(), validateDepartForm()]).then(function (results) {
const [projectBaseInfoValues, userValues, deaprtValues] = await Promise.all([validateProjectInfoForm(), validateUserForm(), validateDepartForm()]); const params = {...results[0], ...results[1], ...results[2]}
const param = await Promise.resolve([validateProjectInfoForm(), validateUserForm(), validateDepartForm()]); console.log('results', params);
console.log('projectBaseInfoValues form data:', projectBaseInfoValues); save4shenbao(params);
console.log('userValuesform data:', userValues); });
console.log('deaprtValues form data:', deaprtValues); } catch (error){};
// saveOrUpdate(,false); }
console.log(222222); } catch (error) {
console.log(222222); }
// let param = { id: record.id, useStatus: '1' }; }
// let param = JSON.parse(projectBaseInfoValues);
console.log("param:",JSON.stringify(param));
console.log(333);
// const params = {};
console.log("projectBaseInfoValues:"+projectBaseInfoValues);
save4shenbao(projectBaseInfoValues);
// await reload();
// defHttp.post({ url: "/project/project/save4shenbao", projectBaseInfoValues}, { isTransformResponse: false });
} catch (error) {}
async function cancel() {
alert("kkkkkkk")
// window.close();
} }
// return { register, registerUser, registerDepart, submitAll, tableRef }; // return { register, registerUser, registerDepart, submitAll, tableRef };
return { registerProjectInfo, registerUser, registerDepart, submitAll }; return {registerProjectInfo, registerUser, registerDepart,cancel,submitAll};
}, },
}); });
function cancel2() {
alert("kkkkkkk")
window.close();
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.high-form { .high-form {
@ -108,5 +98,6 @@
:deep(.ant-select-dropdown) { :deep(.ant-select-dropdown) {
z-index: 98 !important; z-index: 98 !important;
} }
/** update-end-author:taoyan date:2022-5-16 for:/issues/63 下拉框z-index问题 */ /** update-end-author:taoyan date:2022-5-16 for:/issues/63 下拉框z-index问题 */
</style> </style>

Loading…
Cancel
Save