统计参数设置
This commit is contained in:
parent
4556a93e8b
commit
23b6d65f0c
@ -55,7 +55,10 @@
|
||||
<el-table-column :label="`${menuname}编号`" align="center" prop="paramId" v-if="false" />
|
||||
<el-table-column :label="`${menuname}类别`" align="center" prop="paramType" width="100" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<span>
|
||||
<span class="stats-type-cell" :style="{
|
||||
backgroundColor: getparamTypeColor(scope.row.paramType),
|
||||
color: '#fff'
|
||||
}">
|
||||
{{paramTypeOptions.find(item => item.value == scope.row.paramType)?.label || scope.row.paramType}}
|
||||
</span>
|
||||
</template>
|
||||
@ -66,7 +69,7 @@
|
||||
<el-table-column label="默认值" align="left" prop="paramDefvalue" width="80" show-overflow-tooltip />
|
||||
<el-table-column label="前置条件" align="left" prop="precondition" width="100" show-overflow-tooltip />
|
||||
<el-table-column label="筛选条件" align="left" prop="paramSql" width="120" show-overflow-tooltip />
|
||||
<el-table-column label="筛选类型" align="left" prop="paramOptiontype" width="80" show-overflow-tooltip>
|
||||
<el-table-column label="框体类型" align="left" prop="paramOptiontype" width="80" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<span>
|
||||
{{paramOptiontypeOptions.find(item => item.value === scope.row.paramOptiontype)?.label ||
|
||||
@ -135,7 +138,7 @@
|
||||
</template>
|
||||
</el-autocomplete>
|
||||
</el-form-item>
|
||||
<el-form-item :label="`${menuname}筛选类型`" prop="paramOptiontype">
|
||||
<el-form-item :label="`${menuname}框体类型`" prop="paramOptiontype">
|
||||
<el-select v-model="form.paramOptiontype" :placeholder="`请选择${menuname}筛选类型`" style="width: 100%">
|
||||
<el-option v-for="item in paramOptiontypeOptions" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
@ -213,7 +216,7 @@ import { copy } from "clipboard";
|
||||
const route = useRoute();
|
||||
// ========== 基础变量声明(避免提前访问) ==========
|
||||
// 菜单名称
|
||||
const menuname = ref("参数明细");
|
||||
const menuname = ref("参数");
|
||||
const statsCode = ref("1");
|
||||
|
||||
const copyOpen = ref(false);
|
||||
@ -222,14 +225,16 @@ const copyTemplateOptions = ref([])
|
||||
|
||||
// 报表类别选项
|
||||
const paramTypeOptions = ref([
|
||||
{ label: "过滤参数", value: "0" },
|
||||
{ label: "显示列", value: "1" },
|
||||
{ label: "副标题", value: "2" },
|
||||
{ label: "汇总栏", value: "3" },
|
||||
{ label: "子查询", value: "4" },
|
||||
{ label: "逻辑条件", value: "5" },
|
||||
{ label: "计算列", value: "6" }
|
||||
{ label: "统计条件", value: "0" ,color: "#3282F6"},
|
||||
{ label: "显示列", value: "1" , color: "#67C23A"},
|
||||
{ label: "副标题", value: "2" , color: "#FF443F"},
|
||||
{ label: "汇总栏", value: "3" , color: "#FF443F"},
|
||||
{ label: "子查询", value: "4" , color: "#FF443F"},
|
||||
{ label: "逻辑条件", value: "5" , color: "#909399"},
|
||||
{ label: "计算列", value: "6" , color: "#C2C024" }
|
||||
]);
|
||||
|
||||
|
||||
//常用默认值
|
||||
const defaultOptions = ref([
|
||||
{ label: "当前日期", value: "[today]" },
|
||||
@ -300,7 +305,7 @@ const queryParams = ref({
|
||||
paramType: undefined,
|
||||
status: undefined,
|
||||
pageNum: 1,
|
||||
pageSize: 30
|
||||
pageSize: 17
|
||||
});
|
||||
|
||||
// 表单校验规则
|
||||
@ -588,5 +593,15 @@ function getTypes(statsCode0) {
|
||||
:deep(.compact-form .el-form-item:last-of-type .el-textarea__inner) {
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
.stats-type-cell {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 26px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 12px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
</style>
|
||||
Loading…
x
Reference in New Issue
Block a user