修改指标管理定义和属性的时间选择框以及数据问题报表界面的调试信息

main
于阔 8 months ago
parent 2162f48bff
commit 7e74faea44

Binary file not shown.

@ -49,7 +49,7 @@ export const exportExcelApi = (params: any) => {
/** 生成WordBytes */ /** 生成WordBytes */
export const saveWordBytes = (tId?: string, organCode?: string, date?: string) : Promise<IResponse> => { export const saveWordBytes = (tId?: string, organCode?: string, date?: string) : Promise<IResponse> => {
return request.postJson({ url: '/RepDataProblem/sdi/reporting/RepDataProblem/RepDataProblemSaveWordBytes', data:{tId,organCode,date}}); return request.postJson({ url: '/RepDataProblem/spi/reporting/RepDataProblem/RepDataProblemSaveWordBytes', data:{tId,organCode,date}});
}; };
/** 获取某个字典 */ /** 获取某个字典 */

@ -109,25 +109,25 @@ const tableColumns = reactive<TableColumn[]>([
} }
} }
}, },
{ // {
field: 'indexcalType', // field: 'indexcalType',
label: '指标计算类型', // label: '',
slots:{ // slots:{
default:(data)=>{ // default:(data)=>{
return <span>{data.row.indexcalType?indexCalType_param_LIST.value[data.row.indexcalType - 1]?.label:''}</span> // return <span>{data.row.indexcalType?indexCalType_param_LIST.value[data.row.indexcalType - 1]?.label:''}</span>
} // }
} // }
}, // },
{ // {
field: 'indexdataType', // field: 'indexdataType',
label: '指标数据类型', // label: '',
slots:{ // slots:{
default:(data)=>{ // default:(data)=>{
return <span>{data.row.indexdataType?indexDataType_param_LIST.value[data.row.indexdataType - 1]?.label:''}</span> // return <span>{data.row.indexdataType?indexDataType_param_LIST.value[data.row.indexdataType - 1]?.label:''}</span>
} // }
} // }
}, // },
{ {
field: 'beginDate', field: 'beginDate',
label: '开始日期' label: '开始日期'

@ -311,35 +311,35 @@ const formSchema = reactive<FormSchema[]>([
label: "更新原因", label: "更新原因",
component: "Input", component: "Input",
}, },
{
field:"dateList",
label:"日期范围",
component: 'DatePicker',
colProps:{span:24},
componentProps: {
type:'daterange',
valueFormat: 'YYYYMMDD',
style:{width:'100%'}
},
},
// { // {
// field: 'beginDate', // field:"dateList",
// label: '', // label:"",
// component: 'DatePicker', // component: 'DatePicker',
// colProps:{span:24},
// componentProps: { // componentProps: {
// type:'daterange',
// valueFormat: 'YYYYMMDD', // valueFormat: 'YYYYMMDD',
// style: { width: '100%' } // style:{width:'100%'}
// },
// },
// {
// field: 'endDate',
// label: '',
// component: 'DatePicker',
// componentProps: {
// valueFormat: 'YYYYMMDD',
// style: { width: '100%' }
// }, // },
// }, // },
{
field: 'beginDate',
label: '开始日期',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYYMMDD',
style: { width: '100%' }
},
},
{
field: 'endDate',
label: '结束日期',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYYMMDD',
style: { width: '100%' }
},
},
]) ])
const rules = reactive({ const rules = reactive({
@ -360,8 +360,8 @@ const submit = async () => {
}) })
if (valid) { if (valid) {
const formData = await getFormData(); const formData = await getFormData();
formData.beginDate = formData.dateList[0]; // formData.beginDate = formData.dateList[0];
formData.endDate = formData.dateList[1]; // formData.endDate = formData.dateList[1];
return formData return formData
} }
} }

@ -20,7 +20,7 @@ import Write from './components/Write.vue'
import { Dialog } from '@/components/Dialog' import { Dialog } from '@/components/Dialog'
import { getWidth } from '@/utils'; import { getWidth } from '@/utils';
import { Upload } from '@/components/Upload' import { Upload } from '@/components/Upload'
import { TARGET_STATUS_LIST } from './constants';
import {useRoute} from "vue-router" import {useRoute} from "vue-router"
let indexsetCode = ''; let indexsetCode = '';
@ -77,6 +77,15 @@ const tableColumns = reactive<TableColumn[]>([
field: 'targetName', field: 'targetName',
label: '指标属性名称' label: '指标属性名称'
}, },
{
field: 'status',
label: '状态',
slots:{
default:(data)=>{
return TARGET_STATUS_LIST.find(item=>item.value==data.row.status)?.label
}
}
},
{ {
field: 'beginDate', field: 'beginDate',
label: '开始日期' label: '开始日期'
@ -85,6 +94,10 @@ const tableColumns = reactive<TableColumn[]>([
field: 'endDate', field: 'endDate',
label: '结束日期' label: '结束日期'
}, },
// {
// field: 'targetOrder',
// label: '',
// },
{ {
field: 'action', field: 'action',
label: t('tableDemo.action'), label: t('tableDemo.action'),

@ -24,10 +24,10 @@ const detailSchema = ref<DescriptionsSchema[]>([
field: 'targetName', field: 'targetName',
label: '栏名称' label: '栏名称'
}, },
{ // {
field: 'targetOrder', // field: 'targetOrder',
label: '排序' // label: ''
}, // },
{ {
field: 'status', field: 'status',
label: '状态' label: '状态'

@ -52,20 +52,39 @@ const formSchema = reactive<FormSchema[]>([
}, },
}, },
{
field: 'beginDate',
label: '开始日期',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYYMMDD',
style:{width:'100%'}
},
},
{
field: 'endDate',
label: '结束日期',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYYMMDD',
style:{width:'100%'}
},
},
// { // {
// field: 'beginDate', // field: 'targetOrder',
// label: '', // label: '',
// component: 'DatePicker', // component: 'Input',
// componentProps: { // componentProps: {
// valueFormat: 'YYYYMMDD', // type:'number'
// style:{width:'100%'}
// }, // },
// }, // },
// { // {
// field: 'endDate', // field:"dateList",
// label: '', // label:"",
// component: 'DatePicker', // component: 'DatePicker',
// colProps:{span:24},
// componentProps: { // componentProps: {
// type:'daterange',
// valueFormat: 'YYYYMMDD', // valueFormat: 'YYYYMMDD',
// style:{width:'100%'} // style:{width:'100%'}
// }, // },
@ -78,26 +97,7 @@ const formSchema = reactive<FormSchema[]>([
options:TARGET_STATUS_LIST, options:TARGET_STATUS_LIST,
style:{width:'100%'}, style:{width:'100%'},
}, },
value:1 value:"1"
},
{
field: 'targetOrder',
label: '排序',
component: 'Input',
componentProps: {
type:'number'
},
},
{
field:"dateList",
label:"日期范围",
component: 'DatePicker',
colProps:{span:24},
componentProps: {
type:'daterange',
valueFormat: 'YYYYMMDD',
style:{width:'100%'}
},
}, },
{ {
field: 'isOrgCollect', field: 'isOrgCollect',
@ -114,9 +114,9 @@ const rules = reactive({
indexsetCode: [required()], indexsetCode: [required()],
targetCode: [required()], targetCode: [required()],
targetName: [required()], targetName: [required()],
dateList: [required()], // dateList: [required()],
// beginDate: [required()], beginDate: [required()],
// endDate: [required()], endDate: [required()],
}) })
const submit = async () => { const submit = async () => {
@ -126,8 +126,8 @@ const submit = async () => {
}) })
if (valid) { if (valid) {
let formData = await getFormData(); let formData = await getFormData();
formData.beginDate = formData.dateList[0]; // formData.beginDate = formData.dateList[0];
formData.endDate = formData.dateList[1]; // formData.endDate = formData.dateList[1];
return formData return formData
} }
} }

@ -1,11 +1,11 @@
//指标属性定义状态列表 //指标属性定义状态列表
export const TARGET_STATUS_LIST = [ export const TARGET_STATUS_LIST = [
{ {
value:1, value:"1",
label:"启用" label:"启用"
}, },
{ {
value:0, value:"0",
label:"停用" label:"停用"
}, },
] ]

@ -285,7 +285,7 @@ const onContextMenu = (row: any, column: any, cell: HTMLTableCellElement, event:
/> />
</ContentWrap> </ContentWrap>
<Dialog v-model="dialogVisible" :title="dialogTitle" style="min-width:800px;"> <Dialog class="DrillingOrAnalysisDialog" v-model="dialogVisible" :title="dialogTitle" style="min-width:800px;">
<DrillingOrAnalysis <DrillingOrAnalysis
ref="DrillingOrAnalysisRef" ref="DrillingOrAnalysisRef"
:current-row="currentRow" :current-row="currentRow"
@ -293,4 +293,9 @@ const onContextMenu = (row: any, column: any, cell: HTMLTableCellElement, event:
:drillingType="DrillingType" :drillingType="DrillingType"
/> />
</Dialog> </Dialog>
</template> </template>
<style scoped>
.DrillingOrAnalysisDialog >>> .el-scrollbar__bar{
display: none;
}
</style>

@ -1,6 +1,7 @@
<!-- 数据分析 --> <!-- 数据分析 -->
<template> <template>
<Table <Table
class="dataTable"
align="center" align="center"
headerAlign="center" headerAlign="center"
:columns="tableColumns" :columns="tableColumns"
@ -8,7 +9,7 @@
:loading="loading" :loading="loading"
row-key="randomCode" row-key="randomCode"
lazy lazy
style="max-height:300px;overflow:auto;" height="200"
:showAction="false" :showAction="false"
:load="loadJunior" :load="loadJunior"
:tree-props="{ children: 'children', hasChildren: 'hasChildren'}" :tree-props="{ children: 'children', hasChildren: 'hasChildren'}"
@ -122,4 +123,68 @@ const loadJunior = async (
} }
</script> </script>
<style scoped> <style scoped>
.dataTable{
overflow-x: hidden;
}
.dataTable::-webkit-scrollbar {
width: 5px;
height: 1px;
}
.dataTable::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: skyblue;
background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,0.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.2) 50%,rgba(255,255,255,0.2) 75%,transparent 75%,transparent);
}
.dataTable::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
background: #ededed;
border-radius: 10px;
}
.r-anchor-list {
background: var(--bg-color-content);
width: 100%;
display: flex;
align-items: center;
padding: 5px 20px;
position: absolute;
top: 0;
left: 0;
z-index: 100;
margin-bottom:10px;
}
.r-anchor-list a {
color: var(--color-main-text);
position: relative;
min-width: 88px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
padding: 0 20px;
border:none;
text-decoration: none;
}
.r-anchor-list a::after {
content: "";
position: absolute;
border-bottom: 2px solid;
border-color: var(--border-color-active);
bottom: 0;
left: 100%;
width: 0;
-webkit-transition: width 350ms, left 350ms;
-moz-transition: width 350ms, left 350ms;
transition: width 350ms, left 350ms
}
.r-anchor-list a:hover::after {
left: 0;
width: 100%;
-webkit-transition: width 350ms;
-moz-transition: width 350ms;
transition: width 350ms
}
</style> </style>

@ -124,10 +124,10 @@ const tableColumns = reactive<TableColumn[]>([
} }
} }
}, },
{ // {
field: 'description', // field: 'description',
label: '规则描述' // label: ''
}, // },
// { // {
// field: 'createDate', // field: 'createDate',
// label: '' // label: ''

@ -65,6 +65,10 @@ export const VIndicatorAttrList = [//指标属性的数据List
column: "指标属性名称",//列项 column: "指标属性名称",//列项
columnValue: "targetName",//列项对应的值 columnValue: "targetName",//列项对应的值
}, },
{
column: "状态",//列项
columnValue: "status",//列项对应的值
},
{ {
column: '开始日期', column: '开始日期',
columnValue: 'beginDate', columnValue: 'beginDate',
@ -73,6 +77,10 @@ export const VIndicatorAttrList = [//指标属性的数据List
column: '结束日期', column: '结束日期',
columnValue: 'endDate', columnValue: 'endDate',
}, },
// {
// column: '排序',
// columnValue: 'targetOrder',
// }
] ]
export const VIndicatorDefineList = [//指标定义的数据List export const VIndicatorDefineList = [//指标定义的数据List
{ {

Loading…
Cancel
Save