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 d1fb8f34
authored
May 09, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
8e8679ca
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
239 additions
and
87 deletions
src/api/modules/square.js
src/config/index.js
src/setup/qiankun.js
src/utils/util.js
src/views/channel/poster.vue
src/views/market/index.vue
src/views/square/components/step-first.vue
src/views/square/components/step-second.vue
src/views/square/import.vue
src/views/square/index.vue
src/api/modules/square.js
View file @
d1fb8f3
...
...
@@ -60,6 +60,17 @@ const importsRecord = params => {
sign
:
true
})
}
const
datacubeNotice
=
params
=>
{
params
.
method
=
'entmicro.api.datacube.notice.pc'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
importsCount
=
params
=>
{
params
.
method
=
'entmicro.api.imports.count'
params
.
sessionId
=
session
...
...
@@ -89,6 +100,15 @@ const findLoginCount = params => {
sign
:
true
})
}
const
queryCrowdTree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http
({
url
:
'rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
importsUpload
,
downloadModel
,
...
...
@@ -97,5 +117,7 @@ export default {
importsKey
,
findLoginCount
,
datacubeUpload
,
merchantConfig
merchantConfig
,
datacubeNotice
,
queryCrowdTree
}
src/config/index.js
View file @
d1fb8f3
...
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
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')
}
export
const
config
=
{
...
...
src/setup/qiankun.js
View file @
d1fb8f3
...
...
@@ -2,13 +2,12 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
{
GLTable
,
GLButton
,
GLFooter
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
import
GLCombiForm
from
'@/components/GlCombiForm'
Vue
.
use
(
GLCombiForm
)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
...
...
@@ -24,7 +23,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
'scrm-base-dae97168-46da-4484-8386-f33fb5844878-rop'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
:
request_tag
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/utils/util.js
View file @
d1fb8f3
...
...
@@ -86,7 +86,7 @@ util.downloadUrl = function(url) {
link
.
click
()
document
.
body
.
removeChild
(
link
)
}
util
.
getArrayIsSubset
=
(
arr
1
,
arr2
)
=>
{
util
.
getArrayIsSubset
=
(
arr
2
,
arr1
)
=>
{
return
arr1
.
every
(
item
=>
{
return
arr2
.
includes
(
item
)
})
...
...
src/views/channel/poster.vue
View file @
d1fb8f3
...
...
@@ -10,7 +10,7 @@
</div>
<div
class=
"poster-item-box"
v-loading=
"item.loadingImg"
>
<img
:src=
"item.thumbnailUrl
?item.thumbnailUrl:
item.autoUrl"
:src=
"item.thumbnailUrl
? item.thumbnailUrl :
item.autoUrl"
class=
"poster-image"
v-if=
"item.imgWidth"
:style=
"
{
...
...
@@ -148,7 +148,7 @@ export default {
this
.
$message
.
info
(
'图片格式不正确'
)
return
false
}
if
(
file
.
size
/
1024
/
1000
>
1
0
)
{
if
(
file
.
size
/
1024
/
1000
>
4
0
)
{
this
.
$message
.
info
(
'请上传小于10M的图片'
)
return
}
...
...
@@ -179,7 +179,7 @@ export default {
}
else
{
self
.
loading
=
false
}
self
.
$refs
.
file
.
value
=
''
;
self
.
$refs
.
file
.
value
=
''
})
}
}
...
...
@@ -232,13 +232,13 @@ export default {
listChannelCodeBill
.
forEach
(
item
=>
{
item
.
show
=
false
item
.
loadingImg
=
true
let
backUrl
=
item
.
thumbnailUrl
?
item
.
thumbnailUrl
:
item
.
autoUrl
let
backUrl
=
item
.
thumbnailUrl
?
item
.
thumbnailUrl
:
item
.
autoUrl
this
.
backUrl
=
backUrl
let
img
=
new
Image
()
img
.
src
=
backUrl
this
.
loadingImg
=
true
this
.
loadingDrag
=
false
img
.
onload
=
function
()
{
img
.
onload
=
function
()
{
if
(
img
.
width
>
img
.
height
)
{
item
.
imgWidth
=
280
item
.
imgHeight
=
(
img
.
height
*
280
)
/
img
.
width
...
...
@@ -256,7 +256,7 @@ export default {
let
img
=
new
Image
()
img
.
src
=
img_url
let
self
=
this
img
.
onload
=
function
()
{
img
.
onload
=
function
()
{
self
.
dragHeight
=
(
img
.
height
*
375
)
/
img
.
width
self
.
dialogVisible
=
true
self
.
loading
=
false
...
...
@@ -268,7 +268,7 @@ export default {
this
.
getPoster
()
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.channel-main
{
...
...
@@ -384,4 +384,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/market/index.vue
View file @
d1fb8f3
...
...
@@ -155,7 +155,7 @@ export default {
this
.
tableSearchForm
.
beginTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
0
]).
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
this
.
tableSearchForm
.
endTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
1
]).
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
}
delete
this
.
tableSearchForm
.
createTime
//
delete this.tableSearchForm.createTime
resolve
()
})
},
...
...
src/views/square/components/step-first.vue
View file @
d1fb8f3
<
template
>
<div
class=
"import-main"
>
<div
class=
"import-main"
v-loading=
"loading"
>
<div
class=
"upload-container"
>
<div
class=
"upload-item"
v-for=
"(item, index) in fileList"
:key=
"item"
>
<div
class=
"upload-label"
>
<div
class=
"upload-label"
:style=
"
{ width: textNum * 18 + 'px' }"
>
<label
v-if=
"item.flag"
>
*
</label>
{{
item
.
templateName
}}
:
</div>
...
...
@@ -10,25 +10,25 @@
<div
class=
"upload-btn"
>
<el-button
size=
"small"
>
<i
class=
"el-icon-plus"
></i>
{{
item
.
fileName
?
'
上传文件'
:
'更换
文件'
}}
{{
item
.
fileName
?
'
更换文件'
:
'上传
文件'
}}
</el-button>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"uploadFile($event, item, index)"
/>
</div>
<a
:href=
"item.templateUrl"
>
下载模板
</a>
<div
class=
"upload-tips"
v-if=
"!item.fileName && !item.file
Url
"
>
支持扩展名:xlsx、xls
</div>
<div
class=
"upload-tips"
v-if=
"item.file
Url
"
>
<div
class=
"upload-tips"
v-if=
"!item.fileName && !item.file
Info
"
>
支持扩展名:xlsx、xls
</div>
<div
class=
"upload-tips"
v-if=
"item.file
Info
"
>
<i
class=
"el-icon-success"
></i>
文件格式正确(
{{
item
.
fileName
}}
)
</div>
<div
class=
"upload-tips"
v-if=
"item.fileName && !item.file
Url
"
>
<div
class=
"upload-tips"
v-if=
"item.fileName && !item.file
Info
"
>
<i
class=
"el-icon-error"
></i>
文件格式错误,请更换文件(
{{
item
.
fileName
}}
)
</div>
</div>
</div>
<div
class=
"upload-item"
>
<div
class=
"upload-label"
>
<div
class=
"upload-label"
:style=
"
{ width: textNum * 20 + 'px' }"
>
备注:
</div>
...
...
@@ -37,7 +37,7 @@
</div>
</div>
<div
class=
"upload-item"
>
<div
class=
"upload-label"
>
<div
class=
"upload-label"
:style=
"
{ width: textNum * 20 + 'px' }"
>
跟进人
<el-popover
placement=
"top"
width=
"400"
trigger=
"hover"
content=
"用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
class=
"count-item-question"
/>
...
...
@@ -78,6 +78,8 @@ export default {
},
data
()
{
return
{
textNum
:
0
,
loading
:
false
,
staffIdList
:
[],
tabelHeader
:
[],
tabelHeaderModel
:
[],
...
...
@@ -90,20 +92,23 @@ export default {
},
methods
:
{
async
merchantConfig
()
{
this
.
loading
=
true
const
fileList
=
await
this
.
$apis
.
square
.
merchantConfig
({})
this
.
fileList
=
fileList
.
map
(
item
=>
{
this
.
textNum
=
this
.
textNum
>
item
.
templateName
.
length
?
this
.
textNum
:
item
.
templateName
.
length
+
1
return
{
size
:
''
,
flag
:
parseInt
(
item
.
mustUpload
),
flag
:
!
parseInt
(
item
.
mustUpload
),
fileName
:
''
,
templateName
:
item
.
templateName
,
fileUrl
:
''
,
fileInfo
:
''
,
templateUrl
:
item
.
templateUrl
,
BusinessTypeId
:
item
.
businessType
,
businessTypeName
:
item
.
businessName
}
})
console
.
log
(
fileList
)
this
.
loading
=
false
this
.
readWorkbookFromRemoteFile
()
},
getUploadInfo
()
{
...
...
@@ -112,7 +117,7 @@ export default {
this
.
$message
.
error
(
'请上传'
+
f
.
templateName
)
return
false
}
if
(
!
f
.
file
Url
&&
f
.
fileName
)
{
if
(
!
f
.
file
Info
&&
f
.
fileName
)
{
this
.
$message
.
error
(
f
.
templateName
+
'文件格式错误,请更换文件'
)
return
false
}
...
...
@@ -213,8 +218,9 @@ export default {
this
.
$message
.
error
(
'单文件体积需小于30M'
)
return
}
this
.
loading
=
true
const
header
=
await
this
.
compareHeader
(
file
)
console
.
log
(
header
,
this
.
tabelHeaderModel
[
index
])
if
(
util
.
getArrayIsSubset
(
header
,
this
.
tabelHeaderModel
[
index
]))
{
const
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
...
...
@@ -222,17 +228,22 @@ export default {
const
imgFile
=
event
.
target
.
result
const
arrBase64
=
imgFile
.
split
(
','
)
const
fileInfo
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
arrBase64
[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
fileInfo
}).
then
(
res
=>
{
uploadItem
.
fileUrl
=
res
uploadItem
.
size
=
size
uploadItem
.
fileName
=
file
.
name
this
.
$refs
.
file
.
value
=
''
})
uploadItem
.
fileInfo
=
fileInfo
uploadItem
.
size
=
size
uploadItem
.
fileName
=
file
.
name
this
.
loading
=
false
// this.$apis.common.pictureUpload({ file: fileInfo }).then(res => {
// uploadItem.fileUrl = res
// uploadItem.size = size
// uploadItem.fileName = file.name
// this.$refs.file.value = ''
// this.loading = false
// })
}
}
else
{
uploadItem
.
fileName
=
file
.
name
this
.
loading
=
false
}
// // 转码base64
},
// uploadFile(e, uploadItem, index) {
// const file = e.srcElement.files[0]
...
...
@@ -327,12 +338,12 @@ export default {
.upload-item
{
display
:
flex
;
margin-top
:
30px
;
font-size
:
14px
;
.upload-label
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
min-width
:
100px
;
text-align
:
right
;
label
{
color
:
#eb4e4e
;
...
...
src/views/square/components/step-second.vue
View file @
d1fb8f3
<
template
>
<div
class=
"import-main"
>
<div
class=
"upload-process"
>
<div
class=
"upload-process-item"
v-for=
"
item
in process"
:key=
"item"
>
<div
class=
"upload-process-item"
v-for=
"
(item, index)
in process"
:key=
"item"
>
<div
class=
"process-item-label"
>
<label>
*
</label>
{{
item
.
templateName
}}
:
...
...
@@ -14,11 +14,14 @@
<div
class=
"process-item-name"
>
{{
item
.
fileName
}}
</div>
<div
class=
"process-item-num"
>
<el-progress
:show-text=
"false"
:stroke-width=
"6"
:percentage=
"item.percentage"
:color=
"item.percentage != 100 ? '#5850FF' : '#2CCA74'"
></el-progress>
<div
class=
"process-num-status"
v-if=
"item.percentage > 0"
>
上传中
</div>
<div
class=
"process-num-status process-refresh"
v-if=
"item.percentage == 0"
>
<div
class=
"process-num-status"
v-if=
"item.percentage > 0
&& item.percentage
< 100
"
>
上传中
</div>
<div
class=
"process-num-status process-refresh"
v-if=
"item.percentage == 0
&& !dialogVisible"
@
click=
"refresh(index)
"
>
重试
<i
class=
"el-icon-refresh-right"
></i>
</div>
<div
class=
"process-num-status process-refresh"
v-if=
"item.percentage == 0 && dialogVisible"
>
等待上传
</div>
<div
class=
"process-num-status"
v-if=
"item.percentage == 100"
><i
class=
"el-icon-success"
></i></div>
</div>
</div>
...
...
@@ -34,7 +37,7 @@
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"
dialogVisible = false
"
>
<el-button
size=
"small"
@
click=
"
handleCancel
"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSure"
>
确 定
</el-button>
...
...
@@ -44,29 +47,43 @@
</
template
>
<
script
>
import
{
utils
}
from
'glsx-common'
export
default
{
name
:
'step-second'
,
props
:
{},
data
()
{
return
{
resultNum
:
0
,
dialogVisible
:
false
,
setInter
:
null
,
setInter
:
[]
,
process
:
[{
percentage
:
0
},
{
percentage
:
0
},
{
percentage
:
0
}],
uploadItem
:
''
}
},
mounted
()
{},
beforeDestroy
()
{
clearInterval
(
this
.
setInter
)
this
.
resultNum
=
0
this
.
setInter
.
forEach
(
item
=>
{
clearInterval
(
this
.
setInter
)
})
},
methods
:
{
handleSure
()
{
this
.
datacubeUpload
()
handleSure
:
utils
.
debounce
(
function
()
{
this
.
fileUpload
()
this
.
dialogVisible
=
false
},
300
),
handleCancel
()
{
this
.
$emit
(
'excelCancel'
)
this
.
dialogVisible
=
false
},
startUpload
(
item
,
info
)
{
handleClose
()
{
this
.
handleCancel
()
},
startUpload
(
info
)
{
this
.
uploadItem
=
info
this
.
process
=
item
.
map
(
p
=>
{
const
fileList
=
info
.
fileList
this
.
process
=
fileList
.
map
(
p
=>
{
return
{
percentage
:
0
,
fileName
:
p
.
fileName
,
...
...
@@ -74,39 +91,112 @@ export default {
size
:
p
.
size
.
toFixed
(
2
)
}
})
console
.
log
(
info
)
this
.
dialogVisible
=
true
},
async
refresh
(
index
)
{
this
.
process
[
index
].
percentage
=
100
this
.
setInter
[
index
]
=
setInterval
(
this
.
addProcess
(
index
),
300
)
try
{
this
.
uploadItem
.
fileList
[
index
].
fileUrl
=
await
this
.
$apis
.
common
.
pictureUpload
({
file
:
this
.
uploadItem
.
fileList
[
index
].
fileInfo
})
this
.
resultNum
++
this
.
process
[
index
].
percentage
=
100
clearInterval
(
this
.
setInter
[
index
])
if
(
this
.
resultNum
==
this
.
process
.
length
)
{
this
.
datacubeUpload
()
}
}
catch
(
e
)
{
this
.
process
[
index
].
percentage
=
0
clearInterval
(
this
.
setInter
[
index
])
}
},
datacubeUpload
()
{
this
.
uploadItem
.
fileList
=
this
.
uploadItem
.
fileList
.
filter
(
item
=>
item
.
fileUrl
)
this
.
uploadItem
.
createdStaffId
=
this
.
$globalState
.
session
.
id
this
.
$apis
.
square
.
datacubeUpload
(
this
.
uploadItem
).
then
(
res
=>
{
const
fileList
=
this
.
uploadItem
.
fileList
.
map
(
item
=>
{
return
{
templateName
:
item
.
templateName
,
fileName
:
item
.
fileName
,
fileUrl
:
item
.
fileUrl
,
templateUrl
:
item
.
templateUrl
,
BusinessTypeId
:
item
.
BusinessTypeId
,
businessTypeName
:
item
.
businessTypeName
}
})
let
params
=
{
fileList
,
createdStaffId
:
this
.
$globalState
.
session
.
id
}
this
.
$apis
.
square
.
datacubeUpload
(
params
).
then
(
res
=>
{
if
(
res
)
{
const
result
=
res
.
failFile
this
.
process
.
forEach
(
p
=>
{
p
.
percentage
=
Math
.
random
()
*
30
})
this
.
setInter
=
setInterval
(
this
.
addProcess
,
1000
)
let
resultNum
=
0
result
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
uploadSuccess
==
0
)
{
this
.
process
[
index
].
percentage
=
100
resultNum
++
}
else
{
this
.
process
[
index
].
percentage
=
0
}
if
(
resultNum
==
result
.
length
)
{
this
.
$emit
(
'handleSuccess'
)
}
})
this
.
$emit
(
'handleSuccess'
)
}
clearInterval
(
this
.
setInter
)
})
},
addProcess
()
{
fileUpload
()
{
this
.
process
.
forEach
(
p
=>
{
p
.
percentage
=
p
.
percentage
>
90
?
p
.
percentage
:
p
.
percentage
+
Math
.
random
()
*
5
p
.
percentage
=
Math
.
random
()
*
30
})
this
.
resultNum
=
0
this
.
uploadItem
.
fileList
.
forEach
(
async
(
item
,
index
)
=>
{
this
.
$set
(
this
.
setInter
,
index
,
setInterval
(
this
.
addProcess
(
index
),
300
))
try
{
this
.
uploadItem
.
fileList
[
index
].
fileUrl
=
await
this
.
$apis
.
common
.
pictureUpload
({
file
:
item
.
fileInfo
})
this
.
process
[
index
].
percentage
=
100
this
.
resultNum
++
clearInterval
(
this
.
setInter
[
index
])
if
(
this
.
resultNum
==
this
.
process
.
length
)
{
this
.
datacubeUpload
()
}
}
catch
(
e
)
{
this
.
process
[
index
].
percentage
=
0
clearInterval
(
this
.
setInter
[
index
])
}
// setTimeout(() => {
// clearInterval(this.setInter)
// this.$emit('handleSuccess')
// }, 1000)
// }
// this.$apis.common
// .pictureUpload({ file: item.fileInfo })
// .then(res => {
// resultNum++
// item.fileUrl = res
// this.process[index].percentage = 100
// })
// .catch(() => {
// this.process[index].percentage = 0
// })
})
// this.uploadItem.fileList = this.uploadItem.fileList.filter(item => item.fileUrl)
// this.uploadItem.createdStaffId = this.$globalState.session.id
// this.$apis.square
// .datacubeUpload(this.uploadItem)
// .then(res => {
// if (res) {
// const result = res.failFile
// let resultNum = 0
// result.forEach((item, index) => {
// if (item.uploadSuccess == 0) {
// this.process[index].percentage = 100
// resultNum++
// } else {
// this.process[index].percentage = 0
// }
// })
// if (resultNum == result.length) {
// setTimeout(() => {
// clearInterval(this.setInter)
// this.$emit('handleSuccess')
// }, 1000)
// }
// }
// })
// .catch(() => {
// this.process.forEach(p => {
// p.percentage = 0
// })
// })
},
addProcess
(
index
)
{
this
.
process
[
index
].
percentage
=
this
.
process
[
index
].
percentage
>
90
?
this
.
process
[
index
].
percentage
:
this
.
process
[
index
].
percentage
+
Math
.
random
()
*
5
}
}
}
...
...
src/views/square/import.vue
View file @
d1fb8f3
...
...
@@ -56,7 +56,7 @@
<div
class=
"upload-list"
>
<!--
<component
:is=
"stepName"
></component>
-->
<step-first
v-show=
"stepName == 'stepFirst'"
ref=
"firstForm"
></step-first>
<step-second
v-show=
"stepName == 'stepSecond'"
ref=
"secondForm"
@
handleSuccess=
"handleSuccess"
></step-second>
<step-second
v-show=
"stepName == 'stepSecond'"
ref=
"secondForm"
@
handleSuccess=
"handleSuccess"
@
excelCancel=
"excelCancel"
></step-second>
<step-third
v-show=
"stepName == 'stepThird'"
ref=
"thirdForm"
></step-third>
</div>
</div>
...
...
@@ -136,6 +136,9 @@ export default {
handleSuccess
()
{
this
.
activeIndex
=
3
},
excelCancel
()
{
this
.
activeIndex
=
1
},
changeItem
(
e
)
{
this
.
active
=
e
+
1
},
...
...
@@ -148,11 +151,11 @@ export default {
this
.
$refs
.
carousel
.
handleMouseEnter
=
()
=>
{}
},
handleNext
()
{
const
uploadInfo
=
this
.
$refs
.
firstForm
.
getUploadInfo
()
let
uploadInfo
=
this
.
$refs
.
firstForm
.
getUploadInfo
()
uploadInfo
.
fileList
=
uploadInfo
.
fileList
.
filter
(
item
=>
item
.
fileInfo
)
if
(
uploadInfo
)
{
this
.
activeIndex
++
const
fileList
=
uploadInfo
.
fileList
.
filter
(
item
=>
item
.
fileUrl
)
this
.
$refs
.
secondForm
.
startUpload
(
fileList
,
uploadInfo
)
this
.
$refs
.
secondForm
.
startUpload
(
uploadInfo
)
}
},
changeInput
(
e
)
{
...
...
@@ -288,7 +291,6 @@ export default {
<
style
lang=
"scss"
scoped
>
.squre-title
{
margin-top
:
20px
;
font-size
:
20px
;
font-weight
:
600
;
color
:
#333333
;
...
...
@@ -413,6 +415,7 @@ export default {
.squre-safe-panel
{
padding
:
40px
;
margin-top
:
20px
;
//
margin-bottom
:
60px
;
/deep/
{
.el-carousel__indicators,
.el-carousel__arrow
{
...
...
src/views/square/index.vue
View file @
d1fb8f3
...
...
@@ -12,7 +12,7 @@
<div
class=
"square-num-count"
>
<span
class=
"detail-content"
>
{{
countAll
.
magicCount
|
overThousandFilter
}}
<
GLButton
@
click=
"jumpDetail(0)"
class=
"detail-btn"
fn=
"客户明细"
mode=
"label"
></GLButton
>
<
div
@
click=
"jumpDetail(0)"
class=
"detail-btn"
fn=
"客户明细"
mode=
"label"
></div
>
</span>
</div>
</div>
...
...
@@ -21,7 +21,7 @@
<div
class=
"square-num-count"
>
<span
class=
"detail-content"
>
{{
countAll
.
qyCount
|
overThousandFilter
}}
<
GLButton
@
click=
"jumpDetail(1)"
class=
"detail-btn"
fn=
"客户明细"
mode=
"label"
></GLButton
>
<
div
@
click=
"jumpDetail(1)"
class=
"detail-btn"
fn=
"客户明细"
mode=
"label"
></div
>
</span>
</div>
</div>
...
...
@@ -37,7 +37,7 @@
<span
class=
"detail-content"
>
{{
countAll
.
unQyCount
|
overThousandFilter
}}
<label>
人
</label>
<
GLButton
@
click=
"jumpDetailGroup"
class=
"detail-btn"
fn=
"客户明细"
mode=
"label"
></GLButton
>
<
div
@
click=
"jumpDetailGroup"
class=
"detail-btn"
fn=
"客户明细"
mode=
"label"
></div
>
</span>
</div>
</div>
...
...
@@ -105,7 +105,7 @@
<i
class=
"el-icon-warning-outline"
></i>
数据已处理: 表示所导出的数据已进入系统。由于每个系统标签的统计规则不同,具体更新时间有所差异。
</div>
<GLButton
plain
size=
"small"
@
click=
"handleImport"
fn=
"
魔方导入
"
>
<GLButton
plain
size=
"small"
@
click=
"handleImport"
fn=
"
导入数据
"
>
导入数据
</GLButton>
</div>
...
...
@@ -125,7 +125,7 @@
</div>
</div>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<a
type=
"text"
:href=
"scope.scope
"
v-if=
"scope.scope.state
"
>
异常数据
</a>
<a
type=
"text"
:href=
"scope.scope
.failDataUrl"
v-if=
"scope.scope.state == 1 && scope.scope.failDataUrl
"
>
异常数据
</a>
</div>
</GLTable>
</div>
...
...
@@ -172,12 +172,13 @@ export default {
return
time
.
getTime
()
>
Date
.
now
()
}
},
crowdId
:
''
,
createTime
:
''
,
countAll
:
{},
dialogVisible
:
false
,
tableSearchForm
:
{
createTime
:
''
,
state
:
''
state
:
null
},
searchFormData
:
[
{
...
...
@@ -308,7 +309,7 @@ export default {
this
.
$history
.
push
(
url
)
},
jumpDetailGroup
()
{
this
.
$history
.
push
(
`/custom/clientDataOverview/group/
12
/1`
)
this
.
$history
.
push
(
`/custom/clientDataOverview/group/
${
this
.
crowdId
}
/1`
)
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
...
...
@@ -325,17 +326,43 @@ export default {
this
.
dialogVisible
=
true
}
})
},
datacubeNotice
()
{
this
.
$apis
.
square
.
datacubeNotice
({}).
then
(
res
=>
{
if
(
res
&&
res
.
length
)
{
for
(
let
k
of
res
)
{
setTimeout
(()
=>
{
this
.
$notify
({
title
:
'数据魔方已处理完成'
,
message
:
'批次'
+
k
,
type
:
'success'
,
duration
:
2000
})
},
100
)
}
}
})
},
queryCrowdTree
()
{
const
params
=
{
req
:
{
pageSize
:
1000
,
pageNum
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
crowdType
:
1
}
}
this
.
$apis
.
square
.
queryCrowdTree
(
params
).
then
(
res
=>
{
const
crowdUnitList
=
res
.
crowdUnitList
.
find
(
item
=>
item
.
crowdName
==
'已加企微,待匹配客户'
)
this
.
crowdId
=
crowdUnitList
.
crowdId
})
}
},
mounted
()
{
this
.
$notify
({
title
:
'数据魔方已处理完成'
,
message
:
'批次 202201005'
,
type
:
'success'
,
duration
:
5000
})
this
.
importsCount
()
this
.
findLogin
()
this
.
datacubeNotice
()
this
.
queryCrowdTree
()
},
beforeDestroy
()
{
this
.
$notify
.
closeAll
()
...
...
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