Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 286a8a18
authored
Sep 09, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huy_dev_v2.10.0' into 'v2.10.0'
Huy dev v2.10.0 See merge request
!347
2 parents
fff8ac10
031f8236
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
66 additions
and
48 deletions
src/api/modules/customerTransform.js
src/components/search-form/index.vue
src/views/customerTransform/detailCustomer.vue
src/views/guestGroup/components/welcomeWords.vue
src/views/home/index.vue
src/views/material/addMaterial.vue
src/views/material/components/textBox.vue
src/views/material/index.vue
src/api/modules/customerTransform.js
View file @
286a8a1
...
@@ -137,7 +137,7 @@ const staffList = params => {
...
@@ -137,7 +137,7 @@ const staffList = params => {
}
}
// 客户群发客户列表
// 客户群发客户列表
const
customerDetailList
=
params
=>
{
const
customerDetailList
=
params
=>
{
params
.
method
=
`
${
path
}
customer.list`
params
.
method
=
`
${
path
}
customer.list
.page
`
return
http
({
return
http
({
url
:
URL
,
url
:
URL
,
method
:
'GET'
,
method
:
'GET'
,
...
...
src/components/search-form/index.vue
View file @
286a8a1
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<el-form-item
v-for=
"(item, index) in formList"
:key=
"index"
:label=
"item.label || ''"
>
<el-form-item
v-for=
"(item, index) in formList"
:key=
"index"
:label=
"item.label || ''"
>
<template>
<template>
<template
v-if=
"item.type === 'input'"
>
<template
v-if=
"item.type === 'input'"
>
<el-input
v-model=
"formModel[item.prop]"
:type=
"item.inputType || 'text'"
:placeholder=
"item.placeholder || '请输入'"
:clearable=
"item.clearable || false"
:readonly=
"item.readonly || false"
@
keyup
.
enter
.
native=
"onInput"
></el-input>
<el-input
v-model=
"formModel[item.prop]"
:type=
"item.inputType || 'text'"
:placeholder=
"item.placeholder || '请输入'"
:clearable=
"item.clearable || false"
:readonly=
"item.readonly || false"
@
keyup
.
enter
.
native=
"onInput"
></el-input>
</
template
>
</
template
>
<
template
v-else-if=
"item.type === 'select'"
>
<
template
v-else-if=
"item.type === 'select'"
>
<el-select
size=
"small"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:filterable=
"!item.noFilter"
>
<el-select
size=
"small"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:filterable=
"!item.noFilter"
>
...
@@ -83,7 +83,7 @@ export default {
...
@@ -83,7 +83,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
isThreeRowShow
:{
isThreeRowShow
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
isNeedThreeBtns
:{
isNeedThreeBtns
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
}
}
...
@@ -118,11 +118,10 @@ export default {
...
@@ -118,11 +118,10 @@ export default {
//调用默认时间(30天)
//调用默认时间(30天)
this
.
getPassMonthFormatDate
()
this
.
getPassMonthFormatDate
()
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
sf
=
document
.
getElementById
(
'searchForm'
)
var
sf
=
document
.
getElementById
(
'searchForm'
)
if
(
sf
.
clientWidth
<
1280
&&
this
.
isHasSyncBtn
)
{
if
(
sf
.
clientWidth
<
1280
&&
this
.
isHasSyncBtn
)
{
document
.
querySelector
(
'.itemWidth'
).
style
.
maxWidth
=
700
+
'px'
document
.
querySelector
(
'.itemWidth'
).
style
.
maxWidth
=
700
+
'px'
}
}
if
(
sf
.
clientWidth
<
952
&&
this
.
isHasSyncBtn
)
{
if
(
sf
.
clientWidth
<
952
&&
this
.
isHasSyncBtn
)
{
...
@@ -131,7 +130,6 @@ export default {
...
@@ -131,7 +130,6 @@ export default {
let
lineHeight
=
75
//75
let
lineHeight
=
75
//75
if
(
document
.
getElementById
(
'searchForm'
).
offsetHeight
>
lineHeight
*
2
)
{
if
(
document
.
getElementById
(
'searchForm'
).
offsetHeight
>
lineHeight
*
2
)
{
this
.
expande
=
false
this
.
expande
=
false
this
.
needShowExpande
=
true
this
.
needShowExpande
=
true
}
else
{
}
else
{
...
@@ -139,13 +137,12 @@ export default {
...
@@ -139,13 +137,12 @@ export default {
this
.
expande
=
true
this
.
expande
=
true
}
}
if
(
sf
.
clientWidth
<
840
&&
this
.
isThreeRowShow
)
{
if
(
sf
.
clientWidth
<
840
&&
this
.
isThreeRowShow
)
{
document
.
querySelector
(
'.itemWidth'
).
style
.
minHeight
=
document
.
querySelector
(
'.itemWidth'
).
offsetHeight
+
50
+
'px'
document
.
querySelector
(
'.itemWidth'
).
style
.
minHeight
=
document
.
querySelector
(
'.itemWidth'
).
offsetHeight
+
50
+
'px'
// 客户群里面四个表做特殊处理,当为苹果笔记本电脑尺寸时,不是现实展开收起按钮
// 客户群里面四个表做特殊处理,当为苹果笔记本电脑尺寸时,不是现实展开收起按钮
this
.
needShowExpande
=
false
this
.
needShowExpande
=
false
this
.
expande
=
true
this
.
expande
=
true
}
}
})
})
//有数据不算表格高度,没数据算高度
//有数据不算表格高度,没数据算高度
...
@@ -215,8 +212,8 @@ export default {
...
@@ -215,8 +212,8 @@ export default {
syncClick
()
{
syncClick
()
{
this
.
$emit
(
'syncClick'
)
this
.
$emit
(
'syncClick'
)
},
},
handleExport
(){
handleExport
()
{
this
.
$emit
(
'handleExport'
)
this
.
$emit
(
'handleExport'
)
},
},
expandeClick
()
{
expandeClick
()
{
...
@@ -264,7 +261,7 @@ this.$emit('handleExport')
...
@@ -264,7 +261,7 @@ this.$emit('handleExport')
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
@import
'@/styles/variables.scss'
;
.search-form
{
.search-form
{
padding
:
18px
0
0
0
;
padding
:
18px
0
0
0
;
...
@@ -324,7 +321,7 @@ this.$emit('handleExport')
...
@@ -324,7 +321,7 @@ this.$emit('handleExport')
.el-select
{
.el-select
{
width
:
215px
;
width
:
215px
;
}
}
.el-select
>
.el-input
{
.el-select
>
.el-input
{
width
:
215px
;
width
:
215px
;
}
}
.el-form-item__content
{
.el-form-item__content
{
...
...
src/views/customerTransform/detailCustomer.vue
View file @
286a8a1
...
@@ -48,14 +48,14 @@
...
@@ -48,14 +48,14 @@
<div
class=
"detail-modular"
>
<div
class=
"detail-modular"
>
<div
class=
"title"
>
客户详情
</div>
<div
class=
"title"
>
客户详情
</div>
<div
class=
"detail-info"
>
<div
class=
"detail-info"
>
<el-menu
:default-active=
"customIndex"
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleCustomSelect"
>
<el-menu
:default-active=
"customIndex"
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleCustomSelect"
infinite-scroll-distance=
"10"
>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index=
"1"
>
已送达客户
</el-menu-item>
<el-menu-item
index=
"1"
>
已送达客户
</el-menu-item>
<el-menu-item
index=
"0"
>
未送达客户
</el-menu-item>
<el-menu-item
index=
"0"
>
未送达客户
</el-menu-item>
<el-menu-item
index=
"2"
>
客户送达失败
</el-menu-item>
<el-menu-item
index=
"2"
>
客户送达失败
</el-menu-item>
</el-menu>
</el-menu>
<div
class=
"detail-total"
>
共
{{
customer
list
.
length
||
0
}}
人
</div>
<div
class=
"detail-total"
>
共
{{
customer
Count
||
0
}}
人
</div>
<div
v-if=
"customer
list.length != 0"
class=
"info-list
"
>
<div
v-if=
"customer
Count != 0"
class=
"info-list"
v-infinite-scroll=
"customerDetailLoad"
immediate-check=
"false
"
>
<div
class=
"info-item"
v-for=
"item in customerlist"
:key=
"item.id"
>
<div
class=
"info-item"
v-for=
"item in customerlist"
:key=
"item.id"
>
<img
class=
"info-avatar"
:src=
"item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')"
alt
/>
<img
class=
"info-avatar"
:src=
"item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')"
alt
/>
<div
class=
"info-content info-custom"
>
<div
class=
"info-content info-custom"
>
...
@@ -108,7 +108,14 @@ export default {
...
@@ -108,7 +108,14 @@ export default {
eventBus
:
new
Vue
(),
eventBus
:
new
Vue
(),
isDisabled
:
false
,
isDisabled
:
false
,
footerLeft
:
0
,
footerLeft
:
0
,
footerWidth
:
0
footerWidth
:
0
,
// 客户详情分页
customerPage
:
{
pageSize
:
10
,
pageNum
:
1
},
// 客户详情总数
customerCount
:
0
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -126,8 +133,19 @@ export default {
...
@@ -126,8 +133,19 @@ export default {
this
.
activeIndex
=
val
this
.
activeIndex
=
val
this
.
getStaffList
(
val
)
this
.
getStaffList
(
val
)
},
},
// 客户详情选择切换
handleCustomSelect
(
val
)
{
handleCustomSelect
(
val
)
{
this
.
customIndex
=
val
this
.
customIndex
=
val
this
.
customerlist
=
[]
// 获取滑动高度清0,防止tab切换时记录滚动条位置问题
var
scrolltopList
=
document
.
querySelectorAll
(
'.info-list'
)
if
(
scrolltopList
)
{
scrolltopList
[
1
]
?
(
scrolltopList
[
1
].
scrollTop
=
0
)
:
''
}
this
.
customerPage
=
{
pageSize
:
10
,
pageNum
:
1
}
this
.
getCustomerList
(
val
)
this
.
getCustomerList
(
val
)
},
},
remind
(
data
,
index
)
{
remind
(
data
,
index
)
{
...
@@ -163,10 +181,28 @@ export default {
...
@@ -163,10 +181,28 @@ export default {
this
.
employeelist
=
res
?
res
:
[]
this
.
employeelist
=
res
?
res
:
[]
})
})
},
},
// 客户详情下拉加载
customerDetailLoad
()
{
// 详情列表有数据时才触发
if
(
this
.
customerlist
.
length
>
0
)
{
this
.
customerPage
.
pageNum
++
// 详情数组数量小于总数才触发,带上切换的tab值
if
(
this
.
customerlist
.
length
<
this
.
customerCount
)
this
.
getCustomerList
(
this
.
customIndex
)
}
},
// 获取客户详情列表
getCustomerList
(
status
=
null
)
{
getCustomerList
(
status
=
null
)
{
const
id
=
this
.
$route
.
params
.
id
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
customerDetailList
({
id
,
status
}).
then
(
res
=>
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerPage
))
this
.
customerlist
=
res
?
res
:
[]
params
.
status
=
status
params
.
id
=
id
this
.
$apis
.
customerTransform
.
customerDetailList
(
params
).
then
(
res
=>
{
this
.
customerCount
=
res
.
count
if
(
!
res
.
data
.
length
)
{
this
.
customerlist
=
[]
return
}
this
.
customerlist
.
push
(...
res
.
data
)
})
})
},
},
remindUserGroup
()
{
remindUserGroup
()
{
...
@@ -276,7 +312,7 @@ export default {
...
@@ -276,7 +312,7 @@ export default {
margin-top
:
0
;
margin-top
:
0
;
margin-left
:
10px
;
margin-left
:
10px
;
&.send
{
&.send
{
width
:
7
0px
;
width
:
8
0px
;
}
}
span
{
span
{
vertical-align
:
middle
;
vertical-align
:
middle
;
...
...
src/views/guestGroup/components/welcomeWords.vue
View file @
286a8a1
...
@@ -147,14 +147,12 @@ export default {
...
@@ -147,14 +147,12 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
// this.updateList(this.previewList)
// this.updateList(this.previewList)
// obj.init('video')
// obj.init('video')
},
},
methods
:
{
methods
:
{
handleImgChange
(
e
,
targetItem
)
{
handleImgChange
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
var
file
=
e
.
srcElement
.
files
[
0
]
var
file
=
e
.
srcElement
.
files
[
0
]
...
@@ -170,12 +168,10 @@ export default {
...
@@ -170,12 +168,10 @@ export default {
var
image
=
new
Image
()
var
image
=
new
Image
()
image
.
src
=
e
.
target
.
result
image
.
src
=
e
.
target
.
result
image
.
onload
=
()
=>
{
image
.
onload
=
()
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
previewList
.
push
({
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
IMAGE
,
attType
:
ATT_TYPE
.
IMAGE
,
attContent
:
res
attContent
:
res
...
@@ -198,10 +194,9 @@ export default {
...
@@ -198,10 +194,9 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
previewList
.
push
({
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
VEDIO
,
attType
:
ATT_TYPE
.
VEDIO
,
attContent
:
res
attContent
:
res
...
@@ -227,11 +222,10 @@ export default {
...
@@ -227,11 +222,10 @@ export default {
image
.
src
=
e
.
target
.
result
image
.
src
=
e
.
target
.
result
image
.
onload
=
()
=>
{
image
.
onload
=
()
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$set
(
this
.
appletForm
,
'picUrl'
,
'dfasdfasfa'
)
this
.
$set
(
this
.
appletForm
,
'picUrl'
,
'dfasdfasfa'
)
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$set
(
this
.
appletForm
,
'picUrl'
,
res
)
this
.
$set
(
this
.
appletForm
,
'picUrl'
,
res
)
}
}
})
})
...
@@ -239,7 +233,6 @@ export default {
...
@@ -239,7 +233,6 @@ export default {
}
}
},
},
switchDailog
(
funName
)
{
switchDailog
(
funName
)
{
if
(
funName
==
'link'
)
{
if
(
funName
==
'link'
)
{
this
.
dialogTitle
=
'添加网页消息'
this
.
dialogTitle
=
'添加网页消息'
}
else
if
(
funName
==
'applet'
)
{
}
else
if
(
funName
==
'applet'
)
{
...
@@ -253,7 +246,6 @@ export default {
...
@@ -253,7 +246,6 @@ export default {
case
'添加网页消息'
:
case
'添加网页消息'
:
this
.
$refs
.
linkForm
.
validate
(
valid
=>
{
this
.
$refs
.
linkForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
previewList
.
push
({
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
URL
,
attType
:
ATT_TYPE
.
URL
,
attContent
:
this
.
linkForm
attContent
:
this
.
linkForm
...
@@ -264,16 +256,13 @@ export default {
...
@@ -264,16 +256,13 @@ export default {
// this.linkForm = {}
// this.linkForm = {}
// this.$refs.linkForm.clearValidate()
// this.$refs.linkForm.clearValidate()
}
else
{
}
else
{
return
false
return
false
}
}
})
})
break
break
case
'添加小程序'
:
case
'添加小程序'
:
this
.
$refs
.
appletForm
.
validate
(
valid
=>
{
this
.
$refs
.
appletForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
previewList
.
push
({
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
MINIPROGRAM
,
attType
:
ATT_TYPE
.
MINIPROGRAM
,
attContent
:
this
.
appletForm
attContent
:
this
.
appletForm
...
@@ -283,23 +272,19 @@ export default {
...
@@ -283,23 +272,19 @@ export default {
// this.appletForm = {}
// this.appletForm = {}
// this.$refs.appletForm.clearValidate()
// this.$refs.appletForm.clearValidate()
}
else
{
}
else
{
return
false
return
false
}
}
})
})
break
break
default
:
default
:
}
}
},
},
close
(
index
)
{
close
(
index
)
{
// this.previewList
// this.previewList
this
.
previewList
.
splice
(
index
,
1
)
this
.
previewList
.
splice
(
index
,
1
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
},
},
textInput
(
val
)
{
textInput
(
val
)
{
const
hasText
=
this
.
previewList
.
some
(
item
=>
item
.
attType
==
1
)
const
hasText
=
this
.
previewList
.
some
(
item
=>
item
.
attType
==
1
)
if
(
hasText
)
{
if
(
hasText
)
{
...
@@ -313,7 +298,6 @@ export default {
...
@@ -313,7 +298,6 @@ export default {
attType
:
ATT_TYPE
.
TEXT
attType
:
ATT_TYPE
.
TEXT
})
})
}
}
},
},
closeDialog
()
{
closeDialog
()
{
if
(
this
.
dialogVisible
)
{
if
(
this
.
dialogVisible
)
{
...
...
src/views/home/index.vue
View file @
286a8a1
...
@@ -407,7 +407,7 @@ export default {
...
@@ -407,7 +407,7 @@ export default {
.border
{
.border
{
padding
:
20px
;
padding
:
20px
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
//
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.orange
{
.orange
{
...
...
src/views/material/addMaterial.vue
View file @
286a8a1
...
@@ -420,7 +420,8 @@ export default {
...
@@ -420,7 +420,8 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
// const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
const
base64
=
file
.
name
.
slice
(
-
3
)
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
pdfUrl
=
res
this
.
pdfUrl
=
res
...
@@ -448,7 +449,7 @@ export default {
...
@@ -448,7 +449,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
// console.log(res)
// console.log(res)
...
...
src/views/material/components/textBox.vue
View file @
286a8a1
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
this
.
$emit
(
'focus'
)
this
.
$emit
(
'focus'
)
}
}
// 上传图片
// 上传图片
this
.
editor
.
config
.
customUploadImg
=
function
(
resultFiles
,
insertImgFn
)
{
this
.
editor
.
config
.
customUploadImg
=
function
(
resultFiles
,
insertImgFn
)
{
var
file
=
resultFiles
[
0
]
var
file
=
resultFiles
[
0
]
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
// 默认1MB
// 默认1MB
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
_this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
_this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
// console.log(res)
// console.log(res)
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
}
}
}
}
// 上传视频
// 上传视频
this
.
editor
.
config
.
customUploadVideo
=
function
(
resultFiles
,
insertVideoFn
)
{
this
.
editor
.
config
.
customUploadVideo
=
function
(
resultFiles
,
insertVideoFn
)
{
var
file
=
resultFiles
[
0
]
var
file
=
resultFiles
[
0
]
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
// 默认1MB
// 默认1MB
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
videoFile
=
e
.
target
.
result
const
videoFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
videoFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
videoFile
.
split
(
','
)[
1
]
_this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
_this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
// console.log(res)
// console.log(res)
...
...
src/views/material/index.vue
View file @
286a8a1
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</span>
</span>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"search-form"
>
<div
class=
"search-form"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"
2
"
:formObj=
"searchForm"
:formData=
"materialFormData"
@
handleOk=
"getListApi"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"
1
"
:formObj=
"searchForm"
:formData=
"materialFormData"
@
handleOk=
"getListApi"
@
handleRest=
"handleReset"
></GLCombiForm>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"tabelList"
>
<el-row>
<el-row>
...
...
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