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 8138f260
authored
Jul 13, 2021
by
jml0128
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
be27e40e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
package.json
src/packages/bi/src/mixin/project.js
src/packages/bi/src/project/20-configurable.vue
src/packages/bi/src/project/6-zone.vue
package.json
View file @
8138f26
{
"name"
:
"xrk-bi"
,
"version"
:
"0.1.
7
"
,
"version"
:
"0.1.
8
"
,
"description"
:
"xrk-bi"
,
"author"
:
"xrk"
,
"main"
:
"dist/bundler.js"
,
...
...
src/packages/bi/src/mixin/project.js
View file @
8138f26
...
...
@@ -35,6 +35,18 @@ export default {
}
else
{
this
[
pageKey
]
=
pageInfo
;
}
},
preloadImg
(
url
)
{
return
new
Promise
(
resolve
=>
{
const
img
=
new
Image
();
img
.
src
=
url
;
img
.
onload
=
()
=>
{
resolve
(
'load finish'
);
};
img
.
onerror
=
()
=>
{
resolve
(
'load fail'
);
};
});
}
}
};
src/packages/bi/src/project/20-configurable.vue
View file @
8138f26
...
...
@@ -462,7 +462,8 @@ export default {
this
.
dealChoice
(
topicInfo
.
data
.
data
||
[]);
this
.
dealChoiceMixin
(
topicMixinInfo
.
data
.
data
||
[]);
this
.
coverList
=
tempaletList
.
data
.
data
||
[];
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(
async
()
=>
{
await
this
.
preloadImg
(
this
.
coverUrl
);
window
.
status
=
'1'
;
});
}
...
...
src/packages/bi/src/project/6-zone.vue
View file @
8138f26
...
...
@@ -496,7 +496,8 @@ export default {
this
.
dealChoice
(
topicInfo
.
data
.
data
||
[]);
this
.
dealChoiceMixin
(
topicMixinInfo
.
data
.
data
||
[]);
this
.
coverList
=
tempaletList
.
data
.
data
||
[];
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(
async
()
=>
{
await
this
.
preloadImg
(
this
.
coverUrl
);
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