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,26 +233,29 @@
<!-- <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"> <!-- <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> <template #prepend>{{param.key}}</template>
</el-input>--> </el-input>-->
<el-select v-model="param.value" <template v-for="(param, index) in editObject.categoryParams" :key="index">
v-for="(param, index) in editObject.categoryParams" <el-input v-if="param.labelType === 'input'" v-model="param.value" placeholder=" " size="small" style="vertical-align: unset;" :disabled="!!editObject.id">
:key="index" <template #prepend>{{param.key}}</template>
class="right-box__select right-box__select--param" </el-input>
placeholder=" " <el-select v-model="param.value"
filterable v-else
:disabled="!!editObject.id" class="right-box__select right-box__select--param"
popper-class="right-box-select-dropdown right-box-select-report " placeholder=" "
size="small" filterable
> :disabled="!!editObject.id"
<template #prefix> popper-class="right-box-select-dropdown right-box-select-report "
{{$t(param.i18n)}} size="small"
</template> >
<template v-for="paramOption in paramsOptions"> <template #prefix>
<template v-if="paramOption.key === param.key"> {{$t(param.i18n)}}
</template>
<template v-for="paramOption in paramsOptions">
<template v-if="paramOption.key === param.key">
<el-option :key="p" :value="p" v-for="p in paramOption.options"></el-option> <el-option :key="p" :value="p" v-for="p in paramOption.options"></el-option>
</template> </template>
</template> </template>
</el-select>
</el-select> </template>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@@ -210,7 +210,7 @@ export default {
methods: { methods: {
queryGetTempData () { queryGetTempData () {
this.builtinLeftLoading = true this.builtinLeftLoading = true
get(api.reportCategory).then(res => { get(api.reportCategory, { pageSize: 999 }).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.builtinReportLeftMenu = res.data.list.map(c => { this.builtinReportLeftMenu = res.data.list.map(c => {
return { return {
@@ -265,7 +265,7 @@ export default {
} }
}) })
this.pageObj.total = response.data.total this.pageObj.total = response.data.total
}) })
// TODO 回到顶部 // TODO 回到顶部
} }
}) })