diff --git a/manifest.json b/manifest.json index f82e002..63290e8 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "护理单元", "appid" : "__UNI__FB2D473", "description" : "护理单元", - "versionName" : "1.0.041", - "versionCode" : 10041, + "versionName" : "1.0.042", + "versionCode" : 10042, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/NursingNew/component/index.vue b/pages/NursingNew/component/index.vue index ee6a2f0..2b7b0b8 100644 --- a/pages/NursingNew/component/index.vue +++ b/pages/NursingNew/component/index.vue @@ -120,9 +120,10 @@ @click="zldex(i)"> - {{v.directiveName?.substring(0,5)}} - {{v.directiveName?.substring(5,12)}} + + {{v.obj.mainName}} + + ( {{v.obj.subName}} ) { let data = { @@ -428,15 +429,35 @@ instructionTagId: e } queryAll(data).then(res => { - // console.log(res) fwzlarr.value = res.result.jsList; + fwzlarr.value.forEach(item=>{ + item.obj = parseDirectiveName(item.directiveName) + }) + console.log(fwzlarr.value) }) } + const parseDirectiveName=(directiveName)=> { + if (!directiveName) return { mainName: '', subName: '' } + const reg = /^(.+)((.+))$/ + const match = directiveName.match(reg) + if (match) { + return { + mainName: match[1].trim(), // 协助饮水 + subName: match[2].trim() // 饮水 + } + } else { + return { + mainName: directiveName.trim(), + subName: '' + } + } + } const shtab = (e) => { fwzlindex.value = e; zlfunc(typearra.value[e].instructionType) fwzldex.value = -1 } + const zldex = (e) => { if (e > -1 && e == fwzldex.value) { fwzldex.value = -1 @@ -465,7 +486,7 @@ }) setTimeout(()=>{ inits(uni.getStorageSync('nuId')) - },800) + },1500) } else { error.value = true; msg.value = res.message diff --git a/pages/NursingNew/component/leftcontent/leftcontent.vue b/pages/NursingNew/component/leftcontent/leftcontent.vue index a390cce..92e67b2 100644 --- a/pages/NursingNew/component/leftcontent/leftcontent.vue +++ b/pages/NursingNew/component/leftcontent/leftcontent.vue @@ -31,7 +31,7 @@ url:'/pages/watch/settings/settings' })"> - + {{uni.getStorageSync('realname')}} @@ -41,6 +41,7 @@