Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
office-web
Commits
29e7d636
Commit
29e7d636
authored
Dec 10, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加素材上传
parent
ea445e57
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
8 deletions
+15
-8
index.html
dist/index.html
+2
-2
app.995e9ed27d1734befb068cd786acf5c2.css
dist/static/css/app.995e9ed27d1734befb068cd786acf5c2.css
+0
-0
19.0708fe2eb673bedaa970.js
dist/static/js/19.0708fe2eb673bedaa970.js
+0
-2
19.57c050068e155816589a.js
dist/static/js/19.57c050068e155816589a.js
+2
-0
manifest.745fd38302d40a172c6b.js
dist/static/js/manifest.745fd38302d40a172c6b.js
+2
-2
newEnjoy.vue
src/views/enterpriseApp/marketingMaterial/newEnjoy.vue
+9
-2
No files found.
dist/index.html
View file @
29e7d636
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.378bcf6b55c55936aacb2403724ea8d3.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.3f15aabf6456f5a51a1c.js
></script><script
type=
text/javascript
src=
./static/js/vendor.329cb88147b5a2d6f4c1.js
></script><script
type=
text/javascript
src=
./static/js/app.7796b5a13d0460a03675.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.995e9ed27d1734befb068cd786acf5c2.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.745fd38302d40a172c6b.js
></script><script
type=
text/javascript
src=
./static/js/vendor.329cb88147b5a2d6f4c1.js
></script><script
type=
text/javascript
src=
./static/js/app.7796b5a13d0460a03675.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
378bcf6b55c55936aacb2403724ea8d3
.css
→
dist/static/css/app.
995e9ed27d1734befb068cd786acf5c2
.css
View file @
29e7d636
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/19.0708fe2eb673bedaa970.js
deleted
100644 → 0
View file @
ea445e57
webpackJsonp
([
19
],{
"7fkC"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
s
=
a
(
"Gu7T"
),
n
=
a
.
n
(
s
),
l
=
a
(
"Ke24"
),
o
=
a
(
"Ie7z"
),
c
=
a
(
"c4uw"
),
u
=
a
(
"vRJf"
),
d
=
a
(
"l46T"
),
m
=
a
(
"Kkt8"
),
g
=
a
(
"//Fk"
),
p
=
a
.
n
(
g
),
f
=
a
(
"DAYN"
),
h
=
{
name
:
"mult-upload-image"
,
props
:{
projectName
:{
type
:
String
,
default
:
"haoban-manage-web"
},
wxFlag
:{
type
:
String
,
default
:
"1"
},
imgRate
:{
type
:
String
},
actionUrl
:{
type
:
String
,
default
:
"/haoban-manage-web/upload-img"
},
maxImageLength
:{
type
:
Number
,
default
:
9
},
limitW
:{
type
:
Number
},
limitH
:{
type
:
Number
},
imageList
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dragImageList
:
this
.
imageList
,
fileDatas
:[],
initialImg
:
0
,
progress
:
0
,
pass
:
null
,
isEnlargeImage
:
!
1
,
enlargeImage
:
""
}},
computed
:{
propStatus
:
function
(){
return
this
.
pass
?
"success"
:
!
1
===
this
.
pass
?
"exception"
:
"text"
}},
beforeMount
:
function
(){},
methods
:{
uploadUrl
:
function
(){
var
e
,
t
=
window
.
location
.
origin
,
a
=
void
0
;
return
e
=
this
.
wxFlag
&&
""
!=
this
.
wxFlag
?
"wxFlag="
+
this
.
wxFlag
+
"&"
:
""
,
a
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"https://www.gicdev.com"
:
t
,
this
.
upUrl
=
a
+
this
.
actionUrl
+
"?"
+
e
+
"requestProject="
+
this
.
projectName
,
this
.
upUrl
},
beforeAvatarUpload
:
function
(
e
){
var
t
=
this
,
a
=
e
.
size
/
1024
/
1024
<
5
;
return
a
||
t
.
$message
.
error
(
"上传图片大小不能超过 5MB!"
),
a
&&
new
p
.
a
(
function
(
a
,
i
){
var
r
=
new
FileReader
;
r
.
onload
=
function
(
e
){
var
r
=
new
Image
;
r
.
onload
=
function
(){
var
e
=
this
.
width
,
r
=
this
.
height
;
t
.
imgRate
&&
""
!==
t
.
imgRate
&&
(
Number
(
t
.
imgRate
.
split
(
":"
)[
0
])
/
Number
(
t
.
imgRate
.
split
(
":"
)[
1
])
!=
Number
(
e
)
/
Number
(
r
)
&&
(
t
.
$message
.
error
(
"上传图片比例不正确!"
),
i
()));
t
.
imgRate
&&
""
!=
t
.
imgRate
||!
t
.
limitW
||!
t
.
limitH
||
e
===
t
.
limitW
||
r
===
t
.
limitH
||
(
t
.
$message
.
error
(
"上传图片尺寸不正确!"
),
i
()),
a
()},
r
.
src
=
e
.
target
.
result
},
r
.
readAsDataURL
(
e
)})},
uploadOnSuccess
:
function
(
e
,
t
){
this
.
pass
=!
0
,
console
.
log
(
e
,
t
),
1
==
e
.
errorCode
?(
this
.
$message
.
success
(
"上传成功"
),
this
.
$emit
(
"uploadOnSuccess"
,{
res
:
e
,
file
:
t
})):
this
.
$message
.
error
(
e
.
message
)},
uploadOnProgress
:
function
(
e
,
t
){
e
&&
e
.
percent
&&
(
this
.
progress
=
Math
.
floor
(
e
.
percent
))},
uploadOnChange
:
function
(
e
,
t
){
"ready"
===
e
.
status
?(
this
.
pass
=
null
,
this
.
progress
=
0
):
"fail"
===
e
.
status
&&
this
.
$message
.
error
(
"图片上传失败,请重试!"
),
console
.
log
(
t
,
this
.
fileDatas
)},
handleExceed
:
function
(
e
,
t
){
this
.
$message
.
warning
(
"当前限制选择 9 个文件,本次选择了 "
+
e
.
length
+
" 个文件,共选择了 "
+
(
e
.
length
+
t
.
length
)
+
" 个文件"
)},
uploadOnError
:
function
(){
this
.
$message
.
error
(
"图片上传失败,请重试!"
)},
previewImage
:
function
(
e
){
this
.
isEnlargeImage
=!
0
,
this
.
initialImg
=
e
},
deleteImage
:
function
(
e
){
this
.
$emit
(
"deleteImage"
,
e
)},
handleClose
:
function
(
e
){
e
()},
itemMoveEnd
:
function
(
e
){
this
.
$emit
(
"sortImg"
,
this
.
dragImageList
)}},
watch
:{
imageList
:
function
(
e
,
t
){
this
.
dragImageList
=
e
}},
mounted
:
function
(){
this
.
dragImageList
=
this
.
imageList
},
components
:{
draggable
:
a
.
n
(
f
).
a
}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"gic-upload__img"
},[
a
(
"div"
,{
staticClass
:
"gic-upload__img__drag"
},[
a
(
"draggable"
,{
staticClass
:
"drag-wrap"
,
staticStyle
:{
display
:
"contents"
},
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
on
:{
end
:
e
.
itemMoveEnd
},
model
:{
value
:
e
.
dragImageList
,
callback
:
function
(
t
){
e
.
dragImageList
=
t
},
expression
:
"dragImageList"
}},[
a
(
"transition-group"
,{
attrs
:{
name
:
"slide-fade"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
i
){
return
a
(
"div"
,{
key
:
i
,
class
:[
"img-content"
,
i
>=
6
?
"m-t-8"
:
""
]},[
a
(
"a"
,{
staticClass
:
"item-img"
,
attrs
:{
href
:
t
.
url
}},[
a
(
"img"
,{
attrs
:{
src
:
t
.
url
,
alt
:
"上传图片"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"upload-icon__btn"
},[
a
(
"i"
,{
staticClass
:
"el-icon-view"
,
on
:{
click
:
function
(
t
){
e
.
previewImage
(
i
)}}}),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
t
){
e
.
deleteImage
(
i
)}}})])])}))],
1
),
e
.
_v
(
" "
),
e
.
pass
||
0
===
e
.
progress
?
e
.
_e
():
a
(
"div"
,{
class
:[
"img-content"
,
"img-progress"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-progress"
,{
staticClass
:
"gic-img-progress"
,
staticStyle
:{
"line-height"
:
"102px"
},
attrs
:{
width
:
102
,
percentage
:
e
.
progress
,
status
:
e
.
propStatus
}})],
1
),
e
.
_v
(
" "
),
e
.
imageList
&&
e
.
imageList
.
length
<
e
.
maxImageLength
?
a
(
"div"
,{
class
:[
"img-upload"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-upload"
,{
staticClass
:
"loader"
,
attrs
:{
multiple
:
""
,
accept
:
"image/jpg,image/jpeg,image/png,image/gif,image/bmp"
,
action
:
e
.
uploadUrl
(),
"list-type"
:
"picture-card"
,
limit
:
9
,
"on-exceed"
:
e
.
handleExceed
,
"on-change"
:
e
.
uploadOnChange
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"on-success"
:
e
.
uploadOnSuccess
,
"on-error"
:
e
.
uploadOnError
,
"on-progress"
:
e
.
uploadOnProgress
,
"file-list"
:
e
.
fileDatas
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus gic-upload-btn"
})])],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"图片预览"
,
visible
:
e
.
isEnlargeImage
,
"modal-append-to-body"
:
!
1
,
"before-close"
:
e
.
handleClose
,
width
:
"520px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
isEnlargeImage
=
t
}}},[
e
.
isEnlargeImage
?
a
(
"el-carousel"
,{
attrs
:{
trigger
:
"click"
,
"initial-index"
:
e
.
initialImg
,
autoplay
:
!
1
,
height
:
"500px"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
i
){
return
a
(
"el-carousel-item"
,{
key
:
i
,
staticStyle
:{
display
:
"flex"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
}},[
a
(
"img"
,{
staticStyle
:{
"max-width"
:
"480px"
,
"max-height"
:
"500px"
},
attrs
:{
src
:
t
.
url
},
on
:{
click
:
function
(
t
){
e
.
isEnlargeImage
=!
1
}}})])})):
e
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
e
){
a
(
"oSFG"
)},
null
,
null
).
exports
,
I
=
a
(
"P9l9"
),
S
=
a
(
"3E4D"
),
_
=
a
(
"Ch4/"
),
C
=
a
(
"PI0u"
),
y
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
l
.
a
,
vueSelectStore
:
o
.
a
,
vueSelectEmployee
:
c
.
a
,
materialPreview
:
u
.
a
,
limitInput
:
d
.
a
,
limitTextarea
:
m
.
a
,
multUploadImage
:
b
},
data
:
function
(){
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
topMenuData
:[{
id
:
"1"
,
name
:
"图文素材"
,
path
:
"/enjoyMaterial?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
this
.
$route
.
query
.
materialId
?
"查看素材"
:
"新建素材"
}],
tableData
:[],
searchInput
:
""
,
selectType
:
""
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
},
defaultSelection
:[],
changed
:
""
,
onlyPerson
:
!
1
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
currentPage
:
1
,
pageSize
:
6
,
total
:
0
,
enterpriseId
:
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
,
userId
:
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
userId
,
formData
:{
materialId
:
""
,
rangeList
:[],
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
rules
:{
materialTitle
:[{
required
:
!
0
,
message
:
"请请输入素材标题"
,
trigger
:
"blur"
}],
materialContent
:[{
required
:
!
0
,
message
:
"请请输入发送内容"
,
trigger
:
"blur"
}],
rangeList
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
""
==
t
||!
t
.
length
)
return
a
(
new
Error
(
"请选择选择行政架构或门店架构"
));
a
()},
trigger
:
"change"
}]},
previewVisible
:
!
1
,
materialPreviewData
:{}}},
methods
:{
submitForm
:
function
(
e
,
t
){
var
a
=
this
;
a
.
formData
.
rangeList
=
[].
concat
(
n
()(
a
.
defaultStoreList
),
n
()(
a
.
defaultSelection
)),
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)})},
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
[];
t
.
formData
.
rangeList
.
forEach
(
function
(
e
){
a
.
push
({
groupId
:
2
==
e
.
type
?
e
.
groupId
:
""
,
storeId
:
3
==
e
.
type
?
e
.
storeId
:
""
,
storeFlag
:
e
.
isStoreGroup
})});
var
i
=
{
enterpriseId
:
t
.
enterpriseId
,
materialContent
:
t
.
formData
.
materialContent
,
materialTitle
:
t
.
formData
.
materialTitle
,
rangeListStr
:
r
()(
a
),
topFlag
:
t
.
formData
.
topFlag
?
1
:
0
,
relatedType
:
2
,
brandId
:
t
.
brandId
,
userId
:
t
.
userId
};
Object
(
I
.
e
)(
"/haoban-app-material-web/material-add"
,
i
).
then
(
function
(
a
){
var
i
=
a
.
data
;
1
==
i
.
errorCode
&&
(
S
.
a
.
showmsg
(
"新建成功"
,
"success"
),
e
?(
t
.
formData
=
{
materialId
:
""
,
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
t
.
defaultStoreList
=
[],
t
.
defaultSelection
=
[]):
t
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
t
.
$route
.
query
.
appIcon
)),
_
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
previewData
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
(
t
.
materialPreviewData
=
t
.
ruleFormData
,
t
.
previewVisible
=!
0
)})},
toReturn
:
function
(){
this
.
$router
.
go
(
-
1
)},
changeId
:
function
(
e
,
t
){
this
.
formData
.
imageTextWechatId
=
""
,
this
.
formData
.
imageTextGicId
=
t
.
imageTextId
},
toInput
:
Object
(
C
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
return
!
this
.
$route
.
query
.
materialId
&&
(
this
.
selectType
=
e
,
this
.
changed
=
e
,
"store"
===
e
?(
this
.
defaultStoreList
=
t
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
})):(
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
},
void
(
this
.
defaultSelection
=
t
)))},
handleSelectedList
:
function
(
e
){
"store"
===
this
.
selectType
?
this
.
defaultStoreList
=
e
:
this
.
defaultSelection
=
e
},
delDepart
:
function
(
e
,
t
,
a
){
if
(
this
.
$route
.
query
.
materialId
)
return
!
1
;
t
.
splice
(
e
,
1
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getImageData
:
function
(){
var
e
=
this
,
t
=
{
materialId
:
e
.
$route
.
query
.
materialId
,
brandId
:
e
.
brandId
};
Object
(
I
.
a
)(
"/haoban-app-material-web/material-detail"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
){
var
i
=
[],
r
=
[];
return
a
.
result
.
rangeList
&&
a
.
result
.
rangeList
.
forEach
(
function
(
e
){
1
==
e
.
storeFlag
?
i
.
push
(
e
):
r
.
push
(
e
)}),
e
.
formData
=
{
materialId
:
a
.
result
.
materialId
,
imageTextWechatId
:
a
.
result
.
imageTextWechatId
,
materialTitle
:
a
.
result
.
materialTitle
,
materialContent
:
a
.
result
.
materialContent
,
topFlag
:
1
==
a
.
result
.
topFlag
,
rangeList
:
a
.
result
.
rangeList
},
e
.
defaultStoreList
=
i
||
[],
e
.
defaultSelection
=
r
||
[],
!
1
}
_
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
title
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
I
.
a
)(
"/haoban-app-material-web/wechat-material-detail"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
t
.
$route
.
query
.
materialId
&&
t
.
getImageData
(),
!
1
;
_
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
brandId
&&
this
.
getTableList
()}},
w
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log boder-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"new-card-body"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容标题:"
,
prop
:
"materialTitle"
}},[
a
(
"limitInput"
,{
attrs
:{
disflag
:
!!
e
.
$route
.
query
.
materialId
,
inputWidth
:
320
,
inputValue
:
e
.
formData
.
materialTitle
,
holder
:
"请输入素材标题"
,
getByType
:
"word"
,
maxLength
:
15
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"materialTitle"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容:"
,
prop
:
"materialContent"
}},[
a
(
"limitTextarea"
,{
attrs
:{
inputWidth
:
320
,
inputValue
:
e
.
formData
.
materialContent
,
holder
:
"请输入素材内容"
,
maxLength
:
1500
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"materialContent"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"图片上传:"
,
prop
:
""
}},[
a
(
"mult-upload-image"
,{
attrs
:{
imageList
:
e
.
imgUrlList
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"input-item is-required"
,
attrs
:{
label
:
"发送范围:"
,
prop
:
"rangeList"
}},[
a
(
"div"
,{
staticClass
:
"form-item-tip fonr-14 color-909399"
},[
e
.
_v
(
"下面两项可二选一,非全选。可选择行政架构或门店架构"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"240px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"depart"
,
e
.
defaultSelection
)}}},[
e
.
defaultSelection
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
e
.
_v
(
"请选择行政架构"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
e
.
_l
(
e
.
defaultSelection
,
function
(
t
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
i
,
e
.
defaultSelection
,
"depart"
)}}})])]})],
2
)])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex m-t-20"
},[
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"240px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
defaultStoreList
)}}},[
e
.
defaultStoreList
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
e
.
_v
(
"请选择门店架构"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
e
.
_l
(
e
.
defaultStoreList
,
function
(
t
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
i
,
e
.
defaultStoreList
,
"store"
)}}})])]})],
2
)])])])])])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"更多设置:"
,
prop
:
""
}},[
a
(
"div"
,[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
materialId
},
model
:{
value
:
e
.
formData
.
topFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"topFlag"
,
t
)},
expression
:
"formData.topFlag"
}},[
e
.
_v
(
"置顶"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
on
:{
click
:
e
.
toReturn
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
previewData
(
"ruleForm"
)}}},[
e
.
_v
(
"预览"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"发布"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"发布并添加下一个"
)])],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
attrs
:{
appScene
:
e
.
appScene
,
defaultSelection
:
e
.
defaultSelection
,
onlyPerson
:
e
.
onlyPerson
,
treeSet
:
e
.
treeSet
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"group-store"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"material-preview"
,{
ref
:
"materialPreview"
,
attrs
:{
materialPreviewData
:
e
.
materialPreviewData
},
model
:{
value
:
e
.
previewVisible
,
callback
:
function
(
t
){
e
.
previewVisible
=
t
},
expression
:
"previewVisible"
}})],
1
)},
staticRenderFns
:[]};
var
L
=
a
(
"VU/8"
)(
y
,
w
,
!
1
,
function
(
e
){
a
(
"vkHu"
)},
"data-v-ebea3626"
,
null
);
t
.
default
=
L
.
exports
},
oSFG
:
function
(
e
,
t
){},
ugwD
:
function
(
e
,
t
){},
vRJf
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
{
name
:
"material-preview"
,
props
:{
value
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
materialPreviewData
:{
type
:
Object
,
default
:
function
(){
return
{
announcementId
:
""
,
sendTime
:
""
,
sendCount
:
0
,
readCount
:
0
,
adminCheck
:
!
1
,
stroreCheck
:
!
1
,
adminStructor
:[],
storeStructor
:[],
receiveType
:
"0"
,
labelId
:
""
,
title
:
""
,
img
:
""
,
content
:
""
,
sendType
:
"0"
,
attachment
:[],
pageTop
:
!
1
}}}},
directives
:{
htmlContent
:{
bind
:
function
(
e
,
t
){
e
.
innerHTML
=
t
.
value
},
update
:
function
(
e
,
t
){
e
.
innerHTML
=
t
.
value
}}},
data
:
function
(){
return
{
materialData
:{
announcementId
:
""
,
sendCount
:
0
,
readCount
:
0
,
title
:
""
,
content
:
""
}}},
methods
:{
closeDialog
:
function
(){
this
.
$emit
(
"input"
,
!
1
)}},
watch
:{
materialPreviewData
:
function
(
e
,
t
){
this
.
materialData
=
e
}},
mounted
:
function
(){
this
.
materialData
=
this
.
materialPreviewData
}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
value
,
expression
:
"value"
}],
staticClass
:
"qr-dialog-content"
,
staticStyle
:{
opacity
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"qr-mask"
,
on
:{
click
:
function
(
t
){
return
t
.
stopPropagation
(),
e
.
closeDialog
(
t
)}}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"qr-dialog border-box"
},[
a
(
"div"
,{
staticClass
:
"qr-dialog-body border-box"
},[
a
(
"h2"
,{
staticClass
:
"font-20 color-222 text-left"
},[
e
.
_v
(
e
.
_s
(
e
.
materialData
.
title
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date m-t-10 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"notice-date-left font-10 color-88949C"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYmdHms"
)(
e
.
materialData
.
announcementId
?
e
.
materialData
.
sendTime
:(
new
Date
).
getTime
())))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date-right font-10 color-4d7fd0"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"htmlContent"
,
rawName
:
"v-htmlContent"
,
value
:
e
.
materialData
.
content
,
expression
:
"materialData.content"
}],
staticClass
:
"notice-body border-box color-222"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"qr-dialog__hd"
},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
,
on
:{
click
:
function
(
t
){
return
t
.
stopPropagation
(),
e
.
closeDialog
(
t
)}}})])])},
staticRenderFns
:[]};
var
s
=
a
(
"VU/8"
)(
i
,
r
,
!
1
,
function
(
e
){
a
(
"ugwD"
)},
"data-v-045cb006"
,
null
);
t
.
a
=
s
.
exports
},
vkHu
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/19.57c050068e155816589a.js
0 → 100644
View file @
29e7d636
webpackJsonp
([
19
],{
"7fkC"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
s
=
a
(
"Gu7T"
),
n
=
a
.
n
(
s
),
l
=
a
(
"Ke24"
),
o
=
a
(
"Ie7z"
),
c
=
a
(
"c4uw"
),
u
=
a
(
"vRJf"
),
d
=
a
(
"l46T"
),
m
=
a
(
"Kkt8"
),
g
=
a
(
"//Fk"
),
p
=
a
.
n
(
g
),
f
=
a
(
"DAYN"
),
h
=
{
name
:
"mult-upload-image"
,
props
:{
projectName
:{
type
:
String
,
default
:
"haoban-manage-web"
},
wxFlag
:{
type
:
String
,
default
:
"1"
},
imgRate
:{
type
:
String
},
actionUrl
:{
type
:
String
,
default
:
"/haoban-manage-web/upload-img"
},
maxImageLength
:{
type
:
Number
,
default
:
9
},
limitW
:{
type
:
Number
},
limitH
:{
type
:
Number
},
imageList
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dragImageList
:
this
.
imageList
,
fileDatas
:[],
initialImg
:
0
,
progress
:
0
,
pass
:
null
,
isEnlargeImage
:
!
1
,
enlargeImage
:
""
}},
computed
:{
propStatus
:
function
(){
return
this
.
pass
?
"success"
:
!
1
===
this
.
pass
?
"exception"
:
"text"
}},
beforeMount
:
function
(){},
methods
:{
uploadUrl
:
function
(){
var
e
,
t
=
window
.
location
.
origin
,
a
=
void
0
;
return
e
=
this
.
wxFlag
&&
""
!=
this
.
wxFlag
?
"wxFlag="
+
this
.
wxFlag
+
"&"
:
""
,
a
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"https://www.gicdev.com"
:
t
,
this
.
upUrl
=
a
+
this
.
actionUrl
+
"?"
+
e
+
"requestProject="
+
this
.
projectName
,
this
.
upUrl
},
beforeAvatarUpload
:
function
(
e
){
var
t
=
this
,
a
=
e
.
size
/
1024
/
1024
<
5
;
return
a
||
t
.
$message
.
error
(
"上传图片大小不能超过 5MB!"
),
a
&&
new
p
.
a
(
function
(
a
,
i
){
var
r
=
new
FileReader
;
r
.
onload
=
function
(
e
){
var
r
=
new
Image
;
r
.
onload
=
function
(){
var
e
=
this
.
width
,
r
=
this
.
height
;
t
.
imgRate
&&
""
!==
t
.
imgRate
&&
(
Number
(
t
.
imgRate
.
split
(
":"
)[
0
])
/
Number
(
t
.
imgRate
.
split
(
":"
)[
1
])
!=
Number
(
e
)
/
Number
(
r
)
&&
(
t
.
$message
.
error
(
"上传图片比例不正确!"
),
i
()));
t
.
imgRate
&&
""
!=
t
.
imgRate
||!
t
.
limitW
||!
t
.
limitH
||
e
===
t
.
limitW
||
r
===
t
.
limitH
||
(
t
.
$message
.
error
(
"上传图片尺寸不正确!"
),
i
()),
a
()},
r
.
src
=
e
.
target
.
result
},
r
.
readAsDataURL
(
e
)})},
uploadOnSuccess
:
function
(
e
,
t
){
this
.
pass
=!
0
,
console
.
log
(
e
,
t
),
1
==
e
.
errorCode
?(
this
.
$message
.
success
(
"上传成功"
),
this
.
$emit
(
"uploadOnSuccess"
,{
res
:
e
,
file
:
t
})):
this
.
$message
.
error
(
e
.
message
)},
uploadOnProgress
:
function
(
e
,
t
){
e
&&
e
.
percent
&&
(
this
.
progress
=
Math
.
floor
(
e
.
percent
))},
uploadOnChange
:
function
(
e
,
t
){
"ready"
===
e
.
status
?(
this
.
pass
=
null
,
this
.
progress
=
0
):
"fail"
===
e
.
status
&&
this
.
$message
.
error
(
"图片上传失败,请重试!"
),
console
.
log
(
t
,
this
.
fileDatas
)},
handleExceed
:
function
(
e
,
t
){
this
.
$message
.
warning
(
"当前限制选择 9 个文件,本次选择了 "
+
e
.
length
+
" 个文件,共选择了 "
+
(
e
.
length
+
t
.
length
)
+
" 个文件"
)},
uploadOnError
:
function
(){
this
.
$message
.
error
(
"图片上传失败,请重试!"
)},
previewImage
:
function
(
e
){
this
.
isEnlargeImage
=!
0
,
this
.
initialImg
=
e
},
deleteImage
:
function
(
e
){
this
.
$emit
(
"deleteImage"
,
e
)},
handleClose
:
function
(
e
){
e
()},
itemMoveEnd
:
function
(
e
){
this
.
$emit
(
"sortImg"
,
this
.
dragImageList
)}},
watch
:{
imageList
:
function
(
e
,
t
){
this
.
dragImageList
=
e
}},
mounted
:
function
(){
this
.
dragImageList
=
this
.
imageList
},
components
:{
draggable
:
a
.
n
(
f
).
a
}},
v
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"gic-upload__img"
},[
a
(
"div"
,{
staticClass
:
"gic-upload__img__drag"
},[
a
(
"draggable"
,{
staticClass
:
"drag-wrap"
,
staticStyle
:{
display
:
"contents"
},
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
on
:{
end
:
e
.
itemMoveEnd
},
model
:{
value
:
e
.
dragImageList
,
callback
:
function
(
t
){
e
.
dragImageList
=
t
},
expression
:
"dragImageList"
}},[
a
(
"transition-group"
,{
attrs
:{
name
:
"slide-fade"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
i
){
return
a
(
"div"
,{
key
:
i
,
class
:[
"img-content"
,
i
>=
6
?
"m-t-8"
:
""
]},[
a
(
"a"
,{
staticClass
:
"item-img"
,
attrs
:{
href
:
t
.
url
}},[
a
(
"img"
,{
attrs
:{
src
:
t
.
url
,
alt
:
"上传图片"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"upload-icon__btn"
},[
a
(
"i"
,{
staticClass
:
"el-icon-view"
,
on
:{
click
:
function
(
t
){
e
.
previewImage
(
i
)}}}),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
t
){
e
.
deleteImage
(
i
)}}})])])}))],
1
),
e
.
_v
(
" "
),
e
.
pass
||
0
===
e
.
progress
?
e
.
_e
():
a
(
"div"
,{
class
:[
"img-content"
,
"img-progress"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-progress"
,{
staticClass
:
"gic-img-progress"
,
staticStyle
:{
"line-height"
:
"102px"
},
attrs
:{
width
:
102
,
percentage
:
e
.
progress
,
status
:
e
.
propStatus
}})],
1
),
e
.
_v
(
" "
),
e
.
imageList
&&
e
.
imageList
.
length
<
e
.
maxImageLength
?
a
(
"div"
,{
class
:[
"img-upload"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-upload"
,{
staticClass
:
"loader"
,
attrs
:{
multiple
:
""
,
accept
:
"image/jpg,image/jpeg,image/png,image/gif,image/bmp"
,
action
:
e
.
uploadUrl
(),
"list-type"
:
"picture-card"
,
limit
:
9
,
"on-exceed"
:
e
.
handleExceed
,
"on-change"
:
e
.
uploadOnChange
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"on-success"
:
e
.
uploadOnSuccess
,
"on-error"
:
e
.
uploadOnError
,
"on-progress"
:
e
.
uploadOnProgress
,
"file-list"
:
e
.
fileDatas
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus gic-upload-btn"
})])],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"图片预览"
,
visible
:
e
.
isEnlargeImage
,
"modal-append-to-body"
:
!
1
,
"before-close"
:
e
.
handleClose
,
width
:
"520px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
isEnlargeImage
=
t
}}},[
e
.
isEnlargeImage
?
a
(
"el-carousel"
,{
attrs
:{
trigger
:
"click"
,
"initial-index"
:
e
.
initialImg
,
autoplay
:
!
1
,
height
:
"500px"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
i
){
return
a
(
"el-carousel-item"
,{
key
:
i
,
staticStyle
:{
display
:
"flex"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
}},[
a
(
"img"
,{
staticStyle
:{
"max-width"
:
"480px"
,
"max-height"
:
"500px"
},
attrs
:{
src
:
t
.
url
},
on
:{
click
:
function
(
t
){
e
.
isEnlargeImage
=!
1
}}})])})):
e
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
b
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
e
){
a
(
"oSFG"
)},
null
,
null
).
exports
,
I
=
a
(
"P9l9"
),
S
=
a
(
"3E4D"
),
_
=
a
(
"Ch4/"
),
C
=
a
(
"PI0u"
),
y
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
l
.
a
,
vueSelectStore
:
o
.
a
,
vueSelectEmployee
:
c
.
a
,
materialPreview
:
u
.
a
,
limitInput
:
d
.
a
,
limitTextarea
:
m
.
a
,
multUploadImage
:
b
},
data
:
function
(){
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
topMenuData
:[{
id
:
"1"
,
name
:
"图文素材"
,
path
:
"/enjoyMaterial?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
this
.
$route
.
query
.
materialId
?
"查看素材"
:
"新建素材"
}],
tableData
:[],
searchInput
:
""
,
selectType
:
""
,
treeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
,
openNextBool
:
!
0
},
defaultSelection
:[],
changed
:
""
,
onlyPerson
:
!
1
,
appScene
:
2
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
currentPage
:
1
,
pageSize
:
6
,
total
:
0
,
enterpriseId
:
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
enterpriseId
,
userId
:
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)).
userId
,
formData
:{
materialId
:
""
,
rangeList
:[],
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
rules
:{
materialTitle
:[{
required
:
!
0
,
message
:
"请请输入素材标题"
,
trigger
:
"blur"
}],
materialContent
:[{
required
:
!
0
,
message
:
"请请输入发送内容"
,
trigger
:
"blur"
}],
rangeList
:[{
validator
:
function
(
e
,
t
,
a
){
if
(
""
==
t
||!
t
.
length
)
return
a
(
new
Error
(
"请选择选择行政架构或门店架构"
));
a
()},
trigger
:
"change"
}]},
previewVisible
:
!
1
,
materialPreviewData
:{}}},
methods
:{
uploadOnSuccess
:
function
(
e
){
this
.
imgUrlList
=
e
},
submitForm
:
function
(
e
,
t
){
var
a
=
this
;
a
.
formData
.
rangeList
=
[].
concat
(
n
()(
a
.
defaultStoreList
),
n
()(
a
.
defaultSelection
)),
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)})},
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
[];
t
.
formData
.
rangeList
.
forEach
(
function
(
e
){
a
.
push
({
groupId
:
2
==
e
.
type
?
e
.
groupId
:
""
,
storeId
:
3
==
e
.
type
?
e
.
storeId
:
""
,
storeFlag
:
e
.
isStoreGroup
})});
var
i
=
{
enterpriseId
:
t
.
enterpriseId
,
materialContent
:
t
.
formData
.
materialContent
,
materialTitle
:
t
.
formData
.
materialTitle
,
rangeListStr
:
r
()(
a
),
topFlag
:
t
.
formData
.
topFlag
?
1
:
0
,
relatedType
:
2
,
brandId
:
t
.
brandId
,
userId
:
t
.
userId
};
Object
(
I
.
e
)(
"/haoban-app-material-web/material-add"
,
i
).
then
(
function
(
a
){
var
i
=
a
.
data
;
1
==
i
.
errorCode
&&
(
S
.
a
.
showmsg
(
"新建成功"
,
"success"
),
e
?(
t
.
formData
=
{
materialId
:
""
,
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
t
.
defaultStoreList
=
[],
t
.
defaultSelection
=
[]):
t
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
t
.
$route
.
query
.
appIcon
)),
_
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
previewData
:
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
(
t
.
materialPreviewData
=
t
.
ruleFormData
,
t
.
previewVisible
=!
0
)})},
toReturn
:
function
(){
this
.
$router
.
go
(
-
1
)},
changeId
:
function
(
e
,
t
){
this
.
formData
.
imageTextWechatId
=
""
,
this
.
formData
.
imageTextGicId
=
t
.
imageTextId
},
toInput
:
Object
(
C
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
showDialogLayer
:
function
(
e
,
t
){
return
!
this
.
$route
.
query
.
materialId
&&
(
this
.
selectType
=
e
,
this
.
changed
=
e
,
"store"
===
e
?(
this
.
defaultStoreList
=
t
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
})):(
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
},
void
(
this
.
defaultSelection
=
t
)))},
handleSelectedList
:
function
(
e
){
"store"
===
this
.
selectType
?
this
.
defaultStoreList
=
e
:
this
.
defaultSelection
=
e
},
delDepart
:
function
(
e
,
t
,
a
){
if
(
this
.
$route
.
query
.
materialId
)
return
!
1
;
t
.
splice
(
e
,
1
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getImageData
:
function
(){
var
e
=
this
,
t
=
{
materialId
:
e
.
$route
.
query
.
materialId
,
brandId
:
e
.
brandId
};
Object
(
I
.
a
)(
"/haoban-app-material-web/material-detail"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
){
var
i
=
[],
r
=
[];
return
a
.
result
.
rangeList
&&
a
.
result
.
rangeList
.
forEach
(
function
(
e
){
1
==
e
.
storeFlag
?
i
.
push
(
e
):
r
.
push
(
e
)}),
e
.
formData
=
{
materialId
:
a
.
result
.
materialId
,
imageTextWechatId
:
a
.
result
.
imageTextWechatId
,
materialTitle
:
a
.
result
.
materialTitle
,
materialContent
:
a
.
result
.
materialContent
,
topFlag
:
1
==
a
.
result
.
topFlag
,
rangeList
:
a
.
result
.
rangeList
},
e
.
defaultStoreList
=
i
||
[],
e
.
defaultSelection
=
r
||
[],
!
1
}
_
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
title
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
brandId
:
t
.
activeBrand
};
Object
(
I
.
a
)(
"/haoban-app-material-web/wechat-material-detail"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
t
.
$route
.
query
.
materialId
&&
t
.
getImageData
(),
!
1
;
_
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
(
this
.
activeBrand
=
e
,
this
.
getTableList
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
brandId
&&
this
.
getTableList
()}},
w
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log boder-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
e
.
topMenuData
,
activeId
:
e
.
activeId
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"new-card-body"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容标题:"
,
prop
:
"materialTitle"
}},[
a
(
"limitInput"
,{
attrs
:{
disflag
:
!!
e
.
$route
.
query
.
materialId
,
inputWidth
:
320
,
inputValue
:
e
.
formData
.
materialTitle
,
holder
:
"请输入素材标题"
,
getByType
:
"word"
,
maxLength
:
15
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"materialTitle"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容:"
,
prop
:
"materialContent"
}},[
a
(
"limitTextarea"
,{
attrs
:{
inputWidth
:
320
,
inputValue
:
e
.
formData
.
materialContent
,
holder
:
"请输入素材内容"
,
maxLength
:
1500
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"materialContent"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"图片上传:"
,
prop
:
""
}},[
a
(
"mult-upload-image"
,{
attrs
:{
imageList
:
e
.
imgUrlList
},
on
:{
uploadOnSuccess
:
e
.
uploadOnSuccess
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"input-item is-required"
,
attrs
:{
label
:
"发送范围:"
,
prop
:
"rangeList"
}},[
a
(
"div"
,{
staticClass
:
"form-item-tip fonr-14 color-909399"
},[
e
.
_v
(
"下面两项可二选一,非全选。可选择行政架构或门店架构"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"240px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"depart"
,
e
.
defaultSelection
)}}},[
e
.
defaultSelection
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
e
.
_v
(
"请选择行政架构"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
e
.
_l
(
e
.
defaultSelection
,
function
(
t
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
i
,
e
.
defaultSelection
,
"depart"
)}}})])]})],
2
)])])])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex m-t-20"
},[
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block"
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"240px"
},
on
:{
click
:
function
(
t
){
e
.
showDialogLayer
(
"store"
,
e
.
defaultStoreList
)}}},[
e
.
defaultStoreList
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
e
.
_v
(
"请选择门店架构"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
e
.
_l
(
e
.
defaultStoreList
,
function
(
t
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
i
,
e
.
defaultStoreList
,
"store"
)}}})])]})],
2
)])])])])])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"更多设置:"
,
prop
:
""
}},[
a
(
"div"
,[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
materialId
},
model
:{
value
:
e
.
formData
.
topFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"topFlag"
,
t
)},
expression
:
"formData.topFlag"
}},[
e
.
_v
(
"置顶"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
on
:{
click
:
e
.
toReturn
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
previewData
(
"ruleForm"
)}}},[
e
.
_v
(
"预览"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"发布"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"发布并添加下一个"
)])],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
attrs
:{
appScene
:
e
.
appScene
,
defaultSelection
:
e
.
defaultSelection
,
onlyPerson
:
e
.
onlyPerson
,
treeSet
:
e
.
treeSet
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
e
.
activeGroup
,
appScene
:
e
.
appScene
,
treeSet
:
e
.
storeTreeSet
,
selectType
:
"group-store"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"material-preview"
,{
ref
:
"materialPreview"
,
attrs
:{
materialPreviewData
:
e
.
materialPreviewData
},
model
:{
value
:
e
.
previewVisible
,
callback
:
function
(
t
){
e
.
previewVisible
=
t
},
expression
:
"previewVisible"
}})],
1
)},
staticRenderFns
:[]};
var
L
=
a
(
"VU/8"
)(
y
,
w
,
!
1
,
function
(
e
){
a
(
"Yz8s"
)},
"data-v-22ab70e6"
,
null
);
t
.
default
=
L
.
exports
},
Yz8s
:
function
(
e
,
t
){},
oSFG
:
function
(
e
,
t
){},
ugwD
:
function
(
e
,
t
){},
vRJf
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
{
name
:
"material-preview"
,
props
:{
value
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
materialPreviewData
:{
type
:
Object
,
default
:
function
(){
return
{
announcementId
:
""
,
sendTime
:
""
,
sendCount
:
0
,
readCount
:
0
,
adminCheck
:
!
1
,
stroreCheck
:
!
1
,
adminStructor
:[],
storeStructor
:[],
receiveType
:
"0"
,
labelId
:
""
,
title
:
""
,
img
:
""
,
content
:
""
,
sendType
:
"0"
,
attachment
:[],
pageTop
:
!
1
}}}},
directives
:{
htmlContent
:{
bind
:
function
(
e
,
t
){
e
.
innerHTML
=
t
.
value
},
update
:
function
(
e
,
t
){
e
.
innerHTML
=
t
.
value
}}},
data
:
function
(){
return
{
materialData
:{
announcementId
:
""
,
sendCount
:
0
,
readCount
:
0
,
title
:
""
,
content
:
""
}}},
methods
:{
closeDialog
:
function
(){
this
.
$emit
(
"input"
,
!
1
)}},
watch
:{
materialPreviewData
:
function
(
e
,
t
){
this
.
materialData
=
e
}},
mounted
:
function
(){
this
.
materialData
=
this
.
materialPreviewData
}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
value
,
expression
:
"value"
}],
staticClass
:
"qr-dialog-content"
,
staticStyle
:{
opacity
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"qr-mask"
,
on
:{
click
:
function
(
t
){
return
t
.
stopPropagation
(),
e
.
closeDialog
(
t
)}}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"qr-dialog border-box"
},[
a
(
"div"
,{
staticClass
:
"qr-dialog-body border-box"
},[
a
(
"h2"
,{
staticClass
:
"font-20 color-222 text-left"
},[
e
.
_v
(
e
.
_s
(
e
.
materialData
.
title
))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date m-t-10 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"notice-date-left font-10 color-88949C"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatTimeYmdHms"
)(
e
.
materialData
.
announcementId
?
e
.
materialData
.
sendTime
:(
new
Date
).
getTime
())))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date-right font-10 color-4d7fd0"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"htmlContent"
,
rawName
:
"v-htmlContent"
,
value
:
e
.
materialData
.
content
,
expression
:
"materialData.content"
}],
staticClass
:
"notice-body border-box color-222"
})])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"qr-dialog__hd"
},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
,
on
:{
click
:
function
(
t
){
return
t
.
stopPropagation
(),
e
.
closeDialog
(
t
)}}})])])},
staticRenderFns
:[]};
var
s
=
a
(
"VU/8"
)(
i
,
r
,
!
1
,
function
(
e
){
a
(
"ugwD"
)},
"data-v-045cb006"
,
null
);
t
.
a
=
s
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
3f15aabf6456f5a51a1c
.js
→
dist/static/js/manifest.
745fd38302d40a172c6b
.js
View file @
29e7d636
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
99
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"0c92ca6a177308e38600"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"91fc9939f46ed2248be2"
,
3
:
"b7e6d57d97174b75b050"
,
4
:
"11254d7e3a102121b8ec"
,
5
:
"2784801807ecd1469c27"
,
6
:
"124ad8222f7b043b44ae"
,
7
:
"ebad93a8c5bffffd9e98"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"b5aae16b3951516573ad"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"59c7813cc972f62b1d18"
,
12
:
"879536ae7ce46f0c54ec"
,
13
:
"9a6eed75cb81e8530491"
,
14
:
"906484db655680062129"
,
15
:
"dc1ca8ebc6cc47b86e2d"
,
16
:
"2ee1cd09e02cae2867cf"
,
17
:
"78c6d10043e3245cbd2a"
,
18
:
"4b5e4ee96f2607285a8a"
,
19
:
"0708fe2eb673bedaa970"
,
20
:
"1b54392e7af3a5224220"
,
21
:
"6a4f413720f3f3c7b17c"
,
22
:
"1c7008ee04fe6b121232"
,
23
:
"6586d8dbbc88ff9e7868"
,
24
:
"ae973093bb8dd3a5b495"
,
25
:
"0af7295ba7b1c6c894de"
,
26
:
"13962bf105070352b110"
,
27
:
"57f367dff6dc03b81aee"
,
28
:
"4967b74d6bbb9e6cc702"
,
29
:
"28ccae4d06ea6b595ca9"
,
30
:
"fd04453caecf77de05a2"
,
31
:
"320f1a0aa86ca13e4306"
,
32
:
"5e1383bc5cac66f2999a"
,
33
:
"61635e97ee430e22a19b"
,
34
:
"50c83d54c676bdfa7dd4"
,
35
:
"ac9cb6aa5dc9b6fc2b6f"
,
36
:
"7674738e3017ed5fcc1c"
,
37
:
"e223c4067dc6c2fd38ab"
,
38
:
"eaa34f0904ef970709a7"
,
39
:
"f4a6c4a1b3881e31a92c"
,
40
:
"655877fc2e44168b8c1c"
,
41
:
"89560c4643dfa5754a23"
,
42
:
"5c09b508b0a58d47c09c"
,
43
:
"7c7427290d655f79f005"
,
44
:
"8c27aaae1582618d2ab0"
,
45
:
"235e93346fe2b95897cb"
,
46
:
"cc4d205e90682c5b93c0"
,
47
:
"26a5ded2bad54156ad19"
,
48
:
"67316f92922aa44a4689"
,
49
:
"a8a17bd4a62cf533f17e"
,
50
:
"1892aba5601ac79c8a77"
,
51
:
"3b64bf9b851ae6715634"
,
52
:
"600a530c5d3ecac3db2c"
,
53
:
"f93433cfdb48cb98bb84"
,
54
:
"e9011eb58ee8fb0165ad"
,
55
:
"3aff1a161f4b3876181c"
,
56
:
"bd1d8ffdf7749d7d6e7a"
,
57
:
"77278d614a1fc68d5681"
,
58
:
"f8d434e5d4758ae8626c"
,
59
:
"b3e479223a01f87d8337"
,
60
:
"c05387a974f25645ee7b"
,
61
:
"b93d3f6b5ec653e5c4c6"
,
62
:
"12ee3896f6851cd2cb4c"
,
63
:
"ab6bd438d590a7aa1e85"
,
64
:
"8f377047299728a7c625"
,
65
:
"b9df0942284c0dbfdc27"
,
66
:
"5433d9783d667005811b"
,
67
:
"0f6d447133b1acbc532b"
,
68
:
"7830c5679af6f8b2cb9d"
,
69
:
"61cee4c7c7a26b880f84"
,
70
:
"6f28138a852985cde574"
,
71
:
"4cf18546d28a67295cf8"
,
72
:
"fe9d1bbd12f4274225e1"
,
73
:
"88e613d232847cb90be2"
,
74
:
"ab208d1118bb1a9aa540"
,
75
:
"b14512ee0a369c73d41f"
,
76
:
"6143595e7025663becbc"
,
77
:
"98f5d41a602eec297e70"
,
78
:
"bd75ce697ff5a3211d53"
,
79
:
"7ede10f0ba3b16700fc9"
,
80
:
"4d61def8e6694657ea56"
,
81
:
"e7670320995684cfa512"
,
82
:
"4194ad3d53ad440bfb80"
,
83
:
"44fd11f0fbdad5fdfe01"
,
84
:
"1823d3e667816d0f2259"
,
85
:
"779373ab4595fb2a48f9"
,
86
:
"72fd057b1111acefbe95"
,
87
:
"f616874d7e40fcf1caa1"
,
88
:
"5e52821a3ece9ccdeb3f"
,
89
:
"85a2bbd9554df0f81300"
,
90
:
"6d7f539733951e52b9e1"
,
91
:
"44545722d2e68c8f5b69"
,
92
:
"b5b46350bd10a723b0b2"
,
93
:
"0cf2ca11a7d3aa4b1ef3"
,
94
:
"4eb1775c97e0c0097641"
,
95
:
"d14fcdfe817ed45c25db"
,
98
:
"4afc4e966f02914d8565"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
99
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"0c92ca6a177308e38600"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"91fc9939f46ed2248be2"
,
3
:
"b7e6d57d97174b75b050"
,
4
:
"11254d7e3a102121b8ec"
,
5
:
"2784801807ecd1469c27"
,
6
:
"124ad8222f7b043b44ae"
,
7
:
"ebad93a8c5bffffd9e98"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"b5aae16b3951516573ad"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"59c7813cc972f62b1d18"
,
12
:
"879536ae7ce46f0c54ec"
,
13
:
"9a6eed75cb81e8530491"
,
14
:
"906484db655680062129"
,
15
:
"dc1ca8ebc6cc47b86e2d"
,
16
:
"2ee1cd09e02cae2867cf"
,
17
:
"78c6d10043e3245cbd2a"
,
18
:
"4b5e4ee96f2607285a8a"
,
19
:
"57c050068e155816589a"
,
20
:
"1b54392e7af3a5224220"
,
21
:
"6a4f413720f3f3c7b17c"
,
22
:
"1c7008ee04fe6b121232"
,
23
:
"6586d8dbbc88ff9e7868"
,
24
:
"ae973093bb8dd3a5b495"
,
25
:
"0af7295ba7b1c6c894de"
,
26
:
"13962bf105070352b110"
,
27
:
"57f367dff6dc03b81aee"
,
28
:
"4967b74d6bbb9e6cc702"
,
29
:
"28ccae4d06ea6b595ca9"
,
30
:
"fd04453caecf77de05a2"
,
31
:
"320f1a0aa86ca13e4306"
,
32
:
"5e1383bc5cac66f2999a"
,
33
:
"61635e97ee430e22a19b"
,
34
:
"50c83d54c676bdfa7dd4"
,
35
:
"ac9cb6aa5dc9b6fc2b6f"
,
36
:
"7674738e3017ed5fcc1c"
,
37
:
"e223c4067dc6c2fd38ab"
,
38
:
"eaa34f0904ef970709a7"
,
39
:
"f4a6c4a1b3881e31a92c"
,
40
:
"655877fc2e44168b8c1c"
,
41
:
"89560c4643dfa5754a23"
,
42
:
"5c09b508b0a58d47c09c"
,
43
:
"7c7427290d655f79f005"
,
44
:
"8c27aaae1582618d2ab0"
,
45
:
"235e93346fe2b95897cb"
,
46
:
"cc4d205e90682c5b93c0"
,
47
:
"26a5ded2bad54156ad19"
,
48
:
"67316f92922aa44a4689"
,
49
:
"a8a17bd4a62cf533f17e"
,
50
:
"1892aba5601ac79c8a77"
,
51
:
"3b64bf9b851ae6715634"
,
52
:
"600a530c5d3ecac3db2c"
,
53
:
"f93433cfdb48cb98bb84"
,
54
:
"e9011eb58ee8fb0165ad"
,
55
:
"3aff1a161f4b3876181c"
,
56
:
"bd1d8ffdf7749d7d6e7a"
,
57
:
"77278d614a1fc68d5681"
,
58
:
"f8d434e5d4758ae8626c"
,
59
:
"b3e479223a01f87d8337"
,
60
:
"c05387a974f25645ee7b"
,
61
:
"b93d3f6b5ec653e5c4c6"
,
62
:
"12ee3896f6851cd2cb4c"
,
63
:
"ab6bd438d590a7aa1e85"
,
64
:
"8f377047299728a7c625"
,
65
:
"b9df0942284c0dbfdc27"
,
66
:
"5433d9783d667005811b"
,
67
:
"0f6d447133b1acbc532b"
,
68
:
"7830c5679af6f8b2cb9d"
,
69
:
"61cee4c7c7a26b880f84"
,
70
:
"6f28138a852985cde574"
,
71
:
"4cf18546d28a67295cf8"
,
72
:
"fe9d1bbd12f4274225e1"
,
73
:
"88e613d232847cb90be2"
,
74
:
"ab208d1118bb1a9aa540"
,
75
:
"b14512ee0a369c73d41f"
,
76
:
"6143595e7025663becbc"
,
77
:
"98f5d41a602eec297e70"
,
78
:
"bd75ce697ff5a3211d53"
,
79
:
"7ede10f0ba3b16700fc9"
,
80
:
"4d61def8e6694657ea56"
,
81
:
"e7670320995684cfa512"
,
82
:
"4194ad3d53ad440bfb80"
,
83
:
"44fd11f0fbdad5fdfe01"
,
84
:
"1823d3e667816d0f2259"
,
85
:
"779373ab4595fb2a48f9"
,
86
:
"72fd057b1111acefbe95"
,
87
:
"f616874d7e40fcf1caa1"
,
88
:
"5e52821a3ece9ccdeb3f"
,
89
:
"85a2bbd9554df0f81300"
,
90
:
"6d7f539733951e52b9e1"
,
91
:
"44545722d2e68c8f5b69"
,
92
:
"b5b46350bd10a723b0b2"
,
93
:
"0cf2ca11a7d3aa4b1ef3"
,
94
:
"4eb1775c97e0c0097641"
,
95
:
"d14fcdfe817ed45c25db"
,
98
:
"4afc4e966f02914d8565"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/enterpriseApp/marketingMaterial/newEnjoy.vue
View file @
29e7d636
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-09-18 15:25:12
* @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2019-12-10 1
0:54
:15
* @LastEditTime: 2019-12-10 1
2:18
:15
-->
-->
<!--
<!--
...
@@ -28,7 +28,7 @@ components: {
...
@@ -28,7 +28,7 @@ components: {
<limitTextarea
:inputWidth=
"320"
:inputValue
.
sync=
"formData.materialContent"
:holder=
"'请输入素材内容'"
:maxLength=
"1500"
>
</limitTextarea>
<limitTextarea
:inputWidth=
"320"
:inputValue
.
sync=
"formData.materialContent"
:holder=
"'请输入素材内容'"
:maxLength=
"1500"
>
</limitTextarea>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片上传:"
prop=
""
>
<el-form-item
label=
"图片上传:"
prop=
""
>
<mult-upload-image
:imageList=
"imgUrlList"
>
</mult-upload-image>
<mult-upload-image
:imageList=
"imgUrlList"
@
uploadOnSuccess=
"uploadOnSuccess"
>
</mult-upload-image>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发送范围:"
class=
"input-item is-required"
prop=
"rangeList"
>
<el-form-item
label=
"发送范围:"
class=
"input-item is-required"
prop=
"rangeList"
>
<div
class=
"form-item-tip fonr-14 color-909399"
>
下面两项可二选一,非全选。可选择行政架构或门店架构
</div>
<div
class=
"form-item-tip fonr-14 color-909399"
>
下面两项可二选一,非全选。可选择行政架构或门店架构
</div>
...
@@ -203,6 +203,13 @@ export default {
...
@@ -203,6 +203,13 @@ export default {
},
},
methods
:
{
methods
:
{
/**
/**
* 上传
*/
uploadOnSuccess
(
list
)
{
const
that
=
this
;
that
.
imgUrlList
=
list
;
},
/**
* 确认新建
* 确认新建
*/
*/
submitForm
(
formName
,
flag
)
{
submitForm
(
formName
,
flag
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment