feat: 报告参数增加input类型

This commit is contained in:
chenjinsong
2023-03-08 17:57:01 +08:00
parent 43c79b94f1
commit fb9034229e
2 changed files with 22 additions and 19 deletions

View File

@@ -233,9 +233,12 @@
<!-- <el-input v-model="param.value" placeholder=" " v-for="(param, index) in editObject.categoryParams" :key="index" size="small" style="vertical-align: unset;" :disabled="!!editObject.id">
<template #prepend>{{param.key}}</template>
</el-input>-->
<template v-for="(param, index) in editObject.categoryParams" :key="index">
<el-input v-if="param.labelType === 'input'" v-model="param.value" placeholder=" " size="small" style="vertical-align: unset;" :disabled="!!editObject.id">
<template #prepend>{{param.key}}</template>
</el-input>
<el-select v-model="param.value"
v-for="(param, index) in editObject.categoryParams"
:key="index"
v-else
class="right-box__select right-box__select--param"
placeholder=" "
filterable
@@ -251,8 +254,8 @@
<el-option :key="p" :value="p" v-for="p in paramOption.options"></el-option>
</template>
</template>
</el-select>
</template>
</el-form-item>
</el-form>
</div>

View File

@@ -210,7 +210,7 @@ export default {
methods: {
queryGetTempData () {
this.builtinLeftLoading = true
get(api.reportCategory).then(res => {
get(api.reportCategory, { pageSize: 999 }).then(res => {
if (res.code === 200) {
this.builtinReportLeftMenu = res.data.list.map(c => {
return {