wenhongquan 3 years ago
parent
commit
1f7171d4d7
1 changed files with 39 additions and 6 deletions
  1. 39 6
      src/views/IncidentDetail/IncidentInfoCard/index.tsx

+ 39 - 6
src/views/IncidentDetail/IncidentInfoCard/index.tsx

@@ -74,16 +74,46 @@ export default defineComponent({
           <div style="overflow-y: auto;" class="source">
           <div style="overflow-y: auto;" class="source">
             <div>
             <div>
               上报时间:
               上报时间:
-              {store.incidentDetail?.baseInfo?.createTime ?? ''}
+              <span
+                style={
+                  'word-break:break-all;white-space:pre-wrap;overflow:hidden;'
+                }>
+                {store.incidentDetail?.baseInfo?.createTime ?? ''}
+              </span>
+            </div>
+            <div>
+              事件地点:
+              <span
+                style={
+                  'word-break:break-all;white-space:pre-wrap;overflow:hidden;'
+                }>
+                {store.incidentDetail?.baseInfo?.addr ?? ''}
+              </span>
             </div>
             </div>
-            <div>事件地点:{store.incidentDetail?.baseInfo?.addr ?? ''}</div>
             <div>
             <div>
-              上报人员:{store.incidentDetail?.baseInfo?.createBy ?? ''}
+              上报人员:
+              <span
+                style={
+                  'word-break:break-all;white-space:pre-wrap;overflow:hidden;'
+                }>
+                {store.incidentDetail?.baseInfo?.createBy ?? ''}
+              </span>
+            </div>
+            <div>
+              联系方式:
+              <span
+                style={
+                  'word-break:break-all;white-space:pre-wrap;overflow:hidden; '
+                }>
+                {store.incidentDetail?.baseInfo?.expr1 ?? '-'}
+              </span>
             </div>
             </div>
-            <div>联系方式:{store.incidentDetail?.baseInfo?.expr1 ?? '-'}</div>
             <div>
             <div>
               上报单位:
               上报单位:
-              <span>
+              <span
+                style={
+                  'word-break:break-all;white-space:pre-wrap;overflow:hidden;'
+                }>
                 {store.incidentDetail?.baseInfo?.createDept ?? '-'}
                 {store.incidentDetail?.baseInfo?.createDept ?? '-'}
               </span>
               </span>
             </div>
             </div>
@@ -132,7 +162,10 @@ export default defineComponent({
                     commonStore.globalDict[item.dict]?.find(
                     commonStore.globalDict[item.dict]?.find(
                       (i) =>
                       (i) =>
                         i.dictValue?.toString() ===
                         i.dictValue?.toString() ===
-                        ((store.incidentDetail?.baseInfo ?? {})[item.prop] ?? "").toString(),
+                        (
+                          (store.incidentDetail?.baseInfo ?? {})[item.prop] ??
+                          ''
+                        ).toString(),
                     )?.dictLabel) ?? '-'}
                     )?.dictLabel) ?? '-'}
               </div>
               </div>
             </div>
             </div>