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 2767a879
authored
Nov 15, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
战报配置bug修复
1 parent
94ba1484
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
src/config/index.js
src/views/battle/components/SelectMember.vue
src/views/battle/index.vue
src/config/index.js
View file @
2767a87
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
let
cfg
=
require
(
'./conf.js'
)
let
cfg
=
require
(
'./conf.js'
)
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// console.log(1111111)
// console.log(1111111)
// if (isEnv) {
// if (isEnv) {
// let { request } = cfg
// let { request } = cfg
...
@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) {
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// re
quest({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }
)
// re
turn 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'
)
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
...
...
src/views/battle/components/SelectMember.vue
View file @
2767a87
...
@@ -68,6 +68,7 @@ export default {
...
@@ -68,6 +68,7 @@ export default {
},
},
watch
:
{
watch
:
{
filterText
(
val
)
{
filterText
(
val
)
{
console
.
log
(
val
)
this
.
$refs
.
tree
.
filter
(
val
)
this
.
$refs
.
tree
.
filter
(
val
)
},
},
selectlist
(
val
)
{
selectlist
(
val
)
{
...
@@ -156,7 +157,7 @@ export default {
...
@@ -156,7 +157,7 @@ export default {
},
},
filterNode
(
value
,
data
)
{
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
if
(
!
value
)
return
true
return
data
.
label
.
indexOf
(
value
)
!==
-
1
return
data
.
name
.
indexOf
(
value
)
!==
-
1
},
},
search
()
{},
search
()
{},
handleNodeClick
()
{
handleNodeClick
()
{
...
...
src/views/battle/index.vue
View file @
2767a87
...
@@ -203,7 +203,7 @@ export default {
...
@@ -203,7 +203,7 @@ export default {
battleSetHandle
()
{
battleSetHandle
()
{
if
(
this
.
setectList
.
length
==
0
)
{
if
(
this
.
setectList
.
length
==
0
)
{
this
.
$message
({
this
.
$message
({
message
:
'请
先选择专员
'
,
message
:
'请
选择活动
'
,
type
:
'error'
type
:
'error'
})
})
return
return
...
@@ -234,7 +234,7 @@ export default {
...
@@ -234,7 +234,7 @@ export default {
handlebattleConfirm
()
{
handlebattleConfirm
()
{
if
(
this
.
userList
.
length
==
0
)
{
if
(
this
.
userList
.
length
==
0
)
{
this
.
$message
({
this
.
$message
({
message
:
'请
先
选择专员'
,
message
:
'请选择专员'
,
type
:
'error'
type
:
'error'
})
})
return
return
...
@@ -266,10 +266,12 @@ export default {
...
@@ -266,10 +266,12 @@ export default {
this
.
battleVisible
=
false
this
.
battleVisible
=
false
this
.
handleSearch
()
this
.
handleSearch
()
this
.
activeName
=
'first'
this
.
activeName
=
'first'
this
.
setectList
=
[]
}
}
})
})
},
},
handlebattleClose
()
{
handlebattleClose
()
{
this
.
setectList
=
[]
this
.
battleVisible
=
false
this
.
battleVisible
=
false
},
},
handleDetails
()
{},
handleDetails
()
{},
...
@@ -282,7 +284,6 @@ export default {
...
@@ -282,7 +284,6 @@ export default {
},
},
getStaffList
(
data
)
{
getStaffList
(
data
)
{
this
.
$apis
.
battle
.
getStaffList
({
id
:
data
.
activityId
}).
then
(
res
=>
{
this
.
$apis
.
battle
.
getStaffList
({
id
:
data
.
activityId
}).
then
(
res
=>
{
console
.
log
(
res
,
'00000000'
)
this
.
merchantId
=
res
.
staffs
[
0
].
merchantId
this
.
merchantId
=
res
.
staffs
[
0
].
merchantId
this
.
merchantName
=
res
.
staffs
[
0
].
merchantName
this
.
merchantName
=
res
.
staffs
[
0
].
merchantName
this
.
userList
=
res
.
staffs
this
.
userList
=
res
.
staffs
...
...
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