|
@@ -1,5 +1,6 @@
|
|
import config from '@config/index.js';
|
|
import config from '@config/index.js';
|
|
import {getLabelIndex,fullfillText} from '@common/js/func.js';
|
|
import {getLabelIndex,fullfillText} from '@common/js/func.js';
|
|
|
|
+import {formatContinueDots} from '@utils/tools.js';
|
|
//设置查体数据
|
|
//设置查体数据
|
|
export function set(state,action){
|
|
export function set(state,action){
|
|
let res = Object.assign({},state);
|
|
let res = Object.assign({},state);
|
|
@@ -265,6 +266,7 @@ export function insertLabelData(state,action){
|
|
const {index,data,isReplace,span,searchInEnd}=action;
|
|
const {index,data,isReplace,span,searchInEnd}=action;
|
|
const showText = res.saveText[index];
|
|
const showText = res.saveText[index];
|
|
let tempLabels = data.tagType==4?fullfillText(data.questionMapping).newArr:[data];
|
|
let tempLabels = data.tagType==4?fullfillText(data.questionMapping).newArr:[data];
|
|
|
|
+ tempLabels = formatContinueDots(tempLabels);
|
|
//查体中,默认显示区域搜索出来的标签要默认显示,隐藏区域搜索出的默认隐藏
|
|
//查体中,默认显示区域搜索出来的标签要默认显示,隐藏区域搜索出的默认隐藏
|
|
let hideAreaIndex = [...res.data].reverse().findIndex((it)=>it.showInCheck);
|
|
let hideAreaIndex = [...res.data].reverse().findIndex((it)=>it.showInCheck);
|
|
hideAreaIndex = res.data.length-hideAreaIndex-1; //默认显示的最后一个标签的位置
|
|
hideAreaIndex = res.data.length-hideAreaIndex-1; //默认显示的最后一个标签的位置
|