7 changed files with 122 additions and 18 deletions
@ -0,0 +1,34 @@ |
|||
|
|||
import React, { useState, useEffect, useRef } from "react"; |
|||
import { connect } from "react-redux"; |
|||
import { DatePicker } from "@douyinfe/semi-ui"; |
|||
|
|||
const Inspection = ({ dispatch, actions, route }) => { |
|||
|
|||
console.log(route); |
|||
return ( |
|||
|
|||
<div style={{ width: '100%', height: 180, backgroundColor: 'white', marginBottom: 20 }}> |
|||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|||
<div style={{ width: 190, fontSize: 24, fontFamily: 'YouSheBiaoTiHei', color: '#101531', }}><span style={{ width: 3, height: 20, background: '#005ABD', display: 'inline-block', margin: "0 10px 0 10px" }}></span>数据异常统计</div> |
|||
<div style={{ fontSize: 24, fontFamily: 'YouSheBiaoTiHei', color: '#BDDBFC' }}><img src="/assets/images/problem/keyboard.png" style={{ width: 30, height: 17, marginRight: 10 }} />开发中,敬请期待!</div> |
|||
</div> |
|||
|
|||
|
|||
|
|||
<img src="project/da09f988-4c62-46fc-a532-b4cf053a4b6d/accurate_invest.png" alt="" /> |
|||
</div > |
|||
) |
|||
} |
|||
|
|||
|
|||
function mapStateToProps (state) { |
|||
const { auth, global, members } = state; |
|||
return { |
|||
// user: auth.user, |
|||
// actions: global.actions, |
|||
// global: global, |
|||
// members: members.data, |
|||
}; |
|||
} |
|||
export default connect(mapStateToProps)(Inspection); |
@ -0,0 +1,23 @@ |
|||
/** |
|||
* Created by PengLing on 2018/1/2. |
|||
*/ |
|||
'use strict'; |
|||
|
|||
const Attachment = require('fs-attachment'); |
|||
|
|||
module.exports = { |
|||
entry: function (app, router, opts) { |
|||
const attachment = new Attachment(opts); |
|||
|
|||
app.fs = app.fs || {}; |
|||
app.fs.attachment = attachment; |
|||
|
|||
app.fs.logger.log('debug', 'init fs.attachment and inject it into app(app.fs.attachment) and runtime ctx(ctx.fs.attachment)'); |
|||
|
|||
return async (ctx, next) => { |
|||
ctx.fs = ctx.fs || {}; |
|||
ctx.fs.attachment = attachment; |
|||
await next(); |
|||
}; |
|||
} |
|||
}; |
Loading…
Reference in new issue