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
a6475a4b
Commit
a6475a4b
authored
Aug 27, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推荐位编辑fixed
parent
b6925bb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
src/components/recommen/recommen-box.vue
src/components/recommen/recommen-box.vue
+6
-4
src/pages/message-management/recommended/recommended-eidt.vue
...pages/message-management/recommended/recommended-eidt.vue
+16
-3
No files found.
src/components/recommen/recommen-box.vue
View file @
a6475a4b
...
...
@@ -67,12 +67,14 @@ export default {
checked
:
false
,
};
},
watch
:
{},
watch
:
{
"
data.checked
"
(
val
)
{
this
.
checked
=
val
===
1
;
}
},
computed
:
{},
created
()
{
if
(
this
.
data
.
checked
){
this
.
checked
=
true
}
this
.
checked
=
this
.
data
.
checked
===
1
;
},
mounted
()
{},
methods
:
{
...
...
src/pages/message-management/recommended/recommended-eidt.vue
View file @
a6475a4b
...
...
@@ -91,6 +91,12 @@ export default {
},
onSubmit
(){
var
temp_str
=
''
if
(
this
.
selected_arr
.
length
!==
4
)
{
this
.
$message
.
error
(
"
推荐位数量只能为4个!
"
);
return
;
}
this
.
selected_arr
.
forEach
((
e
,
idx
)
=>
{
if
(
idx
==
this
.
selected_arr
.
length
-
1
){
temp_str
=
temp_str
+
e
.
id
...
...
@@ -113,7 +119,7 @@ export default {
})
},
change_value
(
val
)
{
console
.
log
(
val
);
//
console.log(val);
if
(
val
.
check
){
this
.
selected_arr
.
push
(
val
.
data
)
}
else
{
...
...
@@ -127,9 +133,16 @@ export default {
}
},
rank_value
(
val
)
{
console
.
log
(
val
);
//
console.log(val);
var
index
=
val
.
position
==
'
start
'
?
0
:
val
.
position
==
'
end
'
?
this
.
selected_arr
.
length
-
1
:
val
.
position
if
(
val
.
act
==
2
){
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
"
,
0
);
break
;
}
}
this
.
selected_arr
.
splice
(
index
,
1
)
}
else
if
(
val
.
act
==
1
){
var
temp
=
this
.
selected_arr
.
splice
(
index
,
1
)
...
...
@@ -180,7 +193,7 @@ export default {
});
},
getselect
(
val
)
{
console
.
log
(
val
);
//
console.log(val);
this
.
get_select_list
(
val
.
word
,
val
.
serviceTypeInfo
.
join
(),
...
...
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