Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
9de45721
Commit
9de45721
authored
Aug 13, 2019
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改业绩排行
parent
97a68360
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
190 additions
and
1 deletion
+190
-1
package-lock.json
public/appnew/package-lock.json
+0
-0
package.json
public/appnew/package.json
+1
-0
achieveFork.vue
public/appnew/src/components/achieveMain/achieveFork.vue
+30
-1
achieveForkLiNew.vue
...ic/appnew/src/components/achieveMain/achieveForkLiNew.vue
+111
-0
first.png
public/appnew/src/components/achieveMain/images/first.png
+0
-0
more.png
public/appnew/src/components/achieveMain/images/more.png
+0
-0
second.png
public/appnew/src/components/achieveMain/images/second.png
+0
-0
third.png
public/appnew/src/components/achieveMain/images/third.png
+0
-0
test.vue
public/appnew/src/components/test/test.vue
+43
-0
index.js
public/appnew/src/router/index.js
+5
-0
No files found.
public/appnew/package-lock.json
View file @
9de45721
This source diff could not be displayed because it is too large. You can
view the blob
instead.
public/appnew/package.json
View file @
9de45721
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"axios"
:
"^0.18.0"
,
"html2canvas"
:
"^1.0.0-rc.3"
,
"qs"
:
"^6.5.1"
,
"qs"
:
"^6.5.1"
,
"vue"
:
"^2.5.2"
,
"vue"
:
"^2.5.2"
,
"vue-awesome-swiper"
:
"^3.1.3"
,
"vue-awesome-swiper"
:
"^3.1.3"
,
...
...
public/appnew/src/components/achieveMain/achieveFork.vue
View file @
9de45721
...
@@ -33,8 +33,19 @@
...
@@ -33,8 +33,19 @@
</nav>
</nav>
<main>
<main>
<div
style=
"width:7.50rem;height:.76rem;background:rgba(255,128,24,0.0479);text-align:center;overflow:hidden;"
>
<div
style=
"margin-left:.79rem;float:left;width:2.52rem;font-size:.28rem;font-weight:400;color:rgba(51,51,51.1);line-height:.76rem;"
>
部门
</div>
<div
style=
"float:left;width:1.9rem;font-size:.28rem;font-weight:400;color:rgba(51,51,51.1);line-height:.76rem;"
>
业绩
</div>
<div
style=
"float:left;width:1.9rem;font-size:.28rem;font-weight:400;color:rgba(51,51,51.1);line-height:.76rem;"
>
实收
</div>
</div>
<section
class=
"main-sec"
v-for=
"(item, index) in mainData"
:key=
"item.title"
v-show=
"index === initTabNumMain"
>
<section
class=
"main-sec"
v-for=
"(item, index) in mainData"
:key=
"item.title"
v-show=
"index === initTabNumMain"
>
<ul>
<ul
v-show=
"initTabNumMain === 0 "
>
<li
v-for=
"(item2, index2) in item.listData"
>
<li
v-for=
"(item2, index2) in item.listData"
>
<achieve-fork-li
:data=
"item2"
:dataindex=
"index2"
></achieve-fork-li>
<achieve-fork-li
:data=
"item2"
:dataindex=
"index2"
></achieve-fork-li>
</li>
</li>
...
@@ -42,6 +53,19 @@
...
@@ -42,6 +53,19 @@
<achieve-fork-li
:data=
"mainData[index].selfData"
:dataindex=
"mainData[index].selfData.index_-1"
></achieve-fork-li>
<achieve-fork-li
:data=
"mainData[index].selfData"
:dataindex=
"mainData[index].selfData.index_-1"
></achieve-fork-li>
</li>
</li>
</ul>
</ul>
<ul
v-show=
"initTabNumMain === 1"
>
<li
v-for=
"(item2, index2) in item.listData"
>
<achieve-fork-li-new
:data=
"item2"
:dataindex=
"index2"
:moreShow=
"false"
></achieve-fork-li-new>
</li>
<li
class=
"self-achieve-li"
v-if=
"(item.listData.length>0) && (mainData[index].selfData)"
>
<achieve-fork-li-new
:data=
"mainData[index].selfData"
:dataindex=
"mainData[index].selfData.index_-1"
></achieve-fork-li-new>
</li>
</ul>
<ul
v-show=
"initTabNumMain === 2"
>
<li
v-for=
"(item2, index2) in item.listData"
>
<achieve-fork-li-new
:data=
"item2"
:dataindex=
"index2"
:moreShow=
"true"
></achieve-fork-li-new>
</li>
</ul>
<div
class=
"no-data-block"
v-show=
"item.listData.length===0"
>
暂无数据...
</div>
<div
class=
"no-data-block"
v-show=
"item.listData.length===0"
>
暂无数据...
</div>
<footer
class=
"oh achieve-footer"
>
<footer
class=
"oh achieve-footer"
>
<p
class=
"time-title tc"
v-show=
"false"
>
统计时间:
{{
statisticsStartTime
+
'-'
+
statisticsEndTime
}}
</p>
<p
class=
"time-title tc"
v-show=
"false"
>
统计时间:
{{
statisticsStartTime
+
'-'
+
statisticsEndTime
}}
</p>
...
@@ -56,6 +80,9 @@
...
@@ -56,6 +80,9 @@
</div>
</div>
</footer>
</footer>
</section>
</section>
<div
v-show=
"initTabNumMain === 2"
style=
"width:7.5rem;height:.78rem;background-color:rgba(255,147,24,1);text-align:center;color:rgba(255,255,255,1);font-size:.28rem;line-height:.78rem"
>
该时段总计:业绩 345,970 实收 345,970
</div>
<div
class=
"loading-gif-block"
v-show=
"isLoadFlag"
>
正在加载...
</div>
<div
class=
"loading-gif-block"
v-show=
"isLoadFlag"
>
正在加载...
</div>
</main>
</main>
</div>
</div>
...
@@ -65,11 +92,13 @@
...
@@ -65,11 +92,13 @@
import
cityDown
from
'@/components/achieveMain/images/cityDown.png'
;
import
cityDown
from
'@/components/achieveMain/images/cityDown.png'
;
import
citySelect
from
'@/components/achieveMain/citySelect'
;
import
citySelect
from
'@/components/achieveMain/citySelect'
;
import
achieveForkLi
from
'@/components/achieveMain/achieveForkLi'
;
import
achieveForkLi
from
'@/components/achieveMain/achieveForkLi'
;
import
achieveForkLiNew
from
'@/components/achieveMain/achieveForkLiNew'
;
import
'@/assets/js/layer041002.js'
;
import
'@/assets/js/layer041002.js'
;
export
default
{
export
default
{
components
:
{
components
:
{
'city-select'
:
citySelect
,
'city-select'
:
citySelect
,
'achieve-fork-li'
:
achieveForkLi
,
'achieve-fork-li'
:
achieveForkLi
,
'achieve-fork-li-new'
:
achieveForkLiNew
,
},
},
data
:
()
=>
({
data
:
()
=>
({
headerData
:
{
headerData
:
{
...
...
public/appnew/src/components/achieveMain/achieveForkLiNew.vue
0 → 100644
View file @
9de45721
<
template
>
<div
style=
"width:7.5rem;height:.9rem;line-height:1rem;overflow:hidden;"
@
click=
"turn(data)"
>
<div
style=
"margin-left:.29rem;width:.5rem;float:left;text-align:center;"
>
<img
:src=
"first"
style=
"width:80%;margin-top:.3rem;"
v-if=
"dataindex == 0"
>
<img
:src=
"second"
style=
"width:80%;margin-top:.3rem;"
v-else-if=
"dataindex == 1"
>
<img
:src=
"third"
style=
"width:80%;margin-top:.3rem;"
v-else-if=
"dataindex == 2"
>
<span
style=
"text-align:center"
v-else
>
{{
dataindex
+
1
}}
</span>
</div>
<div
class=
"nameSpan"
>
{{
data
.
name
}}
</div>
<div
class=
"priceSpan"
>
{{
dealJine
(
data
.
performance_total
)
}}
</div>
<div
class=
"priceSpan"
>
{{
dealJine
(
data
.
performance_total
)
}}
</div>
<img
:src=
"more"
style=
"flot:left; width:.1rem;"
v-show=
"moreShow && level == 40"
/>
</div>
</
template
>
<
script
>
import
onErrorImg
from
'@/assets/images/ic_default_headpic.png'
;
import
more
from
'@/components/achieveMain/images/more.png'
;
import
first
from
'@/components/achieveMain/images/third.png'
;
import
second
from
'@/components/achieveMain/images/first.png'
;
import
third
from
'@/components/achieveMain/images/second.png'
;
export
default
{
name
:
''
,
props
:
{
data
:
{
type
:
Object
,
default
:
()
=>
({
message
:
'hello'
})
},
dataindex
:
{
type
:
[
Number
,
String
],
default
:
()
=>
0
},
moreShow
:{
type
:
Boolean
,
default
:
()
=>
false
}
},
data
:
()
=>
({
more
,
first
,
second
,
third
,
level
:
''
}),
mounted
(){
this
.
level
=
localStorage
.
getItem
(
'userlevel'
);
},
methods
:
{
countRankPic
(
index
)
{
switch
(
index
){
case
0
:
return
'rank-first-pic'
;
case
1
:
return
'rank-second-pic'
;
case
2
:
return
'rank-third-pic'
;
default
:
return
''
;
};
},
dealJine
(
v
)
{
let
_this
=
this
;
return
_this
.
common
.
jineComma
(
v
,
2
);
},
turn
(
data
){
if
(
this
.
level
!=
40
){
return
false
;
}
_this
.
$router
.
push
({
path
:
'/achieveRegion'
,
query
:
{
'ywyId'
:
localStorage
.
getItem
(
'tlYjAgentId'
)
}
});
}
},
computed
:
{
}
}
</
script
>
<
style
scoped
>
.priceSpan
{
float
:
left
;
width
:
1.9rem
;
float
:
left
;
overflow
:
hidden
;
color
:
#FF8018
;
font-size
:
.28rem
;
font-family
:
DIN-Bold
;
font-weight
:
bold
;
color
:
rgba
(
255
,
128
,
24
,
1
);
text-align
:
center
;
}
.nameSpan
{
margin-left
:
.1rem
;
float
:
left
;
width
:
2.32rem
;
float
:
left
;
overflow
:
hidden
;
font-size
:
.28rem
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
color
:
rgba
(
51
,
51
,
51
,
1
);
}
</
style
>
\ No newline at end of file
public/appnew/src/components/achieveMain/images/first.png
0 → 100644
View file @
9de45721
4.92 KB
public/appnew/src/components/achieveMain/images/more.png
0 → 100644
View file @
9de45721
844 Bytes
public/appnew/src/components/achieveMain/images/second.png
0 → 100644
View file @
9de45721
5.1 KB
public/appnew/src/components/achieveMain/images/third.png
0 → 100644
View file @
9de45721
4.39 KB
public/appnew/src/components/test/test.vue
0 → 100644
View file @
9de45721
<
template
>
<div>
s
<div
id=
"capture"
style=
"padding: 10px; background: #f5da55"
>
<h4
style=
"color: #000; "
>
Hello world!
</h4>
</div>
</div>
</
template
>
<
script
>
import
html2canvas
from
'html2canvas'
export
default
{
data
:
()
=>
({
}),
mounted
(){
console
.
log
(
"123"
);
console
.
log
(
html2canvas
);
this
.
getImg
();
},
methods
:
{
getImg
(){
html2canvas
(
document
.
querySelector
(
"#capture"
),{
background
:
"rgba(255,255,255,1)"
,
onrendered
:
function
(
canvas
)
{
console
.
log
(
canvas
)
var
dataUrl
=
canvas
.
toDataURL
(
'image/jpeg'
);
console
.
log
(
dataUrl
.
length
);
uploadimg_x
(
dataUrl
);
}
}).
then
((
canvas
)
=>
{
console
.
log
(
canvas
);
console
.
log
(
canvas
.
toDataURL
())
})
},
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
public/appnew/src/router/index.js
View file @
9de45721
...
@@ -30,6 +30,7 @@ import openSquareDetails from '@/components/openSquareDetails/openSquareDetails'
...
@@ -30,6 +30,7 @@ import openSquareDetails from '@/components/openSquareDetails/openSquareDetails'
import
buildList
from
'@/components/office_building/buildList'
import
buildList
from
'@/components/office_building/buildList'
import
builldDetail
from
'@/components/office_building/builldDetail'
import
builldDetail
from
'@/components/office_building/builldDetail'
import
receiveDetail
from
'@/components/receive/receiveDetail'
import
receiveDetail
from
'@/components/receive/receiveDetail'
import
test
from
'@/components/test/test'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
...
@@ -194,6 +195,10 @@ export default new VueRouter({
...
@@ -194,6 +195,10 @@ export default new VueRouter({
path
:
'/receiveDetail'
,
path
:
'/receiveDetail'
,
name
:
'v-receiveDetail'
,
name
:
'v-receiveDetail'
,
component
:
receiveDetail
component
:
receiveDetail
},{
path
:
'/test'
,
name
:
'v-test'
,
component
:
test
}
}
...
...
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