afae2390 by fanguang

Merge branch 'develop' of http://117.78.60.236:8000/csbr-daop/fe-data-asset-management into develop

2 parents f18716d3 33e989c2
...@@ -110,6 +110,9 @@ VITE_API_ASSET_BASEURL = ms-swzl-data-dam-service ...@@ -110,6 +110,9 @@ VITE_API_ASSET_BASEURL = ms-swzl-data-dam-service
110 #数据同步接口地址 110 #数据同步接口地址
111 VITE_API_DATA_SYNC = ms-swzl-data-sync-service 111 VITE_API_DATA_SYNC = ms-swzl-data-sync-service
112 112
113 #元数据标准
114 VITE_APP_STANDARD_URL = 'ms-daop-meta-standard-service'
115
113 #消息接口 116 #消息接口
114 VITE_API_MESSAGE = ms-daop-message-service 117 VITE_API_MESSAGE = ms-daop-message-service
115 118
......
...@@ -97,6 +97,12 @@ const setChartsOption = () => { ...@@ -97,6 +97,12 @@ const setChartsOption = () => {
97 bottom: 20, 97 bottom: 20,
98 draggable: false, 98 draggable: false,
99 left: 50, 99 left: 50,
100 emphasis: {
101 focus: 'trajectory'
102 },
103 labelLayout: {
104 hideOverlap: true,
105 },
100 right: 100, 106 right: 100,
101 label: { 107 label: {
102 fontSize: 10, 108 fontSize: 10,
......
...@@ -904,30 +904,41 @@ const checkForm = (type) => { ...@@ -904,30 +904,41 @@ const checkForm = (type) => {
904 // 字典 904 // 字典
905 let dictList: any = [], hasModelScore = false; 905 let dictList: any = [], hasModelScore = false;
906 const dictStr = exportData.value.map(e => { 906 const dictStr = exportData.value.map(e => {
907 const targetList: any = []; 907 // 检查是否有质量模型评分
908 e.pricingTargetRSVOS.map(t => { 908 hasModelScore = hasModelScore || e.pricingTargetRSVOS.some(
909 if (t.targetType == '2' && t.functionName == '1') { 909 t => t.targetType === '2' && t.functionName === '1'
910 hasModelScore = true; 910 );
911 } else { 911
912 targetList.push({ 912 // 只有当维度指标数大于1时才处理明细
913 targetName: t.targetName, 913 if (e.pricingTargetRSVOS.length > 1) {
914 tNum: t.tNum, 914 const targetStr = e.pricingTargetRSVOS
915 }) 915 .map(t => `${t.targetName}为${changeNum(t.tNum, 2)}`)
916 } 916 .join('、');
917 }) 917
918 const targetStr = targetList.length ? targetList.map(t => `${t.targetName}为${changeNum(t.tNum, 2)}`).join('、') : ''; 918 dictList.push(`${e.dimensionalityName}为${changeNum(e.sNum, 2)},其中${targetStr}`);
919 targetStr && dictList.push(`${e.dimensionalityName}为${changeNum(e.sNum, 2)},其中${targetStr}`); 919 }
920
920 return `${e.dimensionalityName}为${changeNum(e.sNum, 2)}`; 921 return `${e.dimensionalityName}为${changeNum(e.sNum, 2)}`;
921 }) 922 })
922 let dictListStr = `${dictStr.join(',')}。\n${dictList.join(';\n')}` 923 let dictListStr = `${dictStr.join(',')}。\n${dictList.join(';\n')}`
923 // 质量模型 924 // 质量模型
924 if (hasModelScore) { 925 if (hasModelScore) {
925 const largeCategoryScoreList = qualityScoreData.value.largeCategoryScoreList || []; 926 const { largeCategoryScoreList = [], qualityScore = 0 } = qualityScoreData.value;
926 const largeCategoryScore = largeCategoryScoreList.map(q => `${q.largeCategoryName}方面得分为${changeNum(q.largeCategoryScore || 0, 2)}`); 927 const qualityParts = [
927 dictListStr += largeCategoryScore.length ? `;\n数据的总体质量得分为${changeNum(qualityScoreData.value.qualityScore || 0, 2)}。其中${largeCategoryScore.join(',')}` : `;\n数据的总体质量得分为${changeNum(qualityScoreData.value.qualityScore || 0, 2)}。` 928 `数据的总体质量得分为${changeNum(qualityScore, 2)}`
929 ];
930
931 if (largeCategoryScoreList.length) {
932 const categoryScores = largeCategoryScoreList.map(
933 q => `${q.largeCategoryName}方面得分为${changeNum(q.largeCategoryScore || 0, 2)}`
934 );
935 qualityParts.push(`其中${categoryScores.join(',')}`);
936 }
937
938 dictListStr += `;\n${qualityParts.join('。')}`;
928 } 939 }
929 exportOut.three = `${baseConfigFormInfo.belongingEntityGuid}持有的\"${damName}\"的数据(患者人次)单价为${changeNum(dataTransactionPrice.value, 2)}元`; 940 exportOut.three = `${baseConfigFormInfo.belongingEntityGuid}持有的"${damName}"的数据(患者人次)单价为${changeNum(dataTransactionPrice.value, 2)}元${dictListStr ? `;其中${dictListStr}` : '。'}`;
930 exportOut.three = dictListStr ? `${exportOut.three};其中${dictListStr}` : `${exportOut.three}。` 941
931 exportModelScore(exportOut).then((res: any) => { 942 exportModelScore(exportOut).then((res: any) => {
932 loading.value = false; 943 loading.value = false;
933 if (res && !res.msg) { 944 if (res && !res.msg) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!