1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

feat: 增加去安装按钮

This commit is contained in:
zhengkunwang223 2023-03-08 22:54:16 +08:00 committed by zhengkunwang223
parent 2592d43ef5
commit 5ed3af03da

View File

@ -24,6 +24,7 @@
@change="updateParam" @change="updateParam"
></el-input> ></el-input>
<el-select <el-select
style="width: 100%"
v-model="form[p.envKey]" v-model="form[p.envKey]"
v-if="p.type == 'service'" v-if="p.type == 'service'"
@change="changeService(form[p.envKey], p.services)" @change="changeService(form[p.envKey], p.services)"
@ -35,6 +36,12 @@
:label="service.label" :label="service.label"
></el-option> ></el-option>
</el-select> </el-select>
<span v-if="p.type === 'service' && p.services.length === 0">
<el-link type="primary" :underline="false" @click="toPage(p.key)">
{{ $t('app.toInstall') }}
</el-link>
</span>
<el-row :gutter="10" v-if="p.type == 'apps'"> <el-row :gutter="10" v-if="p.type == 'apps'">
<el-col :span="12"> <el-col :span="12">
<el-form-item :prop="p.prop"> <el-form-item :prop="p.prop">