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 6c22c1b2
authored
Jul 28, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
9795ba45
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
28 deletions
src/api/modules/square.js
src/components/welcome/tag-textarea.vue
src/views/channel/components/empDetail.vue
src/views/square/import.vue
src/views/square/index.vue
src/api/modules/square.js
View file @
6c22c1b
...
...
@@ -38,6 +38,16 @@ const importsRecord = params => {
sign
:
true
})
}
const
importsRecordSearch
=
params
=>
{
params
.
method
=
'entmicro.api.imports.record.search'
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
...
...
@@ -71,6 +81,7 @@ export default {
importsUpload
,
downloadModel
,
importsRecord
,
importsRecordSearch
,
importsCount
,
importsKey
,
findLoginCount
...
...
src/components/welcome/tag-textarea.vue
View file @
6c22c1b
...
...
@@ -92,7 +92,7 @@ export default {
var
el
=
this
.
$refs
.
wTextareaContent
var
range
=
document
.
createRange
()
//返回用户当前的选区
var
sel
=
document
.
getSelection
()
var
sel
=
el
.
document
.
parentWindow
.
getSelection
()
//获取当前光标位置
var
offset
=
sel
.
focusOffset
//div当前内容
...
...
src/views/channel/components/empDetail.vue
View file @
6c22c1b
...
...
@@ -34,7 +34,7 @@
<div
class=
"form-row"
>
<img
:src=
"scope.scope.avatar"
v-if=
"scope.scope.avatar"
>
{{
scope
.
scope
.
customerName
}}
<span
style=
"color: #5850ff"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
'@企微
'
}}
</span>
<span
style=
"color: #5850ff"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
'
'
}}
</span>
</div>
</
template
>
</GLTable>
...
...
src/views/square/import.vue
View file @
6c22c1b
...
...
@@ -63,20 +63,6 @@
<a
:href=
"importData.errorDataUrl"
>
下载
</a>
获取明细
</div>
<div
class=
"squre-success-footer"
>
<div
class=
"squre-success-item"
>
<div
class=
"success-item-title"
>
本次导入总客户数
</div>
<div
class=
"success-item-num"
>
{{
detailInfo
.
importNumber
}}
</div>
</div>
<div
class=
"squre-success-item"
>
<div
class=
"success-item-title"
>
新导入客户数
</div>
<div
class=
"success-item-num"
>
{{
detailInfo
.
newCustomerNumber
}}
</div>
</div>
<div
class=
"squre-success-item"
>
<div
class=
"success-item-title"
>
企微客户占比
</div>
<div
class=
"success-item-num"
>
{{
detailInfo
.
entmicroNumber
}}
/
{{
detailInfo
.
importNumber
}}
</div>
</div>
</div>
</div>
</div>
<GLFooter>
...
...
@@ -133,12 +119,13 @@ export default {
},
downloadModel
()
{
this
.
$apis
.
square
.
downloadModel
({}).
then
(
res
=>
{
if
(
res
)
{
const
link
=
document
.
createElement
(
'a'
)
link
.
setAttribute
(
'href'
,
res
)
//设置下载文件的url地址
//link.setAttribute('download', 'download'); //用于设置下载文件的文件名
link
.
click
()
}
console
.
log
(
res
)
// if (res) {
// const link = document.createElement('a')
// link.setAttribute('href', res) //设置下载文件的url地址
// //link.setAttribute('download', 'download'); //用于设置下载文件的文件名
// link.click()
// }
})
},
enentDrop
(
e
)
{
...
...
src/views/square/index.vue
View file @
6c22c1b
...
...
@@ -107,7 +107,7 @@
<el-form-item
size=
"small"
label=
"导入时间"
>
<el-date-picker
:picker-options=
"pickerOptions"
v-model=
"createTime"
type=
"daterange"
value-format=
"yyyy-MM-dd"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
></el-date-picker>
</el-form-item>
<el-form-item
size=
"small"
label=
"
发送
状态"
>
<el-form-item
size=
"small"
label=
"
数据处理
状态"
>
<el-select
v-model=
"tableSearchForm.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionstatus"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
...
...
@@ -211,7 +211,7 @@ export default {
tableColumns
:
[
{
label
:
'导入批次'
,
prop
:
'
createdTime
'
prop
:
'
importFlag
'
},
{
label
:
'导入时间'
,
...
...
@@ -219,15 +219,18 @@ export default {
},
{
label
:
'本次新增客户'
,
prop
:
'
createdTime
'
prop
:
'
newCustomerNumber
'
},
{
label
:
'导入客户数'
,
prop
:
'
createdTime
'
prop
:
'
importNumber
'
},
{
label
:
'数据处理状态'
,
prop
:
'importStaffName'
prop
:
'dataStatus'
,
formatter
:
cellValue
=>
{
return
cellValue
.
dataStatus
==
1
?
'已处理'
:
'处理中'
}
},
{
label
:
'导入人员'
,
...
...
@@ -235,7 +238,7 @@ export default {
},
{
label
:
'备注'
,
prop
:
'
importStaffName
'
prop
:
'
remarks
'
},
{
label
:
'操作'
,
...
...
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