Quellcode durchsuchen

fix:
- 提醒详情字段更改

梦辉 vor 3 Monaten
Ursprung
Commit
d2f555afe0

+ 1 - 1
src/components/bussinessComponents/remind-list/index.vue

@@ -73,7 +73,7 @@ export default {
           <view class="title">{{ type ? '承诺条款提醒' : '整改提醒' }}</view>
           <view class="status">
             <span v-if="type === 0" style="color: #D9001B">红灯提醒</span>
-            <span v-if="type === 0" style="color: #F59A23">黄灯提醒</span>
+            <span v-if="type === 1" style="color: #F59A23">黄灯提醒</span>
           </view>
         </view>
         <view class="content">

+ 15 - 3
src/subPages/pages/commitment/remindDetail/index.vue

@@ -6,7 +6,7 @@ export default {
     /* 提醒uuid */
     '$route.query.uuid': {
       handler() {
-        if(this.$route.query.uuid && this.$route.path === '/subPages/pages/commitment/remindDetail/index') {
+        if (this.$route.query.uuid && this.$route.path === '/subPages/pages/commitment/remindDetail/index') {
           this.handleGetDetail()
         }
       },
@@ -49,6 +49,13 @@ export default {
     handleClose() {
       window.history.go(-1)
     },
+    handleIndicateBody(indicatorInputBody) {
+      if (indicatorInputBody.includes('&')) {
+        return this.reminderDetail.inputBody ? indicatorInputBody.replace('&', this.reminderDetail.inputBody + this.reminderDetail.inputSegment) : indicatorInputBody
+      } else {
+        return indicatorInputBody
+      }
+    }
   }
 }
 
@@ -71,7 +78,7 @@ export default {
       <van-divider></van-divider>
       <view>
         <view class="indicator-body">
-          {{ reminderDetail.indicatorInputBody ? reminderDetail.indicatorInputBody.replace('&', reminderDetail.inputBody + reminderDetail.inputSegment) : ''}}
+          {{ reminderDetail.indicatorInputBody ? handleIndicateBody(reminderDetail.indicatorInputBody) : '' }}
         </view>
         <view>
           <view class="other-title">
@@ -105,7 +112,12 @@ export default {
                 label="核查得分"
             >
               <template #input>
-                {{ reminderDetail.auditScore }}
+                <span v-if="reminderDetail.auditResult === 1">
+                  0分
+                </span>
+                <span v-if="reminderDetail.auditResult === 2">
+                  -10分
+                </span>
               </template>
             </van-field>
             <!--核查说明-->