parent
05b76d1570
commit
87cc82ee38
|
@ -8,7 +8,7 @@
|
|||
clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="4" v-if="!hideButton">
|
||||
<div style="float: right;width: fit-content;">
|
||||
<div style="float: left; margin-right: 8px;">
|
||||
<slot name="other"></slot>
|
||||
|
@ -157,6 +157,7 @@ export default {
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
hideButton: Boolean,
|
||||
ifCreate: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
|
|
@ -68,14 +68,19 @@
|
|||
@cancel="dialogVisible = false"
|
||||
@confirm="save"/>
|
||||
</template>
|
||||
<el-form label-width="80px" :rules="rules" style="display: flow-root">
|
||||
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
|
||||
<el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable>
|
||||
<el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row>
|
||||
<el-col :span="20">
|
||||
<el-form label-width="80px" :rules="rules" style="display: flow-root">
|
||||
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
|
||||
<el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable>
|
||||
<el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<environment-edit :if-create="ifCreate" :environment="currentEnvironment" ref="environmentEdit" @close="close"
|
||||
:hide-button="true"
|
||||
:project-id="currentProjectId" @refreshAfterSave="refresh">
|
||||
</environment-edit>
|
||||
</el-dialog>
|
||||
|
|
Loading…
Reference in New Issue