Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ik_invoicing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_frontend
ik_invoicing
Commits
c2997fed
Commit
c2997fed
authored
Dec 29, 2016
by
小明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整代码格式
parent
a1ffacac
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
47 deletions
+47
-47
internals/webpack/webpack.base.babel.js
+4
-3
internals/webpack/webpack.temp.babel.js
+2
-3
src/containers/HomePage/index.js
+0
-4
src/modules/dashboard/admin.js
+1
-1
src/modules/dashboard/member.js
+39
-35
src/routes.js
+1
-1
No files found.
internals/webpack/webpack.base.babel.js
View file @
c2997fed
...
@@ -35,9 +35,9 @@ module.exports = (options) => ({
...
@@ -35,9 +35,9 @@ module.exports = (options) => ({
{
{
test
:
/
\.
scss$/
,
test
:
/
\.
scss$/
,
loader
:
ExtractTextPlugin
.
extract
({
loader
:
ExtractTextPlugin
.
extract
({
loader
:
[
'css-loader?sourceMap'
,
'sass-loader?sourceMap'
]
loader
:
[
'css-loader?sourceMap'
,
'sass-loader?sourceMap'
],
// loader: ['css-loader?sourceMap', 'postcss-loader', 'sass-loader']
// loader: ['css-loader?sourceMap', 'postcss-loader', 'sass-loader']
})
}),
// use: ['style-loader', 'css-loader?sourceMap', 'postcss-loader', 'sass-loader']
// use: ['style-loader', 'css-loader?sourceMap', 'postcss-loader', 'sass-loader']
},
},
...
@@ -67,7 +67,8 @@ module.exports = (options) => ({
...
@@ -67,7 +67,8 @@ module.exports = (options) => ({
{
{
test
:
/
\.(
mp4|webm
)
$/
,
test
:
/
\.(
mp4|webm
)
$/
,
use
:
'url-loader?limit=10000'
,
use
:
'url-loader?limit=10000'
,
}],
},
],
},
},
plugins
:
options
.
plugins
.
concat
([
plugins
:
options
.
plugins
.
concat
([
new
webpack
.
ProvidePlugin
({
new
webpack
.
ProvidePlugin
({
...
...
internals/webpack/webpack.temp.babel.js
View file @
c2997fed
// Important modules this config uses
// Important modules this config uses
const
path
=
require
(
'path'
);
const
path
=
require
(
'path'
);
const
webpack
=
require
(
'webpack'
);
const
webpack
=
require
(
'webpack'
);
const
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
);
const
OfflinePlugin
=
require
(
'offline-plugin'
);
module
.
exports
=
require
(
'./webpack.base.babel'
)({
module
.
exports
=
require
(
'./webpack.base.babel'
)({
// In production, we skip all hot-reloading stuff
// In production, we skip all hot-reloading stuff
...
@@ -17,8 +15,9 @@ module.exports = require('./webpack.base.babel')({
...
@@ -17,8 +15,9 @@ module.exports = require('./webpack.base.babel')({
library
:
'window'
,
library
:
'window'
,
libraryTarget
:
'this'
,
libraryTarget
:
'this'
,
},
},
externals
:
{
externals
:
{
react
:
'React'
react
:
'React'
,
},
},
plugins
:
[
plugins
:
[
...
...
src/containers/HomePage/index.js
View file @
c2997fed
...
@@ -12,10 +12,6 @@
...
@@ -12,10 +12,6 @@
import
React
,
{
PureComponent
}
from
'react'
;
import
React
,
{
PureComponent
}
from
'react'
;
export
default
class
HomePage
extends
PureComponent
{
// eslint-disable-line react/prefer-stateless-function
export
default
class
HomePage
extends
PureComponent
{
// eslint-disable-line react/prefer-stateless-function
constructor
(
props
)
{
super
(
props
);
}
render
()
{
render
()
{
return
(
return
(
<
h1
>
<
h1
>
...
...
src/modules/dashboard/admin.js
View file @
c2997fed
...
@@ -238,7 +238,7 @@ class DashboardIndexAdmin extends Component { // eslint-disable-line react/prefe
...
@@ -238,7 +238,7 @@ class DashboardIndexAdmin extends Component { // eslint-disable-line react/prefe
{
tab
.
title
}
{
tab
.
title
}
<
/p
>
<
/p
>
<
/Col
>
<
/Col
>
})
;
}
})}
<
/Row
>
<
/Row
>
{
outlet
}
{
outlet
}
<
/Col
>
<
/Col
>
...
...
src/modules/dashboard/member.js
View file @
c2997fed
...
@@ -20,6 +20,44 @@ class DashboardIndexMember extends Component { // eslint-disable-line react/pref
...
@@ -20,6 +20,44 @@ class DashboardIndexMember extends Component { // eslint-disable-line react/pref
{
type
:
'inventory'
,
name
:
'库存查询'
,
path
:
'/mobile/inventories'
},
{
type
:
'inventory'
,
name
:
'库存查询'
,
path
:
'/mobile/inventories'
},
].
chunk
(
4
);
].
chunk
(
4
);
let
outlet
=
null
;
if
(
this
.
props
.
loading
)
{
if
(
this
.
props
.
logined
)
{
outlet
=
(
<
Icon
type
=
'loading'
className
=
'search-loading'
/>
);
}
}
else
{
if
(
this
.
props
.
documents
.
length
>
0
)
{
outlet
=
(
<
Row
>
<
Col
span
=
'24'
>
{
props
.
documents
.
each
((
doc
)
=>
{
let
key
=
`
${
doc
.
type
}
_
${
doc
.
id
}
`
;
<
Document
key
=
{
key
}
document
=
{
doc
}
><
/Document
>
})}
<
/Col
>
<
/Row>
)
;
}
else
{
let
column
=
(
<
div
>
<
p
className
=
'ik-title-font ik-margin-top-20 ik-title-color'
>
还没有单据哦,快去新增吧
<
/p
>
<
/div>
)
;
if
(
!
props
.
hasPermission
)
{
column
=
(
<
div
>
<
svg
className
=
'file-color'
>
<
use
xlinkHref
=
{
props
.
icons
.
document
}
/
>
<
/svg
>
<
p
className
=
'ik-title-font ik-margin-top-20 ik-title-color'
>
亲,你没有权限操作此功能哦
<
/p
>
<
/div>
)
;
}
outlet
=
(
<
Row
type
=
'flex'
justify
=
'center'
className
=
'document-list ik-padding-bottom-20'
>
<
Col
span
=
'16'
className
=
'ik-text-center'
>
{
column
}
<
/Col
>
<
/Row>
)
;
}
}
return
(
<
Row
>
return
(
<
Row
>
<
Row
id
=
"action-sheet-button-container"
>
<
Row
id
=
"action-sheet-button-container"
>
<
Col
span
=
'6'
offset
=
'18'
className
=
'ik-padding-top-20'
>
<
Col
span
=
'6'
offset
=
'18'
className
=
'ik-padding-top-20'
>
...
@@ -71,41 +109,7 @@ class DashboardIndexMember extends Component { // eslint-disable-line react/pref
...
@@ -71,41 +109,7 @@ class DashboardIndexMember extends Component { // eslint-disable-line react/pref
<
p
className
=
'document-title'
>
最近的单据
<
/p
>
<
p
className
=
'document-title'
>
最近的单据
<
/p
>
<
/Col
>
<
/Col
>
<
Col
span
=
'24'
>
<
Col
span
=
'24'
>
{
if
(
this
.
props
.
loading
)
{
{
outlet
}
if
(
this
.
props
.
logined
)
{
<
Icon
type
=
'loading'
className
=
'search-loading'
/>
}
}
else
{
if
(
this
.
props
.
documents
.
length
>
0
)
{
<
Row
>
<
Col
span
=
'24'
>
{
props
.
documents
.
each
(
doc
){
<
Document
key
=
`
${
document
.
type
}
_
${
document
.
id
}
`
document
=
{
doc
}
><
/Document
>
}}
<
/Col
>
<
/Row
>
}
else
{
<
Row
type
=
'flex'
justify
=
'center'
className
=
'document-list ik-padding-bottom-20'
>
<
Col
span
=
'16'
className
=
'ik-text-center'
>
{
if
!
(
props
.
hasPermission
)
{
<
div
>
<
svg
className
=
'file-color'
>
<
use
xlinkHref
=
{
props
.
icons
.
document
}
/
>
<
/svg
>
<
/div
>
<
p
className
=
'ik-title-font ik-margin-top-20 ik-title-color'
>
亲,你没有权限操作此功能哦
<
/p
>
}
else
{
<
div
>
<
p
className
=
'ik-title-font ik-margin-top-20 ik-title-color'
>
还没有单据哦,快去新增吧
<
/p
>
<
/div
>
}}
<
/Col
>
<
/Row
>
}
}
}
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
/Row>
)
<
/Row>
)
...
...
src/routes.js
View file @
c2997fed
...
@@ -33,6 +33,6 @@ export default function createRoutes(store) {
...
@@ -33,6 +33,6 @@ export default function createRoutes(store) {
importModules
.
catch
(
errorLoading
);
importModules
.
catch
(
errorLoading
);
},
},
}
}
,
];
];
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment