Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 8f5c3630
authored
Nov 19, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复回显问题
1 parent
38f193b0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
31 deletions
package.json
src/views/guestGroup/add.vue
src/views/guestGroup/components/selectEmp.vue
src/views/guestGroup/components/selectMembers.vue
src/views/guestGroup/components/welcomeWords.vue
src/views/guestGroup/index.vue
package.json
View file @
8f5c363
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"echarts"
:
"^5.2.0"
,
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.1.
2
"
,
"glsx-components"
:
"^1.1.
8
"
,
"glsx-table"
:
"^1.1.0"
,
"glsx-table"
:
"^1.1.0"
,
"sha1"
:
"^1.1.1"
,
"sha1"
:
"^1.1.1"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
...
...
src/views/guestGroup/add.vue
View file @
8f5c363
...
@@ -63,8 +63,8 @@
...
@@ -63,8 +63,8 @@
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
<basic-dialog
:title=
"'选择成员'"
:width=
"'712px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"
membersVisible = !membersVisibl
e"
>
<basic-dialog
:title=
"'选择成员'"
:width=
"'712px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"
handleClos
e"
>
<SelectMembers
:selectData=
"selectData"
ref=
"membersForm"
></SelectMembers>
<SelectMembers
:selectData
.
sync
=
"selectData"
ref=
"membersForm"
></SelectMembers>
</basic-dialog>
</basic-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -143,16 +143,30 @@ export default {
...
@@ -143,16 +143,30 @@ export default {
selectData
:
[]
selectData
:
[]
}
}
},
},
watch
:
{
$route
(
val
)
{
console
.
log
(
val
.
params
)
if
(
val
.
params
)
{
const
id
=
val
.
params
.
id
if
(
id
&&
id
!=
-
1
)
{
this
.
getDetail
(
id
)
}
else
{
if
(
this
.
$refs
.
groupForm
)
this
.
$refs
.
groupForm
.
clearValidate
()
this
.
selectData
=
[]
console
.
log
(
'this.basicForm'
,
this
.
basicForm
,
'this.selectData'
,
this
.
selectData
)
}
}
}
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
$route
.
params
)
if
(
this
.
$route
.
params
)
{
if
(
this
.
$route
.
params
)
{
const
id
=
this
.
$route
.
params
.
id
const
id
=
this
.
$route
.
params
.
id
if
(
id
!=
-
1
)
this
.
getDetail
(
id
)
if
(
id
!=
-
1
)
this
.
getDetail
(
id
)
}
}
// //
let clientHeight = document.documentElement.clientHeight
let
clientHeight
=
document
.
documentElement
.
clientHeight
//
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
//
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
// //
this.boxHeight = clientHeight - 200
this
.
boxHeight
=
clientHeight
-
200
},
},
methods
:
{
methods
:
{
openMembers
()
{
openMembers
()
{
...
@@ -182,8 +196,7 @@ export default {
...
@@ -182,8 +196,7 @@ export default {
const
params
=
{
const
params
=
{
attachmentList
:
this
.
basicForm
.
attachmentList
,
attachmentList
:
this
.
basicForm
.
attachmentList
,
orgName
:
this
.
basicForm
.
orgName
,
orgName
:
this
.
basicForm
.
orgName
,
groupName
:
this
.
basicForm
.
groupName
,
groupName
:
this
.
basicForm
.
groupName
merchantId
:
1
}
}
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
if
(
this
.
basicForm
.
group
.
staffId
==
item
.
staffId
)
{
if
(
this
.
basicForm
.
group
.
staffId
==
item
.
staffId
)
{
...
@@ -227,23 +240,27 @@ export default {
...
@@ -227,23 +240,27 @@ export default {
},
},
getDetail
(
id
)
{
getDetail
(
id
)
{
this
.
$apis
.
groupGuest
.
detail
({
id
}).
then
(
res
=>
{
this
.
$apis
.
groupGuest
.
detail
({
id
}).
then
(
res
=>
{
this
.
basicForm
=
{
if
(
res
)
{
orgName
:
res
.
orgName
,
this
.
basicForm
=
{
groupName
:
res
.
groupName
,
orgName
:
res
.
orgName
,
id
:
res
.
id
,
groupName
:
res
.
groupName
,
merchantId
:
1
,
id
:
res
.
id
,
userList
:
res
.
userList
,
merchantId
:
1
,
attachmentList
:
res
.
attachmentList
userList
:
res
.
userList
,
attachmentList
:
res
.
attachmentList
}
this
.
$refs
.
welcome
.
updateList
(
res
.
attachmentList
)
this
.
selectData
=
res
.
userList
if
(
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
))
this
.
basicForm
.
group
=
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
)
}
}
this
.
$refs
.
welcome
.
updateList
(
res
.
attachmentList
)
this
.
selectData
=
res
.
userList
if
(
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
))
this
.
basicForm
.
group
=
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
)
// this.group = {}
})
})
},
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
// this.$router.push({ path: '/guestGroup/index' })
this
.
basicForm
=
{}
this
.
basicForm
=
{}
this
.
$refs
.
welcome
.
updateList
([])
this
.
selectData
=
[]
},
},
remove
(
val
)
{
remove
(
val
)
{
this
.
$refs
.
membersForm
.
remove
(
val
)
this
.
$refs
.
membersForm
.
remove
(
val
)
...
@@ -259,6 +276,10 @@ export default {
...
@@ -259,6 +276,10 @@ export default {
// if (this.$refs.membersForm.group.id) {
// if (this.$refs.membersForm.group.id) {
this
.
openMembers
()
this
.
openMembers
()
// }
// }
},
handleClose
()
{
this
.
openMembers
()
this
.
selectData
=
[]
}
}
}
}
}
}
...
...
src/views/guestGroup/components/selectEmp.vue
View file @
8f5c363
...
@@ -73,12 +73,27 @@ export default {
...
@@ -73,12 +73,27 @@ export default {
employeeList
:
[]
employeeList
:
[]
}
}
},
},
watch
:
{
selectData
(
val
)
{
console
.
log
(
val
)
if
(
val
.
length
==
0
)
{
this
.
clearSelection
()
}
else
{
val
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
staffId
==
i
.
staffId
)
console
.
log
(
row
)
this
.
clearSelect
(
row
)
// if (i.masterStatus == 1) this.group = i
})
}
}
},
methods
:
{
methods
:
{
selectionTable
(
val
)
{
selectionTable
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
,
this
.
group
)
this
.
$emit
(
'selectTable'
,
val
)
this
.
$emit
(
'selectTable'
,
val
)
this
.
allGroup
=
val
this
.
allGroup
=
val
const
hasGroup
=
val
.
find
(
item
=>
item
.
id
==
this
.
group
.
i
d
)
const
hasGroup
=
val
.
find
(
item
=>
item
.
staffId
==
this
.
group
.
staffI
d
)
if
(
!
hasGroup
)
{
if
(
!
hasGroup
)
{
this
.
cancelGroup
()
this
.
cancelGroup
()
}
}
...
@@ -87,7 +102,7 @@ export default {
...
@@ -87,7 +102,7 @@ export default {
this
.
$apis
.
groupGuest
.
listDepartmentTree
({
merchantId
:
10001001
,
addChildrensFlag
:
true
}).
then
(
res
=>
{
this
.
$apis
.
groupGuest
.
listDepartmentTree
({
merchantId
:
10001001
,
addChildrensFlag
:
true
}).
then
(
res
=>
{
this
.
listTree
=
res
this
.
listTree
=
res
this
.
listTree
[
0
].
entmicroStaffResponses
=
this
.
getEmployee
(
this
.
listTree
)
this
.
listTree
[
0
].
entmicroStaffResponses
=
this
.
getEmployee
(
this
.
listTree
)
console
.
log
(
this
.
listTree
)
console
.
log
(
this
.
listTree
,
this
.
selectData
)
this
.
selectData
.
forEach
(
i
=>
{
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
staffId
==
i
.
staffId
)
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
staffId
==
i
.
staffId
)
console
.
log
(
row
)
console
.
log
(
row
)
...
@@ -118,7 +133,7 @@ export default {
...
@@ -118,7 +133,7 @@ export default {
selectGroup
(
data
)
{
selectGroup
(
data
)
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
group
=
data
this
.
group
=
data
const
obj
=
this
.
allGroup
.
find
(
item
=>
item
.
id
==
data
.
i
d
)
const
obj
=
this
.
allGroup
.
find
(
item
=>
item
.
staffId
==
data
.
staffI
d
)
if
(
!
obj
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
data
)
if
(
!
obj
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
data
)
this
.
$emit
(
'group'
,
this
.
group
)
this
.
$emit
(
'group'
,
this
.
group
)
},
},
...
...
src/views/guestGroup/components/selectMembers.vue
View file @
8f5c363
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
<div>
<div>
<div
class=
"select-sale-panel"
>
<div
class=
"select-sale-panel"
>
<select-emp
:selectData=
"selectData"
@
group=
"handlGroup"
@
selectTable=
"selectTable"
ref=
"selectEmpTabel"
></select-emp>
<select-emp
:selectData
.
sync
=
"selectData"
@
group=
"handlGroup"
@
selectTable=
"selectTable"
ref=
"selectEmpTabel"
></select-emp>
<div
class=
"popper__arrow"
></div>
<div
class=
"popper__arrow"
></div>
</div>
</div>
</div>
</div>
...
@@ -44,6 +44,12 @@ export default {
...
@@ -44,6 +44,12 @@ export default {
group
:
{}
group
:
{}
}
}
},
},
watch
:
{
selectData
(
val
)
{
console
.
log
(
val
,
'===='
)
this
.
selectData
=
val
}
},
methods
:
{
methods
:
{
init
()
{
init
()
{
this
.
newTag
=
''
this
.
newTag
=
''
...
@@ -55,7 +61,6 @@ export default {
...
@@ -55,7 +61,6 @@ export default {
}
}
},
},
selectTable
(
val
)
{
selectTable
(
val
)
{
console
.
log
(
val
)
this
.
innerTags
=
val
this
.
innerTags
=
val
},
},
foucusTagInput
()
{
foucusTagInput
()
{
...
...
src/views/guestGroup/components/welcomeWords.vue
View file @
8f5c363
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"content-bg"
>
<div
class=
"content-bg"
>
<el-input
type=
"textarea"
:rows=
"9"
maxlength=
"600"
show-word-limit
v-model=
"text"
@
input=
"textInput"
placeholder=
"请输入内容"
></el-input>
<el-input
type=
"textarea"
:rows=
"9"
maxlength=
"600"
show-word-limit
v-model=
"text"
@
input=
"textInput"
placeholder=
"请输入内容"
></el-input>
<div
v-for=
"
itm
in previewList"
:key=
"itm.id"
>
<div
v-for=
"
(itm, index)
in previewList"
:key=
"itm.id"
>
<div
class=
"welcome-file"
v-if=
"itm.attType != 1"
>
<div
class=
"welcome-file"
v-if=
"itm.attType != 1"
>
<template
v-if=
"itm.attType == 2"
>
<template
v-if=
"itm.attType == 2"
>
<img
src=
"@/assets/guestCustom/icon-img.png"
alt=
""
/>
<img
src=
"@/assets/guestCustom/icon-img.png"
alt=
""
/>
...
@@ -289,6 +289,8 @@ export default {
...
@@ -289,6 +289,8 @@ export default {
}
}
},
},
close
(
index
)
{
close
(
index
)
{
console
.
log
(
index
)
// this.previewList
this
.
previewList
.
splice
(
index
,
1
)
this
.
previewList
.
splice
(
index
,
1
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
},
},
...
@@ -324,6 +326,8 @@ export default {
...
@@ -324,6 +326,8 @@ export default {
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
if
(
obj
)
{
if
(
obj
)
{
this
.
text
=
obj
.
attContent
this
.
text
=
obj
.
attContent
}
else
{
this
.
text
=
''
}
}
}
}
}
}
...
...
src/views/guestGroup/index.vue
View file @
8f5c363
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</span>
</span>
</search-form>
</search-form>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"gueastGroup"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<GLTable
ref=
"gueastGroup"
@
setTableFinishFun=
"setTableFinishFun"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<div
slot=
"entmicro-name"
class=
"entmicro"
slot-scope=
"scope"
>
<div
slot=
"entmicro-name"
class=
"entmicro"
slot-scope=
"scope"
>
<span
v-for=
"(i, index) in scope.scope.userList"
:key=
"index"
>
{{
i
.
staffName
}}
(
{{
i
.
departmentName
}}
);
</span>
<span
v-for=
"(i, index) in scope.scope.userList"
:key=
"index"
>
{{
i
.
staffName
}}
(
{{
i
.
departmentName
}}
);
</span>
</div>
</div>
...
@@ -32,9 +32,11 @@
...
@@ -32,9 +32,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
url
:
url
,
searchForm
:
{},
searchForm
:
{},
searchFormData
:
[
searchFormData
:
[
{
{
...
@@ -176,9 +178,13 @@ export default {
...
@@ -176,9 +178,13 @@ export default {
]
]
}
}
},
},
mounted
()
{
watch
:
{
this
.
searchTable
()
$route
(
val
)
{
console
.
log
(
val
)
if
(
val
.
path
==
'/guestGroup/index'
)
this
.
searchTable
()
}
},
},
mounted
()
{},
methods
:
{
methods
:
{
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
...
@@ -235,6 +241,11 @@ export default {
...
@@ -235,6 +241,11 @@ export default {
default
:
default
:
console
.
log
(
'gaocuole'
)
console
.
log
(
'gaocuole'
)
}
}
},
setTableFinishFun
()
{
if
(
!
this
.
$refs
.
gueastGroup
.
data
.
length
)
{
this
.
$refs
.
gueastGroup
.
setTableHeightFun
()
}
}
}
}
}
}
}
...
...
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