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
0397115b
Commit
0397115b
authored
Oct 18, 2021
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
32333d05
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
index.html
dist/index.html
+2
-2
app.5b9a89672e1246e30170a7775beae9e5.css
dist/static/css/app.5b9a89672e1246e30170a7775beae9e5.css
+0
-0
18.c3d40758a3bc0e84eb1d.js
dist/static/js/18.c3d40758a3bc0e84eb1d.js
+2
-2
manifest.c6f25046242227c46eed.js
dist/static/js/manifest.c6f25046242227c46eed.js
+2
-2
No files found.
dist/index.html
View file @
0397115b
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.147f04a0def0442b5b6e7c7f23e3061b.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
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.8e75ffed33b7c98e8977.js
></script><script
type=
text/javascript
src=
./static/js/vendor.5e52da786b7269475621.js
></script><script
type=
text/javascript
src=
./static/js/app.0f2febb649d1eb978b7d.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.5b9a89672e1246e30170a7775beae9e5.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
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.c6f25046242227c46eed.js
></script><script
type=
text/javascript
src=
./static/js/vendor.5e52da786b7269475621.js
></script><script
type=
text/javascript
src=
./static/js/app.0f2febb649d1eb978b7d.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
147f04a0def0442b5b6e7c7f23e3061b
.css
→
dist/static/css/app.
5b9a89672e1246e30170a7775beae9e5
.css
View file @
0397115b
File moved
dist/static/js/18.
2b1840afe321ab07e835
.js
→
dist/static/js/18.
c3d40758a3bc0e84eb1d
.js
View file @
0397115b
webpackJsonp
([
18
],{
"7fkC"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
l
=
a
(
"Gu7T"
),
s
=
a
.
n
(
l
),
n
=
a
(
"Ke24"
),
o
=
a
(
"Ie7z"
),
c
=
a
(
"c4uw"
),
u
=
a
(
"vRJf"
),
m
=
a
(
"l46T"
),
d
=
a
(
"Kkt8"
),
g
=
a
(
"//Fk"
),
p
=
a
.
n
(
g
),
f
=
a
(
"w/TU"
),
h
=
{
name
:
"mult-upload-image"
,
props
:{
projectName
:{
type
:
String
,
default
:
"haoban-manage-web"
},
disabled
:{
type
:
Boolean
,
default
:
!
1
},
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
[]}},
originList
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dragImageList
:
JSON
.
parse
(
r
()(
this
.
imageList
)),
fileDatas
:
JSON
.
parse
(
r
()(
this
.
originList
)),
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
t
,
e
=
window
.
location
.
origin
,
a
=
void
0
;
return
t
=
this
.
wxFlag
&&
""
!=
this
.
wxFlag
?
"wxFlag="
+
this
.
wxFlag
+
"&"
:
""
,
a
=
"-1"
!=
e
.
indexOf
(
"localhost"
)?
"https://www.gicdev.com"
:
e
,
this
.
upUrl
=
a
+
this
.
actionUrl
+
"?"
+
t
+
"requestProject="
+
this
.
projectName
,
this
.
upUrl
},
beforeAvatarUpload
:
function
(
t
){
var
e
=
this
,
a
=
t
.
size
/
1024
/
1024
<
5
;
return
a
||
e
.
$message
.
error
(
"上传图片大小不能超过 5MB!"
),
a
&&
new
p
.
a
(
function
(
a
,
i
){
var
r
=
new
FileReader
;
r
.
onload
=
function
(
t
){
var
r
=
new
Image
;
r
.
onload
=
function
(){
var
t
=
this
.
width
,
r
=
this
.
height
;
e
.
imgRate
&&
""
!==
e
.
imgRate
&&
(
Number
(
e
.
imgRate
.
split
(
":"
)[
0
])
/
Number
(
e
.
imgRate
.
split
(
":"
)[
1
])
!=
Number
(
t
)
/
Number
(
r
)
&&
(
e
.
$message
.
error
(
"上传图片比例不正确!"
),
i
()));
e
.
imgRate
&&
""
!=
e
.
imgRate
||!
e
.
limitW
||!
e
.
limitH
||
t
===
e
.
limitW
||
r
===
e
.
limitH
||
(
e
.
$message
.
error
(
"上传图片尺寸不正确!"
),
i
()),
a
()},
r
.
src
=
t
.
target
.
result
},
r
.
readAsDataURL
(
t
)})},
uploadOnProgress
:
function
(
t
,
e
){
t
&&
t
.
percent
&&
(
this
.
progress
=
Math
.
floor
(
t
.
percent
))},
uploadOnChange
:
function
(
t
,
e
){
var
a
=
this
;
"ready"
===
t
.
status
?(
a
.
pass
=
null
,
a
.
progress
=
0
):
"fail"
===
t
.
status
&&
a
.
$message
.
error
(
"图片上传失败,请重试!"
),
a
.
fileDatas
=
e
,
console
.
log
(
"fileList:"
,
e
,
a
.
fileDatas
),
a
.
$nextTick
(
function
(){
var
t
=
[];
e
.
length
&&
e
.
forEach
(
function
(
e
){
t
.
push
({
imgUrl
:
e
.
response
.
result
[
0
].
qcloudImageUrl
})}),
a
.
$emit
(
"uploadOnSuccess"
,
t
,
e
),
a
.
pass
=
null
,
a
.
progress
=
0
})},
handleExceed
:
function
(
t
,
e
){
this
.
$message
.
warning
(
"当前限制选择 9 个文件,本次选择了 "
+
t
.
length
+
" 个文件,共选择了 "
+
(
t
.
length
+
e
.
length
)
+
" 个文件"
)},
uploadOnError
:
function
(){
this
.
$message
.
error
(
"图片上传失败,请重试!"
)},
previewImage
:
function
(
t
){
this
.
isEnlargeImage
=!
0
,
this
.
initialImg
=
t
},
deleteImage
:
function
(
t
){
if
(
this
.
disabled
)
return
!
1
;
this
.
$emit
(
"deleteImage"
,
t
)},
handleClose
:
function
(
t
){
t
()},
itemMoveEnd
:
function
(
t
){
for
(
var
e
=
0
;
e
<
this
.
dragImageList
.
length
;
e
++
)
this
.
fileDatas
[
e
].
response
.
result
[
0
].
qcloudImageUrl
=
this
.
dragImageList
[
e
].
imgUrl
;
this
.
$emit
(
"sortImg"
,
this
.
dragImageList
,
this
.
fileDatas
)}},
watch
:{
imageList
:
function
(
t
,
e
){
this
.
dragImageList
=
JSON
.
parse
(
r
()(
t
))},
originList
:
function
(
t
,
e
){
this
.
fileDatas
=
JSON
.
parse
(
r
()(
t
))}},
mounted
:
function
(){
this
.
dragImageList
=
JSON
.
parse
(
r
()(
this
.
imageList
)),
this
.
fileDatas
=
JSON
.
parse
(
r
()(
this
.
originList
))},
components
:{
draggable
:
a
.
n
(
f
).
a
}},
v
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
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
:
t
.
itemMoveEnd
},
model
:{
value
:
t
.
dragImageList
,
callback
:
function
(
e
){
t
.
dragImageList
=
e
},
expression
:
"dragImageList"
}},[
a
(
"transition-group"
,{
attrs
:{
name
:
"slide-fade"
}},
t
.
_l
(
t
.
imageList
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
e
,
class
:[
"img-content"
,
i
>=
6
?
"m-t-8"
:
""
]},[
a
(
"a"
,{
staticClass
:
"item-img"
,
attrs
:{
href
:
e
.
imgUrl
}},[
a
(
"img"
,{
attrs
:{
src
:
e
.
imgUrl
,
alt
:
"上传图片"
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"upload-icon__btn"
},[
a
(
"i"
,{
staticClass
:
"el-icon-view"
,
on
:{
click
:
function
(
e
){
return
t
.
previewImage
(
i
)}}}),
t
.
_v
(
" "
),
t
.
disabled
?
t
.
_e
():
a
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
e
){
return
t
.
deleteImage
(
i
)}}})])])}),
0
)],
1
),
t
.
_v
(
" "
),
t
.
pass
||
0
===
t
.
progress
?
t
.
_e
():
a
(
"div"
,{
class
:[
"img-content"
,
"img-progress"
,
t
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-progress"
,{
staticClass
:
"gic-img-progress"
,
staticStyle
:{
"line-height"
:
"102px"
},
attrs
:{
width
:
102
,
percentage
:
t
.
progress
,
status
:
t
.
propStatus
}})],
1
),
t
.
_v
(
" "
),
t
.
imageList
&&
t
.
imageList
.
length
<
t
.
maxImageLength
?
a
(
"div"
,{
class
:[
"img-upload"
,
t
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-upload"
,{
staticClass
:
"loader"
,
attrs
:{
disabled
:
t
.
disabled
,
multiple
:
""
,
accept
:
"image/jpg,image/jpeg,image/png,image/gif,image/bmp"
,
"file-list"
:
t
.
fileDatas
,
action
:
t
.
uploadUrl
(),
"list-type"
:
"picture-card"
,
limit
:
9
,
"on-exceed"
:
t
.
handleExceed
,
"on-change"
:
t
.
uploadOnChange
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"on-error"
:
t
.
uploadOnError
,
"on-progress"
:
t
.
uploadOnProgress
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus gic-upload-btn"
})])],
1
):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"图片预览"
,
visible
:
t
.
isEnlargeImage
,
"modal-append-to-body"
:
!
1
,
"before-close"
:
t
.
handleClose
,
width
:
"520px"
},
on
:{
"update:visible"
:
function
(
e
){
t
.
isEnlargeImage
=
e
}}},[
t
.
isEnlargeImage
?
a
(
"el-carousel"
,{
attrs
:{
trigger
:
"click"
,
"initial-index"
:
t
.
initialImg
,
autoplay
:
!
1
,
height
:
"500px"
}},
t
.
_l
(
t
.
imageList
,
function
(
e
,
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
:
e
.
imgUrl
},
on
:{
click
:
function
(
e
){
t
.
isEnlargeImage
=!
1
}}})])}),
1
):
t
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
t
){
a
(
"HsDL"
)},
null
,
null
).
exports
,
b
=
a
(
"P9l9"
),
L
=
a
(
"3E4D"
),
S
=
a
(
"Ch4/"
),
_
=
a
(
"PI0u"
),
y
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
n
.
a
,
vueSelectStore
:
o
.
a
,
vueSelectEmployee
:
c
.
a
,
materialPreview
:
u
.
a
,
limitInput
:
m
.
a
,
limitTextarea
:
d
.
a
,
multUploadImage
:
I
},
data
:
function
(){
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"纷享素材"
,
path
:
"/enjoyMaterial?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
this
.
$route
.
query
.
materialId
?
"查看素材"
:
"新建素材"
}],
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
(
t
,
e
,
a
){
if
(
""
==
e
||!
e
.
length
)
return
a
(
new
Error
(
"请选择选择行政架构或门店架构"
));
a
()},
trigger
:
"change"
}],
imgUrlList
:[{
required
:
!
0
,
validator
:
function
(
t
,
e
,
a
){
if
(
""
==
e
||!
e
.
length
)
return
a
(
new
Error
(
"请上传图片"
));
a
()},
trigger
:
"change"
}]},
originList
:[],
previewVisible
:
!
1
,
materialPreviewData
:{}}},
methods
:{
uploadOnSuccess
:
function
(
t
,
e
){
this
.
formData
.
imgUrlList
=
t
,
this
.
originList
=
e
,
console
.
log
(
"上传list:"
,
t
)},
deleteImage
:
function
(
t
){
this
.
formData
.
imgUrlList
.
splice
(
t
,
1
),
this
.
originList
.
splice
(
t
,
1
),
console
.
log
(
"删除list2:"
,
this
.
formData
.
imgUrlList
)},
sortImg
:
function
(
t
,
e
){
this
.
formData
.
imgUrlList
=
t
,
this
.
originList
=
e
},
submitForm
:
function
(
t
,
e
){
var
a
=
this
;
a
.
formData
.
rangeList
=
[].
concat
(
s
()(
a
.
defaultStoreList
),
s
()(
a
.
defaultSelection
)),
a
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
a
.
postSaveCard
(
e
)})},
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
[];
e
.
formData
.
rangeList
.
forEach
(
function
(
t
){
a
.
push
({
groupId
:
2
==
t
.
type
?
t
.
groupId
:
""
,
storeId
:
3
==
t
.
type
?
t
.
storeId
:
""
,
storeFlag
:
t
.
isStoreGroup
})});
var
i
=
{
enterpriseId
:
e
.
enterpriseId
,
imgListStr
:
r
()(
e
.
formData
.
imgUrlList
),
materialContent
:
e
.
formData
.
materialContent
,
materialTitle
:
e
.
formData
.
materialTitle
,
rangeListStr
:
r
()(
a
),
topFlag
:
e
.
formData
.
topFlag
?
1
:
0
,
relatedType
:
2
,
brandId
:
e
.
brandId
,
userId
:
e
.
userId
};
Object
(
b
.
e
)(
"/haoban-app-material-web/material-add"
,
i
).
then
(
function
(
a
){
var
i
=
a
.
data
;
1
==
i
.
errorCode
&&
(
L
.
a
.
showmsg
(
"新建成功"
,
"success"
),
t
?(
e
.
formData
=
{
materialId
:
""
,
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
e
.
originList
=
[],
e
.
defaultStoreList
=
[],
e
.
defaultSelection
=
[],
window
.
location
.
reload
()):
e
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
e
.
$route
.
query
.
appIcon
)),
S
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
previewData
:
function
(
t
){
var
e
=
this
;
e
.
formData
.
rangeList
=
[].
concat
(
s
()(
e
.
defaultStoreList
),
s
()(
e
.
defaultSelection
)),
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
(
e
.
materialPreviewData
=
e
.
formData
,
e
.
previewVisible
=!
0
)})},
closePre
:
function
(){
this
.
materialPreviewData
=
{}},
toReturn
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
t
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeId
:
function
(
t
,
e
){
this
.
formData
.
imageTextWechatId
=
""
,
this
.
formData
.
imageTextGicId
=
e
.
imageTextId
},
toInput
:
Object
(
_
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
showDialogLayer
:
function
(
t
,
e
){
return
!
this
.
$route
.
query
.
materialId
&&
(
this
.
selectType
=
t
,
this
.
changed
=
t
,
"store"
===
t
?(
this
.
defaultStoreList
=
e
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
})):(
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
},
void
(
this
.
defaultSelection
=
e
)))},
handleSelectedList
:
function
(
t
){
"store"
===
this
.
selectType
?
this
.
defaultStoreList
=
t
:
this
.
defaultSelection
=
t
},
delDepart
:
function
(
t
,
e
,
a
){
if
(
this
.
$route
.
query
.
materialId
)
return
!
1
;
e
.
splice
(
t
,
1
)},
getData
:
function
(){
var
t
=
this
,
e
=
{
materialId
:
t
.
$route
.
query
.
materialId
,
brandId
:
t
.
brandId
};
Object
(
b
.
a
)(
"/haoban-app-material-web/material-detail"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
){
var
i
=
[],
r
=
[];
return
a
.
result
.
rangeVOList
&&
a
.
result
.
rangeVOList
.
forEach
(
function
(
t
){
t
.
groupId
=
2
==
t
.
type
?
t
.
id
:
""
,
t
.
storeId
=
3
==
t
.
type
?
t
.
id
:
""
,
t
.
isStoreGroup
=
t
.
storeFlag
,
1
==
t
.
storeFlag
?
i
.
push
(
t
):
r
.
push
(
t
)}),
t
.
formData
=
{
materialId
:
a
.
result
.
materialId
,
imageTextWechatId
:
a
.
result
.
imageTextWechatId
,
materialTitle
:
a
.
result
.
materialTitle
,
materialContent
:
a
.
result
.
materialContent
,
topFlag
:
1
==
a
.
result
.
topFlag
,
imgUrlList
:
a
.
result
.
imgList
,
rangeList
:
a
.
result
.
rangeVOList
,
createTime
:
a
.
result
.
createTime
},
t
.
defaultStoreList
=
i
||
[],
t
.
defaultSelection
=
r
||
[],
!
1
}
S
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
$route
.
query
.
materialId
&&
this
.
getData
())},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
$route
.
query
.
materialId
&&
this
.
getData
()}},
D
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log boder-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"new-card-body"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
formData
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容标题:"
,
prop
:
"materialTitle"
}},[
a
(
"limitInput"
,{
attrs
:{
disflag
:
!!
t
.
$route
.
query
.
materialId
,
inputWidth
:
320
,
inputValue
:
t
.
formData
.
materialTitle
,
holder
:
"请输入素材标题"
,
getByType
:
"word"
,
maxLength
:
15
},
on
:{
"update:inputValue"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialTitle"
,
e
)},
"update:input-value"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialTitle"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容:"
,
prop
:
"materialContent"
}},[
a
(
"limitTextarea"
,{
attrs
:{
disInput
:
!!
t
.
$route
.
query
.
materialId
,
inputWidth
:
320
,
inputValue
:
t
.
formData
.
materialContent
,
holder
:
"请输入素材内容"
,
maxLength
:
1500
},
on
:{
"update:inputValue"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialContent"
,
e
)},
"update:input-value"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialContent"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"图片上传:"
,
prop
:
"imgUrlList"
}},[
a
(
"mult-upload-image"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
originList
:
t
.
originList
,
imageList
:
t
.
formData
.
imgUrlList
},
on
:{
deleteImage
:
t
.
deleteImage
,
uploadOnSuccess
:
t
.
uploadOnSuccess
,
sortImg
:
t
.
sortImg
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-12 color-606266"
},[
t
.
_v
(
"单个图片大小不超过5M,支持 jpg、jpeg、bmp、png 类型文件,最多支持上传9张"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"input-item is-required"
,
attrs
:{
label
:
"发送范围:"
,
prop
:
"rangeList"
}},[
a
(
"div"
,{
staticClass
:
"form-item-tip fonr-14 color-909399"
},[
t
.
_v
(
"下面两项可二选一,非全选。可选择行政架构或门店架构"
)]),
t
.
_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
(
e
){
return
t
.
showDialogLayer
(
"depart"
,
t
.
defaultSelection
)}}},[
t
.
defaultSelection
.
length
?
t
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
t
.
_v
(
"请选择行政架构"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
t
.
_l
(
t
.
defaultSelection
,
function
(
e
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
t
.
_v
(
t
.
_s
(
e
.
name
||
e
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
delDepart
(
i
,
t
.
defaultSelection
,
"depart"
)}}})])]})],
2
)])])])])]),
t
.
_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
(
e
){
return
t
.
showDialogLayer
(
"store"
,
t
.
defaultStoreList
)}}},[
t
.
defaultStoreList
.
length
?
t
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
t
.
_v
(
"请选择门店架构"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
t
.
_l
(
t
.
defaultStoreList
,
function
(
e
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
t
.
_v
(
t
.
_s
(
e
.
name
||
e
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
delDepart
(
i
,
t
.
defaultStoreList
,
"store"
)}}})])]})],
2
)])])])])])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"更多设置:"
,
prop
:
""
}},[
a
(
"div"
,[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
},
model
:{
value
:
t
.
formData
.
topFlag
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"topFlag"
,
e
)},
expression
:
"formData.topFlag"
}},[
t
.
_v
(
"置顶"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
on
:{
click
:
t
.
toReturn
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
return
t
.
previewData
(
"ruleForm"
)}}},[
t
.
_v
(
"预览"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
return
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"发布"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
return
t
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
t
.
_v
(
"发布并添加下一个"
)])],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
attrs
:{
appScene
:
t
.
appScene
,
defaultSelection
:
t
.
defaultSelection
,
onlyPerson
:
t
.
onlyPerson
,
treeSet
:
t
.
treeSet
,
changed
:
t
.
changed
},
on
:{
handleSelectedList
:
t
.
handleSelectedList
}}),
t
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
t
.
activeGroup
,
appScene
:
t
.
appScene
,
treeSet
:
t
.
storeTreeSet
,
selectType
:
"group-store"
,
defaultList
:
t
.
defaultStoreList
},
on
:{
handleSelectedList
:
t
.
handleSelectedList
}}),
t
.
_v
(
" "
),
a
(
"material-preview"
,{
ref
:
"materialPreview"
,
attrs
:{
materialPreviewData
:
t
.
materialPreviewData
},
model
:{
value
:
t
.
previewVisible
,
callback
:
function
(
e
){
t
.
previewVisible
=
e
},
expression
:
"previewVisible"
}})],
1
)},
staticRenderFns
:[]};
var
C
=
a
(
"VU/8"
)(
y
,
D
,
!
1
,
function
(
t
){
a
(
"rumZ"
)},
"data-v-ad1a0050"
,
null
);
e
.
default
=
C
.
exports
},
HsDL
:
function
(
t
,
e
){},
gMyn
:
function
(
t
,
e
){},
rumZ
:
function
(
t
,
e
){},
vRJf
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
l
=
{
name
:
"material-preview"
,
props
:{
value
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
materialPreviewData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{
materialId
:
""
,
imageTextWechatId
:
""
,
imageTextGicId
:
""
,
titleName
:
""
,
imageUrl
:
""
,
mediaUrl
:
""
,
rangeList
:[],
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
}}}},
directives
:{
htmlContent
:{
bind
:
function
(
t
,
e
){
t
.
innerHTML
=
e
.
value
},
update
:
function
(
t
,
e
){
t
.
innerHTML
=
e
.
value
}}},
data
:
function
(){
return
{
materialData
:{
materialId
:
""
,
imageTextWechatId
:
""
,
imageTextGicId
:
""
,
rangeList
:[],
imgUrlList
:[],
mediaUrl
:
""
,
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
}}},
methods
:{
toUrl
:
function
(
t
){
window
.
open
(
t
)},
closeDialog
:
function
(){
this
.
$emit
(
"input"
,
!
1
),
this
.
$emit
(
"closePre"
)}},
watch
:{
value
:
function
(
t
,
e
){
this
.
materialData
=
JSON
.
parse
(
r
()(
this
.
materialPreviewData
))},
materialPreviewData
:
function
(
t
,
e
){
this
.
materialData
=
JSON
.
parse
(
r
()(
t
))}},
mounted
:
function
(){
this
.
materialData
=
JSON
.
parse
(
r
()(
this
.
materialPreviewData
))}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
t
.
value
?
a
(
"div"
,{
staticClass
:
"qr-dialog-content"
,
staticStyle
:{
opacity
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"qr-mask"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
closeDialog
.
apply
(
null
,
arguments
)}}}),
t
.
_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 main-title"
},[
t
.
_v
(
t
.
_s
(
t
.
materialData
.
materialTitle
))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date m-t-10 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"notice-date-left font-10 color-88949C"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
t
.
materialData
.
materialId
?
t
.
materialData
.
createTime
:(
new
Date
).
getTime
())))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date-right font-10 color-4d7fd0"
})]),
t
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"htmlContent"
,
rawName
:
"v-htmlContent"
,
value
:
t
.
materialData
.
materialContent
,
expression
:
"materialData.materialContent"
}],
staticClass
:
"notice-body border-box font-14 color-222"
}),
t
.
_v
(
" "
),
t
.
materialData
.
imgUrlList
&&
t
.
materialData
.
imgUrlList
.
length
?
a
(
"div"
,{
staticClass
:
"img-list-wrap"
},[
a
(
"ul"
,{
staticClass
:
"flex flex-wrap"
},
t
.
_l
(
t
.
materialData
.
imgUrlList
,
function
(
t
,
e
){
return
a
(
"li"
,{
key
:
e
+
"img"
,
staticClass
:
"border-box flex flex-align-center flex-pack-center"
},[
a
(
"img"
,{
attrs
:{
src
:
t
.
imgUrl
,
alt
:
""
}})])}),
0
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
materialData
.
imageTextWechatId
?
a
(
"div"
,{
staticClass
:
"image-text-link"
},[
a
(
"div"
,{
staticClass
:
"flex cursor-pointer"
,
on
:{
click
:
function
(
e
){
return
t
.
toUrl
(
t
.
materialData
.
mediaUrl
)}}},[
a
(
"div"
,{
staticClass
:
"flex-left-img flex flex-align-center flex-pack-center"
},[
a
(
"img"
,{
attrs
:{
src
:
t
.
materialData
.
imageUrl
,
alt
:
""
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-right-title border-box"
},[
a
(
"div"
,{
staticClass
:
"title-content font-14 color-606266"
},[
t
.
_v
(
t
.
_s
(
t
.
materialData
.
titleName
))])])])]):
t
.
_e
()])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"qr-dialog__hd"
},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
closeDialog
.
apply
(
null
,
arguments
)}}})])]):
t
.
_e
()},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
l
,
s
,
!
1
,
function
(
t
){
a
(
"gMyn"
)},
"data-v-91610bd2"
,
null
);
e
.
a
=
n
.
exports
}});
\ No newline at end of file
webpackJsonp
([
18
],{
"7fkC"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
l
=
a
(
"Gu7T"
),
s
=
a
.
n
(
l
),
n
=
a
(
"Ke24"
),
o
=
a
(
"Ie7z"
),
c
=
a
(
"c4uw"
),
u
=
a
(
"vRJf"
),
m
=
a
(
"l46T"
),
d
=
a
(
"Kkt8"
),
g
=
a
(
"//Fk"
),
p
=
a
.
n
(
g
),
f
=
a
(
"w/TU"
),
h
=
{
name
:
"mult-upload-image"
,
props
:{
projectName
:{
type
:
String
,
default
:
"haoban-manage-web"
},
disabled
:{
type
:
Boolean
,
default
:
!
1
},
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
[]}},
originList
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dragImageList
:
JSON
.
parse
(
r
()(
this
.
imageList
)),
fileDatas
:
JSON
.
parse
(
r
()(
this
.
originList
)),
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
t
,
e
=
window
.
location
.
origin
,
a
=
void
0
;
return
t
=
this
.
wxFlag
&&
""
!=
this
.
wxFlag
?
"wxFlag="
+
this
.
wxFlag
+
"&"
:
""
,
a
=
"-1"
!=
e
.
indexOf
(
"localhost"
)?
"https://www.gicdev.com"
:
e
,
this
.
upUrl
=
a
+
this
.
actionUrl
+
"?"
+
t
+
"requestProject="
+
this
.
projectName
,
this
.
upUrl
},
beforeAvatarUpload
:
function
(
t
){
var
e
=
this
,
a
=
t
.
size
/
1024
/
1024
<
5
;
return
a
||
e
.
$message
.
error
(
"上传图片大小不能超过 5MB!"
),
a
&&
new
p
.
a
(
function
(
a
,
i
){
var
r
=
new
FileReader
;
r
.
onload
=
function
(
t
){
var
r
=
new
Image
;
r
.
onload
=
function
(){
var
t
=
this
.
width
,
r
=
this
.
height
;
e
.
imgRate
&&
""
!==
e
.
imgRate
&&
(
Number
(
e
.
imgRate
.
split
(
":"
)[
0
])
/
Number
(
e
.
imgRate
.
split
(
":"
)[
1
])
!=
Number
(
t
)
/
Number
(
r
)
&&
(
e
.
$message
.
error
(
"上传图片比例不正确!"
),
i
()));
e
.
imgRate
&&
""
!=
e
.
imgRate
||!
e
.
limitW
||!
e
.
limitH
||
t
===
e
.
limitW
||
r
===
e
.
limitH
||
(
e
.
$message
.
error
(
"上传图片尺寸不正确!"
),
i
()),
a
()},
r
.
src
=
t
.
target
.
result
},
r
.
readAsDataURL
(
t
)})},
uploadOnProgress
:
function
(
t
,
e
){
t
&&
t
.
percent
&&
(
this
.
progress
=
Math
.
floor
(
t
.
percent
))},
uploadOnChange
:
function
(
t
,
e
){
var
a
=
this
;
"ready"
===
t
.
status
?(
a
.
pass
=
null
,
a
.
progress
=
0
):
"fail"
===
t
.
status
&&
a
.
$message
.
error
(
"图片上传失败,请重试!"
),
a
.
fileDatas
=
e
,
console
.
log
(
"fileList:"
,
e
,
a
.
fileDatas
),
a
.
$nextTick
(
function
(){
var
t
=
[];
e
.
length
&&
e
.
forEach
(
function
(
e
){
t
.
push
({
imgUrl
:
e
.
response
.
result
[
0
].
qcloudImageUrl
})}),
a
.
$emit
(
"uploadOnSuccess"
,
t
,
e
),
a
.
pass
=
null
,
a
.
progress
=
0
})},
handleExceed
:
function
(
t
,
e
){
this
.
$message
.
warning
(
"当前限制选择 9 个文件,本次选择了 "
+
t
.
length
+
" 个文件,共选择了 "
+
(
t
.
length
+
e
.
length
)
+
" 个文件"
)},
uploadOnError
:
function
(){
this
.
$message
.
error
(
"图片上传失败,请重试!"
)},
previewImage
:
function
(
t
){
this
.
isEnlargeImage
=!
0
,
this
.
initialImg
=
t
},
deleteImage
:
function
(
t
){
if
(
this
.
disabled
)
return
!
1
;
this
.
$emit
(
"deleteImage"
,
t
)},
handleClose
:
function
(
t
){
t
()},
itemMoveEnd
:
function
(
t
){
for
(
var
e
=
0
;
e
<
this
.
dragImageList
.
length
;
e
++
)
this
.
fileDatas
[
e
].
response
.
result
[
0
].
qcloudImageUrl
=
this
.
dragImageList
[
e
].
imgUrl
;
this
.
$emit
(
"sortImg"
,
this
.
dragImageList
,
this
.
fileDatas
)}},
watch
:{
imageList
:
function
(
t
,
e
){
this
.
dragImageList
=
JSON
.
parse
(
r
()(
t
))},
originList
:
function
(
t
,
e
){
this
.
fileDatas
=
JSON
.
parse
(
r
()(
t
))}},
mounted
:
function
(){
this
.
dragImageList
=
JSON
.
parse
(
r
()(
this
.
imageList
)),
this
.
fileDatas
=
JSON
.
parse
(
r
()(
this
.
originList
))},
components
:{
draggable
:
a
.
n
(
f
).
a
}},
v
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
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
:
t
.
itemMoveEnd
},
model
:{
value
:
t
.
dragImageList
,
callback
:
function
(
e
){
t
.
dragImageList
=
e
},
expression
:
"dragImageList"
}},[
a
(
"transition-group"
,{
attrs
:{
name
:
"slide-fade"
}},
t
.
_l
(
t
.
imageList
,
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
e
,
class
:[
"img-content"
,
i
>=
6
?
"m-t-8"
:
""
]},[
a
(
"a"
,{
staticClass
:
"item-img"
,
attrs
:{
href
:
e
.
imgUrl
}},[
a
(
"img"
,{
attrs
:{
src
:
e
.
imgUrl
,
alt
:
"上传图片"
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"upload-icon__btn"
},[
a
(
"i"
,{
staticClass
:
"el-icon-view"
,
on
:{
click
:
function
(
e
){
return
t
.
previewImage
(
i
)}}}),
t
.
_v
(
" "
),
t
.
disabled
?
t
.
_e
():
a
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
e
){
return
t
.
deleteImage
(
i
)}}})])])}),
0
)],
1
),
t
.
_v
(
" "
),
t
.
pass
||
0
===
t
.
progress
?
t
.
_e
():
a
(
"div"
,{
class
:[
"img-content"
,
"img-progress"
,
t
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-progress"
,{
staticClass
:
"gic-img-progress"
,
staticStyle
:{
"line-height"
:
"102px"
},
attrs
:{
width
:
102
,
percentage
:
t
.
progress
,
status
:
t
.
propStatus
}})],
1
),
t
.
_v
(
" "
),
t
.
imageList
&&
t
.
imageList
.
length
<
t
.
maxImageLength
?
a
(
"div"
,{
class
:[
"img-upload"
,
t
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
a
(
"el-upload"
,{
staticClass
:
"loader"
,
attrs
:{
disabled
:
t
.
disabled
,
multiple
:
""
,
accept
:
"image/jpg,image/jpeg,image/png,image/gif,image/bmp"
,
"file-list"
:
t
.
fileDatas
,
action
:
t
.
uploadUrl
(),
"list-type"
:
"picture-card"
,
limit
:
9
,
"on-exceed"
:
t
.
handleExceed
,
"on-change"
:
t
.
uploadOnChange
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"on-error"
:
t
.
uploadOnError
,
"on-progress"
:
t
.
uploadOnProgress
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus gic-upload-btn"
})])],
1
):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"图片预览"
,
visible
:
t
.
isEnlargeImage
,
"modal-append-to-body"
:
!
1
,
"before-close"
:
t
.
handleClose
,
width
:
"520px"
},
on
:{
"update:visible"
:
function
(
e
){
t
.
isEnlargeImage
=
e
}}},[
t
.
isEnlargeImage
?
a
(
"el-carousel"
,{
attrs
:{
trigger
:
"click"
,
"initial-index"
:
t
.
initialImg
,
autoplay
:
!
1
,
height
:
"500px"
}},
t
.
_l
(
t
.
imageList
,
function
(
e
,
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
:
e
.
imgUrl
},
on
:{
click
:
function
(
e
){
t
.
isEnlargeImage
=!
1
}}})])}),
1
):
t
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
t
){
a
(
"eOW2"
)},
null
,
null
).
exports
,
b
=
a
(
"P9l9"
),
S
=
a
(
"3E4D"
),
_
=
a
(
"Ch4/"
),
L
=
a
(
"PI0u"
),
y
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
commonDetailTop
:
n
.
a
,
vueSelectStore
:
o
.
a
,
vueSelectEmployee
:
c
.
a
,
materialPreview
:
u
.
a
,
limitInput
:
m
.
a
,
limitTextarea
:
d
.
a
,
multUploadImage
:
I
},
data
:
function
(){
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"2"
,
topMenuData
:[{
id
:
"1"
,
name
:
"纷享素材"
,
path
:
"/enjoyMaterial?appIcon="
+
this
.
$route
.
query
.
appIcon
},{
id
:
"2"
,
name
:
this
.
$route
.
query
.
materialId
?
"查看素材"
:
"新建素材"
}],
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
(
t
,
e
,
a
){
if
(
""
==
e
||!
e
.
length
)
return
a
(
new
Error
(
"请选择选择行政架构或门店架构"
));
a
()},
trigger
:
"change"
}],
imgUrlList
:[{
required
:
!
0
,
validator
:
function
(
t
,
e
,
a
){
if
(
""
==
e
||!
e
.
length
)
return
a
(
new
Error
(
"请上传图片"
));
a
()},
trigger
:
"change"
}]},
originList
:[],
previewVisible
:
!
1
,
materialPreviewData
:{}}},
methods
:{
uploadOnSuccess
:
function
(
t
,
e
){
this
.
formData
.
imgUrlList
=
t
,
this
.
originList
=
e
,
console
.
log
(
"上传list:"
,
t
)},
deleteImage
:
function
(
t
){
this
.
formData
.
imgUrlList
.
splice
(
t
,
1
),
this
.
originList
.
splice
(
t
,
1
),
console
.
log
(
"删除list2:"
,
this
.
formData
.
imgUrlList
)},
sortImg
:
function
(
t
,
e
){
this
.
formData
.
imgUrlList
=
t
,
this
.
originList
=
e
},
submitForm
:
function
(
t
,
e
){
var
a
=
this
;
a
.
formData
.
rangeList
=
[].
concat
(
s
()(
a
.
defaultStoreList
),
s
()(
a
.
defaultSelection
)),
a
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
a
.
postSaveCard
(
e
)})},
postSaveCard
:
function
(
t
){
var
e
=
this
,
a
=
[];
e
.
formData
.
rangeList
.
forEach
(
function
(
t
){
a
.
push
({
groupId
:
2
==
t
.
type
?
t
.
groupId
:
""
,
storeId
:
3
==
t
.
type
?
t
.
storeId
:
""
,
storeFlag
:
t
.
isStoreGroup
})});
var
i
=
{
enterpriseId
:
e
.
enterpriseId
,
imgListStr
:
r
()(
e
.
formData
.
imgUrlList
),
materialContent
:
e
.
formData
.
materialContent
,
materialTitle
:
e
.
formData
.
materialTitle
,
rangeListStr
:
r
()(
a
),
topFlag
:
e
.
formData
.
topFlag
?
1
:
0
,
relatedType
:
2
,
brandId
:
e
.
brandId
,
userId
:
e
.
userId
};
Object
(
b
.
e
)(
"/haoban-app-material-web/material-add"
,
i
).
then
(
function
(
a
){
var
i
=
a
.
data
;
1
==
i
.
errorCode
&&
(
S
.
a
.
showmsg
(
"新建成功"
,
"success"
),
t
?(
e
.
formData
=
{
materialId
:
""
,
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
e
.
originList
=
[],
e
.
defaultStoreList
=
[],
e
.
defaultSelection
=
[],
window
.
location
.
reload
()):
e
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
e
.
$route
.
query
.
appIcon
)),
_
.
a
.
errorMsg
(
i
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
previewData
:
function
(
t
){
var
e
=
this
;
e
.
formData
.
rangeList
=
[].
concat
(
s
()(
e
.
defaultStoreList
),
s
()(
e
.
defaultSelection
)),
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
(
e
.
materialPreviewData
=
e
.
formData
,
e
.
previewVisible
=!
0
)})},
closePre
:
function
(){
this
.
materialPreviewData
=
{}},
toReturn
:
function
(){
var
t
=
this
;
t
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
t
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
t
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeId
:
function
(
t
,
e
){
this
.
formData
.
imageTextWechatId
=
""
,
this
.
formData
.
imageTextGicId
=
e
.
imageTextId
},
toInput
:
Object
(
L
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
showDialogLayer
:
function
(
t
,
e
){
return
!
this
.
$route
.
query
.
materialId
&&
(
this
.
selectType
=
t
,
this
.
changed
=
t
,
"store"
===
t
?(
this
.
defaultStoreList
=
e
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
})):(
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
1
,
openNextBool
:
!
0
},
void
(
this
.
defaultSelection
=
e
)))},
handleSelectedList
:
function
(
t
){
"store"
===
this
.
selectType
?
this
.
defaultStoreList
=
t
:
this
.
defaultSelection
=
t
},
delDepart
:
function
(
t
,
e
,
a
){
if
(
this
.
$route
.
query
.
materialId
)
return
!
1
;
e
.
splice
(
t
,
1
)},
getData
:
function
(){
var
t
=
this
,
e
=
{
materialId
:
t
.
$route
.
query
.
materialId
,
brandId
:
t
.
brandId
};
Object
(
b
.
a
)(
"/haoban-app-material-web/material-detail"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
){
var
i
=
[],
r
=
[];
return
a
.
result
.
rangeVOList
&&
a
.
result
.
rangeVOList
.
forEach
(
function
(
t
){
t
.
groupId
=
2
==
t
.
type
?
t
.
id
:
""
,
t
.
storeId
=
3
==
t
.
type
?
t
.
id
:
""
,
t
.
isStoreGroup
=
t
.
storeFlag
,
1
==
t
.
storeFlag
?
i
.
push
(
t
):
r
.
push
(
t
)}),
t
.
formData
=
{
materialId
:
a
.
result
.
materialId
,
imageTextWechatId
:
a
.
result
.
imageTextWechatId
,
materialTitle
:
a
.
result
.
materialTitle
,
materialContent
:
a
.
result
.
materialContent
,
topFlag
:
1
==
a
.
result
.
topFlag
,
imgUrlList
:
a
.
result
.
imgList
,
rangeList
:
a
.
result
.
rangeVOList
,
createTime
:
a
.
result
.
createTime
},
t
.
defaultStoreList
=
i
||
[],
t
.
defaultSelection
=
r
||
[],
!
1
}
_
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
t
,
e
){
t
&&
(
this
.
activeBrand
=
t
,
this
.
$route
.
query
.
materialId
&&
this
.
getData
())},
activeGroupId
:
function
(
t
,
e
){
t
&&
(
this
.
activeGroup
=
t
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"2"
),
this
.
brandId
&&
this
.
$route
.
query
.
materialId
&&
this
.
getData
()}},
C
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"chat-log boder-box"
},[
a
(
"common-detail-top"
,{
attrs
:{
topMenuData
:
t
.
topMenuData
,
activeId
:
t
.
activeId
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"new-card-body"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
formData
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容标题:"
,
prop
:
"materialTitle"
}},[
a
(
"limitInput"
,{
attrs
:{
disflag
:
!!
t
.
$route
.
query
.
materialId
,
inputWidth
:
320
,
inputValue
:
t
.
formData
.
materialTitle
,
holder
:
"请输入素材标题"
,
getByType
:
"word"
,
maxLength
:
15
},
on
:{
"update:inputValue"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialTitle"
,
e
)},
"update:input-value"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialTitle"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发送内容:"
,
prop
:
"materialContent"
}},[
a
(
"limitTextarea"
,{
attrs
:{
disInput
:
!!
t
.
$route
.
query
.
materialId
,
inputWidth
:
320
,
inputValue
:
t
.
formData
.
materialContent
,
holder
:
"请输入素材内容"
,
maxLength
:
1500
},
on
:{
"update:inputValue"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialContent"
,
e
)},
"update:input-value"
:
function
(
e
){
return
t
.
$set
(
t
.
formData
,
"materialContent"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"图片上传:"
,
prop
:
"imgUrlList"
}},[
a
(
"mult-upload-image"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
originList
:
t
.
originList
,
imageList
:
t
.
formData
.
imgUrlList
},
on
:{
deleteImage
:
t
.
deleteImage
,
uploadOnSuccess
:
t
.
uploadOnSuccess
,
sortImg
:
t
.
sortImg
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"font-12 color-606266"
},[
t
.
_v
(
"单个图片大小不超过5M,支持 jpg、jpeg、bmp、png 类型文件,最多支持上传9张"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"input-item is-required"
,
attrs
:{
label
:
"发送范围:"
,
prop
:
"rangeList"
}},[
a
(
"div"
,{
staticClass
:
"form-item-tip fonr-14 color-909399"
},[
t
.
_v
(
"下面两项可二选一,非全选。可选择行政架构或门店架构"
)]),
t
.
_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
(
e
){
return
t
.
showDialogLayer
(
"depart"
,
t
.
defaultSelection
)}}},[
t
.
defaultSelection
.
length
?
t
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
t
.
_v
(
"请选择行政架构"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
t
.
_l
(
t
.
defaultSelection
,
function
(
e
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
t
.
_v
(
t
.
_s
(
e
.
name
||
e
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
delDepart
(
i
,
t
.
defaultSelection
,
"depart"
)}}})])]})],
2
)])])])])]),
t
.
_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
(
e
){
return
t
.
showDialogLayer
(
"store"
,
t
.
defaultStoreList
)}}},[
t
.
defaultStoreList
.
length
?
t
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
},[
t
.
_v
(
"请选择门店架构"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
},[
a
(
"span"
,[
t
.
_l
(
t
.
defaultStoreList
,
function
(
e
,
i
){
return
[
a
(
"span"
,{
key
:
i
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
t
.
_v
(
t
.
_s
(
e
.
name
||
e
.
storeName
))]),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
delDepart
(
i
,
t
.
defaultStoreList
,
"store"
)}}})])]})],
2
)])])])])])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"更多设置:"
,
prop
:
""
}},[
a
(
"div"
,[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
},
model
:{
value
:
t
.
formData
.
topFlag
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
"topFlag"
,
e
)},
expression
:
"formData.topFlag"
}},[
t
.
_v
(
"置顶"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
on
:{
click
:
t
.
toReturn
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
return
t
.
previewData
(
"ruleForm"
)}}},[
t
.
_v
(
"预览"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
return
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"发布"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
return
t
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
t
.
_v
(
"发布并添加下一个"
)])],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
attrs
:{
appScene
:
t
.
appScene
,
defaultSelection
:
t
.
defaultSelection
,
onlyPerson
:
t
.
onlyPerson
,
treeSet
:
t
.
treeSet
,
changed
:
t
.
changed
},
on
:{
handleSelectedList
:
t
.
handleSelectedList
}}),
t
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
currentBrand
:
t
.
activeGroup
,
appScene
:
t
.
appScene
,
treeSet
:
t
.
storeTreeSet
,
selectType
:
"group-store"
,
defaultList
:
t
.
defaultStoreList
},
on
:{
handleSelectedList
:
t
.
handleSelectedList
}}),
t
.
_v
(
" "
),
a
(
"material-preview"
,{
ref
:
"materialPreview"
,
attrs
:{
materialPreviewData
:
t
.
materialPreviewData
},
model
:{
value
:
t
.
previewVisible
,
callback
:
function
(
e
){
t
.
previewVisible
=
e
},
expression
:
"previewVisible"
}})],
1
)},
staticRenderFns
:[]};
var
D
=
a
(
"VU/8"
)(
y
,
C
,
!
1
,
function
(
t
){
a
(
"rumZ"
)},
"data-v-ad1a0050"
,
null
);
e
.
default
=
D
.
exports
},
eOW2
:
function
(
t
,
e
){},
gMyn
:
function
(
t
,
e
){},
rumZ
:
function
(
t
,
e
){},
vRJf
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
l
=
{
name
:
"material-preview"
,
props
:{
value
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
materialPreviewData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{
materialId
:
""
,
imageTextWechatId
:
""
,
imageTextGicId
:
""
,
titleName
:
""
,
imageUrl
:
""
,
mediaUrl
:
""
,
rangeList
:[],
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
}}}},
directives
:{
htmlContent
:{
bind
:
function
(
t
,
e
){
t
.
innerHTML
=
e
.
value
},
update
:
function
(
t
,
e
){
t
.
innerHTML
=
e
.
value
}}},
data
:
function
(){
return
{
materialData
:{
materialId
:
""
,
imageTextWechatId
:
""
,
imageTextGicId
:
""
,
rangeList
:[],
imgUrlList
:[],
mediaUrl
:
""
,
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
}}},
methods
:{
toUrl
:
function
(
t
){
window
.
open
(
t
)},
closeDialog
:
function
(){
this
.
$emit
(
"input"
,
!
1
),
this
.
$emit
(
"closePre"
)}},
watch
:{
value
:
function
(
t
,
e
){
this
.
materialData
=
JSON
.
parse
(
r
()(
this
.
materialPreviewData
))},
materialPreviewData
:
function
(
t
,
e
){
this
.
materialData
=
JSON
.
parse
(
r
()(
t
))}},
mounted
:
function
(){
this
.
materialData
=
JSON
.
parse
(
r
()(
this
.
materialPreviewData
))}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
t
.
value
?
a
(
"div"
,{
staticClass
:
"qr-dialog-content"
,
staticStyle
:{
opacity
:
"1"
}},[
a
(
"div"
,{
staticClass
:
"qr-mask"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
closeDialog
.
apply
(
null
,
arguments
)}}}),
t
.
_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 main-title"
},[
t
.
_v
(
t
.
_s
(
t
.
materialData
.
materialTitle
))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date m-t-10 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"notice-date-left font-10 color-88949C"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
t
.
materialData
.
materialId
?
t
.
materialData
.
createTime
:(
new
Date
).
getTime
())))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"notice-date-right font-10 color-4d7fd0"
})]),
t
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"htmlContent"
,
rawName
:
"v-htmlContent"
,
value
:
t
.
materialData
.
materialContent
,
expression
:
"materialData.materialContent"
}],
staticClass
:
"notice-body border-box font-14 color-222"
}),
t
.
_v
(
" "
),
t
.
materialData
.
imgUrlList
&&
t
.
materialData
.
imgUrlList
.
length
?
a
(
"div"
,{
staticClass
:
"img-list-wrap"
},[
a
(
"ul"
,{
staticClass
:
"flex flex-wrap"
},
t
.
_l
(
t
.
materialData
.
imgUrlList
,
function
(
t
,
e
){
return
a
(
"li"
,{
key
:
e
+
"img"
,
staticClass
:
"border-box flex flex-align-center flex-pack-center"
},[
a
(
"img"
,{
attrs
:{
src
:
t
.
imgUrl
,
alt
:
""
}})])}),
0
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
materialData
.
imageTextWechatId
?
a
(
"div"
,{
staticClass
:
"image-text-link"
},[
a
(
"div"
,{
staticClass
:
"flex cursor-pointer"
,
on
:{
click
:
function
(
e
){
return
t
.
toUrl
(
t
.
materialData
.
mediaUrl
)}}},[
a
(
"div"
,{
staticClass
:
"flex-left-img flex flex-align-center flex-pack-center"
},[
a
(
"img"
,{
attrs
:{
src
:
t
.
materialData
.
imageUrl
,
alt
:
""
}})]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"flex-right-title border-box"
},[
a
(
"div"
,{
staticClass
:
"title-content font-14 color-606266"
},[
t
.
_v
(
t
.
_s
(
t
.
materialData
.
titleName
))])])])]):
t
.
_e
()])]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"qr-dialog__hd"
},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
,
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
closeDialog
.
apply
(
null
,
arguments
)}}})])]):
t
.
_e
()},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
l
,
s
,
!
1
,
function
(
t
){
a
(
"gMyn"
)},
"data-v-91610bd2"
,
null
);
e
.
a
=
n
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
8e75ffed33b7c98e8977
.js
→
dist/static/js/manifest.
c6f25046242227c46eed
.js
View file @
0397115b
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
b
[
t
]
&&
u
.
push
(
b
[
t
][
0
]),
b
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
b
=
{
103
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
b
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
b
.
exports
,
b
,
b
.
exports
,
f
),
b
.
l
=!
0
,
b
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
b
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
b
[
e
]
=
[
a
,
f
]});
c
[
2
]
=
a
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d3231309bdc3b51a36c6"
,
1
:
"9a1776fdc262362d75b8"
,
2
:
"81c8c7304e36244c6092"
,
3
:
"9065e161307e64dc22ee"
,
4
:
"5e895cecc48096344ea0"
,
5
:
"60ee95dac07c6c88201b"
,
6
:
"99da2b617e58f74f4fdc"
,
7
:
"be147bbd810605418608"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"a8c3efaaa2879b0eea1b"
,
10
:
"7af803b31c0cf1974276"
,
11
:
"541f0d1c4c95dc961fb6"
,
12
:
"2785300663bc631139be"
,
13
:
"41ef2e2fbc6f1b23bf3c"
,
14
:
"e586a200c0e033aa70f0"
,
15
:
"1b81e2ce51abacd7c1c5"
,
16
:
"4e012168d064f30db196"
,
17
:
"e32ef070ce1c0c8509a2"
,
18
:
"2b1840afe321ab07e835"
,
19
:
"7caf502c965d77a66567"
,
20
:
"fd89704723be31a8ece2"
,
21
:
"0915d3e8c275c9061dad"
,
22
:
"17f0c802e9a404478955"
,
23
:
"e4e349de98a0c180d0a7"
,
24
:
"5c969da31666000187db"
,
25
:
"b12ff0ab75bfcf55c6b0"
,
26
:
"25cec12308f82f080497"
,
27
:
"c3b51455b76a9b220611"
,
28
:
"1db6e9130b3ef17748b9"
,
29
:
"566abf8a70948d95944f"
,
30
:
"7da9d44548ddfaf0b12d"
,
31
:
"9841c7c0535c2a2711b8"
,
32
:
"05a3849f55df837c037a"
,
33
:
"2357160a0288e1cf7b64"
,
34
:
"4e8403cca8f7eb0e1c81"
,
35
:
"5f9cd61ef0fd7b156bfc"
,
36
:
"de4de91c90739a7b7f87"
,
37
:
"9fbb732d886cc040e453"
,
38
:
"3aece6de93c9d5d2e8a3"
,
39
:
"292caebc063f247fa4a8"
,
40
:
"412573b9254d120e6cdd"
,
41
:
"5b042c3db54801b28249"
,
42
:
"69e5961cc0a4ac004100"
,
43
:
"a2a46a20ba4ec3d5b479"
,
44
:
"3d32c7e1954754671303"
,
45
:
"21c1d9bd5e5eb9c80667"
,
46
:
"0a9755f1ded0bd821c6b"
,
47
:
"ac024f64a43a473a6a0d"
,
48
:
"9f577c0a260313e138aa"
,
49
:
"54862746715fe1cf60d4"
,
50
:
"472f5c0985f355c68113"
,
51
:
"10c2332b6c7f5e5128d0"
,
52
:
"906057051eeca0acab78"
,
53
:
"c3e8f20c361a03b66d19"
,
54
:
"6d6fb15946a63d0c8b8a"
,
55
:
"b56bf4acbd6ecd4e8b6a"
,
56
:
"cc0b584fcaea02b2001a"
,
57
:
"50c04fa508ec010e5fa4"
,
58
:
"cd692f7953080e222ece"
,
59
:
"1b0b5af20c440f2a3616"
,
60
:
"123b87d51a806a1bcb4c"
,
61
:
"f697ab528472b2a56387"
,
62
:
"a7b6e00d6d9c1f59d655"
,
63
:
"8b836bf025b8dfcbfa95"
,
64
:
"a3dd2556df9e4e2e1f89"
,
65
:
"962e29b74c6a03edca35"
,
66
:
"ee588b2e7cc90c1990d4"
,
67
:
"194bdd2b6ace1d8483b4"
,
68
:
"d53c08651939d70d4f36"
,
69
:
"8e97aa246200e0fc2c91"
,
70
:
"a40e983651947cb4a80f"
,
71
:
"57ce0d46b333abf57c1b"
,
72
:
"b20eabcb407d66e1c420"
,
73
:
"0461e6b8cebcf0ee1e37"
,
74
:
"96e75d7795350ba4363b"
,
75
:
"1d545c19647b3689600b"
,
76
:
"01520de586cba1748284"
,
77
:
"c7959cf77b4e28c4831b"
,
78
:
"48195c39fc1c075e2121"
,
79
:
"f1314bb05b3eeb7443cf"
,
80
:
"1521f02d44d3d98ca127"
,
81
:
"ec76c4b422a158b4d483"
,
82
:
"b2deed3ee23c09bf804c"
,
83
:
"d3e179742862ad6c67e6"
,
84
:
"831bb7c44c33581d0930"
,
85
:
"5fa60a30bcc4aeb3cd0a"
,
86
:
"3f6d6be949deb3279e80"
,
87
:
"4bdea2d36331de28d63f"
,
88
:
"59fc7548ee3473aa590b"
,
89
:
"5cf23f88bdc0c0f9b6e3"
,
90
:
"8e9170a6a4b5293ea50b"
,
91
:
"caece2b3fd8de958a1b2"
,
92
:
"be58a50d004e2a7087ca"
,
93
:
"1febfda9d0b0a7feaee5"
,
94
:
"699b9681d8d13dab4a70"
,
95
:
"c3f379ca4f3ce71e3bfb"
,
96
:
"f0640ca93b6173c1f3ae"
,
97
:
"ac2cf8e5e0e144c3b742"
,
98
:
"6062f8cb4609b6f243ab"
,
99
:
"58cc1884c4f80303999a"
,
102
:
"b3af60666332a03dfe19"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
b
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
b
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
f
.
m
=
e
,
f
.
c
=
a
,
f
.
d
=
function
(
e
,
c
,
a
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
b
[
t
]
&&
u
.
push
(
b
[
t
][
0
]),
b
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
b
=
{
103
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
b
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
b
.
exports
,
b
,
b
.
exports
,
f
),
b
.
l
=!
0
,
b
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
b
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
b
[
e
]
=
[
a
,
f
]});
c
[
2
]
=
a
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d3231309bdc3b51a36c6"
,
1
:
"9a1776fdc262362d75b8"
,
2
:
"81c8c7304e36244c6092"
,
3
:
"9065e161307e64dc22ee"
,
4
:
"5e895cecc48096344ea0"
,
5
:
"60ee95dac07c6c88201b"
,
6
:
"99da2b617e58f74f4fdc"
,
7
:
"be147bbd810605418608"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"a8c3efaaa2879b0eea1b"
,
10
:
"7af803b31c0cf1974276"
,
11
:
"541f0d1c4c95dc961fb6"
,
12
:
"2785300663bc631139be"
,
13
:
"41ef2e2fbc6f1b23bf3c"
,
14
:
"e586a200c0e033aa70f0"
,
15
:
"1b81e2ce51abacd7c1c5"
,
16
:
"4e012168d064f30db196"
,
17
:
"e32ef070ce1c0c8509a2"
,
18
:
"c3d40758a3bc0e84eb1d"
,
19
:
"7caf502c965d77a66567"
,
20
:
"fd89704723be31a8ece2"
,
21
:
"0915d3e8c275c9061dad"
,
22
:
"17f0c802e9a404478955"
,
23
:
"e4e349de98a0c180d0a7"
,
24
:
"5c969da31666000187db"
,
25
:
"b12ff0ab75bfcf55c6b0"
,
26
:
"25cec12308f82f080497"
,
27
:
"c3b51455b76a9b220611"
,
28
:
"1db6e9130b3ef17748b9"
,
29
:
"566abf8a70948d95944f"
,
30
:
"7da9d44548ddfaf0b12d"
,
31
:
"9841c7c0535c2a2711b8"
,
32
:
"05a3849f55df837c037a"
,
33
:
"2357160a0288e1cf7b64"
,
34
:
"4e8403cca8f7eb0e1c81"
,
35
:
"5f9cd61ef0fd7b156bfc"
,
36
:
"de4de91c90739a7b7f87"
,
37
:
"9fbb732d886cc040e453"
,
38
:
"3aece6de93c9d5d2e8a3"
,
39
:
"292caebc063f247fa4a8"
,
40
:
"412573b9254d120e6cdd"
,
41
:
"5b042c3db54801b28249"
,
42
:
"69e5961cc0a4ac004100"
,
43
:
"a2a46a20ba4ec3d5b479"
,
44
:
"3d32c7e1954754671303"
,
45
:
"21c1d9bd5e5eb9c80667"
,
46
:
"0a9755f1ded0bd821c6b"
,
47
:
"ac024f64a43a473a6a0d"
,
48
:
"9f577c0a260313e138aa"
,
49
:
"54862746715fe1cf60d4"
,
50
:
"472f5c0985f355c68113"
,
51
:
"10c2332b6c7f5e5128d0"
,
52
:
"906057051eeca0acab78"
,
53
:
"c3e8f20c361a03b66d19"
,
54
:
"6d6fb15946a63d0c8b8a"
,
55
:
"b56bf4acbd6ecd4e8b6a"
,
56
:
"cc0b584fcaea02b2001a"
,
57
:
"50c04fa508ec010e5fa4"
,
58
:
"cd692f7953080e222ece"
,
59
:
"1b0b5af20c440f2a3616"
,
60
:
"123b87d51a806a1bcb4c"
,
61
:
"f697ab528472b2a56387"
,
62
:
"a7b6e00d6d9c1f59d655"
,
63
:
"8b836bf025b8dfcbfa95"
,
64
:
"a3dd2556df9e4e2e1f89"
,
65
:
"962e29b74c6a03edca35"
,
66
:
"ee588b2e7cc90c1990d4"
,
67
:
"194bdd2b6ace1d8483b4"
,
68
:
"d53c08651939d70d4f36"
,
69
:
"8e97aa246200e0fc2c91"
,
70
:
"a40e983651947cb4a80f"
,
71
:
"57ce0d46b333abf57c1b"
,
72
:
"b20eabcb407d66e1c420"
,
73
:
"0461e6b8cebcf0ee1e37"
,
74
:
"96e75d7795350ba4363b"
,
75
:
"1d545c19647b3689600b"
,
76
:
"01520de586cba1748284"
,
77
:
"c7959cf77b4e28c4831b"
,
78
:
"48195c39fc1c075e2121"
,
79
:
"f1314bb05b3eeb7443cf"
,
80
:
"1521f02d44d3d98ca127"
,
81
:
"ec76c4b422a158b4d483"
,
82
:
"b2deed3ee23c09bf804c"
,
83
:
"d3e179742862ad6c67e6"
,
84
:
"831bb7c44c33581d0930"
,
85
:
"5fa60a30bcc4aeb3cd0a"
,
86
:
"3f6d6be949deb3279e80"
,
87
:
"4bdea2d36331de28d63f"
,
88
:
"59fc7548ee3473aa590b"
,
89
:
"5cf23f88bdc0c0f9b6e3"
,
90
:
"8e9170a6a4b5293ea50b"
,
91
:
"caece2b3fd8de958a1b2"
,
92
:
"be58a50d004e2a7087ca"
,
93
:
"1febfda9d0b0a7feaee5"
,
94
:
"699b9681d8d13dab4a70"
,
95
:
"c3f379ca4f3ce71e3bfb"
,
96
:
"f0640ca93b6173c1f3ae"
,
97
:
"ac2cf8e5e0e144c3b742"
,
98
:
"6062f8cb4609b6f243ab"
,
99
:
"58cc1884c4f80303999a"
,
102
:
"b3af60666332a03dfe19"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
b
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
b
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
f
.
m
=
e
,
f
.
c
=
a
,
f
.
d
=
function
(
e
,
c
,
a
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
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