魏超 4 年前
父节点
当前提交
f9840eda75

+ 21
- 0
src/pages/fundManagement/AccountManagement.jsx 查看文件

121
         getList({ pageNum: 1, pageSize: 10 })
121
         getList({ pageNum: 1, pageSize: 10 })
122
     }
122
     }
123
 
123
 
124
+    // 导出
125
+    const exportList = () => {
126
+        let { LocalDate, ...submitValue } = props.form.getFieldsValue()
127
+        
128
+        request({ ...apis.fund.accountExport, params: { ...submitValue } }).then(data => {
129
+            if (!data) {
130
+                return
131
+            }
132
+            const url = window.URL.createObjectURL(new Blob([data]))
133
+            const link = document.createElement('a')
134
+            link.style.display = 'none'
135
+            link.href = url
136
+            link.setAttribute('download', '账户列表.xlsx')
137
+            document.body.append(link)
138
+            link.click()
139
+        }).catch()
140
+    }
141
+
124
     const toDeatil = (row) => {
142
     const toDeatil = (row) => {
125
         router.push({
143
         router.push({
126
             pathname: '/fundManagement/AccountDetail',
144
             pathname: '/fundManagement/AccountDetail',
153
                     </Button>
171
                     </Button>
154
                 </Form.Item>
172
                 </Form.Item>
155
             </Form>
173
             </Form>
174
+            <div>
175
+                <Button type="danger" style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} onClick={() => exportList()} >导出</Button>
176
+            </div>
156
             <Table rowKey={r => r.accountId} dataSource={data.records} columns={columns} pagination={false} />
177
             <Table rowKey={r => r.accountId} dataSource={data.records} columns={columns} pagination={false} />
157
             <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
178
             <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
158
                 <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />
179
                 <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />

+ 1
- 0
src/pages/fundManagement/ConsumeOrder.jsx 查看文件

96
             dataIndex: 'consumeType',
96
             dataIndex: 'consumeType',
97
             key: 'consumeType',
97
             key: 'consumeType',
98
             align: 'center',
98
             align: 'center',
99
+            render: (x, row) => <><span>{row.consumeType == 'RedPacket' ? '红包' : ''}</span></>
99
         },
100
         },
100
         {
101
         {
101
             title: '活动名称',
102
             title: '活动名称',

+ 1
- 1
src/pages/fundManagement/Finance.jsx 查看文件

23
 
23
 
24
     // 查询列表
24
     // 查询列表
25
     const getList = (params) => {
25
     const getList = (params) => {
26
-        request({ ...apis.fund.contactList, params: { ...params } }).then((data) => {
26
+        request({ ...apis.fund.contactList, params: { ...params, contentType: 'finance' } }).then((data) => {
27
             console.log(data)
27
             console.log(data)
28
             setData(data)
28
             setData(data)
29
         })
29
         })

+ 3
- 3
src/pages/fundManagement/components/SelectContact.jsx 查看文件

105
         },
105
         },
106
         {
106
         {
107
             title: '对外头衔',
107
             title: '对外头衔',
108
-            dataIndex: 'job',
109
-            key: 'job',
108
+            dataIndex: 'appellation',
109
+            key: 'appellation',
110
             align: 'center',
110
             align: 'center',
111
             ellipsis: true,
111
             ellipsis: true,
112
         },
112
         },
162
                         )}
162
                         )}
163
                     </Form.Item>
163
                     </Form.Item>
164
                     <Form.Item>
164
                     <Form.Item>
165
-                        {getFieldDecorator('job')(
165
+                        {getFieldDecorator('appellation')(
166
                             <Input
166
                             <Input
167
                                 prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
167
                                 prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
168
                                 placeholder="对外头衔"
168
                                 placeholder="对外头衔"

+ 5
- 0
src/services/apis.js 查看文件

268
       method: 'GET',
268
       method: 'GET',
269
       action: 'channel',
269
       action: 'channel',
270
     },
270
     },
271
+    accountExport: {
272
+      url: `${prefix}/taOrgAccount/taOrgAccountListExport`,
273
+      method: 'GET',
274
+      action: 'channel',
275
+    },
271
   },
276
   },
272
   relatedOrganization: {
277
   relatedOrganization: {
273
     get: {
278
     get: {