Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9c5af3cf
authored
Feb 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
8f2d1a3b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
11 deletions
src/components/SelectEmployees/index.vue
src/mixins/marketingGroup.js
src/views/friendGroup/friendGroupAdd.vue
src/views/wechatGroup/addWechatGroup.vue
src/components/SelectEmployees/index.vue
View file @
9c5af3c
...
...
@@ -45,13 +45,13 @@ export default {
label
:
''
,
prop
:
''
,
fixed
:
'left'
,
// width:'12
0',
width
:
'8
0'
,
addHtml
:
'options'
},
{
label
:
'员工姓名'
,
prop
:
'staffName'
,
//
width:'220',
width
:
'220'
,
},
{
label
:
'企业微信'
,
...
...
src/mixins/marketingGroup.js
View file @
9c5af3c
...
...
@@ -41,7 +41,7 @@ export default {
},
'staffCloudIdListStr'
(
newVal
,
oldVal
)
{
this
.
basicForm
.
customerList
=
newVal
==
oldVal
?
this
.
basicForm
.
customerList
:
[]
}
}
,
},
methods
:
{
getCustomerData
(
val
)
{
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
9c5af3c
...
...
@@ -329,8 +329,10 @@ export default {
this
.
empErrorShow
=
false
},
'selectSenderList'
(
val
)
{
if
(
val
&&
val
.
length
>
0
)
{
if
(
val
&&
val
.
staffCloudIdList
)
{
this
.
empErrorShowExpediter
=
false
}
else
{
this
.
basicForm
.
customerList
=
[]
}
},
'basicForm.customerList'
(
val
)
{
...
...
@@ -424,7 +426,7 @@ export default {
return
}
}
if
(
this
.
basicForm
.
managedType
==
2
&&
!
this
.
selectSender
List
)
{
if
(
this
.
basicForm
.
managedType
==
2
&&
this
.
selectSenderList
&&
!
this
.
selectSenderList
.
staffCloudId
List
)
{
this
.
empErrorShowExpediter
=
true
return
}
...
...
@@ -537,6 +539,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.container
{
margin-bottom
:
16px
;
background
:
#ffffff
;
...
...
src/views/wechatGroup/addWechatGroup.vue
View file @
9c5af3c
...
...
@@ -99,7 +99,7 @@
</el-tag>
</div>
</div>
<div
v-show=
"empErrorShowCustomer"
class=
"el-form-item__error"
>
请选择客户
</div>
<div
v-show=
"empErrorShowCustomer"
class=
"el-form-item__error
customer_err
"
>
请选择客户
</div>
</el-form-item>
</
template
>
</el-form>
...
...
@@ -145,7 +145,6 @@
<el-button
@
click=
"handleCancel('/wechatGroup/index')"
>
取消
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
提交
</el-button>
</GLFooter>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:resetMerchantId=
"resetMerchantId"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectCrowd
ref=
"selectCrowd"
@
crowdData=
"getCrowdData"
:resetMerchantId=
"resetMerchantId"
...
...
@@ -156,6 +155,8 @@
</div>
</template>
<
script
>
import
{
utils
}
from
"glsx-common"
;
const
combineType
=
{
label
:
2
,
crowd
:
1
...
...
@@ -386,8 +387,10 @@ export default {
}
},
'selectSenderList'
(
val
)
{
if
(
val
&&
val
.
length
>
0
)
{
if
(
val
&&
val
.
staffCloudIdList
)
{
this
.
empErrorShowExpediter
=
false
}
else
{
this
.
basicForm
.
customerList
=
[]
}
},
'basicForm.customerList'
(
val
)
{
...
...
@@ -401,9 +404,10 @@ export default {
handleAddEmp
()
{
this
.
$refs
.
selectEmpForm
.
init
()
},
async
handleSubmit
()
{
handleSubmit
:
utils
.
debounce
(
async
function
()
{
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
if
(
valid
)
{
console
.
log
(
!
this
.
selectSenderList
)
if
(
this
.
basicForm
.
managedType
==
1
)
{
if
(
this
.
basicForm
.
selectType
==
'1'
&&
!
this
.
taggingList
.
length
)
{
this
.
$message
({
...
...
@@ -420,7 +424,7 @@ export default {
return
}
}
if
(
this
.
basicForm
.
managedType
==
2
&&
!
this
.
selectSender
List
)
{
if
(
this
.
basicForm
.
managedType
==
2
&&
this
.
selectSenderList
&&
!
this
.
selectSenderList
.
staffCloudId
List
)
{
this
.
empErrorShowExpediter
=
true
return
}
...
...
@@ -495,11 +499,15 @@ export default {
})
}
})
},
},
300
)
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.customer_err
{
margin-top
:
45px
;
}
.container
{
margin-bottom
:
20px
;
background
:
#ffffff
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment