|
@@ -1369,7 +1369,7 @@ function getPushLists(data1,data2){ //推送数据
|
|
}
|
|
}
|
|
|
|
|
|
function getAllString(checkedListImport,assistLabel,flg){
|
|
function getAllString(checkedListImport,assistLabel,flg){
|
|
- let tmpImportLis = [],tmpString='',tmpArr=[];
|
|
|
|
|
|
+ let tmpImportLis = [],tmpString='',tmpArr=[],tmpObj={};
|
|
for(let i = 0;i < checkedListImport.length;i++){
|
|
for(let i = 0;i < checkedListImport.length;i++){
|
|
for(let j = 0;j < checkedListImport[i].length;j++){
|
|
for(let j = 0;j < checkedListImport[i].length;j++){
|
|
tmpImportLis.push(checkedListImport[i][j])
|
|
tmpImportLis.push(checkedListImport[i][j])
|
|
@@ -1379,20 +1379,24 @@ function getAllString(checkedListImport,assistLabel,flg){
|
|
for (let i = 0; i < tempArr.length; i++) {
|
|
for (let i = 0; i < tempArr.length; i++) {
|
|
let tmpVal = tempArr[i].value ? tempArr[i].value.trim() : tempArr[i].value;
|
|
let tmpVal = tempArr[i].value ? tempArr[i].value.trim() : tempArr[i].value;
|
|
let obj = {
|
|
let obj = {
|
|
- "dateValue": tempArr[i].time,
|
|
|
|
|
|
+ "dateValue": tempArr[i].time||"",
|
|
"name": "",
|
|
"name": "",
|
|
- "uniqueName": tempArr[i].name,
|
|
|
|
- "desc": tempArr[i].value,
|
|
|
|
- "result": tempArr[i].value,
|
|
|
|
|
|
+ "uniqueName": tempArr[i].name||"",
|
|
|
|
+ "desc": tempArr[i].value||"",
|
|
|
|
+ "result": tempArr[i].value||"",
|
|
}
|
|
}
|
|
tmpArr.push(obj)
|
|
tmpArr.push(obj)
|
|
tmpString += (tempArr[i].name + (tmpVal ? (':' + tmpVal) + ', ' : ': ') + (tempArr[i].time ? '报告日期:' + tempArr[i].time : '') + '^;')
|
|
tmpString += (tempArr[i].name + (tmpVal ? (':' + tmpVal) + ', ' : ': ') + (tempArr[i].time ? '报告日期:' + tempArr[i].time : '') + '^;')
|
|
}
|
|
}
|
|
- if(flg){
|
|
|
|
- return tmpArr;
|
|
|
|
- }else{
|
|
|
|
- return tmpString;
|
|
|
|
|
|
+ return tmpObj = {
|
|
|
|
+ arr:tmpArr,
|
|
|
|
+ str:tmpString
|
|
}
|
|
}
|
|
|
|
+ // if(flg){
|
|
|
|
+ // return tmpArr;
|
|
|
|
+ // }else{
|
|
|
|
+ // return tmpString;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
|
|
|
|
// 模板中处理tagType==4的数据
|
|
// 模板中处理tagType==4的数据
|
|
@@ -1477,7 +1481,6 @@ function moveEnd(obj,flg) {
|
|
* 2体征颜色单独处理不需要设置
|
|
* 2体征颜色单独处理不需要设置
|
|
*/
|
|
*/
|
|
const setFontColorSize = (flg,pacs) => {
|
|
const setFontColorSize = (flg,pacs) => {
|
|
- // setTimeout(() => {
|
|
|
|
const classNameSelect = ['largeFontSize','middleFontSize','simpleFontSize','simpleLightColor','simpleColor','selectColor']
|
|
const classNameSelect = ['largeFontSize','middleFontSize','simpleFontSize','simpleLightColor','simpleColor','selectColor']
|
|
const state = store.getState();
|
|
const state = store.getState();
|
|
let readConfig = state.typeConfig.readConfig
|
|
let readConfig = state.typeConfig.readConfig
|
|
@@ -1499,6 +1502,8 @@ const setFontColorSize = (flg,pacs) => {
|
|
classStr = `largeFontSize selectColor`
|
|
classStr = `largeFontSize selectColor`
|
|
}else if(pacs == 7){
|
|
}else if(pacs == 7){
|
|
classStr = `largeFontSize fontWeight selectColor`
|
|
classStr = `largeFontSize fontWeight selectColor`
|
|
|
|
+ }else if(pacs == 8){
|
|
|
|
+ classStr = `largeFontSize selectColor`
|
|
}else{
|
|
}else{
|
|
classStr = `largeFontSize`
|
|
classStr = `largeFontSize`
|
|
}
|
|
}
|
|
@@ -1513,6 +1518,8 @@ const setFontColorSize = (flg,pacs) => {
|
|
classStr = `simpleFontSize selectColor`
|
|
classStr = `simpleFontSize selectColor`
|
|
}else if(pacs == 7){
|
|
}else if(pacs == 7){
|
|
classStr = `simpleFontSize fontWeight selectColor`
|
|
classStr = `simpleFontSize fontWeight selectColor`
|
|
|
|
+ }else if(pacs == 8){
|
|
|
|
+ classStr = `simpleFontSize selectColor`
|
|
}else{
|
|
}else{
|
|
classStr = `simpleFontSize`
|
|
classStr = `simpleFontSize`
|
|
}
|
|
}
|
|
@@ -1534,6 +1541,8 @@ const setFontColorSize = (flg,pacs) => {
|
|
}else if(pacs == 5){
|
|
}else if(pacs == 5){
|
|
classStr = `largeFontSize specialSize`
|
|
classStr = `largeFontSize specialSize`
|
|
}else if(pacs == 6){
|
|
}else if(pacs == 6){
|
|
|
|
+ classStr = `largeFontSize`
|
|
|
|
+ }else if(pacs == 8){
|
|
classStr = `simpleColor largeFontSize`
|
|
classStr = `simpleColor largeFontSize`
|
|
}else if(pacs == 7){
|
|
}else if(pacs == 7){
|
|
classStr = `largeFontSize fontWeight`
|
|
classStr = `largeFontSize fontWeight`
|
|
@@ -1551,11 +1560,13 @@ const setFontColorSize = (flg,pacs) => {
|
|
classStr = `simpleFontSize fontWeight`
|
|
classStr = `simpleFontSize fontWeight`
|
|
}else if(pacs == 6){
|
|
}else if(pacs == 6){
|
|
classStr = `simpleFontSize`
|
|
classStr = `simpleFontSize`
|
|
|
|
+ }else if(pacs == 8){
|
|
|
|
+ classStr = `simpleColor simpleFontSize`
|
|
|
|
+ }else if(pacs == 7){
|
|
|
|
+ classStr = `simpleFontSize fontWeight`
|
|
}else{
|
|
}else{
|
|
classStr = `simpleFontSize`
|
|
classStr = `simpleFontSize`
|
|
}
|
|
}
|
|
- }else if(pacs == 7){
|
|
|
|
- classStr = `simpleFontSize fontWeight`
|
|
|
|
}else if(flg == 1){
|
|
}else if(flg == 1){
|
|
classStr = `simpleLightColor simpleFontSize`
|
|
classStr = `simpleLightColor simpleFontSize`
|
|
}else{
|
|
}else{
|
|
@@ -1563,10 +1574,9 @@ const setFontColorSize = (flg,pacs) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return classStr;
|
|
return classStr;
|
|
- // }, 0);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-//获取生命体征或非生命体征标签
|
|
|
|
|
|
+//获取生命体征或非生命体征标签
|
|
function getLifeLabels(arr,flag){ //flag=true获取非生命体征
|
|
function getLifeLabels(arr,flag){ //flag=true获取非生命体征
|
|
const newArr = arr.filter((it)=>{
|
|
const newArr = arr.filter((it)=>{
|
|
return flag?+it.specFlag!==4:+it.specFlag===4;
|
|
return flag?+it.specFlag!==4:+it.specFlag===4;
|