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
f1ac073f
Commit
f1ac073f
authored
Dec 25, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改考勤组数据
parent
6b786964
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
dist/index.html
+2
-2
18.3af99626b95ca7fa51ab.js
dist/static/js/18.3af99626b95ca7fa51ab.js
+0
-2
18.d50ec99b96f7acbb4d42.js
dist/static/js/18.d50ec99b96f7acbb4d42.js
+2
-0
manifest.a4615412ce327f9d60d5.js
dist/static/js/manifest.a4615412ce327f9d60d5.js
+2
-2
mult-upload-img.vue
src/components/mult-upload-img.vue
+2
-2
No files found.
dist/index.html
View file @
f1ac073f
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.4877a99a3de91fd6ed54936d9b19ff5a.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.479b55a68687dbe07389.js
></script><script
type=
text/javascript
src=
./static/js/vendor.0000e68e65e4a9dc3840.js
></script><script
type=
text/javascript
src=
./static/js/app.9c584469c2b22effc5a0.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.4877a99a3de91fd6ed54936d9b19ff5a.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.a4615412ce327f9d60d5.js
></script><script
type=
text/javascript
src=
./static/js/vendor.0000e68e65e4a9dc3840.js
></script><script
type=
text/javascript
src=
./static/js/app.9c584469c2b22effc5a0.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/js/18.3af99626b95ca7fa51ab.js
deleted
100644 → 0
View file @
6b786964
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
(
"DAYN"
),
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
(
console
.
log
(
that
.
disabled
),
that
.
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
:
i
,
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
){
t
.
previewImage
(
i
)}}}),
t
.
_v
(
" "
),
t
.
disabled
?
t
.
_e
():
a
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
e
){
t
.
deleteImage
(
i
)}}})])])}))],
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
}}})])})):
t
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
t
){
a
(
"kJiG"
)},
null
,
null
).
exports
,
b
=
a
(
"P9l9"
),
S
=
a
(
"3E4D"
),
L
=
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
&&
(
S
.
a
.
showmsg
(
"新建成功"
,
"success"
),
t
?(
e
.
formData
=
{
materialId
:
""
,
imgUrlList
:[],
materialTitle
:
""
,
materialContent
:
""
,
topFlag
:
!
1
},
e
.
defaultStoreList
=
[],
e
.
defaultSelection
=
[]):
e
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
e
.
$route
.
query
.
appIcon
)),
L
.
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
}
L
.
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
()}},
x
=
{
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
){
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
){
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
){
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
){
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
){
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
){
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
){
t
.
previewData
(
"ruleForm"
)}}},[
t
.
_v
(
"预览"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"发布"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
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
,
x
,
!
1
,
function
(
t
){
a
(
"EOES"
)},
"data-v-269c95ec"
,
null
);
e
.
default
=
C
.
exports
},
EOES
:
function
(
t
,
e
){},
kJiG
:
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
(
e
)}}}),
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
:
""
}})])}))]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
materialData
.
imageTextWechatId
?
a
(
"div"
,{
staticClass
:
"image-text-link"
},[
a
(
"div"
,{
staticClass
:
"flex cursor-pointer"
,
on
:{
click
:
function
(
e
){
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
(
e
)}}})])]):
t
.
_e
()},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
l
,
s
,
!
1
,
function
(
t
){
a
(
"xELH"
)},
"data-v-91610bd2"
,
null
);
e
.
a
=
n
.
exports
},
xELH
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/18.d50ec99b96f7acbb4d42.js
0 → 100644
View file @
f1ac073f
webpackJsonp
([
18
],{
"7fkC"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
s
=
a
(
"Gu7T"
),
l
=
a
.
n
(
s
),
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
(
"DAYN"
),
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
:
i
,
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
){
t
.
previewImage
(
i
)}}}),
t
.
_v
(
" "
),
t
.
disabled
?
t
.
_e
():
a
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
e
){
t
.
deleteImage
(
i
)}}})])])}))],
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
}}})])})):
t
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
I
=
a
(
"VU/8"
)(
h
,
v
,
!
1
,
function
(
t
){
a
(
"pWce"
)},
null
,
null
).
exports
,
b
=
a
(
"P9l9"
),
S
=
a
(
"3E4D"
),
L
=
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
(
l
()(
a
.
defaultStoreList
),
l
()(
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
.
defaultStoreList
=
[],
e
.
defaultSelection
=
[]):
e
.
$router
.
push
(
"/enjoyMaterial?appIcon="
+
e
.
$route
.
query
.
appIcon
)),
L
.
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
(
l
()(
e
.
defaultStoreList
),
l
()(
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
}
L
.
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
()}},
x
=
{
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
){
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
){
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
){
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
){
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
){
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
){
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
){
t
.
previewData
(
"ruleForm"
)}}},[
t
.
_v
(
"预览"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"发布"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
t
.
$route
.
query
.
materialId
,
type
:
"primary"
},
on
:{
click
:
function
(
e
){
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
,
x
,
!
1
,
function
(
t
){
a
(
"EOES"
)},
"data-v-269c95ec"
,
null
);
e
.
default
=
C
.
exports
},
EOES
:
function
(
t
,
e
){},
pWce
:
function
(
t
,
e
){},
vRJf
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"mvHQ"
),
r
=
a
.
n
(
i
),
s
=
{
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
))}},
l
=
{
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
(
e
)}}}),
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
:
""
}})])}))]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
materialData
.
imageTextWechatId
?
a
(
"div"
,{
staticClass
:
"image-text-link"
},[
a
(
"div"
,{
staticClass
:
"flex cursor-pointer"
,
on
:{
click
:
function
(
e
){
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
(
e
)}}})])]):
t
.
_e
()},
staticRenderFns
:[]};
var
n
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
t
){
a
(
"xELH"
)},
"data-v-91610bd2"
,
null
);
e
.
a
=
n
.
exports
},
xELH
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/manifest.
479b55a68687dbe07389
.js
→
dist/static/js/manifest.
a4615412ce327f9d60d5
.js
View file @
f1ac073f
!
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
=
{
103
:
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
:
"2baca21202cf454cd7b0"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"54aabab28c7735d34c10"
,
3
:
"b7e6d57d97174b75b050"
,
4
:
"11254d7e3a102121b8ec"
,
5
:
"b5e24a58d047a2ec70f5"
,
6
:
"124ad8222f7b043b44ae"
,
7
:
"ebad93a8c5bffffd9e98"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"b5aae16b3951516573ad"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"59c7813cc972f62b1d18"
,
12
:
"879536ae7ce46f0c54ec"
,
13
:
"57e51fc1b6342003f25d"
,
14
:
"dce1b92c12422c24e840"
,
15
:
"7d0d73ce8d6fd16321e6"
,
16
:
"f483f95dbac654c7de5a"
,
17
:
"ff6edf624b982c354977"
,
18
:
"3af99626b95ca7fa51ab"
,
19
:
"d7d09ae4564d64842009"
,
20
:
"455fd80bd8af15457c57"
,
21
:
"c1b5e15e28768af52654"
,
22
:
"2a873e819c6c369d5cd1"
,
23
:
"d2380bf3c276e741313b"
,
24
:
"56085041ae784faf3c32"
,
25
:
"e23f42a6b2180b63c129"
,
26
:
"606394f2e20eb1a455fa"
,
27
:
"4a1c52078d154a141023"
,
28
:
"70cb3f87bd69723dbd41"
,
29
:
"c5bb15e8e1bd17cdc0f7"
,
30
:
"b5b324cb1a4e5fe6a395"
,
31
:
"20f69d688df3827843c5"
,
32
:
"0c7863fa05e5c75053c3"
,
33
:
"f4e32fc6846aa744ee48"
,
34
:
"0fb2eb67d47b9ecbd519"
,
35
:
"e64c33855b455bcdd9a2"
,
36
:
"7b2e2fedc166438ee6b0"
,
37
:
"8dc3e1f0f3e416135406"
,
38
:
"9f4a46d2ce3c9477a06b"
,
39
:
"b33ea830129fb895dd77"
,
40
:
"b0211e85af913b5307f8"
,
41
:
"17121c9227dddf24b37d"
,
42
:
"54f2f4850c109391114a"
,
43
:
"fb46c0bad10552e7ef89"
,
44
:
"3d32c7e1954754671303"
,
45
:
"c0accd45711184d0044d"
,
46
:
"785c8076b8d217da747e"
,
47
:
"b477848570e876912bdb"
,
48
:
"32a6d29de6b93cd9201c"
,
49
:
"1a7182d9cdf2e08ff7f0"
,
50
:
"4235ecfe09e1fc4e1ca4"
,
51
:
"2f363aaad04264e9f159"
,
52
:
"d56e883ddcbef7c6b221"
,
53
:
"ec91f2b143d0b1e708b5"
,
54
:
"31eed9c38748896262d1"
,
55
:
"4f96191ae2c44c6f18f7"
,
56
:
"99063bd3b07926595af4"
,
57
:
"ba6530916d934b70d218"
,
58
:
"2241679269f18e7f14c3"
,
59
:
"5c336f6f4d119300c1d8"
,
60
:
"d43c13d5c29feb45e864"
,
61
:
"0806aac37bd2b86e8bc2"
,
62
:
"8ef5c75f77376ecd8873"
,
63
:
"bbe4da77ef31a0aa9150"
,
64
:
"f26939887c305ec6f7fc"
,
65
:
"069ccaf5f8e5b5f3c59d"
,
66
:
"5f0382c9cb76b57ba778"
,
67
:
"745b9621e5297c575b33"
,
68
:
"aaaa125fb978b59c2cbf"
,
69
:
"bb6a8bab41cac9f11bd4"
,
70
:
"a226d330de7ebb2a4c5f"
,
71
:
"9551ae81326c57064dec"
,
72
:
"cb1b3985b92be4556fc1"
,
73
:
"b6b1fb51b601c0fafcda"
,
74
:
"6206c00744e77bc84fec"
,
75
:
"93eb5a61daaa3a1df425"
,
76
:
"78e5a422e9fecbbd255a"
,
77
:
"b3f7cf4d2b54d306c522"
,
78
:
"1fc3472c5f95a0a66979"
,
79
:
"69811ba75d1fceae9737"
,
80
:
"12442b543aff65f2c05d"
,
81
:
"00a94b58ac2affb758dc"
,
82
:
"1fa56152d6bdcfd4ec14"
,
83
:
"976088a6ee120b8caa17"
,
84
:
"45dae077c86a1a0050ff"
,
85
:
"0c7635a15cceae31d981"
,
86
:
"d0d0607a424156f2d88d"
,
87
:
"aee44c25b8d252c44b6e"
,
88
:
"6583c4b0dc7a8f908fa2"
,
89
:
"8d513b9c9d7970a612c0"
,
90
:
"57319965505945b3ae7e"
,
91
:
"446342439ce97b19c84f"
,
92
:
"09a5823b00d6180576b9"
,
93
:
"e801fdd8bbd27a68d8ee"
,
94
:
"c50da77d4e1d5a44b971"
,
95
:
"04507f6fadd31b01a746"
,
96
:
"d4a4beef007fa347bd93"
,
97
:
"8b0f08b3974b32d7bc2a"
,
98
:
"69c8efc82743796dc255"
,
99
:
"58cc1884c4f80303999a"
,
102
:
"2629d20834840d0da10e"
}[
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
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
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
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
d
=
{
103
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
d
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
d
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
d
[
e
]
=
[
a
,
f
]});
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
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"2baca21202cf454cd7b0"
,
1
:
"fe9dec1f31b04053fd7e"
,
2
:
"54aabab28c7735d34c10"
,
3
:
"b7e6d57d97174b75b050"
,
4
:
"11254d7e3a102121b8ec"
,
5
:
"b5e24a58d047a2ec70f5"
,
6
:
"124ad8222f7b043b44ae"
,
7
:
"ebad93a8c5bffffd9e98"
,
8
:
"f1c9fb5c9212483138d8"
,
9
:
"b5aae16b3951516573ad"
,
10
:
"ebbed2d956a1376f014a"
,
11
:
"59c7813cc972f62b1d18"
,
12
:
"879536ae7ce46f0c54ec"
,
13
:
"57e51fc1b6342003f25d"
,
14
:
"dce1b92c12422c24e840"
,
15
:
"7d0d73ce8d6fd16321e6"
,
16
:
"f483f95dbac654c7de5a"
,
17
:
"ff6edf624b982c354977"
,
18
:
"d50ec99b96f7acbb4d42"
,
19
:
"d7d09ae4564d64842009"
,
20
:
"455fd80bd8af15457c57"
,
21
:
"c1b5e15e28768af52654"
,
22
:
"2a873e819c6c369d5cd1"
,
23
:
"d2380bf3c276e741313b"
,
24
:
"56085041ae784faf3c32"
,
25
:
"e23f42a6b2180b63c129"
,
26
:
"606394f2e20eb1a455fa"
,
27
:
"4a1c52078d154a141023"
,
28
:
"70cb3f87bd69723dbd41"
,
29
:
"c5bb15e8e1bd17cdc0f7"
,
30
:
"b5b324cb1a4e5fe6a395"
,
31
:
"20f69d688df3827843c5"
,
32
:
"0c7863fa05e5c75053c3"
,
33
:
"f4e32fc6846aa744ee48"
,
34
:
"0fb2eb67d47b9ecbd519"
,
35
:
"e64c33855b455bcdd9a2"
,
36
:
"7b2e2fedc166438ee6b0"
,
37
:
"8dc3e1f0f3e416135406"
,
38
:
"9f4a46d2ce3c9477a06b"
,
39
:
"b33ea830129fb895dd77"
,
40
:
"b0211e85af913b5307f8"
,
41
:
"17121c9227dddf24b37d"
,
42
:
"54f2f4850c109391114a"
,
43
:
"fb46c0bad10552e7ef89"
,
44
:
"3d32c7e1954754671303"
,
45
:
"c0accd45711184d0044d"
,
46
:
"785c8076b8d217da747e"
,
47
:
"b477848570e876912bdb"
,
48
:
"32a6d29de6b93cd9201c"
,
49
:
"1a7182d9cdf2e08ff7f0"
,
50
:
"4235ecfe09e1fc4e1ca4"
,
51
:
"2f363aaad04264e9f159"
,
52
:
"d56e883ddcbef7c6b221"
,
53
:
"ec91f2b143d0b1e708b5"
,
54
:
"31eed9c38748896262d1"
,
55
:
"4f96191ae2c44c6f18f7"
,
56
:
"99063bd3b07926595af4"
,
57
:
"ba6530916d934b70d218"
,
58
:
"2241679269f18e7f14c3"
,
59
:
"5c336f6f4d119300c1d8"
,
60
:
"d43c13d5c29feb45e864"
,
61
:
"0806aac37bd2b86e8bc2"
,
62
:
"8ef5c75f77376ecd8873"
,
63
:
"bbe4da77ef31a0aa9150"
,
64
:
"f26939887c305ec6f7fc"
,
65
:
"069ccaf5f8e5b5f3c59d"
,
66
:
"5f0382c9cb76b57ba778"
,
67
:
"745b9621e5297c575b33"
,
68
:
"aaaa125fb978b59c2cbf"
,
69
:
"bb6a8bab41cac9f11bd4"
,
70
:
"a226d330de7ebb2a4c5f"
,
71
:
"9551ae81326c57064dec"
,
72
:
"cb1b3985b92be4556fc1"
,
73
:
"b6b1fb51b601c0fafcda"
,
74
:
"6206c00744e77bc84fec"
,
75
:
"93eb5a61daaa3a1df425"
,
76
:
"78e5a422e9fecbbd255a"
,
77
:
"b3f7cf4d2b54d306c522"
,
78
:
"1fc3472c5f95a0a66979"
,
79
:
"69811ba75d1fceae9737"
,
80
:
"12442b543aff65f2c05d"
,
81
:
"00a94b58ac2affb758dc"
,
82
:
"1fa56152d6bdcfd4ec14"
,
83
:
"976088a6ee120b8caa17"
,
84
:
"45dae077c86a1a0050ff"
,
85
:
"0c7635a15cceae31d981"
,
86
:
"d0d0607a424156f2d88d"
,
87
:
"aee44c25b8d252c44b6e"
,
88
:
"6583c4b0dc7a8f908fa2"
,
89
:
"8d513b9c9d7970a612c0"
,
90
:
"57319965505945b3ae7e"
,
91
:
"446342439ce97b19c84f"
,
92
:
"09a5823b00d6180576b9"
,
93
:
"e801fdd8bbd27a68d8ee"
,
94
:
"c50da77d4e1d5a44b971"
,
95
:
"04507f6fadd31b01a746"
,
96
:
"d4a4beef007fa347bd93"
,
97
:
"8b0f08b3974b32d7bc2a"
,
98
:
"69c8efc82743796dc255"
,
99
:
"58cc1884c4f80303999a"
,
102
:
"2629d20834840d0da10e"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
d
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
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
\ No newline at end of file
src/components/mult-upload-img.vue
View file @
f1ac073f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2018-12-06 13:44:22
* @Date: 2018-12-06 13:44:22
* @LastEditors : 无尘
* @LastEditors : 无尘
* @LastEditTime : 2019-12-25 14:5
3:11
* @LastEditTime : 2019-12-25 14:5
5:35
-->
-->
<!--
<!--
多个上传组件
多个上传组件
...
@@ -249,7 +249,7 @@ export default {
...
@@ -249,7 +249,7 @@ export default {
// 删除图片
// 删除图片
deleteImage
(
i
)
{
deleteImage
(
i
)
{
/* eslint-disable */
/* eslint-disable */
cons
ole
.
log
(
that
.
disabled
)
cons
t
that
=
this
;
if
(
that
.
disabled
)
{
if
(
that
.
disabled
)
{
return
false
;
return
false
;
}
}
...
...
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