parent
bbf9eb7bb7
commit
4a98e265a3
@ -0,0 +1,65 @@
|
||||
//指标加工规则的类型信息
|
||||
export const RULE_TYPE_LIST = [
|
||||
// {
|
||||
// value: '0',
|
||||
// label: '指标规则',
|
||||
// name:'ProcedureRule'
|
||||
// },
|
||||
{
|
||||
value: '1',
|
||||
label: 'SQL规则',
|
||||
name:'SqlRule'
|
||||
},
|
||||
// {
|
||||
// value: '2',
|
||||
// label: '存储过程规则',
|
||||
// name:'PureSqlRule'
|
||||
// }
|
||||
]
|
||||
|
||||
//规则周期
|
||||
export const RULE_CYCLE_LIST = [
|
||||
{
|
||||
value: '0',
|
||||
label: '日'
|
||||
},
|
||||
{
|
||||
value: '1',
|
||||
label: '旬'
|
||||
},
|
||||
{
|
||||
value: '2',
|
||||
label: '月'
|
||||
},
|
||||
{
|
||||
value: '3',
|
||||
label: '季'
|
||||
},
|
||||
{
|
||||
value: '4',
|
||||
label: '半年'
|
||||
},
|
||||
{
|
||||
value: '5',
|
||||
label: '年'
|
||||
}
|
||||
]
|
||||
|
||||
//选择规则是否有效
|
||||
export const RULE_IS_VALID_LIST = [
|
||||
{
|
||||
value: '0',
|
||||
label: '是'
|
||||
},
|
||||
{
|
||||
value: '1',
|
||||
label: '否'
|
||||
}
|
||||
]
|
||||
|
||||
// 字段类型字典项
|
||||
export const FIELD_TYPES_LIST = [
|
||||
{ label: '报表日期', value: 'REPORT_DATE' },
|
||||
{ label: '机构', value: 'ORGAN_ID' },
|
||||
{ label: '其他', value: '' },
|
||||
];
|
@ -0,0 +1,85 @@
|
||||
<!-- 钻取或者分析的弹框 -->
|
||||
<template>
|
||||
<ContentWrap>
|
||||
<!-- 被钻取的指标信息 -->
|
||||
<ElDivider>被钻取的指标信息</ElDivider>
|
||||
<Form @register="formRegister" :schema="formSchema" />
|
||||
<!-- 钻取详情 -->
|
||||
<ElDivider>钻取详情</ElDivider>
|
||||
<!-- 按机构钻取 -->
|
||||
<DataDillingByOrgan :IndexData="IndexData" v-show="DrillingTYPE == 'DataDillingByOrgan'" />
|
||||
<!-- 趋势分析 -->
|
||||
|
||||
</ContentWrap>
|
||||
</template>
|
||||
<script lang="tsx" setup>
|
||||
import { ref,PropType,reactive } from 'vue'
|
||||
import {ElDivider} from 'element-plus';
|
||||
import { Form, FormSchema } from '@/components/Form'
|
||||
import { useForm } from '@/hooks/web/useForm'
|
||||
|
||||
import DataDillingByOrgan from './components/DataDillingByOrgan.vue';//按机构钻取的表格信息
|
||||
//趋势分析
|
||||
|
||||
const { formRegister, formMethods } = useForm()
|
||||
const { setValues } = formMethods
|
||||
const formSchema = reactive<FormSchema[]>([
|
||||
{
|
||||
field: 'indexSetName',
|
||||
label: '指标集',
|
||||
component: 'Input',
|
||||
readonly: true,
|
||||
colProps: {
|
||||
span: 12,
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'indexItemCode',
|
||||
label: '指标代码',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'indexName',
|
||||
label: '指标名称',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'targetName',
|
||||
label: '指标属性',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'organName',
|
||||
label: '机构',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'paramDate',
|
||||
label: '报告期',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'cprevDayValue',
|
||||
label: '指标数值',//数据是有本期值、上期值、上年值
|
||||
component: 'Input',
|
||||
}
|
||||
|
||||
])
|
||||
const props = defineProps({
|
||||
currentRow: {
|
||||
type: Object as PropType<any>,
|
||||
default: () => null
|
||||
},
|
||||
DrillingType: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
})
|
||||
|
||||
const IndexData = reactive(props.currentRow);//当前列项的指标信息
|
||||
const DrillingTYPE = ref(props.DrillingType);//获取数据钻取类型
|
||||
|
||||
setValues(props.currentRow);//创建初始值
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
@ -0,0 +1 @@
|
||||
<!-- 趋势分析 -->
|
@ -1,91 +0,0 @@
|
||||
<script setup lang="tsx">
|
||||
import { PropType, ref } from 'vue'
|
||||
import { TableData } from '@/api/dataset/RepSetRule/types'
|
||||
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'
|
||||
|
||||
const detailSchema = ref<DescriptionsSchema[]>([
|
||||
{
|
||||
field: 'ruleName',
|
||||
label: '规则名称'
|
||||
},
|
||||
{
|
||||
field: 'ruleClass',
|
||||
label: '规则分类'
|
||||
},
|
||||
{
|
||||
field: 'startDate',
|
||||
label: '启用日期'
|
||||
},
|
||||
{
|
||||
field: 'ruleProperty',
|
||||
label: '规则属性'
|
||||
},
|
||||
{
|
||||
field: 'ruleCycle',
|
||||
label: '规则周期'
|
||||
},
|
||||
{
|
||||
field: 'ruleStatus',
|
||||
label: '是否有效'
|
||||
},
|
||||
{
|
||||
field: 'description',
|
||||
label: '规则描述'
|
||||
},
|
||||
{
|
||||
field: 'createDate',
|
||||
label: '创建日期'
|
||||
},
|
||||
{
|
||||
field: 'createAccount',
|
||||
label: '创建账户'
|
||||
},
|
||||
{
|
||||
field: 'createOrgan',
|
||||
label: '创建机构'
|
||||
},
|
||||
{
|
||||
field: 'ruleJson',
|
||||
label: '规则json'
|
||||
},
|
||||
{
|
||||
field: 'ruleSql',
|
||||
label: '规则sql'
|
||||
},
|
||||
{
|
||||
field: 'organCode',
|
||||
label: '机构编码'
|
||||
},
|
||||
{
|
||||
field: 'failDate',
|
||||
label: '失效日期'
|
||||
},
|
||||
{
|
||||
field: 'indexCode',
|
||||
label: '规则加工指标集编号'
|
||||
},
|
||||
{
|
||||
field: 'machFormulas',
|
||||
label: '规则加载所有公式'
|
||||
},
|
||||
{
|
||||
field: 'itemId',
|
||||
label: '指标代码'
|
||||
},
|
||||
{
|
||||
field: 'itemName',
|
||||
label: '指标名称'
|
||||
}
|
||||
])
|
||||
|
||||
defineProps({
|
||||
currentRow: {
|
||||
type: Object as PropType<TableData>,
|
||||
default: () => {}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Descriptions :schema="detailSchema" :data="currentRow || {}" />
|
||||
</template>
|
Loading…
Reference in new issue