Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
gzga-jzapi
apaas-ui
Commits
550c7e73
Commit
550c7e73
authored
Jan 18, 2021
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳页面
parent
90e023c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
17 deletions
+32
-17
src/components/table/table-um.vue
src/components/table/table-um.vue
+5
-0
src/components/table/table-umhref.vue
src/components/table/table-umhref.vue
+26
-17
src/pages/workbench/workPlace.vue
src/pages/workbench/workPlace.vue
+1
-0
No files found.
src/components/table/table-um.vue
View file @
550c7e73
...
...
@@ -152,6 +152,7 @@
:row=
"scope.row"
:ids=
"item.id"
:detailsUrl=
"detailsUrl"
:ites=
"ites"
></v-apaas-table-umhref>
<!-- could edit -->
<v-apaas-table-input
...
...
@@ -400,6 +401,10 @@ export default {
maxheight
:
{
type
:
[
String
,
Number
],
default
:
"
"
},
ites
:
{
type
:
Boolean
,
default
:
false
,
}
},
data
()
{
...
...
src/components/table/table-umhref.vue
View file @
550c7e73
<
template
>
<span>
<span
v-if=
"this.row.id||ids"
class=
"href"
@
click=
"goHref(baseVal)"
>
{{
text
}}
</span>
<span
v-else
>
{{
text
}}
</span>
<span
v-if=
"this.row.id || ids"
class=
"href"
@
click=
"goHref(baseVal)"
>
{{
text
}}
</span>
<span
v-else
>
{{
text
}}
</span>
</span>
</
template
>
...
...
@@ -10,35 +12,42 @@ import helper from "@/services/helper";
import
format
from
"
string-format
"
;
export
default
{
props
:
[
"
header
"
,
"
row
"
,
"
detailsUrl
"
,
"
id
s
"
],
props
:
[
"
header
"
,
"
row
"
,
"
detailsUrl
"
,
"
ids
"
,
"
ite
s
"
],
computed
:
{
text
:
function
()
{
text
:
function
()
{
let
text
=
helper
.
GetProperty
(
this
.
row
,
this
.
header
.
prop
);
return
text
;
},
// get row.id value
baseVal
:
function
()
{
baseVal
:
function
()
{
let
baseVal
=
helper
.
GetProperty
(
this
.
row
,
"
id
"
);
return
baseVal
;
},
},
created
(){
},
created
()
{},
methods
:
{
// Jump routing using id as parameter
goHref
(
val
)
{
if
(
this
.
ids
){
if
(
this
.
ids
.
indexOf
(
'
.
'
)
==-
1
){
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
])
}
else
{
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
.
split
(
'
.
'
)[
0
]][
this
.
ids
.
split
(
'
.
'
)[
1
]])
if
(
this
.
ids
)
{
if
(
this
.
ids
.
indexOf
(
"
.
"
)
==
-
1
)
{
if
(
this
.
ites
)
{
console
.
log
(
this
.
row
)
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
]
+
"
/
"
+
this
.
row
.
app_id
);
}
else
{
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
]);
}
}
else
{
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
.
split
(
"
.
"
)[
0
]][
this
.
ids
.
split
(
"
.
"
)[
1
]]
);
}
}
else
{
this
.
$router
.
push
(
this
.
detailsUrl
+
val
)
}
else
{
console
.
log
(
"
!123
"
);
this
.
$router
.
push
(
this
.
detailsUrl
+
val
);
}
}
}
}
,
}
,
};
</
script
>
<
style
scoped
>
...
...
src/pages/workbench/workPlace.vue
View file @
550c7e73
...
...
@@ -319,6 +319,7 @@
:datas=
"app_data"
:stripe=
"true"
:detailsUrl=
"detailsUrl1[now_user][now_app]"
:ites=
"true"
height=
"285"
></table-um>
<list-pagination
...
...
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