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
GaiaXalter
Ygopro Arena Web
Commits
188b7b98
Commit
188b7b98
authored
Mar 21, 2019
by
Joe
Browse files
Options
Browse Files
Download
Plain Diff
merge commit
parents
d0c566c4
77e3b283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/components/Cards.vue
src/components/Cards.vue
+10
-4
No files found.
src/components/Cards.vue
View file @
188b7b98
...
...
@@ -222,7 +222,7 @@
},
watch
:
{
lang
:
function
(
val
)
{
console
.
log
(
'
lang change1
'
,
val
)
//
console.log('lang change1', val)
this
.
init2
()
},
},
...
...
@@ -296,13 +296,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
)
}
...
...
@@ -344,7 +346,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
({
...
...
@@ -363,8 +365,12 @@
{
"
render
"
:
function
(
data
,
type
,
row
)
{
// return "
<
span
title
=
'
" + data + "
'
>
"
+ data +
"
<
/span>"
;
//
<<<<<<<
HEAD
// return "
<
a
href
=
'
?id=" + row[6] + "#/cardinfo
'
>
"
+ data +
"
<
/a>"
;
return
"
<a href='https://www.ourocg.cn/search/
"
+
row
[
6
]
+
"
'>
"
+
data
+
"
</a>
"
;
// =======
// return "
<
a
href
=
'
https://www.ourocg.cn/search/" + row[6] + "/
'
>
"
+ data +
"
<
/a>"
;
// >>>>>>> 77e3b283f8782193f4ecdaf5219a79ecf9fd2a91
},
"
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