789df37a by lihua

fix: 疾病名称

1 parent 5a816915
...@@ -2164,16 +2164,12 @@ const saveDraft = () => { ...@@ -2164,16 +2164,12 @@ const saveDraft = () => {
2164 if (diseaseGuid) { 2164 if (diseaseGuid) {
2165 let diseaseList = dictListMap.value['diseaseGuid'] || []; 2165 let diseaseList = dictListMap.value['diseaseGuid'] || [];
2166 let getDiseaseName = (list) => { 2166 let getDiseaseName = (list) => {
2167 let vInfo = list.find(l => l.guid == diseaseGuid);
2168 if (vInfo) {
2169 return vInfo.diseaseName;
2170 }
2171 for (const key of list) { 2167 for (const key of list) {
2172 if (key.guid == diseaseGuid) { 2168 if (key.guid == diseaseGuid) {
2173 return key.diseaseName; 2169 return key.diseaseName;
2174 } 2170 }
2175 if (key.childList?.length) { 2171 if (key.childList?.length) {
2176 let name = getDiseaseName(key); 2172 let name = getDiseaseName(key.childList);
2177 if (name) { 2173 if (name) {
2178 return name; 2174 return name;
2179 } 2175 }
...@@ -2390,10 +2386,6 @@ const save = () => { ...@@ -2390,10 +2386,6 @@ const save = () => {
2390 if (diseaseGuid) { 2386 if (diseaseGuid) {
2391 let diseaseList = dictListMap.value['diseaseGuid'] || []; 2387 let diseaseList = dictListMap.value['diseaseGuid'] || [];
2392 let getDiseaseName = (list) => { 2388 let getDiseaseName = (list) => {
2393 let vInfo = list.find(l => l.guid == diseaseGuid);
2394 if (vInfo) {
2395 return vInfo.diseaseName;
2396 }
2397 for (const key of list) { 2389 for (const key of list) {
2398 if (key.guid == diseaseGuid) { 2390 if (key.guid == diseaseGuid) {
2399 return key.diseaseName; 2391 return key.diseaseName;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!