Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
godwithdh
WX_h5
Commits
d1140395
Commit
d1140395
authored
Dec 18, 2019
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boss
parent
8ab8a8eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
host.js
src/libs/host.js
+2
-2
index.js
src/router/index.js
+1
-1
Finance.vue
src/view/tiip/kanban/Finance.vue
+8
-6
capital.vue
src/view/tiip/kanban/capital.vue
+1
-1
index.vue
src/view/tiip/kanban/index.vue
+5
-7
No files found.
src/libs/host.js
View file @
d1140395
...
@@ -13,8 +13,8 @@ function urlFun(name){
...
@@ -13,8 +13,8 @@ function urlFun(name){
* 默认公司
* 默认公司
*/
*/
// default:`http://192.168.4.39:5001`,
// default:`http://192.168.4.39:5001`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`
,
//
default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`,
//
default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/service/proxy/
${
userID
}
`
,
/**
/**
* 基本地址
* 基本地址
...
...
src/router/index.js
View file @
d1140395
...
@@ -111,7 +111,7 @@ let routes = [
...
@@ -111,7 +111,7 @@ let routes = [
name
:
"kanban"
,
name
:
"kanban"
,
component
:()
=>
import
(
"@/view/tiip/kanban/index.vue"
),
component
:()
=>
import
(
"@/view/tiip/kanban/index.vue"
),
meta
:{
meta
:{
title
:
"
老板看板
"
title
:
"
经营分析
"
}
}
},
},
{
{
...
...
src/view/tiip/kanban/Finance.vue
View file @
d1140395
...
@@ -40,18 +40,20 @@
...
@@ -40,18 +40,20 @@
<
template
>
<
template
>
<div
class=
"Finance"
:style=
"list.length==0&&'background:#fff;height:100%;'"
>
<div
class=
"Finance"
:style=
"list.length==0&&'background:#fff;height:100%;'"
>
<div
v-for=
"(v,k) in list"
:key=
'k'
v-if=
"list.length>0"
>
<div
v-for=
"(v,k) in list"
:key=
'k'
v-if=
"list.length>0"
>
<
div
class=
"title_"
>
{{
v
.
sName
}}
</div
>
<
!--
<div
class=
"title_"
>
{{
v
.
sName
}}
</div>
--
>
<div
class=
"card"
>
<div
class=
"card"
>
<span
style=
"font-size:15px;"
>
{{
v
.
sName
}}
</span>
<div>
<div>
<div
class=
"num"
>
<div
class=
"num"
>
<div><span>
数量
</span><span>
{{
Number
(
v
.
nQty
||
0
)
.
toLocaleString
()
}}
</span></div>
<div><span>
数量
</span><span>
{{
Number
(
v
.
nQty
||
0
)
}}
</span></div>
<div><span>
金额
</span><span
style=
"color:#5E9AFE;"
>
{{
Number
(
v
.
nAmount
||
0
).
toLocaleString
()
}}
</span></div>
<div><span>
金额
</span><span
style=
"color:#5E9AFE;"
>
{{
Number
(
v
.
nAmount
||
0
).
toLocaleString
()
}}
</span></div>
<div><span>
余额
</span><span
style=
"color:#
FF6633
;"
>
{{
Number
(
v
.
nCloseAmount
||
0
).
toLocaleString
()
}}
</span></div>
<div><span>
余额
</span><span
style=
"color:#
901AF7
;"
>
{{
Number
(
v
.
nCloseAmount
||
0
).
toLocaleString
()
}}
</span></div>
</div>
</div>
<XCircle
<XCircle
style=
"width: 70px;height: 70px;"
style=
"width: 70px;height: 70px;
margin-right:15px;
"
:percent=
"Number(v.nPercent)||0"
:percent=
"Number(v.nPercent)||0"
:stroke-width=
"7"
:stroke-width=
"10"
:id=
"`perent$
{k}`"
:stroke-color="color[k%4]"
:stroke-color="color[k%4]"
:trail-width="5"
:trail-width="5"
trail-color="#ececec">
trail-color="#ececec">
...
@@ -76,7 +78,7 @@ export default {
...
@@ -76,7 +78,7 @@ export default {
data
(){
data
(){
return
{
return
{
list
:[],
list
:[],
color
:[
'#FF6633'
,
'#5E9AFE'
,
'#9966CC'
,
'#46FC43'
],
color
:[
[
'#21AEE4'
,
'#74D3F7'
],[
'#5E9AFE'
,
"#A0C1FC"
],[
'#9966CC'
,
"#C190F7"
],[
'#3EC9DE'
,
"#A0F0FA"
]
],
}
}
},
},
watch
:{
watch
:{
...
...
src/view/tiip/kanban/capital.vue
View file @
d1140395
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</div>
</div>
<div
style=
"align-self: flex-end;"
v-if=
"v.rate!=0&&dateMode
<5
"
>
<div
style=
"align-self: flex-end;"
v-if=
"v.rate!=0&&dateMode
<5
"
>
<div>
{{
v
.
rate
>
0
?
'↑'
:
'↓'
}}{{
v
.
rate
}}
%
</div>
<div>
{{
v
.
rate
>
0
?
'↑'
:
'↓'
}}{{
v
.
rate
}}
%
</div>
<div>
比
{{
dateModeName
}}{{
v
.
rate
>
0
?
'上
'
:
'下'
}}
降
</div>
<div>
比
{{
dateModeName
}}{{
v
.
rate
>
0
?
'上
升'
:
'下降'
}}
</div>
</div>
</div>
</div>
</div>
<img
src=
"@/assets/noData.jpg"
style=
"width:100%;"
v-if=
"list.length==0"
/>
<img
src=
"@/assets/noData.jpg"
style=
"width:100%;"
v-if=
"list.length==0"
/>
...
...
src/view/tiip/kanban/index.vue
View file @
d1140395
...
@@ -206,18 +206,16 @@ export default {
...
@@ -206,18 +206,16 @@ export default {
}
else
{
}
else
{
date
.
setDate
(
date
.
getDate
()
+
7
-
(
date
.
getDay
()
||
7
)
+
val
*
7
)
date
.
setDate
(
date
.
getDate
()
+
7
-
(
date
.
getDay
()
||
7
)
+
val
*
7
)
}
}
return
date
;
return
new
Date
(
date
.
getTime
())
;
},
},
setMonth
(
date
,
val
,
mode
){
setMonth
(
date
,
val
,
mode
){
console
.
log
(
date
,
val
,
mode
,
"----"
)
date
.
setDate
(
1
)
date
.
setMonth
(
date
.
getMonth
()
+
val
)
date
.
setMonth
(
date
.
getMonth
()
+
val
)
if
(
mode
==
'start'
){
if
(
mode
==
'end'
){
date
.
setDate
(
1
)
}
else
{
date
.
setMonth
(
date
.
getMonth
()
+
1
)
date
.
setMonth
(
date
.
getMonth
()
+
1
)
date
.
setDate
(
0
)
date
.
setDate
(
0
)
}
}
return
date
;
return
new
Date
(
date
.
getTime
())
;
},
},
setYear
(
date
,
val
,
mode
){
setYear
(
date
,
val
,
mode
){
date
.
setFullYear
(
date
.
getFullYear
()
+
val
)
date
.
setFullYear
(
date
.
getFullYear
()
+
val
)
...
@@ -228,7 +226,7 @@ export default {
...
@@ -228,7 +226,7 @@ export default {
date
.
setFullYear
(
date
.
getFullYear
()
+
1
)
date
.
setFullYear
(
date
.
getFullYear
()
+
1
)
date
.
setDate
(
0
);
date
.
setDate
(
0
);
}
}
return
date
;
return
new
Date
(
date
.
getTime
())
;
},
},
},
},
computed
:{
computed
:{
...
...
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