Browse Source

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

pull/6190/head
zhengkunwang 3 months ago committed by GitHub
parent
commit
07562c203a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      frontend/package.json
  2. 9
      frontend/src/views/app-store/installed/detail/index.vue

2
frontend/package.json

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

9
frontend/src/views/app-store/installed/detail/index.vue

@ -23,7 +23,11 @@
<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">
<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
v-if="p.type == 'number'"
type="number"
@ -45,6 +49,9 @@
</el-select>
<el-input v-else v-model.trim="paramModel.params[p.key]" :disabled="!p.edit"></el-input>
</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>
<el-form-item prop="advanced">
<el-checkbox v-model="paramModel.advanced" :label="$t('app.advanced')" size="large" />

Loading…
Cancel
Save