Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 f4492849
authored
Jun 20, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
64b26969
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
17 deletions
src/components/screenTag/index.vue
src/components/selectCrowd/index.vue
src/config/index.js
src/views/channel/components/channelList.vue
src/views/market/config.vue
src/components/screenTag/index.vue
View file @
f449284
...
@@ -335,7 +335,6 @@ export default {
...
@@ -335,7 +335,6 @@ export default {
line-height
:
24px
;
line-height
:
24px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666
;
color
:
#666
;
max-width
:
200px
;
//
text-overflow
:
ellipsis
;
//
text-overflow
:
ellipsis
;
//
overflow
:
hidden
;
//
overflow
:
hidden
;
//
white-space
:
nowrap
;
//
white-space
:
nowrap
;
...
...
src/components/selectCrowd/index.vue
View file @
f449284
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"table-content"
>
<div
class=
"table-content"
>
<GLTable
v-loading=
"loading"
ref=
"crowdTable"
:tableData=
"tableData"
@
refreshTable=
"
search
"
:tableTotal=
"tableTotal"
:layout=
"layout"
:tableParams=
"crowdTableParams"
:hasNum=
"true"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
selectionTable=
"handleSelectionTable"
@
row-click=
"rowClick"
></GLTable>
<GLTable
v-loading=
"loading"
ref=
"crowdTable"
:tableData=
"tableData"
@
refreshTable=
"
getCrowdList
"
:tableTotal=
"tableTotal"
:layout=
"layout"
:tableParams=
"crowdTableParams"
:hasNum=
"true"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
selectionTable=
"handleSelectionTable"
@
row-click=
"rowClick"
></GLTable>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -109,15 +109,16 @@ export default {
...
@@ -109,15 +109,16 @@ export default {
})
})
},
},
// this.$refs.crowdTable.tableHeightValues = '250'
// this.$refs.crowdTable.tableHeightValues = '250'
getCrowdList
()
{
getCrowdList
(
page
=
{
pageNum
:
1
,
pageSize
:
10
})
{
this
.
$refs
.
crowdTable
.
page
=
page
var
params
=
{
var
params
=
{
req
:
{
req
:
{
keyword
:
this
.
searchForm
.
keyword
,
keyword
:
this
.
searchForm
.
keyword
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
crowdType
:
3
,
crowdType
:
3
,
filterType
:
2
,
filterType
:
2
,
pageSize
:
this
.
$refs
.
crowdTable
.
page
.
pageSize
,
pageSize
:
page
.
pageSize
,
pageNum
:
this
.
$refs
.
crowdTable
.
page
.
pageNum
pageNum
:
page
.
pageNum
}
}
}
}
...
@@ -214,7 +215,7 @@ export default {
...
@@ -214,7 +215,7 @@ export default {
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
.
toggleRowSelection
(
row
)
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
.
toggleRowSelection
(
row
)
},
},
search
()
{
search
()
{
this
.
getCrowdList
()
this
.
getCrowdList
(
{
pageNum
:
1
,
pageSize
:
10
}
)
},
},
handleConfirm
()
{
handleConfirm
()
{
// console.log(this.innerTags)
// console.log(this.innerTags)
...
...
src/config/index.js
View file @
f449284
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
return
Promise
.
resolve
(
cfg
)
}
}
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.
dev
.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.
test
.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
}
}
export
const
config
=
{
export
const
config
=
{
...
...
src/views/channel/components/channelList.vue
View file @
f449284
...
@@ -121,13 +121,13 @@ export default {
...
@@ -121,13 +121,13 @@ export default {
{
{
label
:
'今日新增客户数'
,
label
:
'今日新增客户数'
,
prop
:
'yesterdayNum'
,
prop
:
'yesterdayNum'
,
width
:
'1
2
0px'
,
width
:
'1
3
0px'
,
addHtml
:
'yesterdayNum'
addHtml
:
'yesterdayNum'
},
},
{
{
label
:
'总新增客户数'
,
label
:
'总新增客户数'
,
prop
:
'totalNum'
,
prop
:
'totalNum'
,
width
:
'1
5
0px'
,
width
:
'1
2
0px'
,
addHtml
:
'totalNum'
addHtml
:
'totalNum'
},
},
{
{
...
@@ -151,12 +151,12 @@ export default {
...
@@ -151,12 +151,12 @@ export default {
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdTime'
,
prop
:
'createdTime'
,
width
:
'1
6
0px'
width
:
'1
8
0px'
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
width
:
'
14
0px'
,
width
:
'
22
0px'
,
addHtml
:
'optionBtns'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
fixed
:
'right'
}
}
...
...
src/views/market/config.vue
View file @
f449284
...
@@ -280,6 +280,14 @@ const validateTime = (rule, value, callback) => {
...
@@ -280,6 +280,14 @@ const validateTime = (rule, value, callback) => {
callback
()
callback
()
}
}
}
}
const
validateContent
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
)
if
(
value
==
`【
${
Vue
.
prototype
.
$globalState
.
session
.
merchantName
}
】`
)
{
callback
(
new
Error
(
'请选择短信模板'
))
}
else
{
callback
()
}
}
export
default
{
export
default
{
name
:
'config'
,
name
:
'config'
,
components
:
{
components
:
{
...
@@ -312,7 +320,7 @@ export default {
...
@@ -312,7 +320,7 @@ export default {
footerWidth
:
0
,
footerWidth
:
0
,
addForm
:
{
addForm
:
{
desc
:
''
,
desc
:
''
,
content
:
''
,
content
:
`【
${
this
.
$globalState
.
session
.
merchantName
}
】`
,
time
:
[
'9:00:00'
,
'18:00:00'
]
time
:
[
'9:00:00'
,
'18:00:00'
]
},
},
content
:
[],
content
:
[],
...
@@ -333,7 +341,10 @@ export default {
...
@@ -333,7 +341,10 @@ export default {
{
required
:
true
,
message
:
'请选择营销时间'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请选择营销时间'
,
trigger
:
'change'
},
{
validator
:
validateTime
,
trigger
:
'change'
}
{
validator
:
validateTime
,
trigger
:
'change'
}
],
],
content
:
[{
required
:
true
,
message
:
'请选择短信模板'
,
trigger
:
'change'
}]
content
:
[
{
required
:
true
,
message
:
'请选择短信模板'
,
trigger
:
'change'
},
{
validator
:
validateContent
,
trigger
:
'blur'
}
]
}
}
}
}
},
},
...
@@ -386,12 +397,18 @@ export default {
...
@@ -386,12 +397,18 @@ export default {
},
},
crowding
:
{
crowding
:
{
handler
()
{
handler
()
{
console
.
log
(
this
.
crowding
)
if
(
this
.
crowding
.
length
==
0
)
{
this
.
contactNum
=
0
return
}
this
.
handleSaveImport
()
this
.
handleSaveImport
()
},
},
deep
:
true
deep
:
true
},
},
labeling
:
{
labeling
:
{
handler
:
function
()
{
handler
()
{
console
.
log
(
this
.
labeling
.
length
)
if
(
this
.
labeling
.
length
==
0
)
{
if
(
this
.
labeling
.
length
==
0
)
{
this
.
contactNum
=
0
this
.
contactNum
=
0
this
.
filterTagging
=
[]
this
.
filterTagging
=
[]
...
@@ -417,7 +434,7 @@ export default {
...
@@ -417,7 +434,7 @@ export default {
deep
:
true
deep
:
true
},
},
selectType
(
newVal
,
oldVal
)
{
selectType
(
newVal
,
oldVal
)
{
if
((
oldVal
==
2
&&
this
.
labeling
.
length
>
0
)
||
(
oldVal
==
3
&&
this
.
crowding
.
length
>
0
))
{
if
((
oldVal
==
1
&&
this
.
labeling
.
length
>
0
)
||
(
oldVal
==
3
&&
this
.
crowding
.
length
>
0
))
{
this
.
$confirm
(
'更换指定方式将重置客户列表'
,
'提示'
,
{
this
.
$confirm
(
'更换指定方式将重置客户列表'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -463,7 +480,7 @@ export default {
...
@@ -463,7 +480,7 @@ export default {
},
},
handleCancel
()
{
handleCancel
()
{
console
.
log
(
this
.
saveStatus
)
console
.
log
(
this
.
saveStatus
)
if
(
this
.
saveStatus
||
(
this
.
$refs
.
welcome
.
previewList
.
length
>
0
&&
this
.
editStatus
))
{
if
(
this
.
saveStatus
||
(
this
.
$refs
.
welcome
&&
this
.
$refs
.
welcome
.
previewList
.
length
>
0
&&
this
.
editStatus
))
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -542,7 +559,6 @@ export default {
...
@@ -542,7 +559,6 @@ export default {
},
},
handleSaveImport
()
{
handleSaveImport
()
{
const
groupIds
=
this
.
crowding
.
map
(
item
=>
item
.
crowdId
)
const
groupIds
=
this
.
crowding
.
map
(
item
=>
item
.
crowdId
)
if
(
groupIds
.
length
==
0
)
return
this
.
loading
=
true
this
.
loading
=
true
let
params
=
{
let
params
=
{
exportUrl
:
this
.
exportUrl
,
exportUrl
:
this
.
exportUrl
,
...
@@ -550,6 +566,12 @@ export default {
...
@@ -550,6 +566,12 @@ export default {
filterTagging
:
JSON
.
stringify
(
this
.
filterTagging
),
filterTagging
:
JSON
.
stringify
(
this
.
filterTagging
),
groupIds
groupIds
}
}
if
(
params
.
filterTagging
&&
params
.
filterTagging
==
'[]'
)
{
delete
params
.
filterTagging
}
if
(
params
.
groupIds
&&
params
.
groupIds
.
length
==
0
)
{
delete
params
.
groupIds
}
this
.
$apis
.
marketing
.
exportAdd
(
params
).
then
(
res
=>
{
this
.
$apis
.
marketing
.
exportAdd
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
if
(
this
.
selectType
==
1
)
{
if
(
this
.
selectType
==
1
)
{
...
@@ -560,6 +582,8 @@ export default {
...
@@ -560,6 +582,8 @@ export default {
this
.
ExportDracImResponse
=
res
this
.
ExportDracImResponse
=
res
this
.
importStatus
=
true
this
.
importStatus
=
true
}
}
}
else
{
this
.
contactNum
=
0
}
}
this
.
loading
=
false
this
.
loading
=
false
})
})
...
@@ -630,6 +654,12 @@ export default {
...
@@ -630,6 +654,12 @@ export default {
content
content
}
}
}
}
if
(
params
.
filterTagging
&&
params
.
filterTagging
==
'[]'
)
{
delete
params
.
filterTagging
}
if
(
params
.
groupIds
&&
params
.
groupIds
.
length
==
0
)
{
delete
params
.
groupIds
}
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
attachmentList
=
previewList
.
map
(
item
=>
{
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
...
...
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