Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 71adb487
authored
Oct 26, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
723b94d6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
10 deletions
src/App.vue
src/config/index.js
src/views/square/index.vue
src/views/userPortrait/components/UserStats.vue
src/App.vue
View file @
71adb48
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
</div>
-->
<keep-alive
exclude=
"clientDetail,clientGroupDetail,clientGroupManage,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage,marketingPeople,grouping"
>
<keep-alive
exclude=
"clientDetail,clientGroupDetail,clientGroupManage,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage,marketingPeople,grouping
,import
"
>
<router-view></router-view>
<router-view></router-view>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
src/config/index.js
View file @
71adb48
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return
Promise
.
resolve
(
cfg
)
return
Promise
.
resolve
(
cfg
)
}
}
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.
dev.
glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
//开发环境mock
//开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
}
...
...
src/views/square/index.vue
View file @
71adb48
...
@@ -376,6 +376,7 @@ export default {
...
@@ -376,6 +376,7 @@ export default {
this
.
datacubeNotice
()
this
.
datacubeNotice
()
this
.
queryCrowdTree
()
this
.
queryCrowdTree
()
},
},
beforeDestroy
()
{
beforeDestroy
()
{
this
.
$notify
.
closeAll
()
this
.
$notify
.
closeAll
()
}
}
...
...
src/views/userPortrait/components/UserStats.vue
View file @
71adb48
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
<div
class=
"avatar male"
></div>
<div
class=
"avatar male"
></div>
<span>
男
</span>
<span>
男
</span>
<div
class=
"progress"
>
<div
class=
"progress"
>
<div
class=
"fill male"
:style=
"
{ width: malePercentage + '%' }">
{{
malePercentage
||
0
}}
%
</div>
<div
class=
"fill male"
:style=
"
{ width: malePercentage==0? 50: malePercentage+ '%' }">
{{
malePercentage
||
0
}}
%
</div>
</div>
</div>
<span
class=
"male-count"
>
{{
maleCount
}}
人
</span>
<span
class=
"male-count"
>
{{
maleCount
}}
人
</span>
</div>
</div>
...
@@ -12,7 +15,9 @@
...
@@ -12,7 +15,9 @@
<div
class=
"avatar female"
></div>
<div
class=
"avatar female"
></div>
<span>
女
</span>
<span>
女
</span>
<div
class=
"progress"
>
<div
class=
"progress"
>
<div
class=
"fill female"
:style=
"
{ width: femalePercentage + '%' }">
{{
femalePercentage
||
0
}}
%
</div>
<div
class=
"fill female"
:style=
"
{ width: femalePercentage== 0?50:femalePercentage + '%' }">
{{
femalePercentage
||
0
}}
%
</div>
</div>
</div>
<span
class=
"female-count"
>
{{
femaleCount
}}
人
</span>
<span
class=
"female-count"
>
{{
femaleCount
}}
人
</span>
</div>
</div>
...
@@ -23,23 +28,31 @@
...
@@ -23,23 +28,31 @@
export
default
{
export
default
{
name
:
"UserStats"
,
name
:
"UserStats"
,
props
:{
props
:
{
maleCount
:{
maleCount
:
{
type
:
String
,
type
:
String
,
default
:
''
,
default
:
''
,
},
},
femaleCount
:{
femaleCount
:
{
type
:
String
,
type
:
String
,
default
:
''
,
default
:
''
,
}
}
},
},
computed
:
{
computed
:
{
malePercentage
()
{
malePercentage
()
{
return
(
this
.
maleCount
/
(
this
.
maleCount
+
this
.
femaleCount
))
*
100
;
let
percentage
=
(
this
.
maleCount
/
(
this
.
maleCount
+
this
.
femaleCount
))
*
100
;
return
(
isNaN
(
percentage
)
?
0
:
percentage
.
toFixed
(
2
));
},
},
femalePercentage
()
{
femalePercentage
()
{
if
(
this
.
maleCount
+
this
.
femaleCount
==
0
){
return
0
}
else
{
return
100
-
this
.
malePercentage
;
return
100
-
this
.
malePercentage
;
}
}
}
}
}
};
};
</
script
>
</
script
>
...
@@ -77,6 +90,7 @@ export default {
...
@@ -77,6 +90,7 @@ export default {
width
:
10vw
;
width
:
10vw
;
height
:
2.5vh
;
height
:
2.5vh
;
margin
:
10px
0
;
margin
:
10px
0
;
.fill
{
.fill
{
height
:
100%
;
height
:
100%
;
line-height
:
2.5vh
;
line-height
:
2.5vh
;
...
@@ -104,13 +118,13 @@ export default {
...
@@ -104,13 +118,13 @@ export default {
}
}
}
}
.male-count
{
.male-count
{
color
:
#5A64FF
;
color
:
#5A64FF
;
font-size
:
14px
;
font-size
:
14px
;
text-align
:
left
;
text-align
:
left
;
}
}
.female-count
{
.female-count
{
color
:
#FF5A92
;
color
:
#FF5A92
;
font-size
:
14px
;
font-size
:
14px
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment