|
|
@@ -1,22 +1,30 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- 透前准备
|
|
|
+ <div class="m-4">
|
|
|
+ <!-- 透前准备
|
|
|
<a-button type="primary" @click="plusFn">
|
|
|
{{ countRef }}
|
|
|
- </a-button>
|
|
|
- <XTTab
|
|
|
- type="illness"
|
|
|
- :width="120"
|
|
|
- :selected="tabSelected"
|
|
|
- :data="tabData"
|
|
|
- @item-click="callTab"
|
|
|
- />
|
|
|
+ </a-button> -->
|
|
|
+ <XTTitle title="透析病历" :right-data="titleData" />
|
|
|
+
|
|
|
<div class="mt-6" />
|
|
|
<XTTab type="illness11" :selected="tabSelected" :data="tabData1" @item-click="callTab" />
|
|
|
<div class="mt-6" />
|
|
|
<div class="mt-6" />
|
|
|
<XTTab type="illness11" :selected="tabSelected" :data="tabData2" @item-click="callTab" />
|
|
|
<div class="mt-6" />
|
|
|
+ <div class="flex justify-between my-4">
|
|
|
+ <XTTab
|
|
|
+ type="illness"
|
|
|
+ :width="120"
|
|
|
+ :selected="tabSelected"
|
|
|
+ :data="tabData"
|
|
|
+ @item-click="callTab"
|
|
|
+ />
|
|
|
+ <XTForm :form-data="formData" />
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <Sift :data="siftData" />
|
|
|
+ </div>
|
|
|
<div class="m-6">
|
|
|
<BasicForm @register="registerForm" @field-value-change="filedChange" />
|
|
|
</div>
|
|
|
@@ -30,9 +38,6 @@
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <XTForm :form-data="formData" />
|
|
|
- </div>
|
|
|
<div class="mx-6 my-2">
|
|
|
<ChartsCard
|
|
|
title="透前血压趋势"
|
|
|
@@ -54,15 +59,13 @@
|
|
|
<div class="mx-6 my-2">
|
|
|
<TimeLine :data="timeLineData" @hover="callHover">
|
|
|
<template #head>
|
|
|
- <div class="timeline-outer" v-if="timeOuter">
|
|
|
- <div
|
|
|
- class="timeline-outer_item animate__animated animate__slideInLeft"
|
|
|
- @click="handleAdd"
|
|
|
- >AVF</div
|
|
|
- >
|
|
|
- <div class="timeline-outer_item animate__animated animate__slideInLeft">AVH</div>
|
|
|
- <div class="timeline-outer_item animate__animated animate__slideInLeft">TCG</div>
|
|
|
- </div>
|
|
|
+ <transition class="animate__animated animate__slideInLeft">
|
|
|
+ <div class="timeline-outer" v-if="timeOuter">
|
|
|
+ <div class="timeline-outer_item" @click="handleAdd">AVF</div>
|
|
|
+ <div class="timeline-outer_item">AVH</div>
|
|
|
+ <div class="timeline-outer_item">TCG</div>
|
|
|
+ </div>
|
|
|
+ </transition>
|
|
|
</template>
|
|
|
</TimeLine>
|
|
|
</div>
|
|
|
@@ -86,6 +89,7 @@
|
|
|
import { XTTab } from '/@/components/XTTab/index';
|
|
|
import { XTCard } from '/@/components/XTCard/index';
|
|
|
import { XTForm } from '/@/components/XTForm/index';
|
|
|
+ import { XTTitle } from '/@/components/XTTitle/index';
|
|
|
import { ColorEnum } from '/@/enums/colorEnum';
|
|
|
import { BasicForm, useForm } from '/@/components/Form';
|
|
|
import { dataFormSchema, columns } from './data';
|
|
|
@@ -95,10 +99,38 @@
|
|
|
import DescCard from '/@/components/XTCard/src/DescCard.vue';
|
|
|
import TimeLine from '/@/components/XTTimeLine/src/TimeLine.vue';
|
|
|
import List from '/@/components/XTList/src/List.vue';
|
|
|
- import { TransitionPresets, useTransition } from '@vueuse/core';
|
|
|
+ import { Sift } from '/@/components/XTList/index';
|
|
|
+ // import { TransitionPresets, useTransition } from '@vueuse/core';
|
|
|
|
|
|
const tabSelected = ref('0');
|
|
|
const dataSource = ref([]);
|
|
|
+ const titleData = [
|
|
|
+ {
|
|
|
+ type: 'import',
|
|
|
+ icon: 'icon-xt-import_default',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'export',
|
|
|
+ icon: 'icon-xt-export_default',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'add',
|
|
|
+ btnIcon: 'icon-xt-add_default',
|
|
|
+ btnText: '患者建档',
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ const siftData = [
|
|
|
+ {
|
|
|
+ field: 'gender',
|
|
|
+ label: '性别',
|
|
|
+ value: '男',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'age',
|
|
|
+ label: '年龄区间',
|
|
|
+ value: '25岁-50岁',
|
|
|
+ },
|
|
|
+ ];
|
|
|
const chartData = {
|
|
|
colors: [
|
|
|
{
|
|
|
@@ -206,7 +238,7 @@
|
|
|
},
|
|
|
];
|
|
|
const timeOuter = ref(false);
|
|
|
- onMounted(() => {
|
|
|
+ onMounted(async () => {
|
|
|
for (let i = 0; i < 10; i++) {
|
|
|
const obj = {
|
|
|
createTime: '2023-05-23 10:09:48',
|
|
|
@@ -224,15 +256,28 @@
|
|
|
};
|
|
|
dataSource.value.push(obj);
|
|
|
}
|
|
|
+
|
|
|
+ await setFieldsValue({
|
|
|
+ configName333: {
|
|
|
+ bool: 1,
|
|
|
+ remark: '321321dsada',
|
|
|
+ dictValues: ['DIC_BIZ', '-1'],
|
|
|
+ },
|
|
|
+ configValue: [100, 150],
|
|
|
+ idCard: {
|
|
|
+ input: '测试',
|
|
|
+ dictValue: 'DIC_BIZ',
|
|
|
+ },
|
|
|
+ });
|
|
|
});
|
|
|
- const count = ref(0);
|
|
|
- const countRef = useTransition(count, {
|
|
|
- duration: 1000,
|
|
|
- transition: TransitionPresets.easeInCirc,
|
|
|
- });
|
|
|
- function plusFn() {
|
|
|
- count.value = Math.round(Math.random() * 100);
|
|
|
- }
|
|
|
+ // const count = ref(0);
|
|
|
+ // const countRef = useTransition(count, {
|
|
|
+ // duration: 1000,
|
|
|
+ // transition: TransitionPresets.easeInCirc,
|
|
|
+ // });
|
|
|
+ // function plusFn() {
|
|
|
+ // count.value = Math.round(Math.random() * 100);
|
|
|
+ // }
|
|
|
// const [registerTable, { reload, getCacheColumns, setColumns }] = useTable({
|
|
|
const [registerTable] = useTable({
|
|
|
id: 'sys_config',
|
|
|
@@ -250,10 +295,10 @@
|
|
|
showIndexColumn: false,
|
|
|
pagination: false,
|
|
|
// maxHeight: 350,
|
|
|
- canResize: true,
|
|
|
+ canResize: false,
|
|
|
});
|
|
|
|
|
|
- const [registerForm] = useForm({
|
|
|
+ const [registerForm, { setFieldsValue }] = useForm({
|
|
|
layout: 'vertical',
|
|
|
labelWidth: '100%',
|
|
|
baseColProps: {
|
|
|
@@ -373,9 +418,17 @@
|
|
|
format: 'YYYY-MM-DD',
|
|
|
valueFormat: 'YYYY-MM-DD',
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'text233',
|
|
|
+ componentType: 'RangePicker',
|
|
|
+ placeholder: '请输入',
|
|
|
+ format: 'YYYY-MM-DD',
|
|
|
+ valueFormat: 'YYYY-MM-DD',
|
|
|
+ },
|
|
|
{
|
|
|
name: 'filter',
|
|
|
componentType: 'IconBtn',
|
|
|
+ count: 4,
|
|
|
},
|
|
|
];
|
|
|
// card 标签组
|