Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
fd554451
Commit
fd554451
authored
Jul 18, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 编辑活码
parent
6a9bfeea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
16 deletions
+20
-16
setActCode.vue
...alesleads/actCodeManage/staffActCode/views/setActCode.vue
+1
-1
act-code-set.vue
src/views/salesleads/components/act-code-set.vue
+4
-1
welcomesItem.vue
src/views/salesleads/components/welcomesItem.vue
+15
-14
No files found.
src/views/salesleads/actCodeManage/staffActCode/views/setActCode.vue
View file @
fd554451
...
...
@@ -122,7 +122,7 @@ export default {
clerkIdList
:
[],
hmUserNum
:
null
//多人活码人数
};
//
this.$router.go(-1);
this
.
$router
.
go
(
-
1
);
}
else
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
...
...
src/views/salesleads/components/act-code-set.vue
View file @
fd554451
...
...
@@ -20,7 +20,7 @@
<dm-memberTag-group
:visiable
.
sync=
"tagsDialogVisible"
projectName=
"haobao-3"
@
save=
"saveTagPop"
></dm-memberTag-group>
</el-form-item>
<dm-sub-title
text=
"欢迎语设置"
type=
"line"
class=
"mt40b20"
/>
<welcomeItem
@
getWelcomeId=
"getWelcomeId"
:welcomeIdP=
"form.welcomeId"
></welcomeItem>
<welcomeItem
@
getWelcomeId=
"getWelcomeId"
:welcomeIdP=
"form.welcomeId"
ref=
"welcomeItem"
></welcomeItem>
</el-form>
</div>
<div
class=
"saveBtn"
>
...
...
@@ -132,6 +132,9 @@ export default {
},
// 保存按钮
save
()
{
if
(
!
this
.
$refs
.
welcomeItem
.
submit
())
{
return
;
}
this
.
$refs
.
form
.
validate
(
async
valid
=>
{
if
(
valid
)
{
this
.
form
.
passFlag
=
this
.
form
.
passFlag
?
1
:
0
;
...
...
src/views/salesleads/components/welcomesItem.vue
View file @
fd554451
...
...
@@ -91,8 +91,7 @@ export default {
};
},
activated
()
{
this
.
getWelcomeTable
();
console
.
log
(
this
.
welcomeIdP
,
'ppp'
);
this
.
onSearch
();
},
methods
:
{
onSearch
()
{
...
...
@@ -113,20 +112,22 @@ export default {
if
(
this
.
isFlag
)
{
let
flag
=
this
.
welcomeTableData
.
map
(
item
=>
item
.
welcomeId
).
indexOf
(
this
.
currentWelcome
.
welcomeId
);
let
flag1
=
this
.
welcomeTableData
.
map
(
item
=>
item
.
welcomeId
).
includes
(
this
.
currentWelcome
.
welcomeId
);
if
(
this
.
welcomePage
.
pageNum
==
1
)
{
if
(
flag1
)
{
this
.
welcome
=
flag
;
}
else
{
this
.
welcomeTableData
.
unshift
(
this
.
currentWelcome
);
this
.
welcome
=
0
;
}
// if (this.welcomePage.pageNum == 1) {
if
(
flag1
)
{
this
.
welcome
=
flag
;
this
.
welcomeContent
=
this
.
currentWelcome
.
welcomeContent
;
}
else
if
(
this
.
welcomePage
.
pageNum
!=
1
)
{
if
(
flag1
)
{
this
.
welcomeTableData
.
splice
(
flag
,
1
);
}
}
else
{
// this.welcomeTableData.unshift(this.currentWelcome);
// this.welcome = 0;
this
.
welcomeContent
=
''
;
}
// this.welcomeContent = this.currentWelcome.welcomeContent;
// } else if (this.welcomePage.pageNum != 1) {
// if (flag1) {
// this.welcomeTableData.splice(flag, 1);
// }
// this.welcomeContent = '';
// }
}
});
},
...
...
@@ -164,7 +165,7 @@ export default {
welcomeIdP
:
{
handler
:
async
function
(
val
)
{
if
(
val
)
{
console
.
log
(
val
,
'id'
)
;
this
.
welcomesType
=
1
;
this
.
welcomeId
=
val
;
await
getRequest
(
'/haoban-manage3-web/welcome/get'
,
{
welcomeId
:
this
.
welcomeId
,
enterpriseId
:
sessionStorage
.
getItem
(
'userInfos'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'userInfos'
)).
enterpriseId
:
''
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
...
...
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