Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Ygopro Arena Web
Commits
77e3b283
Commit
77e3b283
authored
Mar 11, 2019
by
IamI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
3391b881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/components/Cards.vue
src/components/Cards.vue
+7
-5
No files found.
src/components/Cards.vue
View file @
77e3b283
...
...
@@ -213,7 +213,7 @@
},
watch
:
{
lang
:
function
(
val
)
{
console
.
log
(
'
lang change1
'
,
val
)
//
console.log('lang change1', val)
this
.
init2
()
},
},
...
...
@@ -287,13 +287,15 @@
type
:
$
(
"
#type
"
).
val
(),
source
:
final_source
},
function
(
data
)
{
var
obj
=
JSON
.
parse
(
data
);
var
obj
=
data
;
if
(
typeof
obj
===
'
string
'
)
obj
=
JSON
.
parse
(
data
);
var
rank
=
1
;
var
processData
=
obj
.
map
(
function
(
x
)
{
var
tagStr
=
[];
var
deckName
=
x
.
name
;
for
(
var
i
=
0
;
i
<
x
.
tags
.
length
;
i
++
)
{
var
tagName
=
x
.
tags
[
i
].
name
;
var
tagName
=
x
.
tags
[
i
].
name
||
x
.
tags
[
i
].
toString
()
||
""
;
var
short_tagName
=
tagName
.
replace
(
deckName
+
"
-
"
,
""
);
tagStr
.
push
(
short_tagName
)
}
...
...
@@ -335,7 +337,7 @@
var
rank
=
1
;
var
processData
=
tableData
.
map
(
function
(
d
)
{
return
[
rank
++
,
d
.
name
[
langIndex
]
,
d
.
frequency
,
d
.
putone
,
d
.
puttwo
,
d
.
putthree
,
d
.
id
];
return
[
rank
++
,
d
.
name
?
d
.
name
[
langIndex
]
:
"
未知卡片
"
,
d
.
frequency
,
d
.
putone
,
d
.
puttwo
,
d
.
putthree
,
d
.
id
];
});
var
table
=
$
(
tableID
).
DataTable
({
...
...
@@ -354,7 +356,7 @@
{
"
render
"
:
function
(
data
,
type
,
row
)
{
// return "
<
span
title
=
'
" + data + "
'
>
"
+ data +
"
<
/span>"
;
return
"
<a href='
?id=
"
+
row
[
6
]
+
"
#/cardinfo
'>
"
+
data
+
"
</a>
"
;
return
"
<a href='
https://www.ourocg.cn/search/
"
+
row
[
6
]
+
"
/
'>
"
+
data
+
"
</a>
"
;
},
"
targets
"
:
1
},
...
...
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