ソースを参照

Merge branch 'dev1.0' of http://git.ycjcjy.com/civilized_city/pc-admin into dev1.0

Yansen 2 年 前
コミット
5e3006d97b

+ 5
- 3
src/components/Page/index.jsx ファイルの表示

@@ -34,7 +34,7 @@ const Title = (props) => {
34 34
 
35 35
   return (
36 36
     <div style={titleStyle}>
37
-      <Typography.Title level={3} style={{fontWeight: 400, flex: 'none'}}>
37
+      <Typography.Title level={3} style={{ fontWeight: 400, flex: 'none' }}>
38 38
         {
39 39
           back && (
40 40
             <span onClick={goBack}><ArrowLeftOutlined style={backStyle} /></span>
@@ -42,7 +42,7 @@ const Title = (props) => {
42 42
         }
43 43
         {props.children}
44 44
       </Typography.Title>
45
-      <div style={{flex: 'none'}}>{extra}</div>
45
+      <div style={{ flex: 'none' }}>{extra}</div>
46 46
     </div>
47 47
   )
48 48
 }
@@ -54,9 +54,11 @@ export default (props) => {
54 54
   const style = meta.noLayout ? { height: '100%' } : pageStyle;
55 55
   const title = props.title || meta.title;
56 56
 
57
+  console.log('back', back);
58
+
57 59
   return (
58 60
     <div style={style}>
59
-      { title && !meta.noLayout && <Title extra={extra} back={back}>{ title }</Title> }
61
+      {title && !meta.noLayout && <Title extra={extra} back={back}>{title}</Title>}
60 62
       {props.children}
61 63
     </div>
62 64
   )

+ 2
- 2
src/pages/checkAnswer/survey/detail.jsx ファイルの表示

@@ -79,7 +79,7 @@ export default (props) => {
79 79
     //   hideInSearch: true,
80 80
     // }
81 81
   ]
82
-  
82
+
83 83
   const beforeSearchSubmit = (params) => {
84 84
     paramsRef.current = params;
85 85
     return params;
@@ -98,7 +98,7 @@ export default (props) => {
98 98
   }
99 99
 
100 100
   return (
101
-    <Page>
101
+    <Page back>
102 102
       {contextHolder}
103 103
       <ProTable
104 104
         rowKey="answerItemId"

+ 4
- 3
src/pages/issue/detail/components/ApplyInfo.jsx ファイルの表示

@@ -7,12 +7,12 @@ import { queryTable, queryDict } from '@/utils/request';
7 7
 import useBool from '@/utils/hooks/useBool';
8 8
 import { processEnum } from '@/utils/biz';
9 9
 
10
-const fetchOrg = queryDict(getSysOrg, { labelKey: 'orgId', valueKey: 'name' });
10
+const fetchOrg = queryDict(getSysOrg, { labelKey: 'name', valueKey: 'orgId' });
11 11
 const fetchData = queryTable(getTaIssueApply);
12 12
 
13 13
 export default (props) => {
14 14
   const { issueId } = props;
15
-  
15
+
16 16
   const columns = [
17 17
     {
18 18
       title: "申请日期",
@@ -61,6 +61,7 @@ export default (props) => {
61 61
     },
62 62
     {
63 63
       title: "申请单位",
64
+      valueType: 'select',
64 65
       dataIndex: "orgId",
65 66
       request: fetchOrg
66 67
     }
@@ -71,7 +72,7 @@ export default (props) => {
71 72
       <ProTable
72 73
         rowKey="verifyId"
73 74
         search={false}
74
-        params={{issueId, isAll: true}}
75
+        params={{ issueId, isAll: true }}
75 76
         columns={columns}
76 77
         request={fetchData}
77 78
         toolBarRender={false}

+ 3
- 1
src/pages/issue/detail/components/BasicProfile.jsx ファイルの表示

@@ -73,8 +73,10 @@ export default (props) => {
73 73
         </Descriptions.Item>
74 74
         <Descriptions.Item label="截止日期">{fmDate(detail?.expireDate)}</Descriptions.Item>
75 75
         <Descriptions.Item label="责任单位" span={2}>{detail?.orgName}</Descriptions.Item>
76
+        <Descriptions.Item label="办结时间">{fmDate(detail?.endDate)}</Descriptions.Item>
77
+        <Descriptions.Item label="交办次数" span={2}>{detail?.processNum}</Descriptions.Item>
76 78
         <Descriptions.Item label="问题描述" span={3}>
77
-          <div dangerouslySetInnerHTML={{__html: detail?.content}}></div>  
79
+          <div dangerouslySetInnerHTML={{ __html: detail?.content }}></div>
78 80
         </Descriptions.Item>
79 81
         <Descriptions.Item label="图片列表" span={3}>
80 82
           <AttachList attachList={detail?.attachList} />

+ 2
- 2
src/pages/issue/detail/index.jsx ファイルの表示

@@ -13,8 +13,8 @@ export default (props) => {
13 13
   const id = params.get("id");
14 14
 
15 15
   return (
16
-    <Page>
17
-      <Space direction="vertical"  size="middle" style={{ width: '100%' }}>
16
+    <Page back>
17
+      <Space direction="vertical" size="middle" style={{ width: '100%' }}>
18 18
         <Process issueId={id} />
19 19
         <BasicProfile issueId={id} />
20 20
         <ApplyInfo issueId={id} />