fangmingyue 2 лет назад
Родитель
Сommit
f80f194be1
2 измененных файлов: 32 добавлений и 1 удалений
  1. 1
    1
      config/dev.js
  2. 31
    0
      src/pages/issue/components/Issue/index.jsx

+ 1
- 1
config/dev.js Просмотреть файл

@@ -4,7 +4,7 @@ module.exports = {
4 4
   },
5 5
   defineConstants: {
6 6
     // HOST: '"http://127.0.0.1:9087"',
7
-    HOST: '"http://localhost:9087"',
7
+    HOST: '"http://192.168.89.147:9087"',
8 8
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
9 9
     DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
10 10
   },

+ 31
- 0
src/pages/issue/components/Issue/index.jsx Просмотреть файл

@@ -10,6 +10,7 @@ import Map from '@/components/map';
10 10
 import Uploader from '@/components/Uploader/index';
11 11
 import { getDateStr } from '@/utils/date';
12 12
 import mapIcon from '@/assets/icons/marker.png';
13
+import { getTaOrgIssueByIssueId } from '@/services/taorgissue';
13 14
 import { PROCESS_END } from '@/utils/biz';
14 15
 
15 16
 import IssueStatus from './IssueStatus';
@@ -42,6 +43,7 @@ export default (props) => {
42 43
   const [showIssueType, setShowIssueType] = React.useState(false);
43 44
   const [showOrgPicker, setShowOrgPicker] = React.useState(false);
44 45
   const [showDatePicker, setShowDatePicker] = React.useState(false);
46
+  const [orgIssue, setOrgIssue] = React.useState();
45 47
 
46 48
   // 办结时间
47 49
   const endDate = React.useMemo(() => {
@@ -109,6 +111,11 @@ export default (props) => {
109 111
     if (issue) {
110 112
       fmRef.current = issue;
111 113
       setFormData(issue);
114
+      // console.log('---------issue-------->', issue)
115
+      getTaOrgIssueByIssueId(issue.issueId, issue.orgId).then(r => {
116
+        setOrgIssue(r);
117
+      });
118
+
112 119
     }
113 120
   }, [issue]);
114 121
 
@@ -238,6 +245,30 @@ export default (props) => {
238 245
         )
239 246
       }
240 247
 
248
+      {
249
+        orgIssue && issue?.processNode == PROCESS_END && (
250
+          <CellGroup style={{ marginTop: '20px' }}>
251
+            <Cell title="整改结果" />
252
+            <Field
253
+              readonly
254
+              type="textarea"
255
+              autosize={{ minHeight: '120px' }}
256
+              value={orgIssue?.result}
257
+            />
258
+
259
+            <Cell title="整改照片" border={false} />
260
+            <Cell
261
+              renderTitle={
262
+                <Uploader
263
+                  disabled
264
+                  value={orgIssue?.attachList}
265
+                />
266
+              }
267
+            />
268
+          </CellGroup>
269
+        )
270
+      }
271
+
241 272
       {
242 273
         renderFields ?
243 274
           renderFields(