Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
jml0128
/
xrk-bi
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 74499e6a
authored
Jul 05, 2021
by
jml0128
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
4c04b444
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
15 deletions
src/packages/bi/src/components/cover.vue
src/packages/bi/src/components/operate.vue
src/packages/bi/src/main.vue
src/packages/bi/src/mock/index.js
src/packages/bi/src/project/20-configurable.vue
src/packages/bi/src/project/6-zone.vue
src/packages/bi/src/components/cover.vue
View file @
74499e6
...
...
@@ -149,7 +149,7 @@ export default {
return
dis
*
(
this
.
isPrint
?
printWidth
:
this
.
baseFontSize
);
},
changeCover
()
{
this
.
$emit
(
'change'
,
this
.
coverList
[
this
.
localIndex
]
.
id
);
this
.
$emit
(
'change'
,
this
.
coverList
[
this
.
localIndex
]);
this
.
visibleCoverList
=
false
;
},
handleMouseDown
(
e
,
pos
)
{
...
...
src/packages/bi/src/components/operate.vue
View file @
74499e6
...
...
@@ -4,20 +4,22 @@
-->
<
template
>
<div>
<div
class=
"fixed-btn"
v-if=
"!isPrint"
>
<div
class=
"fixed-btn"
>
<div
class=
""
@
click=
"dialogVisible = true"
v-if=
"questionData.findIndex(item => item.isDelete == 1) > -1"
v-if=
"
!isPrint && questionData.findIndex(item => item.isDelete == 1) > -1
"
>
<img
src=
"../lib/svg/chexiao.svg"
/>
撤销删除
</div>
<div
class=
""
@
click=
"save"
>
<div
class=
""
@
click=
"save"
v-if=
"!isPrint"
>
<img
src=
"../lib/svg/baocun.svg"
/>
保存
</div>
<div
class=
""
@
click=
"exportFn"
>
<div
class=
""
@
click=
"exportFn"
v-if=
"!isPrint || Bi.cantEdit == 1"
>
<img
src=
"../lib/svg/daochu-tianchong.svg"
/>
导出
</div>
...
...
src/packages/bi/src/main.vue
View file @
74499e6
...
...
@@ -3,7 +3,7 @@
* @Author: jml
* @Date: 2021-02-26 15:38:10
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-0
3 16:03:42
* @LastEditTime: 2021-07-0
5 18:15:51
-->
<
template
>
<div
class=
"xrk-components-bi bi"
:class=
"
{ 'bi-print': print }">
...
...
@@ -36,6 +36,7 @@ export default {
props
:
{
mobile
:
[
Number
,
String
,
Boolean
],
print
:
[
Number
,
String
,
Boolean
],
cantEdit
:
[
Number
,
String
],
projectType
:
[
Number
,
String
],
getBaseInfo
:
{
type
:
Function
,
...
...
src/packages/bi/src/mock/index.js
View file @
74499e6
...
...
@@ -128,10 +128,10 @@ export const chartConfig = () => {
colors
[
0
],
data
:
data
,
axis
:
[
{
factorName
:
xFactor
,
name
:
'您的医保类型( )'
,
names
:
x
},
{
factorName
:
xFactor
,
name
:
xAxisName
,
names
:
x
},
{
factorName
:
yFactor
,
name
:
'日常药物的选择,您更偏向( )'
,
name
:
yAxisName
,
names
:
y
}
],
...
...
src/packages/bi/src/project/20-configurable.vue
View file @
74499e6
...
...
@@ -10,7 +10,12 @@
:coverList=
"coverList"
:coverId=
"coverId"
:coverUrl=
"coverUrl"
@
change=
"id => (coverId = id)"
@
change=
"
(
{ id, templatePicUrl }) => {
coverId = id;
coverUrl = templatePicUrl;
}
"
>
</BiCover>
<BiCatalogue
class=
"bi-block"
:catalogueArr=
"catalogueArr"
></BiCatalogue>
<BiOverview
...
...
@@ -27,6 +32,7 @@
@
page=
"setPage(arguments, 'page1')"
></BiMission>
<BiSingleChoice
v-if=
"showSingleChoice.length > 0"
class=
"bi-block no-border"
:singleChoice=
"showSingleChoice"
:pageWrap=
"true"
...
...
@@ -40,6 +46,7 @@
></BiSingleChoiceInfo>
</BiSingleChoice>
<BiSingleChoice
v-if=
"showSingleChoiceMixin.length > 0"
class=
"bi-block no-border"
:singleChoice=
"showSingleChoiceMixin"
:pageWrap=
"true"
...
...
@@ -266,7 +273,7 @@ export default {
},
{
name
:
'参与调研样本'
,
value
:
`
${
examinePeopleNumber
}
人
`
value
:
`
${
examinePeopleNumber
}
份
`
},
{
name
:
'报表生成时间'
,
...
...
src/packages/bi/src/project/6-zone.vue
View file @
74499e6
...
...
@@ -10,7 +10,12 @@
:coverList=
"coverList"
:coverId=
"coverId"
:coverUrl=
"coverUrl"
@
change=
"id => (coverId = id)"
@
change=
"
(
{ id, templatePicUrl }) => {
coverId = id;
coverUrl = templatePicUrl;
}
"
>
</BiCover>
<BiCatalogue
class=
"bi-block"
:catalogueArr=
"catalogueArr"
></BiCatalogue>
<BiOverview
...
...
@@ -368,6 +373,7 @@ export default {
disableTypes
:
[
3
,
4
,
9
,
10
,
11
]
}),
item
=>
({
hideThisChart
:
item
.
topicCountInfos
.
length
<
7
,
chartType
:
item
.
chartType
||
randomType
([
1
,
2
,
5
,
6
]),
blockTitle
:
'数字专区单日点击量Top5日期分布图'
,
hideLegend
:
true
,
...
...
@@ -375,6 +381,7 @@ export default {
disableTypes
:
[
3
,
4
,
9
,
10
,
11
]
}),
item
=>
({
hideThisChart
:
item
.
topicCountInfos
.
length
<
7
,
chartType
:
item
.
chartType
||
9
,
blockTitle
:
'数字专区单日点击量Top5占周期总有效点击量占比分析图'
,
hideLegend
:
true
,
...
...
@@ -395,11 +402,15 @@ export default {
if
(
check
.
isFunction
(
customConfig
))
{
customConfig
=
customConfig
(
item
);
}
return
ChartConfigFn
.
createConfig
(
dealAxis
(
item
.
topicCountInfos
),
{
...
item
,
...
customConfig
});
return
{
...
ChartConfigFn
.
createConfig
(
dealAxis
(
item
.
topicCountInfos
),
{
...
item
,
...
customConfig
}),
hideThisChart
:
customConfig
.
hideThisChart
};
})
.
filter
(
item
=>
!
item
.
hideThisChart
)
.
sort
((
a
,
b
)
=>
{
if
(
a
.
sort
<
b
.
sort
)
{
return
-
1
;
...
...
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