提交 16a71347 authored 作者: kxjia's avatar kxjia

修改样式

上级 043409dc
<template> <template>
<PageWrapper dense contentFullHeight contentClass="flex"> <PageWrapper dense contentFullHeight contentClass="flex">
<StMetricList class="w-1/2 xl:w-1/2" @onClickRow1="clickMetricRow" /> <StMetricList class="w-1/2 xl:w-1/2" @onClickRow1="clickMetricRow" style="height: 100%;"/>
<MetricReportDataMonitor class="w-1/2 xl:w-1/2" :data="metricData" ref="refMetricReportList" /> <MetricReportDataMonitor class="w-1/2 xl:w-1/2" :data="metricData" ref="refMetricReportList" />
</PageWrapper> </PageWrapper>
</template> </template>
......
...@@ -398,22 +398,22 @@ export const MetricColumns: BasicColumn[] = [ ...@@ -398,22 +398,22 @@ export const MetricColumns: BasicColumn[] = [
}, },
{ {
title: '领域名称', title: '领域名称',
align: 'center', align: 'left',
dataIndex: 'domainName', dataIndex: 'domainName',
resizable: true, resizable: true,
width: 120, width: 200,
}, },
{ {
title: '指标名称', title: '指标名称',
align: 'left', align: 'left',
dataIndex: 'mtrcName', dataIndex: 'mtrcName',
width: 180, width: 200,
}, },
{ {
title: '监测频率', title: '监测频率',
align: 'center', align: 'center',
dataIndex: 'collFreq', dataIndex: 'collFreq',
width: 60, width: 80,
customRender: ({ text }) => { customRender: ({ text }) => {
return render.renderDict(text, 'colletrate'); return render.renderDict(text, 'colletrate');
}, },
...@@ -472,7 +472,7 @@ export const searchStandSchema2: FormSchema[] = [ ...@@ -472,7 +472,7 @@ export const searchStandSchema2: FormSchema[] = [
label: '领域', label: '领域',
field: 'domainNo', field: 'domainNo',
component: 'JCascaderDomain', component: 'JCascaderDomain',
colProps: { lg: 5, md: 5 }, colProps: { lg: 6, md: 6 },
componentProps: { componentProps: {
dict: 'st_domain,domain_name,domain_code', dict: 'st_domain,domain_name,domain_code',
pidField: 'upper_domain_code', pidField: 'upper_domain_code',
...@@ -481,10 +481,6 @@ export const searchStandSchema2: FormSchema[] = [ ...@@ -481,10 +481,6 @@ export const searchStandSchema2: FormSchema[] = [
maxHeight: '165px', maxHeight: '165px',
placeholder: '请选择领域', // 补充:添加placeholder placeholder: '请选择领域', // 补充:添加placeholder
}, },
itemProps: {
labelCol: { xs: { span: 24 }, sm: { span: 6 } },
wrapperCol: { xs: { span: 24 }, sm: { span: 18 } }
},
}, },
{ {
label: '名称', label: '名称',
...@@ -499,7 +495,7 @@ export const searchStandSchema2: FormSchema[] = [ ...@@ -499,7 +495,7 @@ export const searchStandSchema2: FormSchema[] = [
label: '频率', label: '频率',
field: 'collFreq', field: 'collFreq',
component: 'JDictSelectTag', component: 'JDictSelectTag',
colProps: { lg: 5, md: 5 }, colProps: { lg: 6, md: 6 },
componentProps: { componentProps: {
dictCode: 'colletrate', dictCode: 'colletrate',
placeholder: '请选择频率', // 补充:添加placeholder placeholder: '请选择频率', // 补充:添加placeholder
......
...@@ -142,17 +142,17 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -142,17 +142,17 @@ export const searchFormSchema: FormSchema[] = [
label: '开始日期', label: '开始日期',
field: 'stFillTime', field: 'stFillTime',
component: 'DatePicker', component: 'DatePicker',
colProps: {lg: 8}, colProps: {xs: 12, sm: 12, md: 12, lg: 12, xl: 12},
defaultValue: (new Date().getFullYear()-3) +"-"+ (new Date().getMonth()+1) +"-"+ (new Date().getDate()), defaultValue: (new Date().getFullYear()-3) +"-"+ (new Date().getMonth()+1) +"-"+ (new Date().getDate()),
itemProps:{labelCol:{xs: {span: 24},sm: {span: 12},},wrapperCol:{xs: {span: 24},sm: {span: 16},}}, itemProps:{labelCol:{xs: {span: 12},sm: {span: 12},},wrapperCol:{xs: {span: 12},sm: {span: 12},}},
}, },
{ {
label: '结束日期', label: '结束日期',
field: 'endFillTime', field: 'endFillTime',
defaultValue:new Date(), defaultValue:new Date(),
component: 'DatePicker', component: 'DatePicker',
colProps: {lg: 9}, colProps: {xs: 12, sm: 12, md: 12, lg: 12, xl: 12},
itemProps:{labelCol:{xs: {span: 24},sm: {span: 12},},wrapperCol:{xs: {span: 24},sm: {span: 16},}}, itemProps:{labelCol:{xs: {span: 12},sm: {span: 12},},wrapperCol:{xs: {span: 12},sm: {span: 12},}},
}, },
]; ];
//表单数据 //表单数据
......
<template> <template>
<div class="m-4 mr-0 overflow-hidden bg-white" style="width:60%"> <div class="m-4 mr-0 overflow-hidden bg-white">
<a-row :gutter="10" style="margin-top:15px;padding: 1px;height: 36px;" > <a-row :gutter="10" style="margin-top:15px;padding: 10px;height: 36px;" >
<a-col :lg="17"> <a-col span="18">
<BasicForm @register="registerForm"/> <BasicForm @register="registerForm"/>
</a-col> </a-col>
<a-col :lg="7"> <a-col span="6">
<a-space :size="5"> <a-space :size="5">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery" >查询</a-button> <a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery" >查询</a-button>
<a-button type="primary" preIcona="nt-design:reload-outlined" @click="searchReset" >重置</a-button> <a-button type="primary" preIcona="nt-design:reload-outlined" @click="searchReset" >重置</a-button>
...@@ -43,7 +43,7 @@ const chartRef = ref<HTMLDivElement | null>(null); ...@@ -43,7 +43,7 @@ const chartRef = ref<HTMLDivElement | null>(null);
const { setOptions, echarts } = useECharts(chartRef as Ref<HTMLDivElement>); const { setOptions, echarts } = useECharts(chartRef as Ref<HTMLDivElement>);
const [registerForm, {setFieldsValue,getFieldsValue}] = useForm({ const [registerForm, {setFieldsValue,getFieldsValue}] = useForm({
//labelWidth: 150, labelWidth: 120,
schemas: searchFormSchema, schemas: searchFormSchema,
showActionButtonGroup: false, showActionButtonGroup: false,
baseColProps: {span: 24} baseColProps: {span: 24}
......
<template> <template>
<div class="m-4 mr-0 overflow-hidden bg-white"> <a-card style="height: 100%;margin-top: 13px;">
<BasicTable <BasicTable @register="registerTable" @selection-change="handleRowSelection" />
@register="registerTable" </a-card>
@selection-change="handleRowSelection"
class="pb-10"
/>
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
...@@ -33,6 +29,7 @@ ...@@ -33,6 +29,7 @@
// 表格配置 // 表格配置
const [registerTable, { getSelectRows, setSelectedRowKeys, setProps }] = useTable({ const [registerTable, { getSelectRows, setSelectedRowKeys, setProps }] = useTable({
title: '', title: '',
size: 'big',
api: getApi(), api: getApi(),
columns: MetricColumns, columns: MetricColumns,
showTableSetting: false, showTableSetting: false,
...@@ -42,14 +39,17 @@ ...@@ -42,14 +39,17 @@
immediate: true, // 改为手动触发,避免重复请求 immediate: true, // 改为手动触发,避免重复请求
bordered: true, bordered: true,
showIndexColumn: false, showIndexColumn: false,
scroll: {
y: 'calc(100vh - 200px)'
},
defSort: { defSort: {
column: 'mtrcNo', column: 'mtrcNo',
order: 'asc', order: 'asc',
}, },
rowSelection: { rowSelection: {
type: 'radio', type: 'radio',
columnWidth: 30, width: 20,
columnTitle: '选择', title: '选择',
}, },
handleSearchInfoFn: (info) => info, handleSearchInfoFn: (info) => info,
formConfig: { formConfig: {
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<a-breadcrumb-item></a-breadcrumb-item> <a-breadcrumb-item></a-breadcrumb-item>
</a-breadcrumb> </a-breadcrumb>
<a-card v-show="curActiveKey==1" bordered="false" style="width:100%"> <a-card v-show="curActiveKey==1" bordered="false" style="width:100%">
<div style="margin:10px;height:70vh;width:100%;"> <div style="margin:10px;height:70vh;width:100%;background:red;">
<FileViewer ref="refShowFile"></FileViewer> <ShowFileContent ref="refShowFile"></ShowFileContent>
</div> </div>
</a-card> </a-card>
<a-card title="" v-show="curActiveKey==2" :bordered="false" style="width: 100%"> <a-card title="" v-show="curActiveKey==2" :bordered="false" style="width: 100%">
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
import { ref,nextTick } from 'vue'; import { ref,nextTick } from 'vue';
import { getAllCheckMethodByItem } from './api/AuditCheckMethodItem.api'; import { getAllCheckMethodByItem } from './api/AuditCheckMethodItem.api';
import { queryAllChecks } from './api/AuditCheckMethod.api'; import { queryAllChecks } from './api/AuditCheckMethod.api';
import FileViewer from '/@/components/onlinePreview/FileViewer.vue' import ShowFileContent from './modal/ShowFileContent.vue'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论