feat: 优化已安装应用的参数显示 (#6188)

This commit is contained in:
zhengkunwang 2024-08-20 17:40:48 +08:00 committed by GitHub
parent 8187a19e6e
commit 07562c203a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -37,7 +37,7 @@
"codemirror": "^6.0.1", "codemirror": "^6.0.1",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"element-plus": "^2.7.5", "element-plus": "^2.7.5",
"fit2cloud-ui-plus": "^1.1.4", "fit2cloud-ui-plus": "^1.1.6",
"highlight.js": "^11.9.0", "highlight.js": "^11.9.0",
"js-base64": "^3.7.7", "js-base64": "^3.7.7",
"md-editor-v3": "^2.11.3", "md-editor-v3": "^2.11.3",

View File

@ -23,7 +23,11 @@
<el-alert :title="$t('app.updateHelper')" type="warning" :closable="false" class="common-prompt" /> <el-alert :title="$t('app.updateHelper')" type="warning" :closable="false" class="common-prompt" />
<el-form @submit.prevent ref="paramForm" :model="paramModel" label-position="top" :rules="rules"> <el-form @submit.prevent ref="paramForm" :model="paramModel" label-position="top" :rules="rules">
<div v-for="(p, index) in params" :key="index"> <div v-for="(p, index) in params" :key="index">
<el-form-item :prop="p.key" :label="getLabel(p)"> <el-form-item
:prop="p.key"
:label="getLabel(p)"
v-if="p.showValue == undefined || p.showValue == ''"
>
<el-input <el-input
v-if="p.type == 'number'" v-if="p.type == 'number'"
type="number" type="number"
@ -45,6 +49,9 @@
</el-select> </el-select>
<el-input v-else v-model.trim="paramModel.params[p.key]" :disabled="!p.edit"></el-input> <el-input v-else v-model.trim="paramModel.params[p.key]" :disabled="!p.edit"></el-input>
</el-form-item> </el-form-item>
<el-form-item :prop="p.key" :label="getLabel(p)" v-else>
<el-input v-model.trim="p.showValue" :disabled="!p.edit"></el-input>
</el-form-item>
</div> </div>
<el-form-item prop="advanced"> <el-form-item prop="advanced">
<el-checkbox v-model="paramModel.advanced" :label="$t('app.advanced')" size="large" /> <el-checkbox v-model="paramModel.advanced" :label="$t('app.advanced')" size="large" />