Browse Source

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

Yansen 2 years ago
parent
commit
5e3006d97b

+ 5
- 3
src/components/Page/index.jsx View File

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

+ 2
- 2
src/pages/checkAnswer/survey/detail.jsx View File

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

+ 4
- 3
src/pages/issue/detail/components/ApplyInfo.jsx View File

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

+ 3
- 1
src/pages/issue/detail/components/BasicProfile.jsx View File

73
         </Descriptions.Item>
73
         </Descriptions.Item>
74
         <Descriptions.Item label="截止日期">{fmDate(detail?.expireDate)}</Descriptions.Item>
74
         <Descriptions.Item label="截止日期">{fmDate(detail?.expireDate)}</Descriptions.Item>
75
         <Descriptions.Item label="责任单位" span={2}>{detail?.orgName}</Descriptions.Item>
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
         <Descriptions.Item label="问题描述" span={3}>
78
         <Descriptions.Item label="问题描述" span={3}>
77
-          <div dangerouslySetInnerHTML={{__html: detail?.content}}></div>  
79
+          <div dangerouslySetInnerHTML={{ __html: detail?.content }}></div>
78
         </Descriptions.Item>
80
         </Descriptions.Item>
79
         <Descriptions.Item label="图片列表" span={3}>
81
         <Descriptions.Item label="图片列表" span={3}>
80
           <AttachList attachList={detail?.attachList} />
82
           <AttachList attachList={detail?.attachList} />

+ 2
- 2
src/pages/issue/detail/index.jsx View File

13
   const id = params.get("id");
13
   const id = params.get("id");
14
 
14
 
15
   return (
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
         <Process issueId={id} />
18
         <Process issueId={id} />
19
         <BasicProfile issueId={id} />
19
         <BasicProfile issueId={id} />
20
         <ApplyInfo issueId={id} />
20
         <ApplyInfo issueId={id} />