style(flowable): 优化流程相关代码的import顺序和代码结构

This commit is contained in:
2025-12-30 15:11:32 +08:00
parent 54cde91aac
commit d1670b79a0
2528 changed files with 7710 additions and 10794 deletions

View File

@@ -1,4 +1,4 @@
import { bodyTemperature, TOP_KEYS, HEAD_HEIGHT, LINE_HEIGHT } from './config';
import {bodyTemperature, HEAD_HEIGHT, LINE_HEIGHT, TOP_KEYS} from './config';
export default class viewConfig {
constructor({

View File

@@ -1,11 +1,5 @@
import dayjs from 'dayjs';
import {
HospitalName,
temperatureName,
showPainFlag,
getInfoKeys,
getBottomKeys,
} from './template';
import {getBottomKeys, getInfoKeys, HospitalName, showPainFlag, temperatureName,} from './template';
// 存放体温单的配置信息
export const Header = {

View File

@@ -1,28 +1,20 @@
// 数据处理
import * as d3 from 'd3';
import { symbol } from 'd3-shape';
import {symbol} from 'd3-shape';
import {
getTypeData,
getTypeDatas,
setMergeTag,
postpartumDays,
getTypeAnimalHeat,
getDrawData,
getDrawCoolData,
degreesOnline,
getType,
getHeartRate,
disconnectEvents,
getBrokenLine,
degreesOnline,
disconnectEvents,
getBrokenLine,
getHeartRate,
getType,
getTypeAnimalHeat,
getTypeData,
getTypeDatas,
postpartumDays,
setMergeTag,
} from './utils';
import {
HEAD_HEIGHT,
LINE_HEIGHT,
TOP_KEYS,
BOTTOM_KEYS,
symbolArrowHeight,
textLeftMargin,
} from './config';
import {BOTTOM_KEYS, HEAD_HEIGHT, LINE_HEIGHT, symbolArrowHeight, textLeftMargin, TOP_KEYS,} from './config';
export const iconDrawObj = {
// 绘制圆形图标
getDrawRoundIcon: ({ content, data, x, y, fill = 'blue', stroke = 'blue', r = 5 }) => {

View File

@@ -7,6 +7,7 @@
* @FilePath: src\action\nurseStation\temperatureSheet\index.js
*/
import Request from '@/axios/index.js';
const temperaturePath = 'app/temperature';
const getTemperaturePath = 'app/temperature/by-encounter-id';
const delTemperaturePath = 'app/temperature/retired';

View File

@@ -1,40 +1,40 @@
import * as d3 from 'd3';
import {
iconDrawObj,
getG,
getData,
drawTopMask,
drawBottomMask,
initArrow,
lineArrow,
drawSpecialText,
drawSpecialNoTimeText,
drawSurgery,
// drawTagText,
drawBottomSpecialText,
drawBottomMask,
drawBottomSpecialText,
drawSpecialNoTimeText,
drawSpecialText,
drawSurgery,
drawTopMask,
getData,
getG,
iconDrawObj,
initArrow,
lineArrow,
} from './drawfn';
import { getMaxList } from './dataProcess';
import {getMaxList} from './dataProcess';
import {
timeNumber,
nightTime,
leftTEXT,
showPain,
painTEXT,
bodyTemperature,
painScore,
starNumEnv,
endNumEnv,
heartRange,
INFO_KEYS,
Header,
TOP_KEYS,
BOTTOM_KEYS,
HEAD_HEIGHT,
LINE_HEIGHT,
textLeftMargin,
TEXT_MARGIN_BOTTOM,
bodyTemperature,
BOTTOM_KEYS,
endNumEnv,
HEAD_HEIGHT,
Header,
heartRange,
INFO_KEYS,
leftTEXT,
LINE_HEIGHT,
nightTime,
painScore,
painTEXT,
showPain,
starNumEnv,
TEXT_MARGIN_BOTTOM,
textLeftMargin,
timeNumber,
TOP_KEYS,
} from './config';
import ViewConfig from './ViewConfig';
export function init(data = []) {
const ajaxData = getData(data);
const chart = ConnectedScatterplot({