fix(项目设置): 优化系统设置中环境样式设置

优化系统设置中环境样式设置
This commit is contained in:
song-tianyang 2022-04-15 18:01:32 +08:00 committed by TIanyang
parent 05b76d1570
commit 87cc82ee38
2 changed files with 14 additions and 8 deletions

View File

@ -8,7 +8,7 @@
clearable/> clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4" v-if="!hideButton">
<div style="float: right;width: fit-content;"> <div style="float: right;width: fit-content;">
<div style="float: left; margin-right: 8px;"> <div style="float: left; margin-right: 8px;">
<slot name="other"></slot> <slot name="other"></slot>
@ -157,6 +157,7 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
hideButton: Boolean,
ifCreate: { ifCreate: {
type: Boolean, type: Boolean,
default: false default: false

View File

@ -68,6 +68,8 @@
@cancel="dialogVisible = false" @cancel="dialogVisible = false"
@confirm="save"/> @confirm="save"/>
</template> </template>
<el-row>
<el-col :span="20">
<el-form label-width="80px" :rules="rules" style="display: flow-root"> <el-form label-width="80px" :rules="rules" style="display: flow-root">
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')"> <el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
<el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable> <el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable>
@ -75,7 +77,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-col>
</el-row>
<environment-edit :if-create="ifCreate" :environment="currentEnvironment" ref="environmentEdit" @close="close" <environment-edit :if-create="ifCreate" :environment="currentEnvironment" ref="environmentEdit" @close="close"
:hide-button="true"
:project-id="currentProjectId" @refreshAfterSave="refresh"> :project-id="currentProjectId" @refreshAfterSave="refresh">
</environment-edit> </environment-edit>
</el-dialog> </el-dialog>