Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
Project
Project
Details
Activity
Releases
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
向伟
horse
Commits
903727d3
Commit
903727d3
authored
Dec 07, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
86ede3fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
57 deletions
+30
-57
label-group.vue
src/components/customer/label-group.vue
+8
-0
request-group.vue
src/components/customer/request-group.vue
+15
-11
editRuleModule.ts
src/module/editor/editRuleModule.ts
+1
-35
editRule.vue
src/pages/editor/editRule.vue
+6
-11
No files found.
src/components/customer/label-group.vue
View file @
903727d3
...
...
@@ -77,7 +77,15 @@
show
.
value
=
val
}
)
let
selectList
=
ref
(
props
.
list
)
watch
(
()
=>
props
.
list
,
val
=>
{
selectList
.
value
=
val
getLabelList
()
}
)
let
LableList
=
ref
([])
const
goclose
=
()
=>
{
//关闭弹窗
ctx
.
emit
(
'update:modelValue'
,
false
)
...
...
src/components/customer/request-group.vue
View file @
903727d3
...
...
@@ -149,6 +149,7 @@
onMounted
}
from
'vue'
import
customerSetService
from
'@/api/customerSet'
import
customerService
from
'@/api/customer'
import
labelgroup
from
'./label-group.vue'
import
dayjs
from
'dayjs'
import
{
...
...
@@ -317,21 +318,15 @@
}
case
4
:
{
//多选
console
.
log
(
'多选'
,
e
)
e
.
labelType
=
4
if
(
e
.
Id
==
'标签'
)
{
e
.
StartValue
=
''
}
else
{
if
(
e
.
StartValue
)
{
e
.
StartValue
=
e
.
StartValue
.
split
(
','
).
map
(
e
=>
Number
(
e
))
}
else
{
e
.
StartValue
=
[]
}
}
e
.
directionList
=
directionList1
if
(
find
.
OptionsList
)
{
e
.
OptionsList
=
find
.
OptionsList
}
if
(
e
.
Name
==
'标签'
&&
e
.
StartValue
){
getLabelByIds
(
e
.
StartValue
)
}
break
}
case
5
:
{
...
...
@@ -600,6 +595,7 @@
}
return
flag
}
watch
(
()
=>
[...
addMsg
.
value
],
val
=>
{
...
...
@@ -622,6 +618,13 @@
deep
:
true
}
)
const
getLabelByIds
=
ids
=>
{
customerService
.
getLabelListByIds
(
ids
).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
Data
)
{
lableList
.
value
=
res
.
data
.
Data
}
})
}
onMounted
(()
=>
{
//进入页面就调用
setTimeout
(()
=>
{
...
...
@@ -648,7 +651,8 @@
changeDate
,
changeRange
,
changeAddCondition
,
checkRule
checkRule
,
getLabelByIds
,
}
}
})
...
...
src/module/editor/editRuleModule.ts
View file @
903727d3
...
...
@@ -38,10 +38,6 @@ const data = reactive<dataParams>({
peopleNum
:
0
,
selectOptionList
:[],
})
const
whereData
=
reactive
({
list
:
[],
condition
:
1
,
})
const
jumpBeforePage
=
()
=>
{
router
.
push
({
path
:
'/customerSetup'
,
...
...
@@ -101,7 +97,6 @@ const editRuleModule = () => {
return
'2-'
+
e
.
Id
})
data
.
defaultArray
=
[...
Dep
,
...
Emp
]
console
.
log
(
d
.
ConditionList
,
'ConditionList'
)
})
}
//获取部门数据
...
...
@@ -129,15 +124,6 @@ const editRuleModule = () => {
}
// 新增,修改
const
setCustomerClueRuleInfo
=
()
=>
{
console
.
log
(
data
.
editMsg
.
ConditionList
)
// const flag = condition.value.checkRule(data.editMsg.ConditionList)
// console.log(94, flag)
// if (!flag) return
// if (data.editMsg.DeptList.length == 0 && data.editMsg.EmpList.length == 0) {
// message.warnMsg('适用部门/成员')
// return
// }
customerSetService
.
setCustomerClueRuleInfo
(
data
.
editMsg
).
then
(
res
=>
{
message
.
successMsg
(
res
.
data
.
Message
)
setTimeout
(()
=>
{
...
...
@@ -150,25 +136,7 @@ const editRuleModule = () => {
},
2000
)
})
}
const
getCustomerFiledList
=
()
=>
{
customerSetService
.
getCustomerFiledList
({
Enable
:
1
})
.
then
(
res
=>
{
data
.
selectOptionList
=
[]
res
.
data
.
Data
.
map
(
e
=>
{
const
obj
=
{
name
:
e
.
Name
,
value
:
e
.
Name
,
data
:
e
,
IsCustom
:
1
}
data
.
selectOptionList
.
push
(
obj
)
})
console
.
log
(
160
,
data
.
selectOptionList
)
})
}
return
{
msg
,
condition
,
...
...
@@ -181,8 +149,6 @@ const editRuleModule = () => {
getCondition
,
getdpt
,
getNum
,
whereData
,
getCustomerFiledList
}
}
...
...
src/pages/editor/editRule.vue
View file @
903727d3
...
...
@@ -11,13 +11,12 @@
<div
class=
"content-block"
>
<div
class=
"fission-title"
>
选择待分配客户
</div>
<div
class=
"fission-subtitle"
>
当待分配客户符合以下条件时
</div>
<
!--
<
requestGroup
<requestGroup
v-model:addCondition=
"editMsg.RuleSelectType"
:defaultData=
"defaultConditionList"
ref=
"condition"
@
change=
"getCondition"
/>
-->
<where
:data=
"whereData"
:columns=
"selectOptionList"
/>
/>
</div>
<div
class=
"content-block mt20"
>
<div
class=
"fission-title"
>
分配给以下部门/成员
</div>
...
...
@@ -79,15 +78,15 @@ import {
toRefs
,
onMounted
}
from
'vue'
//
import requestGroup from '@/components/customer/request-group.vue'
import
requestGroup
from
'@/components/customer/request-group.vue'
import
departmentStaff
from
'@/components/common/departmentStaff.vue'
import
editRuleModule
from
'@/module/editor/editRuleModule'
import
where
from
'@/components/common/customWhere/where.vue'
//
import where from '@/components/common/customWhere/where.vue'
export
default
defineComponent
({
components
:
{
//
requestGroup,
requestGroup
,
departmentStaff
,
where
//
where
},
setup
()
{
let
{
...
...
@@ -102,8 +101,6 @@ export default defineComponent({
getCondition
,
getdpt
,
getNum
,
whereData
,
getCustomerFiledList
,
}
=
editRuleModule
();
onMounted
(()
=>
{
if
(
msg
().
RuleId
>
0
)
{
...
...
@@ -118,7 +115,6 @@ export default defineComponent({
data
.
defaultArray
=
[]
}
getEmployeeData
()
getCustomerFiledList
()
})
return
{
jumpBeforePage
,
...
...
@@ -129,7 +125,6 @@ export default defineComponent({
getCondition
,
getdpt
,
getNum
,
whereData
}
}
...
...
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