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 38f193b0
authored
Nov 19, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复联调问题
1 parent
c4dab253
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
src/api/modules/groupGuest.js
src/setup/single.js
src/views/guestGroup/add.vue
src/views/guestGroup/components/selectEmp.vue
src/views/guestGroup/index.vue
src/api/modules/groupGuest.js
View file @
38f193b
...
@@ -11,7 +11,7 @@ const URL = '/rop-scrm-entmicro/router'
...
@@ -11,7 +11,7 @@ const URL = '/rop-scrm-entmicro/router'
const
PATH
=
'org.ore.api.one.template.'
const
PATH
=
'org.ore.api.one.template.'
const
templateList
=
params
=>
{
const
templateList
=
params
=>
{
params
.
method
=
`
${
PATH
}
list
`
params
.
method
=
`
${
PATH
}
page
`
return
http
({
return
http
({
url
:
URL
,
url
:
URL
,
method
:
'GET'
,
method
:
'GET'
,
...
...
src/setup/single.js
View file @
38f193b
...
@@ -17,8 +17,8 @@ import { routes } from '@/router'
...
@@ -17,8 +17,8 @@ import { routes } from '@/router'
export
async
function
start
()
{
export
async
function
start
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
return
if
(
window
.
__POWERED_BY_QIANKUN__
)
return
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
(
true
)
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
(
true
)
Vue
.
prototype
.
$http
=
new
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
3ab7a37c-3bfa-4a83-bbf8-9e59c6e10330
-rop'
}
})
Vue
.
prototype
.
$http
=
new
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
7a3610dc-095c-4e7a-b864-56a1d74af4db
-rop'
}
})
Vue
.
prototype
.
$http_common
=
new
Http
({
response
,
signWay
:
"md5"
,
request
:
'http://qcdidicb.glsx.net:7060'
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
3ab7a37c-3bfa-4a83-bbf8-9e59c6e10330
-rop'
}
})
Vue
.
prototype
.
$http_common
=
new
Http
({
response
,
signWay
:
"md5"
,
request
:
'http://qcdidicb.glsx.net:7060'
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'mini-
7a3610dc-095c-4e7a-b864-56a1d74af4db
-rop'
}
})
Vue
.
use
(
GLButton
,
GLTable
,
{
permissions
:
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
Vue
.
use
(
GLButton
,
GLTable
,
{
permissions
:
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
render
(
'/'
,
routes
)
render
(
'/'
,
routes
)
...
...
src/views/guestGroup/add.vue
View file @
38f193b
...
@@ -186,9 +186,9 @@ export default {
...
@@ -186,9 +186,9 @@ export default {
merchantId
:
1
merchantId
:
1
}
}
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
if
(
this
.
basicForm
.
group
.
id
==
item
.
i
d
)
{
if
(
this
.
basicForm
.
group
.
staffId
==
item
.
staffI
d
)
{
return
{
return
{
staffId
:
item
.
i
d
,
staffId
:
item
.
staffI
d
,
masterStatus
:
1
masterStatus
:
1
}
}
}
else
{
}
else
{
...
@@ -227,7 +227,6 @@ export default {
...
@@ -227,7 +227,6 @@ export default {
},
},
getDetail
(
id
)
{
getDetail
(
id
)
{
this
.
$apis
.
groupGuest
.
detail
({
id
}).
then
(
res
=>
{
this
.
$apis
.
groupGuest
.
detail
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
basicForm
=
{
this
.
basicForm
=
{
orgName
:
res
.
orgName
,
orgName
:
res
.
orgName
,
groupName
:
res
.
groupName
,
groupName
:
res
.
groupName
,
...
@@ -238,12 +237,13 @@ export default {
...
@@ -238,12 +237,13 @@ export default {
}
}
this
.
$refs
.
welcome
.
updateList
(
res
.
attachmentList
)
this
.
$refs
.
welcome
.
updateList
(
res
.
attachmentList
)
this
.
selectData
=
res
.
userList
this
.
selectData
=
res
.
userList
// this.$refs.membersForm.selectTable(res.userList
)
if
(
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
))
this
.
basicForm
.
group
=
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
)
// this.group = {}
// this.group = {}
})
})
},
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
this
.
basicForm
=
{}
},
},
remove
(
val
)
{
remove
(
val
)
{
this
.
$refs
.
membersForm
.
remove
(
val
)
this
.
$refs
.
membersForm
.
remove
(
val
)
...
...
src/views/guestGroup/components/selectEmp.vue
View file @
38f193b
...
@@ -89,22 +89,25 @@ export default {
...
@@ -89,22 +89,25 @@ export default {
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
.
forEach
(
i
=>
{
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
i
d
==
i
.
staffId
)
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
staffI
d
==
i
.
staffId
)
console
.
log
(
row
)
console
.
log
(
row
)
this
.
clearSelect
(
row
)
this
.
clearSelect
(
row
)
// if (i.masterStatus == 1) this.group = i
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
document
.
getElementsByClassName
(
'el-tree-node__expand-icon'
)[
0
].
click
()
document
.
getElementsByClassName
(
'el-tree-node__expand-icon'
)[
0
].
click
()
document
.
getElementsByClassName
(
'el-tree-node__content'
)[
0
].
click
()
document
.
getElementsByClassName
(
'el-tree-node__content'
)[
0
].
click
()
if
(
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
))
{
this
.
group
=
this
.
selectData
.
find
(
i
=>
i
.
masterStatus
==
1
)
this
.
$emit
(
'group'
,
this
.
group
)
}
})
})
})
})
},
},
clearSelect
(
row
)
{
clearSelect
(
row
)
{
console
.
log
(
row
,
'2222'
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
},
},
clearSelection
()
{
clearSelection
()
{
console
.
log
(
2222
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
clearSelection
()
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
},
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
...
...
src/views/guestGroup/index.vue
View file @
38f193b
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
// 表格
// 表格
getListApi
:
this
.
$apis
.
groupGuest
.
templateList
,
getListApi
:
this
.
$apis
.
groupGuest
.
templateList
,
tableParams
:
{
tableParams
:
{
listName
:
''
,
listName
:
'
data
'
,
tableOption
:
false
,
tableOption
:
false
,
otherOptions
:
{
otherOptions
:
{
label
:
'启用开关'
label
:
'启用开关'
...
@@ -176,6 +176,9 @@ export default {
...
@@ -176,6 +176,9 @@ export default {
]
]
}
}
},
},
mounted
()
{
this
.
searchTable
()
},
methods
:
{
methods
:
{
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
...
...
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