From 8d14fec97344df49d58db115852c03b466482bc6 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Wed, 12 Apr 2023 14:47:21 +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