feat: 报告参数增加input类型
This commit is contained in:
@@ -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">
|
<!-- <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>-->
|
||||||
|
<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"
|
<el-select v-model="param.value"
|
||||||
v-for="(param, index) in editObject.categoryParams"
|
v-else
|
||||||
:key="index"
|
|
||||||
class="right-box__select right-box__select--param"
|
class="right-box__select right-box__select--param"
|
||||||
placeholder=" "
|
placeholder=" "
|
||||||
filterable
|
filterable
|
||||||
@@ -251,8 +254,8 @@
|
|||||||
<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>
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user