Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 8cc86561
authored
Jun 06, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
选择活码弹框问题修复
1 parent
4fcd7d2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
37 deletions
linkwe-pc/src/components/SelectStaffQrCode.vue
linkwe-pc/src/components/SelectStaffQrCode.vue
View file @
8cc8656
<
script
>
<
script
>
import
{
getList
}
from
'@/api/drainageCode/staff'
import
{
getList
}
from
'@/api/drainageCode/staff'
import
{
getCodeCategoryList
}
from
'@/api/drainageCode/staff'
import
{
getCodeCategoryList
}
from
'@/api/drainageCode/staff'
export
default
{
export
default
{
components
:
{},
components
:
{},
props
:
{
props
:
{
// 添加标签显隐
// 添加标签显隐
visible
:
{
visible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'选择员工活码'
,
default
:
'选择员工活码'
},
},
selected
:
{
selected
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[],
default
:
()
=>
[]
},
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -27,19 +27,19 @@ export default {
...
@@ -27,19 +27,19 @@ export default {
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
category
Id
:
''
,
group
Id
:
''
,
// createBy: '',
// createBy: '',
// beginTime: '',
// beginTime: '',
// endTime: ''
// endTime: ''
orderByColumn
:
'wqc.update_time'
,
orderByColumn
:
'wqc.update_time'
,
isAsc
:
'desc'
,
isAsc
:
'desc'
},
},
list
:
[],
// 列表
list
:
[],
// 列表
userArray
:
[],
//
userArray
:
[],
//
total
:
0
,
// 总条数
total
:
0
,
// 总条数
radio
:
''
,
radio
:
''
,
qrUserName
:
''
,
qrUserName
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
},
},
list
(
val
)
{
list
(
val
)
{
this
.
setSelected
()
this
.
setSelected
()
},
}
},
},
computed
:
{
computed
:
{
Pvisible
:
{
Pvisible
:
{
...
@@ -57,8 +57,8 @@ export default {
...
@@ -57,8 +57,8 @@ export default {
},
},
set
(
val
)
{
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
val
)
this
.
$emit
(
'update:visible'
,
val
)
},
}
},
}
},
},
created
()
{
created
()
{
this
.
getCodeCategoryListFn
()
this
.
getCodeCategoryListFn
()
...
@@ -67,7 +67,7 @@ export default {
...
@@ -67,7 +67,7 @@ export default {
methods
:
{
methods
:
{
switchGroup
(
index
,
data
)
{
switchGroup
(
index
,
data
)
{
this
.
groupIndex
=
index
this
.
groupIndex
=
index
this
.
query
.
category
Id
=
data
.
id
this
.
query
.
group
Id
=
data
.
id
this
.
search
()
this
.
search
()
},
},
search
()
{
search
()
{
...
@@ -78,7 +78,7 @@ export default {
...
@@ -78,7 +78,7 @@ export default {
getCodeCategoryList
({
mediaType
:
'6'
}).
then
((
res
)
=>
{
getCodeCategoryList
({
mediaType
:
'6'
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
groupList
=
res
.
data
this
.
groupList
=
res
.
data
this
.
query
.
category
Id
=
this
.
groupList
[
0
].
id
this
.
query
.
group
Id
=
this
.
groupList
[
0
].
id
this
.
groupIndex
=
0
this
.
groupIndex
=
0
this
.
query
.
pageNum
=
1
this
.
query
.
pageNum
=
1
this
.
getList
()
this
.
getList
()
...
@@ -116,16 +116,16 @@ export default {
...
@@ -116,16 +116,16 @@ export default {
this
.
radio
=
code
this
.
radio
=
code
}
}
})
})
},
}
},
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div>
<div>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
width=
"900px"
append-to-body
:close-on-click-modal=
"false"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
width=
"900px"
append-to-body
:close-on-click-modal=
"false"
>
<el-row
type=
"flex"
justify=
"space-between"
>
<el-row
type=
"flex"
justify=
"space-between"
>
<el-col
:span=
"5"
class=
"left pad20"
style=
"border-radius: 4px; background: #fff"
>
<el-col
:span=
"5"
class=
"left pad20"
style=
"border-radius: 4px; background: #fff
;
"
>
<div
class=
"title"
>
<div
class=
"title"
>
<div
class=
"title-name"
>
活码分组
</div>
<div
class=
"title-name"
>
活码分组
</div>
</div>
</div>
...
@@ -135,14 +135,15 @@ export default {
...
@@ -135,14 +135,15 @@ export default {
:class=
"
{ active: groupIndex == key }"
:class=
"
{ active: groupIndex == key }"
v-for="(group, key) in groupList"
v-for="(group, key) in groupList"
:key="group.id"
:key="group.id"
@click="switchGroup(key, group)">
@click="switchGroup(key, group)"
>
<!--
<div
class=
"name"
>
{{
group
.
name
+
' ('
+
group
.
number
+
')'
}}
</div>
-->
<!--
<div
class=
"name"
>
{{
group
.
name
+
' ('
+
group
.
number
+
')'
}}
</div>
-->
<div
class=
"name"
>
{{
group
.
name
}}
</div>
<div
class=
"name"
>
{{
group
.
name
}}
</div>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"19"
style=
"margin-top: 0px"
>
<el-col
:span=
"19"
style=
"margin-top: 0px
;
"
>
<div>
<div>
<el-form
ref=
"form"
:model=
"query"
label-width=
""
>
<el-form
ref=
"form"
:model=
"query"
label-width=
""
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
...
@@ -150,9 +151,10 @@ export default {
...
@@ -150,9 +151,10 @@ export default {
v-model=
"query.qrName"
v-model=
"query.qrName"
class=
"mr10"
class=
"mr10"
clearable
clearable
style=
"width: 150px"
style=
"width: 150px
;
"
placeholder=
"请输入活码名称"
placeholder=
"请输入活码名称"
@
keydown
.
enter=
"getList(1)"
></el-input>
@
keydown
.
enter=
"getList(1)"
></el-input>
<el-input
<el-input
:value=
"userArray.map((e) => e.name) + ''"
:value=
"userArray.map((e) => e.name) + ''"
...
@@ -160,8 +162,9 @@ export default {
...
@@ -160,8 +162,9 @@ export default {
@
clear=
"userArray = []"
@
clear=
"userArray = []"
@
focus=
"dialogVisible = true"
@
focus=
"dialogVisible = true"
class=
"mr10"
class=
"mr10"
style=
"width: 150px"
style=
"width: 150px;"
placeholder=
"请选择员工"
/>
placeholder=
"请选择员工"
/>
<el-button
icon=
"el-icon-search"
circle
@
click=
"getList(1)"
></el-button>
<el-button
icon=
"el-icon-search"
circle
@
click=
"getList(1)"
></el-button>
<!--
<el-pagination
<!--
<el-pagination
...
@@ -197,7 +200,7 @@ export default {
...
@@ -197,7 +200,7 @@ export default {
</el-table-column>
</el-table-column>
<el-table-column
label=
"使用员工"
align=
"center"
min-width=
"140"
prop=
"qrUserInfos"
show-overflow-tooltip
>
<el-table-column
label=
"使用员工"
align=
"center"
min-width=
"140"
prop=
"qrUserInfos"
show-overflow-tooltip
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<div
v-for=
"(unit, key) in row.qrUserInfos"
:key=
"key"
style=
"display: inline"
>
<div
v-for=
"(unit, key) in row.qrUserInfos"
:key=
"key"
style=
"display: inline
;
"
>
<template
v-for=
"(item, index) in unit.weQrUserList"
>
<template
v-for=
"(item, index) in unit.weQrUserList"
>
<span
:key=
"index"
>
{{
item
.
userName
+
' '
}}
</span>
<span
:key=
"index"
>
{{
item
.
userName
+
' '
}}
</span>
</
template
>
</
template
>
...
@@ -212,7 +215,8 @@ export default {
...
@@ -212,7 +215,8 @@ export default {
:page
.
sync=
"query.pageNum"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
:limit
.
sync=
"query.pageSize"
layout=
"total,prev, pager, next, jumper"
layout=
"total,prev, pager, next, jumper"
@
pagination=
"getList()"
/>
@
pagination=
"getList()"
/>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -221,33 +225,34 @@ export default {
...
@@ -221,33 +225,34 @@ export default {
<el-button
@
click=
"Pvisible = false"
>
取 消
</el-button>
<el-button
@
click=
"Pvisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
确 定
</el-button>
</div>
</div>
<div
style=
"z-index: 9999999"
></div>
<div
style=
"z-index: 9999999
;
"
></div>
</el-dialog>
</el-dialog>
<SelectWeUser
<SelectWeUser
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
title=
"组织架构"
title=
"组织架构"
:defaultValues=
"userArray"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
></SelectWeUser>
@
success=
"getSelectUser"
></SelectWeUser>
</div>
</div>
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.code-image
{
.code-image
{
width
:
200px
;
width
:
200px
;
height
:
200px
;
height
:
200px
;
}
}
.code-image--small
{
.code-image--small
{
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
.expire-icon
{
.expire-icon
{
color
:
red
;
color
:
red
;
}
}
.left
{
.left
{
margin-right
:
16px
;
margin-right
:
16px
;
.title
{
.title
{
color
:
var
(
--color
);
color
:
var
(
--color
);
...
@@ -338,5 +343,5 @@ export default {
...
@@ -338,5 +343,5 @@ export default {
border-radius
:
2px
;
border-radius
:
2px
;
}
}
}
}
}
}
</
style
>
</
style
>
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