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 9c4b8c2a
authored
Apr 29, 2022
by
jml0128
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/数字问卷' into 'develop'
fix:优化项目bi页码计算 See merge request
!15
2 parents
153662f2
bfa51a34
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
package.json
src/packages/bi/src/commonComponents/article.vue
src/packages/bi/src/components/singleChoice.vue
src/packages/bi/src/project/21-digitalQuestionnaire.vue
package.json
View file @
9c4b8c2
{
{
"name"
:
"xrk-bi"
,
"name"
:
"xrk-bi"
,
"version"
:
"0.3.0-beta.1
0
"
,
"version"
:
"0.3.0-beta.1
1
"
,
"description"
:
"xrk-bi"
,
"description"
:
"xrk-bi"
,
"author"
:
"xrk"
,
"author"
:
"xrk"
,
"main"
:
"dist/bundler.js"
,
"main"
:
"dist/bundler.js"
,
...
...
src/packages/bi/src/commonComponents/article.vue
View file @
9c4b8c2
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
* @Author: jml
* @Author: jml
* @Date: 2021-03-24 10:22:27
* @Date: 2021-03-24 10:22:27
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-04-2
7 20:29:1
9
* @LastEditTime: 2022-04-2
9 12:27:0
9
-->
-->
<
template
>
<
template
>
<div>
<div>
<BiBlank
height=
"40"
:usePrint=
"true"
></BiBlank>
<BiBlank
height=
"40"
:usePrint=
"true"
></BiBlank>
<div
class=
"bi-article"
v-html=
"content"
></div>
<div
class=
"bi-article"
v-html=
"
_
content"
></div>
<BiBlank
height=
"40"
:usePrint=
"true"
></BiBlank>
<BiBlank
height=
"40"
:usePrint=
"true"
></BiBlank>
</div>
</div>
</
template
>
</
template
>
...
@@ -28,6 +28,18 @@ export default {
...
@@ -28,6 +28,18 @@ export default {
default
:
''
default
:
''
}
}
},
},
computed
:
{
_content
()
{
return
`
${
this
.
content
}
`
.
replace
(
/
((
width
)
="
(\d
+
)
"
)
((
height
)
="
(\d
+
)
"
)
/g
,
(...
a
)
=>
{
return
`style="width:1000px;height:
${
parseInt
(
(
a
[
6
]
*
1000
)
/
a
[
3
]
)}
px;"`
;
}
);
}
},
data
()
{
data
()
{
return
{
return
{
option
:
{}
option
:
{}
...
@@ -44,8 +56,7 @@ export default {
...
@@ -44,8 +56,7 @@ export default {
img,
img,
video
{
video
{
width
:
100%
;
width
:
100%
;
object-fit
:
contain
;
height
:
inherit
;
height
:
100%
;
}
}
}
}
</
style
>
</
style
>
src/packages/bi/src/components/singleChoice.vue
View file @
9c4b8c2
...
@@ -230,9 +230,13 @@ export default {
...
@@ -230,9 +230,13 @@ export default {
className
=
'print-item nowarp child-nowarp'
;
className
=
'print-item nowarp child-nowarp'
;
}
else
{
}
else
{
offsetHeight
=
this
.
getArticleHeight
(
0
,
$el
);
offsetHeight
=
this
.
getArticleHeight
(
0
,
$el
);
pre
.
totalPage
+=
offsetHeight
>
baseHeight
*
baseScale
?
1
:
0
;
// 玄学
pre
.
totalPage
+=
1
;
className
=
'print-item child-nowarp'
;
className
=
'print-item child-nowarp'
;
}
}
console
.
log
(
offsetHeight
,
parseInt
(
offsetHeight
/
(
baseHeight
*
baseScale
))
);
}
}
const
domUsePage
=
parseInt
(
offsetHeight
/
(
baseHeight
*
baseScale
));
const
domUsePage
=
parseInt
(
offsetHeight
/
(
baseHeight
*
baseScale
));
if
(
this
.
printInfo
)
{
if
(
this
.
printInfo
)
{
...
...
src/packages/bi/src/project/21-digitalQuestionnaire.vue
View file @
9c4b8c2
...
@@ -606,6 +606,11 @@ export default {
...
@@ -606,6 +606,11 @@ export default {
this
.
coverList
=
tempaletList
.
data
.
data
||
[];
this
.
coverList
=
tempaletList
.
data
.
data
||
[];
this
.
$nextTick
(
async
()
=>
{
this
.
$nextTick
(
async
()
=>
{
await
this
.
preloadImg
(
this
.
coverUrl
);
await
this
.
preloadImg
(
this
.
coverUrl
);
// await Promise.all(
// [...document.querySelectorAll('img')].map(i =>
// this.preloadImg(i.src)
// )
// );
window
.
status
=
'1'
;
window
.
status
=
'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