-
{{ formatDict(userStore.sysLoginParam.loginYLJG, 'HOS') }}
+
+
{{ formatDict(userStore.sysLoginParam.loginYLJG, 'HOS') }}
{{ statsTitle }}
-
+
-
{{ col.dictType ? formatDict(scope.row[col.prop], col.dictType) : scope.row[col.prop] }}
@@ -80,7 +100,7 @@
-
{{ formatDict(userStore.sysLoginParam.loginYLJG, 'HOS') }}
+
{{ formatDict(userStore.sysLoginParam.loginYLJG, 'HOS') }}
{{ statsTitle }}
@@ -127,7 +147,7 @@ const queryParams = ref({
statItems: []
})
const Parameter = ref([])
-const statsTitle = ref('' || '报告统计')
+const statsTitle = ref('')
const tableData = ref([])
const loading = ref(false)
const sumColoums = ref([]) //计算列
@@ -374,6 +394,18 @@ const getParams = () => {
checkBoxs.value = res.data.Column.filter(item => item.paramSequence == 0) //选择列 paramSequence==0
Template.value = res.data.Template //模板
statsTitle.value = res.data.Template.statsTitle //统计标题
+
+
+ Parameter.value.forEach(item => {
+ // 如果是多选类型,则将字典数据转换为数组
+ if (item.paramOptiontype == 1 && item.remark) {
+ const obj = JSON.parse(item.remark);
+ item.remark = Object.entries(obj).map(([value, label]) => ({ label, value }));
+ }
+ if (item.paramOptiontype == 3 && item.remark) {
+ getDictData(item.remark)
+ }
+ })
})
};
@@ -492,7 +524,6 @@ onMounted(() => {
}
.table-container {
- height: calc(100% - 70px);
padding: 10px;
}