parent
05b76d1570
commit
87cc82ee38
|
@ -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
|
||||||
|
|
|
@ -68,14 +68,19 @@
|
||||||
@cancel="dialogVisible = false"
|
@cancel="dialogVisible = false"
|
||||||
@confirm="save"/>
|
@confirm="save"/>
|
||||||
</template>
|
</template>
|
||||||
<el-form label-width="80px" :rules="rules" style="display: flow-root">
|
<el-row>
|
||||||
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
|
<el-col :span="20">
|
||||||
<el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable>
|
<el-form label-width="80px" :rules="rules" style="display: flow-root">
|
||||||
<el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
|
||||||
</el-select>
|
<el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable>
|
||||||
</el-form-item>
|
<el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||||
</el-form>
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</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>
|
||||||
|
|
Loading…
Reference in New Issue