Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
Overview
Overview
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
memberTag
memberTag-web
Commits
601b6700
Commit
601b6700
authored
Apr 21, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 兼容后端传来未注册控件code
parent
deb44a03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
tag-config-options.vue
src/components/tag/tag-config-options.vue
+15
-10
No files found.
src/components/tag/tag-config-options.vue
View file @
601b6700
...
...
@@ -1464,13 +1464,14 @@ export default {
ids
.
push
(
templateVal
.
valWidgetId
);
}
if
(
newTime
&&!!
newTime
.
length
)
{
setTimeout
(
_
=>
{
newTime
.
forEach
((
ele
,
index
)
=>
{
if
(
!!
ele
.
timeWidgetId
)
{
this
.
getTemplateCodeById
([
ele
.
timeWidgetId
]);
}
});
},
200
);
// setTimeout(_ => {
newTime
.
forEach
((
ele
,
index
)
=>
{
if
(
!!
ele
.
timeWidgetId
)
{
ids
.
push
(
ele
.
timeWidgetId
)
// this.getTemplateCodeById([ele.timeWidgetId]);
}
});
// }, 200);
}
if
(
ids
.
length
){
...
...
@@ -1487,11 +1488,15 @@ export default {
widgetId
:
id
,
requestProject
:
'gic-member-tag-web'
}))).
then
(
resArr
=>
{
console
.
log
(
resArr
);
if
(
!
resArr
||!
resArr
.
length
)
return
;
resArr
.
forEach
(
res
=>
{
if
(
res
.
errorCode
!=
1
)
return
;
this
.
handleFindWidgetData
(
res
);
try
{
this
.
handleFindWidgetData
(
res
);
}
catch
(
err
){
console
.
log
(
err
)
}
})
}).
finally
(
_
=>
{
this
.
canSave
=
true
;
...
...
@@ -1500,7 +1505,7 @@ export default {
handleFindWidgetData
(
res
){
let
data
=
res
.
result
;
for
(
let
key
in
data
)
{
console
.
log
(
data
.
templateCode
)
console
.
log
(
key
)
if
(
data
.
templateCode
==
'com023'
)
{
this
[
data
.
templateCode
][
key
]
=
data
[
key
];
}
else
if
(
data
.
templateCode
==
'com025'
)
{
...
...
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