From 36e71978a92ee64375b2c339e5e05d47b6b23fba Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 14 Apr 2023 15:18:58 +0800
Subject: [PATCH] 修改接口和页面
---
src/views/experiment/project/components/applyDialog.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/views/experiment/project/components/applyDialog.vue b/src/views/experiment/project/components/applyDialog.vue
index b65f862..9317925 100644
--- a/src/views/experiment/project/components/applyDialog.vue
+++ b/src/views/experiment/project/components/applyDialog.vue
@@ -16,7 +16,7 @@
</el-radio-group>
</el-form-item>
</el-col>
- <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
+ <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20" v-if="applyStartDialogState.applyStartForm.sisStatus==1">
<el-form-item label="安全信息化系统" prop="safeInformationSystem">
<el-input v-model="applyStartDialogState.applyStartForm.safeInformationSystem" placeholder="材料类型" class="input-length">
</el-input>
@@ -42,7 +42,7 @@
const applyStartFormRef = ref()
const applyStartDialogState = reactive<ApplyStartDialogType>({
- title: '',
+ title: '申请开展',
applyStartDialogVisible: false,
applyStartForm: {
id: null,
@@ -57,12 +57,21 @@
const showApplyStartDialog = (value: ProjectType) => {
applyStartDialogState.applyStartDialogVisible = true;
+ applyStartDialogState.applyStartForm = {
+ id: null,
+ sisStatus: null,
+ safeInformationSystem: '',
+ startTime: ''
+ },
applyStartDialogState.applyStartForm.id = <number>value.id
};
const onSubmitApplyStart = () => {
applyStartFormRef.value.validate(async(valid: boolean) => {
if(valid){
+ if(applyStartDialogState.applyStartForm.sisStatus == 2){
+ applyStartDialogState.applyStartForm.safeInformationSystem = ''
+ }
let res = await projectApi().applyProject([applyStartDialogState.applyStartForm]);
if(res.data.code === 100){
emit('refresh')
--
Gitblit v1.9.2