张延森 4 年 前
コミット
2272d48d8a
共有1 個のファイルを変更した8 個の追加8 個の削除を含む
  1. 8
    8
      src/pages/property/ticket/Detail.jsx

+ 8
- 8
src/pages/property/ticket/Detail.jsx ファイルの表示

42
     getTicketDetail({data: {id}}).then(res => {
42
     getTicketDetail({data: {id}}).then(res => {
43
       const { recordList } = res || {}
43
       const { recordList } = res || {}
44
       setTicketData(res)
44
       setTicketData(res)
45
-      setApprovalProcessList(res)
45
+      setApprovalProcessList(recordList)
46
     })
46
     })
47
   }, [])
47
   }, [])
48
 
48
 
65
         </Descriptions>
65
         </Descriptions>
66
         {
66
         {
67
           ticketData.contentImageUrl && ticketData.contentImageUrl.length && (
67
           ticketData.contentImageUrl && ticketData.contentImageUrl.length && (
68
-            <List dataSource={ticketData.contentImageUrl} grid={imgGrid} renderItem={it => {
69
-              <img src={it} alt="" style="width: 100%" />
70
-            }} />
68
+            <List dataSource={ticketData.contentImageUrl} grid={imgGrid} renderItem={it => (
69
+              <List.Item><img src={it} alt="" style={{width: '100%'}} /></List.Item>
70
+            )} />
71
           )
71
           )
72
         }
72
         }
73
       </PageHeader>
73
       </PageHeader>
76
         <h4 style={{marginTop: '24px'}}>沟通记录</h4>
76
         <h4 style={{marginTop: '24px'}}>沟通记录</h4>
77
         <Steps progressDot direction="vertical" current={1}>
77
         <Steps progressDot direction="vertical" current={1}>
78
         {
78
         {
79
-          (approvalProcessList || {}).map(item => {
79
+          (approvalProcessList || []).map(item => {
80
             return (
80
             return (
81
               <Steps.Step key={item.id} title={item.statusName} subTitle={item.createDate} description={(
81
               <Steps.Step key={item.id} title={item.statusName} subTitle={item.createDate} description={(
82
                 <div>
82
                 <div>
97
                             <div>{ `${ctt.userName} : ${ctt.content}` }</div>
97
                             <div>{ `${ctt.userName} : ${ctt.content}` }</div>
98
                             {
98
                             {
99
                               ctt.imgURL && ctt.imgURL.length && (
99
                               ctt.imgURL && ctt.imgURL.length && (
100
-                                <List dataSource={ctt.imgURL} grid={imgGrid} renderItem={it => {
101
-                                  <img src={it.imageUrl} alt="" style="width: 100%" />
102
-                                }} />
100
+                                <List dataSource={ctt.imgURL} grid={imgGrid} renderItem={it => (
101
+                                  <List.Item><img src={it.imageUrl} alt="" style={{width: '100%'}} /></List.Item>
102
+                                )} />
103
                               )
103
                               )
104
                             }
104
                             }
105
                           </div>
105
                           </div>