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
d46f7d80
Commit
d46f7d80
authored
Nov 22, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
01693467
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
183 additions
and
77 deletions
+183
-77
request-group.vue
src/components/customer/request-group.vue
+8
-2
clueRule.vue
src/pages/customer/components/clueRule.vue
+164
-66
editRule.vue
src/pages/editor/editRule.vue
+11
-9
No files found.
src/components/customer/request-group.vue
View file @
d46f7d80
...
...
@@ -70,7 +70,7 @@
<!-- name -->
<q-select
outlined
v-model=
"x.
Name
"
v-model=
"x.
Id
"
:options=
"filedList"
dense
class=
"my-special-class"
...
...
@@ -387,6 +387,7 @@ export default defineComponent({
}
filedList
.
value
.
unshift
(
obj2
)
addMsg
.
value
.
push
({
Id
:
'标签'
,
Name
:
'标签'
,
Type
:
1
,
Direction
:
''
,
...
...
@@ -403,6 +404,7 @@ export default defineComponent({
}
const
addsList
=
()
=>
{
let
obj
:
params
=
{
Id
:
0
,
Name
:
''
,
Type
:
''
,
Direction
:
''
,
...
...
@@ -415,7 +417,6 @@ export default defineComponent({
}
const
showlabel
=
(
y
)
=>
{
selectindex
.
value
=
y
;
if
(
addMsg
.
value
[
y
].
StartValue
==
''
)
{
//为空赋值为数组
LableList
.
value
=
[]
...
...
@@ -471,6 +472,7 @@ export default defineComponent({
let
changeName
=
(
val
:
any
,
y
:
number
)
=>
{
addMsg
.
value
[
y
].
StartValue
=
''
addMsg
.
value
[
y
].
EndValue
=
''
switch
(
val
)
{
case
"标签"
:
{
addMsg
.
value
[
y
].
IsCustom
=
2
...
...
@@ -487,6 +489,10 @@ export default defineComponent({
let
find
:
any
=
filedList
.
value
.
find
((
e
)
=>
{
return
e
.
Id
==
val
})
if
(
find
){
addMsg
.
value
[
y
].
Name
=
find
.
Name
}
console
.
log
(
500
,
find
)
switch
(
find
.
Type
)
{
case
1
:
{
addMsg
.
value
[
y
].
directionList
=
directionList2
...
...
src/pages/customer/components/clueRule.vue
View file @
d46f7d80
This diff is collapsed.
Click to expand it.
src/pages/editor/editRule.vue
View file @
d46f7d80
...
...
@@ -5,7 +5,7 @@
<q-breadcrumbs-el
label=
"返回"
icon=
"navigate_before"
@
click=
"jumpBeforePage"
/>
<q-breadcrumbs-el
label=
"编辑"
/>
</q-breadcrumbs>
<q-btn
color=
"primary"
label=
"完成"
/>
<q-btn
color=
"primary"
label=
"完成"
@
click=
"setCustomerClueRuleInfo"
/>
</div>
<div
class=
"container"
>
<div
class=
"content-block"
>
...
...
@@ -34,26 +34,27 @@
<div
class=
"fission-subtitle flex align-center"
>
选择分配规则:
<div
class=
"q-gutter-sm"
>
<q-radio
v-model=
"
data.
editMsg.RuleAllotWay"
:val=
"1"
label=
"顺序分配"
/>
<q-radio
v-model=
"
data.
editMsg.RuleAllotWay"
:val=
"2"
label=
"随机分配"
/>
<q-radio
v-model=
"editMsg.RuleAllotWay"
:val=
"1"
label=
"顺序分配"
/>
<q-radio
v-model=
"editMsg.RuleAllotWay"
:val=
"2"
label=
"随机分配"
/>
</div>
</div>
</div>
</div>
<departmentStaff
v-model=
"
data.
showDialog"
v-model:defaultArray=
"d
ata.d
efaultArray"
v-model=
"showDialog"
v-model:defaultArray=
"defaultArray"
nodeKey=
"newId"
labelKey=
"DeptName"
childrenKey=
"ChildList"
strategy=
'leaf'
:treeData=
"data
.data
Tree"
:treeData=
"dataTree"
/>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
toRefs
,
onMounted
}
from
'vue'
import
requestGroup
from
'@/components/customer/request-group.vue'
...
...
@@ -71,10 +72,10 @@ export default defineComponent({
msg
,
data
,
getDetail
,
getEmployeeData
getEmployeeData
,
setCustomerClueRuleInfo
,
}
=
editRuleModule
();
onMounted
(()
=>
{
if
(
msg
().
RuleId
>
0
)
{
console
.
log
(
'getDetail'
,
msg
())
getDetail
()
...
...
@@ -84,7 +85,8 @@ export default defineComponent({
return
{
jumpBeforePage
,
changeDialog
,
data
,
...
toRefs
(
data
),
setCustomerClueRuleInfo
}
}
...
...
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