refactor(项目设置): 优化文件库节点创建弹窗,切换文件库节点时不提示必填项

优化文件库节点创建弹窗,切换文件库节点时不提示必填项
This commit is contained in:
song-tianyang 2022-09-19 11:32:59 +08:00 committed by 建国
parent 5ea7ef7f2d
commit 25c7299414
1 changed files with 2 additions and 2 deletions

View File

@ -11,12 +11,12 @@
</el-radio-group> </el-radio-group>
</el-row> </el-row>
<el-form :model="moduleForm" :rules="moduleRule" ref="form" label-width="100px" @submit.native.prevent> <el-form :model="moduleForm" :rules="moduleRule" ref="form" label-width="100px" @submit.native.prevent>
<el-form-item v-show="moduleForm.moduleType === 'module'" <el-form-item v-if="moduleForm.moduleType === 'module'"
:label="$t('test_track.module.name')" :label="$t('test_track.module.name')"
prop="name"> prop="name">
<el-input v-model="moduleForm.name"></el-input> <el-input v-model="moduleForm.name"></el-input>
</el-form-item> </el-form-item>
<div v-show="moduleForm.moduleType === 'repository'"> <div v-if="moduleForm.moduleType === 'repository'">
<el-form-item <el-form-item
:label="$t('project.project_file.repository.name')" :label="$t('project.project_file.repository.name')"
prop="name"> prop="name">