Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 33c78aa0
authored
Dec 01, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
解决合并冲突
2 parents
4bfdebb3
850fb81d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
91 additions
and
24 deletions
package.json
src/api/modules/battle.js
src/config/index.js
src/setup/qiankun.js
src/views/battle/components/SelectMember.vue
src/views/battle/components/select-dropdown.vue
src/views/battle/index.vue
vue.config.js
package.json
View file @
33c78aa
{
"name"
:
"
scrm-micro-activity-c
enter"
,
"name"
:
"
activityC
enter"
,
"version"
:
"1.0.0"
,
"description"
:
"A Vue.js project"
,
"private"
:
true
,
...
...
src/api/modules/battle.js
View file @
33c78aa
...
...
@@ -54,16 +54,16 @@ const getStaffList = params => {
sign
:
true
})
}
// 企微高级群聊列表
const
getGroupList
=
params
=>
{
params
.
method
=
`entmicro.api.wechatcloudcontrol.batchmessaging.group.list`
return
http
({
url
:
url1
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// const insertZoneApi = params => {
// params.method = `${defaultPath}zoneInfo.insertOrUpdate`
// return http({
// url,
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
export
default
{
getStaffList
,
getMerchantList
,
getlistDepartmentTree
,
getActivitylist
,
insertStaff
}
export
default
{
getStaffList
,
getMerchantList
,
getlistDepartmentTree
,
getActivitylist
,
insertStaff
,
getGroupList
}
src/config/index.js
View file @
33c78aa
...
...
@@ -19,12 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
// debugger
// debugger
// console.log(new Http().get('http://192.168.3.171:7300/mock/6345096902322627d6b83e83/battles/config'))
return
new
Http
().
get
(
'http://192.168.3.171:7300/mock/6345096902322627d6b83e83/battles/config'
)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config'
)
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/setup/qiankun.js
View file @
33c78aa
...
...
@@ -11,9 +11,10 @@ let router = null
let
instance
=
null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
()
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
merchantId
}
=
await
fetchConfig
()
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$merchantId
=
merchantId
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
...
...
src/views/battle/components/SelectMember.vue
View file @
33c78aa
...
...
@@ -68,6 +68,7 @@ export default {
},
watch
:
{
filterText
(
val
)
{
console
.
log
(
val
)
this
.
$refs
.
tree
.
filter
(
val
)
},
selectlist
(
val
)
{
...
...
@@ -99,7 +100,8 @@ export default {
})
},
async
getDepartmentTree
()
{
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
this
.
merchantId
}
// let params = { addChildrensFlag: true, queryMerchantId: this.merchantId }
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
'44210895'
}
let
data
=
await
this
.
$apis
.
battle
.
getlistDepartmentTree
(
params
)
this
.
ids
=
[]
this
.
departmentList
=
data
...
...
@@ -156,7 +158,7 @@ export default {
},
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
return
data
.
label
.
indexOf
(
value
)
!==
-
1
return
data
.
name
.
indexOf
(
value
)
!==
-
1
},
search
()
{},
handleNodeClick
()
{
...
...
src/views/battle/components/select-dropdown.vue
0 → 100644
View file @
33c78aa
<
template
>
<div
class=
"el-select-dropdown el-popper group-select"
:style=
"groupStyle"
>
<slot></slot>
</div>
</
template
>
<
script
>
export
default
{
name
:
'ElSelectDropdown'
,
props
:
{
appendToBody
:
{
type
:
Boolean
,
default
:
true
},
domEl
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
componentName
:
'selectyy'
,
data
()
{
return
{
groupStyle
:
''
,
includeData
:[
'el-input__inner'
,
'placeholder'
,
'el-select__caret el-input__icon el-icon-arrow-up'
]
}
},
mounted
()
{
if
(
this
.
appendToBody
)
document
.
body
.
appendChild
(
this
.
$el
)
this
.
getBoundingClientRect
()
window
.
addEventListener
(
'resize'
,
this
.
getBoundingClientRect
)
document
.
addEventListener
(
'click'
,
e
=>
{
if
(
!
this
.
includeData
.
includes
(
e
.
target
.
className
))
{
this
.
removeEl
()
}
})
},
methods
:
{
getBoundingClientRect
()
{
let
{
left
,
top
}
=
this
.
domEl
.
getBoundingClientRect
()
this
.
groupStyle
=
{
left
:
left
+
'px'
,
top
:
top
+
45
+
'px'
}
},
removeEl
()
{
document
.
body
.
contains
(
this
.
$el
)
&&
document
.
body
.
removeChild
(
this
.
$el
)
this
.
$emit
(
'changeStatu'
)
}
},
beforeDestroy
()
{
this
.
removeEl
()
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.group-select
{
min-width
:
284px
;
transform-origin
:
center
top
;
z-index
:
10000
;
position
:
fixed
;
top
:
740px
;
left
:
600px
;
/deep/
.el-select-dropdown__item
{
width
:
236px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
}
}
</
style
>
src/views/battle/index.vue
View file @
33c78aa
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
33c78aa
...
...
@@ -9,7 +9,7 @@ const cdn = {
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
,
'https://webapi.amap.com/loader.js'
]
}
module
.
exports
=
{
outputDir
:
`
../dist/
${
packageName
}
`
,
outputDir
:
`
dist
`
,
publicPath
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
...
...
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