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
41fe88e8
Commit
41fe88e8
authored
Nov 12, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据改动
parent
353c1b22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
src/components/recommen/recommen-box.vue
src/components/recommen/recommen-box.vue
+2
-1
src/pages/message-management/recommended/recommended-eidt.vue
...pages/message-management/recommended/recommended-eidt.vue
+15
-7
No files found.
src/components/recommen/recommen-box.vue
View file @
41fe88e8
...
@@ -69,8 +69,9 @@ export default {
...
@@ -69,8 +69,9 @@ export default {
},
},
watch
:
{
watch
:
{
"
data.checked
"
(
val
)
{
"
data.checked
"
(
val
)
{
// debugger
this
.
checked
=
val
===
1
;
this
.
checked
=
val
===
1
;
}
}
,
},
},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
...
...
src/pages/message-management/recommended/recommended-eidt.vue
View file @
41fe88e8
...
@@ -118,8 +118,19 @@ export default {
...
@@ -118,8 +118,19 @@ export default {
}
}
})
})
},
},
//改变select_able数据
change_select_able
(
val
,
flag
){
for
(
let
i
=
0
;
i
<
this
.
select_able_arr
.
length
;
i
++
)
{
let
item
=
this
.
select_able_arr
[
i
];
if
(
item
.
id
===
val
.
id
)
{
this
.
$set
(
item
,
"
checked
"
,
flag
);
break
;
}
}
},
change_value
(
val
)
{
change_value
(
val
)
{
// console.log(val);
// console.log(val);
// debugger
if
(
val
.
check
){
if
(
val
.
check
){
this
.
selected_arr
.
push
(
val
.
data
)
this
.
selected_arr
.
push
(
val
.
data
)
}
else
{
}
else
{
...
@@ -131,18 +142,14 @@ export default {
...
@@ -131,18 +142,14 @@ export default {
});
});
this
.
selected_arr
.
splice
(
temp
,
1
)
this
.
selected_arr
.
splice
(
temp
,
1
)
}
}
this
.
change_select_able
(
val
,
val
.
check
?
1
:
0
)
},
},
rank_value
(
val
)
{
rank_value
(
val
)
{
// console.log(val);
// console.log(val);
// debugger
var
index
=
val
.
position
==
'
start
'
?
0
:
val
.
position
==
'
end
'
?
this
.
selected_arr
.
length
-
1
:
val
.
position
var
index
=
val
.
position
==
'
start
'
?
0
:
val
.
position
==
'
end
'
?
this
.
selected_arr
.
length
-
1
:
val
.
position
if
(
val
.
act
==
2
){
if
(
val
.
act
==
2
){
for
(
let
i
=
0
;
i
<
this
.
select_able_arr
.
length
;
i
++
)
{
this
.
change_select_able
(
val
,
0
)
let
item
=
this
.
select_able_arr
[
i
];
if
(
item
.
id
===
val
.
id
)
{
this
.
$set
(
item
,
"
checked
"
,
0
);
break
;
}
}
this
.
selected_arr
.
splice
(
index
,
1
)
this
.
selected_arr
.
splice
(
index
,
1
)
}
else
if
(
val
.
act
==
1
){
}
else
if
(
val
.
act
==
1
){
var
temp
=
this
.
selected_arr
.
splice
(
index
,
1
)
var
temp
=
this
.
selected_arr
.
splice
(
index
,
1
)
...
@@ -151,6 +158,7 @@ export default {
...
@@ -151,6 +158,7 @@ export default {
var
temp
=
this
.
selected_arr
.
splice
(
index
,
1
)
var
temp
=
this
.
selected_arr
.
splice
(
index
,
1
)
this
.
selected_arr
.
splice
(
index
-
1
,
0
,
temp
[
0
])
this
.
selected_arr
.
splice
(
index
-
1
,
0
,
temp
[
0
])
}
}
},
},
get_select_data
()
{
get_select_data
()
{
console
.
log
(
this
.
$route
.
query
);
console
.
log
(
this
.
$route
.
query
);
...
...
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