Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
haoban-3
Commits
4d475f70
Commit
4d475f70
authored
Nov 23, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改接口
parent
2b8269c8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
11 deletions
+34
-11
index.html
dist/index.html
+2
-2
15.c64184a686069b03b651.js
dist/static/js/15.c64184a686069b03b651.js
+2
-2
manifest.a7e08f7edcc737f89761.js
dist/static/js/manifest.a7e08f7edcc737f89761.js
+2
-2
enterpriseSet.vue
src/views/enterprise/enterpriseSet.vue
+28
-5
No files found.
dist/index.html
View file @
4d475f70
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.c85fa8f746d40fdeb56240fc035dae01.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><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
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.0d2d646a89823820b81d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.c9b2df17ceb0429de99c.js
></script><script
type=
text/javascript
src=
./static/js/app.3b7a0f97a46338a97901.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.c85fa8f746d40fdeb56240fc035dae01.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><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
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.a7e08f7edcc737f89761.js
></script><script
type=
text/javascript
src=
./static/js/vendor.c9b2df17ceb0429de99c.js
></script><script
type=
text/javascript
src=
./static/js/app.3b7a0f97a46338a97901.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/js/15.
3ae840fa1929846688ff
.js
→
dist/static/js/15.
c64184a686069b03b651
.js
View file @
4d475f70
webpackJsonp
([
15
],{
"2wsI"
:
function
(
t
,
e
){},
PL8n
:
function
(
t
,
e
){},
fWmz
:
function
(
t
,
e
){},
feRM
:
function
(
t
,
e
,
a
){
"use strict"
;
var
s
=
a
(
"//Fk"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Ch4/"
),
n
=
{
name
:
"single-upload"
,
props
:{
videoSrc
:{
type
:
String
,
default
:
""
},
imgSrc
:{
type
:
String
,
default
:
""
},
field
:{
type
:
String
,
default
:
""
},
uploadLimit
:{
type
:[
Number
,
String
],
default
:
2
},
uploadType
:{
type
:[
Number
,
String
],
default
:
1
}},
data
:
function
(){
return
{
projectName
:
""
,
imgShowFlag
:
!
1
,
imgUrl
:
""
,
videoFlag
:
!
1
,
fileType
:
1
==
this
.
uploadType
||
2
==
this
.
uploadType
?
"jpg"
:
"mp4"
}},
beforeMount
:
function
(){
var
t
=
window
.
location
.
origin
;
-
1
!=
t
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
t
},
methods
:{
uploadUrl
:
function
(){
var
t
=
window
.
location
.
origin
,
e
=
void
0
;
return
e
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
t
,
this
.
upUrl
=
e
+
"/haoban-manage3-web/upload-file?fileType="
+
this
.
fileType
,
this
.
upUrl
},
handleAvatarSuccess
:
function
(
t
,
e
,
a
){
1
==
t
.
errorCode
?(
this
.
videoFlag
=!
1
,
3
==
this
.
uploadType
?
this
.
$emit
(
"update:videoSrc"
,
t
.
result
.
url
):
this
.
$emit
(
"update:imgSrc"
,
t
.
result
.
url
)):
o
.
a
.
errorMsg
(
t
)},
beforeAvatarUpload
:
function
(
t
){
console
.
log
(
t
),
this
.
fileType
=
"image/jpeg"
===
t
.
type
?
"jpeg"
:
"image/jpg"
===
t
.
type
?
"jpg"
:
"image/png"
===
t
.
type
?
"png"
:
"video/mp4"
==
t
.
type
?
"mp4"
:
""
;
var
e
=
"image/jpeg"
===
t
.
type
||
"image/jpg"
===
t
.
type
||
"image/png"
===
t
.
type
,
a
=
"video/mp4"
==
t
.
type
,
s
=
t
.
size
/
1024
/
1024
<
this
.
uploadLimit
;
return
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
e
||
this
.
$message
.
error
(
"上传图片支持png、jpg、jpeg格式!"
),
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传图片大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
!=
this
.
uploadType
||
a
||
this
.
$message
.
error
(
"上传视频支持MP4格式!"
),
3
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传视频大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
==
this
.
uploadType
?
a
&&
s
:
e
&&
s
&&
new
r
.
a
(
function
(
e
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
t
){
var
a
=
new
Image
;
a
.
onload
=
function
(){
this
.
width
,
this
.
height
;
e
()},
a
.
src
=
t
.
target
.
result
},
s
.
readAsDataURL
(
t
)})},
showImage
:
function
(
t
){
if
(
!
t
||
""
==
t
)
return
!
1
;
this
.
imgShowFlag
=!
0
,
this
.
imgUrl
=
t
},
hideImage
:
function
(
t
){
this
.
imgShowFlag
=
t
}}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"single-upload-wrap"
},[
a
(
"el-upload"
,{
staticClass
:
"avatar-uploader"
,
attrs
:{
action
:
t
.
uploadUrl
(),
"show-file-list"
:
!
1
,
"on-success"
:
t
.
handleAvatarSuccess
,
"before-upload"
:
t
.
beforeAvatarUpload
}},[
t
.
imgSrc
?
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
imgSrc
},
on
:{
mouseover
:
function
(
e
){
t
.
showImage
(
t
.
imgSrc
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
""
!=
t
.
videoSrc
&&
0
==
t
.
videoFlag
?
a
(
"video"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
videoSrc
}},[
t
.
_v
(
"您的浏览器不支持视频播放"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
imgSrc
||
t
.
videoSrc
?
t
.
_e
():
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-plus avatar-uploader-icon"
}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-606266"
},[
t
.
_v
(
t
.
_s
(
1
==
t
.
uploadType
||
2
==
t
.
uploadType
?
"上传图片"
:
"上传视频"
))])])]),
t
.
_v
(
" "
),
1
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效
\
n "
)]):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
t
){
a
(
"fWmz"
)},
"data-v-79a9100a"
,
null
);
e
.
a
=
c
.
exports
},
x5Fx
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"c9no"
),
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"fZjL"
),
i
=
a
.
n
(
n
),
c
=
a
(
"feRM"
),
l
=
a
(
"l46T"
),
p
=
a
(
"Kkt8"
),
d
=
a
(
"PI0u"
),
u
=
a
(
"P9l9"
),
m
=
a
(
"3E4D"
),
f
=
a
(
"Ch4/"
),
h
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
l
.
a
,
limitTextarea
:
p
.
a
,
singleUpload
:
c
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
secretName
:
""
,
secretVal
:
""
,
enterpriseId
:
""
,
secretId
:
""
,
enterpriseName
:
""
},
rules
:{
secretName
:[{
required
:
!
0
,
message
:
"请输入小程序名称"
,
trigger
:
"blur"
}],
secretVal
:[{
required
:
!
0
,
message
:
"请输入secret"
,
trigger
:
"blur"
}],
enterpriseId
:[{
required
:
!
0
,
message
:
"请选择关联商户"
,
trigger
:
"change"
}]},
brandOptions
:[]}},
methods
:{
getBrandData
:
function
(){
var
t
=
this
;
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
t
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toCancel
:
function
(){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
t
){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
secretId
:
t
.
ruleForm
.
secretId
,
secretName
:
t
.
ruleForm
.
secretName
,
enterpriseId
:
t
.
ruleForm
.
enterpriseId
,
memberSecret
:
t
.
ruleForm
.
secretVal
};
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-member-secret-set"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitText"
)):(
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitText"
),
f
.
a
.
errorMsg
(
a
))}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
t
){
var
e
=
this
;
i
()(
t
).
length
&&
e
.
$nextTick
(
function
(){
e
.
ruleForm
=
JSON
.
parse
(
o
()(
t
))})}},
mounted
:
function
(){
var
t
=
this
;
t
.
getBrandData
(),
i
()(
t
.
editRow
).
length
&&
t
.
$nextTick
(
function
(){
t
.
ruleForm
=
JSON
.
parse
(
o
()(
t
.
editRow
))})}},
b
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
t
.
editRow
.
materialId
?
"编辑"
:
"新建"
,
visible
:
t
.
dialogVisible
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
ruleForm
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"小程序名称"
,
prop
:
"secretName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretName
,
holder
:
"请输入小程序名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"secret"
,
prop
:
"secretVal"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretVal
,
holder
:
"请输入secret"
,
getByType
:
"word"
,
maxLength
:
80
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretVal"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"关联商户"
,
prop
:
"enterpriseId"
}},[
a
(
"el-select"
,{
staticClass
:
"w-402"
,
attrs
:{
placeholder
:
"全部品牌"
},
model
:{
value
:
t
.
ruleForm
.
enterpriseId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"enterpriseId"
,
e
)},
expression
:
"ruleForm.enterpriseId"
}},
t
.
_l
(
t
.
brandOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
enterpriseId
,
staticClass
:
"mult-line-select"
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}},[
a
(
"p"
,{
staticClass
:
"line-20"
},[
t
.
_v
(
t
.
_s
(
e
.
enterpriseName
))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-20 font-12 color-909399"
},[
t
.
_v
(
t
.
_s
(
e
.
brandName
||
"--"
))])])}))],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
h
,
b
,
!
1
,
function
(
t
){
a
(
"PL8n"
)},
"data-v-40a5815e"
,
null
).
exports
,
g
=
{
props
:{},
data
:
function
(){
return
{
checkShow
:
!
0
,
tipText
:
"请在企业密钥维护中输入对应的secret"
,
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
companyObj
:{
smallVersion
:
""
,
corpName
:
""
,
corpid
:
""
,
contactFlag
:
!
1
,
verifiedEndTime
:
""
,
corpIndustry
:
""
,
corpSubIndustry
:
""
,
corpUserMax
:
""
,
location
:
""
},
wxObj
:{
secretType
:
1
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
contactObj
:{
secretType
:
2
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
haobanObj
:{
secretType
:
3
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
showWxError
:
!
1
,
showContactError
:
!
1
,
showHaobanError
:
!
1
,
tableData
:[],
addShow
:
!
1
,
editRow
:{}}},
computed
:{},
methods
:{
refeshDataWx
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
!
1
;
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
addSecret
:
function
(){
this
.
addShow
=!
0
,
this
.
editRow
=
{}},
toEdit
:
function
(
t
,
e
){
this
.
addShow
=!
0
,
this
.
editRow
=
e
},
closeText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{}},
submitText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{},
this
.
getSecretData
()},
toDel
:
function
(
t
,
e
){
var
a
=
this
;
a
.
$confirm
(
"确定删除当前小程序信息?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
t
,
e
)}).
catch
(
function
(){})},
postDel
:
function
(
t
,
e
){
var
a
=
this
,
s
=
{
secretId
:
e
.
secretId
};
Object
(
u
.
d
)(
"/haoban-manage3-web/member-secret-del"
,
s
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getSecretData
();
a
.
getSecretData
(),
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
saveSecret
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
{};
return
1
==
t
&&
(
e
.
wxSecretKey
=
String
(
this
.
wxObj
.
secretVal
).
trim
(),
this
.
showWxError
=!
this
.
wxObj
.
secretVal
),
2
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
contactObj
.
secretVal
).
trim
()),(
2
!=
t
||
""
!=
e
.
contactSecret
)
&&
(
3
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
haobanObj
.
secretVal
).
trim
(),
this
.
showHaobanError
=!
this
.
haobanObj
.
secretVal
),(
1
!=
t
||!
this
.
showWxError
)
&&
((
3
!=
t
||!
this
.
showHaobanError
)
&&
void
this
.
postSaveSecret
(
t
,
e
)))},
300
),
postSaveSecret
:
function
(
t
,
e
){
var
a
=
this
,
s
=
1
==
t
?
"/wx-enterprise-wx-secret-set"
:
2
==
t
?
"wx-enterprise-contact-secret-set"
:
"wx-enterprise-haoban-secret-set"
;
Object
(
u
.
d
)(
"/haoban-manage3-web/"
+
s
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
a
.
getSecretData
(),
!
1
;
a
.
getSecretData
(),
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
refeshData
:
function
(){
this
.
refreshData
()},
refreshData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
m
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getSecretData
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/secret-list"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
[],
a
.
result
&&
a
.
result
.
length
&&
a
.
result
.
forEach
(
function
(
e
){
1
==
e
.
secretType
&&
(
t
.
wxObj
=
e
),
2
==
e
.
secretType
&&
(
t
.
contactObj
=
e
),
3
==
e
.
secretType
&&
(
t
.
haobanObj
=
e
),
4
==
e
.
secretType
&&
t
.
tableData
.
push
(
e
)}),
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-detail"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTipData
:
function
(){
var
t
=
this
;
Object
(
u
.
a
)(
"/haoban-manage3-web/is-wx-enterprise-secret-set"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
t
.
checkShow
=
a
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
(),
this
.
getSecretData
(),
this
.
getTipData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
setTip
:
s
.
a
,
secretSet
:
v
}},
_
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
a
(
"div"
,{
staticClass
:
"company-set-content border-box"
},[
a
(
"div"
,{
staticClass
:
"company-title m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"line-h-32"
},[
a
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
t
.
_v
(
"企业微信基本信息"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
refeshData
}},[
t
.
_v
(
"同步刷新 "
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
checkShow
?
t
.
_e
():
a
(
"set-tip"
,{
attrs
:{
tipText
:
t
.
tipText
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"105px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业名称"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-r-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpName
))]),
t
.
_v
(
" "
),
a
(
"el-tag"
,[
t
.
_v
(
" "
+
t
.
_s
(
1
==
t
.
companyObj
.
contactFlag
?
"已认证"
:
"未认证"
))]),
1
==
t
.
companyObj
.
contactFlag
?
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
t
.
_v
(
"认证到期 "
+
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
t
.
companyObj
.
verifiedEndTime
)))]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业ID"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpid
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"行业类型"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpIndustry
)
+
" / "
+
t
.
_s
(
t
.
companyObj
.
corpSubIndustry
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人员规模"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpScale
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"地址"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
location
))])])],
1
)],
1
),
t
.
_v
(
" "
),
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body secret-body"
},[
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"客户联系secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
t
.
wxObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
wxObj
,
"secretVal"
,
e
)},
expression
:
"wxObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"1"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
wxObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
wxObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
wxObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
wxObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showWxError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写客户联系 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
placement
:
"top-start"
}},[
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
t
.
_v
(
"企业微信中通讯录同步若更新secret,请复制后更新至此处。"
),
a
(
"br"
),
t
.
_v
(
"因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"
),
a
(
"br"
),
t
.
_v
(
"若发生相关变更,与企业微信无关,特此告知!"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"通讯录secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"非必填"
},
model
:{
value
:
t
.
contactObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
contactObj
,
"secretVal"
,
e
)},
expression
:
"contactObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"2"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
contactObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
contactObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
contactObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
contactObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"用于获取登录小程序用户的手机号/姓名/部门信息"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"好办助手secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
t
.
haobanObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
haobanObj
,
"secretVal"
,
e
)},
expression
:
"haobanObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"3"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
haobanObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
haobanObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
haobanObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
haobanObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showHaobanError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写好办助手 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"secret-cell m-b-20"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"会员小程序secret:"
)])]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"p-l-5 font-14 color-303133 font-w-500"
},[
t
.
_v
(
"会员小程序信息"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-cell m-t-10 p-l-137"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"no-empty-icon-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"小程序名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"secret"
,
width
:
"506"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretVal
||
"-- "
)
+
" "
)]),
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
row
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"关联商户"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
enterpriseName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"最近编辑时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
updateTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
updateTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toEdit
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toDel
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
tableData
.
length
<
10
?
a
(
"div"
,{
staticClass
:
"text-center add-cell cursor-pointer"
,
on
:{
click
:
t
.
addSecret
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-14 color-2f54eb add-cell-txt"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-2f54eb p-l-5 add-cell-txt"
},[
t
.
_v
(
"新建"
)]),
a
(
"span"
,{
staticClass
:
"font-12 color-c0c4cc p-l-20"
},[
t
.
_v
(
"最多添加10个"
)])]):
t
.
_e
()],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-h-32 m-b-20"
},[
a
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
t
.
_v
(
"企微好友"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
refeshDataWx
}},[
t
.
_v
(
"同步刷新 "
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-form"
,{
ref
:
"wxForm"
,
attrs
:{
"label-width"
:
"115px"
}},[
a
(
"el-form-item"
,[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
slot
:
"label"
,
effect
:
"dark"
,
placement
:
"top-start"
},
slot
:
"label"
},[
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
t
.
_v
(
"刷新企业里关联导购账号的导购添加的客户。每天最多1次,每月最多3次。"
),
a
(
"br"
),
t
.
_v
(
"仅刷新好办关联导购的企业好友数据,所以会小于等于企业微信看到的客户总数。"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"企微好友更新"
)])]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"更新时间:"
+
t
.
_s
(
t
.
companyObj
.
smallVersion
?
""
:
"--"
))])],
1
)],
1
)],
1
)]),
t
.
_v
(
" "
),
t
.
addShow
?
a
(
"secret-set"
,{
attrs
:{
editRow
:
t
.
editRow
},
on
:{
closeText
:
t
.
closeText
,
submitText
:
t
.
submitText
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"company-title m-b-20 m-t-30"
},[
e
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
this
.
_v
(
"客户密钥维护"
)])])}]};
var
w
=
a
(
"VU/8"
)(
g
,
_
,
!
1
,
function
(
t
){
a
(
"2wsI"
)},
"data-v-4b871471"
,
null
);
e
.
default
=
w
.
exports
}});
webpackJsonp
([
15
],{
"2wsI"
:
function
(
t
,
e
){},
PL8n
:
function
(
t
,
e
){},
fWmz
:
function
(
t
,
e
){},
feRM
:
function
(
t
,
e
,
a
){
"use strict"
;
var
s
=
a
(
"//Fk"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Ch4/"
),
n
=
{
name
:
"single-upload"
,
props
:{
videoSrc
:{
type
:
String
,
default
:
""
},
imgSrc
:{
type
:
String
,
default
:
""
},
field
:{
type
:
String
,
default
:
""
},
uploadLimit
:{
type
:[
Number
,
String
],
default
:
2
},
uploadType
:{
type
:[
Number
,
String
],
default
:
1
}},
data
:
function
(){
return
{
projectName
:
""
,
imgShowFlag
:
!
1
,
imgUrl
:
""
,
videoFlag
:
!
1
,
fileType
:
1
==
this
.
uploadType
||
2
==
this
.
uploadType
?
"jpg"
:
"mp4"
}},
beforeMount
:
function
(){
var
t
=
window
.
location
.
origin
;
-
1
!=
t
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
t
},
methods
:{
uploadUrl
:
function
(){
var
t
=
window
.
location
.
origin
,
e
=
void
0
;
return
e
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
t
,
this
.
upUrl
=
e
+
"/haoban-manage3-web/upload-file?fileType="
+
this
.
fileType
,
this
.
upUrl
},
handleAvatarSuccess
:
function
(
t
,
e
,
a
){
1
==
t
.
errorCode
?(
this
.
videoFlag
=!
1
,
3
==
this
.
uploadType
?
this
.
$emit
(
"update:videoSrc"
,
t
.
result
.
url
):
this
.
$emit
(
"update:imgSrc"
,
t
.
result
.
url
)):
o
.
a
.
errorMsg
(
t
)},
beforeAvatarUpload
:
function
(
t
){
console
.
log
(
t
),
this
.
fileType
=
"image/jpeg"
===
t
.
type
?
"jpeg"
:
"image/jpg"
===
t
.
type
?
"jpg"
:
"image/png"
===
t
.
type
?
"png"
:
"video/mp4"
==
t
.
type
?
"mp4"
:
""
;
var
e
=
"image/jpeg"
===
t
.
type
||
"image/jpg"
===
t
.
type
||
"image/png"
===
t
.
type
,
a
=
"video/mp4"
==
t
.
type
,
s
=
t
.
size
/
1024
/
1024
<
this
.
uploadLimit
;
return
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
e
||
this
.
$message
.
error
(
"上传图片支持png、jpg、jpeg格式!"
),
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传图片大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
!=
this
.
uploadType
||
a
||
this
.
$message
.
error
(
"上传视频支持MP4格式!"
),
3
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传视频大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
==
this
.
uploadType
?
a
&&
s
:
e
&&
s
&&
new
r
.
a
(
function
(
e
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
t
){
var
a
=
new
Image
;
a
.
onload
=
function
(){
this
.
width
,
this
.
height
;
e
()},
a
.
src
=
t
.
target
.
result
},
s
.
readAsDataURL
(
t
)})},
showImage
:
function
(
t
){
if
(
!
t
||
""
==
t
)
return
!
1
;
this
.
imgShowFlag
=!
0
,
this
.
imgUrl
=
t
},
hideImage
:
function
(
t
){
this
.
imgShowFlag
=
t
}}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"single-upload-wrap"
},[
a
(
"el-upload"
,{
staticClass
:
"avatar-uploader"
,
attrs
:{
action
:
t
.
uploadUrl
(),
"show-file-list"
:
!
1
,
"on-success"
:
t
.
handleAvatarSuccess
,
"before-upload"
:
t
.
beforeAvatarUpload
}},[
t
.
imgSrc
?
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
imgSrc
},
on
:{
mouseover
:
function
(
e
){
t
.
showImage
(
t
.
imgSrc
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
""
!=
t
.
videoSrc
&&
0
==
t
.
videoFlag
?
a
(
"video"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
videoSrc
}},[
t
.
_v
(
"您的浏览器不支持视频播放"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
imgSrc
||
t
.
videoSrc
?
t
.
_e
():
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-plus avatar-uploader-icon"
}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-606266"
},[
t
.
_v
(
t
.
_s
(
1
==
t
.
uploadType
||
2
==
t
.
uploadType
?
"上传图片"
:
"上传视频"
))])])]),
t
.
_v
(
" "
),
1
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效
\
n "
)]):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
t
){
a
(
"fWmz"
)},
"data-v-79a9100a"
,
null
);
e
.
a
=
c
.
exports
},
x5Fx
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"c9no"
),
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"fZjL"
),
i
=
a
.
n
(
n
),
c
=
a
(
"feRM"
),
l
=
a
(
"l46T"
),
p
=
a
(
"Kkt8"
),
d
=
a
(
"PI0u"
),
u
=
a
(
"P9l9"
),
m
=
a
(
"3E4D"
),
f
=
a
(
"Ch4/"
),
h
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
l
.
a
,
limitTextarea
:
p
.
a
,
singleUpload
:
c
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
secretName
:
""
,
secretVal
:
""
,
enterpriseId
:
""
,
secretId
:
""
,
enterpriseName
:
""
},
rules
:{
secretName
:[{
required
:
!
0
,
message
:
"请输入小程序名称"
,
trigger
:
"blur"
}],
secretVal
:[{
required
:
!
0
,
message
:
"请输入secret"
,
trigger
:
"blur"
}],
enterpriseId
:[{
required
:
!
0
,
message
:
"请选择关联商户"
,
trigger
:
"change"
}]},
brandOptions
:[]}},
methods
:{
getBrandData
:
function
(){
var
t
=
this
;
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
t
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toCancel
:
function
(){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
t
){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
secretId
:
t
.
ruleForm
.
secretId
,
secretName
:
t
.
ruleForm
.
secretName
,
enterpriseId
:
t
.
ruleForm
.
enterpriseId
,
memberSecret
:
t
.
ruleForm
.
secretVal
};
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-member-secret-set"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitText"
)):(
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitText"
),
f
.
a
.
errorMsg
(
a
))}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
t
){
var
e
=
this
;
i
()(
t
).
length
&&
e
.
$nextTick
(
function
(){
e
.
ruleForm
=
JSON
.
parse
(
o
()(
t
))})}},
mounted
:
function
(){
var
t
=
this
;
t
.
getBrandData
(),
i
()(
t
.
editRow
).
length
&&
t
.
$nextTick
(
function
(){
t
.
ruleForm
=
JSON
.
parse
(
o
()(
t
.
editRow
))})}},
b
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
t
.
editRow
.
materialId
?
"编辑"
:
"新建"
,
visible
:
t
.
dialogVisible
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
ruleForm
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"小程序名称"
,
prop
:
"secretName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretName
,
holder
:
"请输入小程序名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"secret"
,
prop
:
"secretVal"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretVal
,
holder
:
"请输入secret"
,
getByType
:
"word"
,
maxLength
:
80
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretVal"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"关联商户"
,
prop
:
"enterpriseId"
}},[
a
(
"el-select"
,{
staticClass
:
"w-402"
,
attrs
:{
placeholder
:
"全部品牌"
},
model
:{
value
:
t
.
ruleForm
.
enterpriseId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"enterpriseId"
,
e
)},
expression
:
"ruleForm.enterpriseId"
}},
t
.
_l
(
t
.
brandOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
enterpriseId
,
staticClass
:
"mult-line-select"
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}},[
a
(
"p"
,{
staticClass
:
"line-20"
},[
t
.
_v
(
t
.
_s
(
e
.
enterpriseName
))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-20 font-12 color-909399"
},[
t
.
_v
(
t
.
_s
(
e
.
brandName
||
"--"
))])])}))],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
h
,
b
,
!
1
,
function
(
t
){
a
(
"PL8n"
)},
"data-v-40a5815e"
,
null
).
exports
,
v
=
{
props
:{},
data
:
function
(){
return
{
checkShow
:
!
0
,
tipText
:
"请在企业密钥维护中输入对应的secret"
,
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
companyObj
:{
smallVersion
:
""
,
corpName
:
""
,
corpid
:
""
,
contactFlag
:
!
1
,
verifiedEndTime
:
""
,
corpIndustry
:
""
,
corpSubIndustry
:
""
,
corpUserMax
:
""
,
location
:
""
},
wxObj
:{
secretType
:
1
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
contactObj
:{
secretType
:
2
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
haobanObj
:{
secretType
:
3
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
showWxError
:
!
1
,
showContactError
:
!
1
,
showHaobanError
:
!
1
,
tableData
:[],
addShow
:
!
1
,
editRow
:{},
wxDate
:
""
}},
computed
:{},
methods
:{
refeshDataWx
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/fresh-wx-friend"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
!
1
;
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getRefreshTime
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/get-fresh-detail"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
wxDate
=
a
.
result
||
""
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
addSecret
:
function
(){
this
.
addShow
=!
0
,
this
.
editRow
=
{}},
toEdit
:
function
(
t
,
e
){
this
.
addShow
=!
0
,
this
.
editRow
=
e
},
closeText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{}},
submitText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{},
this
.
getSecretData
()},
toDel
:
function
(
t
,
e
){
var
a
=
this
;
a
.
$confirm
(
"确定删除当前小程序信息?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
t
,
e
)}).
catch
(
function
(){})},
postDel
:
function
(
t
,
e
){
var
a
=
this
,
s
=
{
secretId
:
e
.
secretId
};
Object
(
u
.
d
)(
"/haoban-manage3-web/member-secret-del"
,
s
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getSecretData
();
a
.
getSecretData
(),
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
saveSecret
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
{};
return
1
==
t
&&
(
e
.
wxSecretKey
=
String
(
this
.
wxObj
.
secretVal
).
trim
(),
this
.
showWxError
=!
this
.
wxObj
.
secretVal
),
2
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
contactObj
.
secretVal
).
trim
()),(
2
!=
t
||
""
!=
e
.
contactSecret
)
&&
(
3
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
haobanObj
.
secretVal
).
trim
(),
this
.
showHaobanError
=!
this
.
haobanObj
.
secretVal
),(
1
!=
t
||!
this
.
showWxError
)
&&
((
3
!=
t
||!
this
.
showHaobanError
)
&&
void
this
.
postSaveSecret
(
t
,
e
)))},
300
),
postSaveSecret
:
function
(
t
,
e
){
var
a
=
this
,
s
=
1
==
t
?
"/wx-enterprise-wx-secret-set"
:
2
==
t
?
"wx-enterprise-contact-secret-set"
:
"wx-enterprise-haoban-secret-set"
;
Object
(
u
.
d
)(
"/haoban-manage3-web/"
+
s
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
a
.
getSecretData
(),
!
1
;
a
.
getSecretData
(),
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
refeshData
:
function
(){
this
.
refreshData
()},
refreshData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
m
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getSecretData
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/secret-list"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
[],
a
.
result
&&
a
.
result
.
length
&&
a
.
result
.
forEach
(
function
(
e
){
1
==
e
.
secretType
&&
(
t
.
wxObj
=
e
),
2
==
e
.
secretType
&&
(
t
.
contactObj
=
e
),
3
==
e
.
secretType
&&
(
t
.
haobanObj
=
e
),
4
==
e
.
secretType
&&
t
.
tableData
.
push
(
e
)}),
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-detail"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTipData
:
function
(){
var
t
=
this
;
Object
(
u
.
a
)(
"/haoban-manage3-web/is-wx-enterprise-secret-set"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
t
.
checkShow
=
a
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
(),
this
.
getSecretData
(),
this
.
getTipData
(),
this
.
getRefreshTime
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
setTip
:
s
.
a
,
secretSet
:
g
}},
_
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
a
(
"div"
,{
staticClass
:
"company-set-content border-box"
},[
a
(
"div"
,{
staticClass
:
"company-title m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"line-h-32"
},[
a
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
t
.
_v
(
"企业微信基本信息"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
refeshData
}},[
t
.
_v
(
"同步刷新 "
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
checkShow
?
t
.
_e
():
a
(
"set-tip"
,{
attrs
:{
tipText
:
t
.
tipText
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"105px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业名称"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-r-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpName
))]),
t
.
_v
(
" "
),
a
(
"el-tag"
,[
t
.
_v
(
" "
+
t
.
_s
(
1
==
t
.
companyObj
.
contactFlag
?
"已认证"
:
"未认证"
))]),
1
==
t
.
companyObj
.
contactFlag
?
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
t
.
_v
(
"认证到期 "
+
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
t
.
companyObj
.
verifiedEndTime
)))]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业ID"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpid
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"行业类型"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpIndustry
)
+
" / "
+
t
.
_s
(
t
.
companyObj
.
corpSubIndustry
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人员规模"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpScale
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"地址"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
location
))])])],
1
)],
1
),
t
.
_v
(
" "
),
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body secret-body"
},[
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"客户联系secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
t
.
wxObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
wxObj
,
"secretVal"
,
e
)},
expression
:
"wxObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"1"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
wxObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
wxObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
wxObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
wxObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showWxError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写客户联系 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
placement
:
"top-start"
}},[
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
t
.
_v
(
"企业微信中通讯录同步若更新secret,请复制后更新至此处。"
),
a
(
"br"
),
t
.
_v
(
"因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"
),
a
(
"br"
),
t
.
_v
(
"若发生相关变更,与企业微信无关,特此告知!"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"通讯录secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"非必填"
},
model
:{
value
:
t
.
contactObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
contactObj
,
"secretVal"
,
e
)},
expression
:
"contactObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"2"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
contactObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
contactObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
contactObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
contactObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"用于获取登录小程序用户的手机号/姓名/部门信息"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"好办助手secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
t
.
haobanObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
haobanObj
,
"secretVal"
,
e
)},
expression
:
"haobanObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"3"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
haobanObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
haobanObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
haobanObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
haobanObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showHaobanError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写好办助手 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"secret-cell m-b-20"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"会员小程序secret:"
)])]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"p-l-5 font-14 color-303133 font-w-500"
},[
t
.
_v
(
"会员小程序信息"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-cell m-t-10 p-l-137"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"no-empty-icon-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"小程序名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"secret"
,
width
:
"506"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretVal
||
"-- "
)
+
" "
)]),
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
row
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"关联商户"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
enterpriseName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"最近编辑时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
updateTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
updateTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toEdit
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toDel
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
tableData
.
length
<
10
?
a
(
"div"
,{
staticClass
:
"text-center add-cell cursor-pointer"
,
on
:{
click
:
t
.
addSecret
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-14 color-2f54eb add-cell-txt"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-2f54eb p-l-5 add-cell-txt"
},[
t
.
_v
(
"新建"
)]),
a
(
"span"
,{
staticClass
:
"font-12 color-c0c4cc p-l-20"
},[
t
.
_v
(
"最多添加10个"
)])]):
t
.
_e
()],
1
)],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-h-32 m-b-20"
},[
a
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
t
.
_v
(
"企微好友"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
refeshDataWx
}},[
t
.
_v
(
"同步刷新 "
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-form"
,{
ref
:
"wxForm"
,
attrs
:{
"label-width"
:
"115px"
}},[
a
(
"el-form-item"
,[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
slot
:
"label"
,
effect
:
"dark"
,
placement
:
"top-start"
},
slot
:
"label"
},[
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
t
.
_v
(
"刷新企业里关联导购账号的导购添加的客户。每天最多1次,每月最多3次。"
),
a
(
"br"
),
t
.
_v
(
"仅刷新好办关联导购的企业好友数据,所以会小于等于企业微信看到的客户总数。"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"企微好友更新"
)])]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"更新时间:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
wxDate
))
+
t
.
_s
(
t
.
wxDate
?
""
:
"--"
))])],
1
)],
1
)],
1
)]),
t
.
_v
(
" "
),
t
.
addShow
?
a
(
"secret-set"
,{
attrs
:{
editRow
:
t
.
editRow
},
on
:{
closeText
:
t
.
closeText
,
submitText
:
t
.
submitText
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"company-title m-b-20 m-t-30"
},[
e
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
this
.
_v
(
"客户密钥维护"
)])])}]};
var
w
=
a
(
"VU/8"
)(
v
,
_
,
!
1
,
function
(
t
){
a
(
"2wsI"
)},
"data-v-4b871471"
,
null
);
e
.
default
=
w
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
0d2d646a89823820b81d
.js
→
dist/static/js/manifest.
a7e08f7edcc737f89761
.js
View file @
4d475f70
!
function
(
e
){
var
f
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
c
[
t
]
&&
u
.
push
(
c
[
t
][
0
]),
c
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
f
&&
f
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
c
=
{
88
:
0
};
function
b
(
f
){
if
(
a
[
f
])
return
a
[
f
].
exports
;
var
c
=
a
[
f
]
=
{
i
:
f
,
l
:
!
1
,
exports
:{}};
return
e
[
f
].
call
(
c
.
exports
,
c
,
c
.
exports
,
b
),
c
.
l
=!
0
,
c
.
exports
}
b
.
e
=
function
(
e
){
var
f
=
c
[
e
];
if
(
0
===
f
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
f
)
return
f
[
2
];
var
a
=
new
Promise
(
function
(
a
,
b
){
f
=
c
[
e
]
=
[
a
,
b
]});
f
[
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
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"ba129d3b4f512eeaa1b6"
,
1
:
"2fe1fea28b338647500e"
,
2
:
"1ee388c2d99a13efc1ce"
,
3
:
"e3e5cb80f2284b3190be"
,
4
:
"d9188c5ef11d148a9172"
,
5
:
"d3f88d7a7ab12a0c3ee3"
,
6
:
"3014e775749d7f5b55f5"
,
7
:
"c7a7f149b9bda67ba206"
,
8
:
"44ef777174215bae215b"
,
9
:
"a62fb8970e3ef30127ce"
,
10
:
"546b16617e8d45a97acd"
,
11
:
"fce5fcc498c4ce97d798"
,
12
:
"6858196070975fac87ef"
,
13
:
"acdad5e4c434690dabb4"
,
14
:
"0515ff16e22ad1985252"
,
15
:
"3ae840fa1929846688ff"
,
16
:
"7400088166b56885fd23"
,
17
:
"df7d17412a0cb4c4d42f"
,
18
:
"09b98776fa678846481e"
,
19
:
"f11c386818436323fde4"
,
20
:
"e3adbfd3e776cf2e8f9f"
,
21
:
"d78352462bc271cf6c69"
,
22
:
"b775cd5a3407a1f4c844"
,
23
:
"ed8ffa7851cf7b93d55d"
,
24
:
"76079e07f55c773e8ebe"
,
25
:
"755d295db713955f70d0"
,
26
:
"033c6e723fba9da08a93"
,
27
:
"8ae3986881568fb833a3"
,
28
:
"a016b66e25f9c11fca32"
,
29
:
"9fc187d28f0558e31cb3"
,
30
:
"a383e23152f401e14903"
,
31
:
"a81d5594ab762bad1101"
,
32
:
"18695c9f2b46cc400c85"
,
33
:
"0a4442de53039502010e"
,
34
:
"e1c92d68f0bd271d5f80"
,
35
:
"ea6b99a3057b0b403906"
,
36
:
"47f03b8472e95e8be943"
,
37
:
"e3388332c83433feb21d"
,
38
:
"c26f420ff1a672b85fee"
,
39
:
"deafa9cdc10a89021017"
,
40
:
"abdef089ceb3bd63a0c5"
,
41
:
"fc79fa1242ad11717288"
,
42
:
"649eb602c3c2bdb4bc57"
,
43
:
"a447bba03751452b5565"
,
44
:
"0906f80f7e95924674b9"
,
45
:
"c94e711a21b4d65d30a8"
,
46
:
"ae8570220fc779bbd1d5"
,
47
:
"0401741d9e48cc3f8706"
,
48
:
"77fa4dbb806cca2b4bbb"
,
49
:
"5ed2afdca5e082bcd5b7"
,
50
:
"1a8bef21670320094f7b"
,
51
:
"63c76b027ea9deeab75d"
,
52
:
"588e6a501727512ff125"
,
53
:
"76703df56e38ac027cc1"
,
54
:
"7adecbdc09bf73921e73"
,
55
:
"68e06904bb295863e369"
,
56
:
"3ef8e1768cf748f5bf8d"
,
57
:
"7d9334062856fbe3a1f1"
,
58
:
"1a2afdbe94416be140fb"
,
59
:
"ec266b89f6f61f3a6088"
,
60
:
"bdbfd640dea49c35d168"
,
61
:
"269f3510c533a0e67067"
,
62
:
"03bed41d8e38604c1b54"
,
63
:
"a698e6564f5d3cebf0f4"
,
64
:
"1620250b23cfa763a9c3"
,
65
:
"d41f2d2b941e095185d2"
,
66
:
"6afd6ec06206d5b8a521"
,
67
:
"0afabbdd1d7bb710d7e4"
,
68
:
"5ff3f98baf8880c05da3"
,
69
:
"6cbef6b5b52c84b7b396"
,
70
:
"37af3cee1717e313fd51"
,
71
:
"8d17bb653be063ab471a"
,
72
:
"ac26d9c97757be3fb0f6"
,
73
:
"24e38b4db5635ab5479f"
,
74
:
"ed219bdfce8bcaaba02d"
,
75
:
"0046b7cfac5a91d4e35e"
,
76
:
"189f705b050fd637351a"
,
77
:
"7ac4f8a44031fa1b17f7"
,
78
:
"f2456e2bd3974453d8e3"
,
79
:
"cad7e7028f946d585b99"
,
80
:
"1f635392ccbdf9f1e3dd"
,
81
:
"e74908cd5cfe8fa29870"
,
82
:
"60e8ef88a5631daceff9"
,
83
:
"26ec5f0666918217e67d"
,
84
:
"a6953ebd87c2db8ecfd9"
,
85
:
"edc07c8d4e5f0e535386"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
f
=
c
[
e
];
0
!==
f
&&
(
f
&&
f
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
b
.
m
=
e
,
b
.
c
=
a
,
b
.
d
=
function
(
e
,
f
,
a
){
b
.
o
(
e
,
f
)
||
Object
.
defineProperty
(
e
,
f
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
b
.
n
=
function
(
e
){
var
f
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
f
,
"a"
,
f
),
f
},
b
.
o
=
function
(
e
,
f
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
f
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
f
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
c
[
t
]
&&
u
.
push
(
c
[
t
][
0
]),
c
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
f
&&
f
(
a
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
c
=
{
88
:
0
};
function
b
(
f
){
if
(
a
[
f
])
return
a
[
f
].
exports
;
var
c
=
a
[
f
]
=
{
i
:
f
,
l
:
!
1
,
exports
:{}};
return
e
[
f
].
call
(
c
.
exports
,
c
,
c
.
exports
,
b
),
c
.
l
=!
0
,
c
.
exports
}
b
.
e
=
function
(
e
){
var
f
=
c
[
e
];
if
(
0
===
f
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
f
)
return
f
[
2
];
var
a
=
new
Promise
(
function
(
a
,
b
){
f
=
c
[
e
]
=
[
a
,
b
]});
f
[
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
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"ba129d3b4f512eeaa1b6"
,
1
:
"2fe1fea28b338647500e"
,
2
:
"1ee388c2d99a13efc1ce"
,
3
:
"e3e5cb80f2284b3190be"
,
4
:
"d9188c5ef11d148a9172"
,
5
:
"d3f88d7a7ab12a0c3ee3"
,
6
:
"3014e775749d7f5b55f5"
,
7
:
"c7a7f149b9bda67ba206"
,
8
:
"44ef777174215bae215b"
,
9
:
"a62fb8970e3ef30127ce"
,
10
:
"546b16617e8d45a97acd"
,
11
:
"fce5fcc498c4ce97d798"
,
12
:
"6858196070975fac87ef"
,
13
:
"acdad5e4c434690dabb4"
,
14
:
"0515ff16e22ad1985252"
,
15
:
"c64184a686069b03b651"
,
16
:
"7400088166b56885fd23"
,
17
:
"df7d17412a0cb4c4d42f"
,
18
:
"09b98776fa678846481e"
,
19
:
"f11c386818436323fde4"
,
20
:
"e3adbfd3e776cf2e8f9f"
,
21
:
"d78352462bc271cf6c69"
,
22
:
"b775cd5a3407a1f4c844"
,
23
:
"ed8ffa7851cf7b93d55d"
,
24
:
"76079e07f55c773e8ebe"
,
25
:
"755d295db713955f70d0"
,
26
:
"033c6e723fba9da08a93"
,
27
:
"8ae3986881568fb833a3"
,
28
:
"a016b66e25f9c11fca32"
,
29
:
"9fc187d28f0558e31cb3"
,
30
:
"a383e23152f401e14903"
,
31
:
"a81d5594ab762bad1101"
,
32
:
"18695c9f2b46cc400c85"
,
33
:
"0a4442de53039502010e"
,
34
:
"e1c92d68f0bd271d5f80"
,
35
:
"ea6b99a3057b0b403906"
,
36
:
"47f03b8472e95e8be943"
,
37
:
"e3388332c83433feb21d"
,
38
:
"c26f420ff1a672b85fee"
,
39
:
"deafa9cdc10a89021017"
,
40
:
"abdef089ceb3bd63a0c5"
,
41
:
"fc79fa1242ad11717288"
,
42
:
"649eb602c3c2bdb4bc57"
,
43
:
"a447bba03751452b5565"
,
44
:
"0906f80f7e95924674b9"
,
45
:
"c94e711a21b4d65d30a8"
,
46
:
"ae8570220fc779bbd1d5"
,
47
:
"0401741d9e48cc3f8706"
,
48
:
"77fa4dbb806cca2b4bbb"
,
49
:
"5ed2afdca5e082bcd5b7"
,
50
:
"1a8bef21670320094f7b"
,
51
:
"63c76b027ea9deeab75d"
,
52
:
"588e6a501727512ff125"
,
53
:
"76703df56e38ac027cc1"
,
54
:
"7adecbdc09bf73921e73"
,
55
:
"68e06904bb295863e369"
,
56
:
"3ef8e1768cf748f5bf8d"
,
57
:
"7d9334062856fbe3a1f1"
,
58
:
"1a2afdbe94416be140fb"
,
59
:
"ec266b89f6f61f3a6088"
,
60
:
"bdbfd640dea49c35d168"
,
61
:
"269f3510c533a0e67067"
,
62
:
"03bed41d8e38604c1b54"
,
63
:
"a698e6564f5d3cebf0f4"
,
64
:
"1620250b23cfa763a9c3"
,
65
:
"d41f2d2b941e095185d2"
,
66
:
"6afd6ec06206d5b8a521"
,
67
:
"0afabbdd1d7bb710d7e4"
,
68
:
"5ff3f98baf8880c05da3"
,
69
:
"6cbef6b5b52c84b7b396"
,
70
:
"37af3cee1717e313fd51"
,
71
:
"8d17bb653be063ab471a"
,
72
:
"ac26d9c97757be3fb0f6"
,
73
:
"24e38b4db5635ab5479f"
,
74
:
"ed219bdfce8bcaaba02d"
,
75
:
"0046b7cfac5a91d4e35e"
,
76
:
"189f705b050fd637351a"
,
77
:
"7ac4f8a44031fa1b17f7"
,
78
:
"f2456e2bd3974453d8e3"
,
79
:
"cad7e7028f946d585b99"
,
80
:
"1f635392ccbdf9f1e3dd"
,
81
:
"e74908cd5cfe8fa29870"
,
82
:
"60e8ef88a5631daceff9"
,
83
:
"26ec5f0666918217e67d"
,
84
:
"a6953ebd87c2db8ecfd9"
,
85
:
"edc07c8d4e5f0e535386"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
f
=
c
[
e
];
0
!==
f
&&
(
f
&&
f
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
a
},
b
.
m
=
e
,
b
.
c
=
a
,
b
.
d
=
function
(
e
,
f
,
a
){
b
.
o
(
e
,
f
)
||
Object
.
defineProperty
(
e
,
f
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
b
.
n
=
function
(
e
){
var
f
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
f
,
"a"
,
f
),
f
},
b
.
o
=
function
(
e
,
f
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
f
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/enterprise/enterpriseSet.vue
View file @
4d475f70
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-11-
16 09:58:47
* @LastEditTime: 2020-11-
23 09:19:34
-->
-->
<
template
>
<
template
>
<div
class=
"daily-set-wrap "
>
<div
class=
"daily-set-wrap "
>
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
<div
slot=
"content"
>
刷新企业里关联导购账号的导购添加的客户。每天最多1次,每月最多3次。
<br
/>
仅刷新好办关联导购的企业好友数据,所以会小于等于企业微信看到的客户总数。
</div>
<div
slot=
"content"
>
刷新企业里关联导购账号的导购添加的客户。每天最多1次,每月最多3次。
<br
/>
仅刷新好办关联导购的企业好友数据,所以会小于等于企业微信看到的客户总数。
</div>
<span
style=
"cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;"
class=
"font-14 color-606266"
>
企微好友更新
</span>
<span
style=
"cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;"
class=
"font-14 color-606266"
>
企微好友更新
</span>
</el-tooltip>
</el-tooltip>
<span
class=
"font-14 color-303133"
>
更新时间:{{
!companyObj.smallVersion
? '--' : '' }}
</span>
<span
class=
"font-14 color-303133"
>
更新时间:{{
wxDate | formatTimeStamp }}{{ !wxDate
? '--' : '' }}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -178,7 +178,9 @@ export default {
...
@@ -178,7 +178,9 @@ export default {
showHaobanError
:
false
,
showHaobanError
:
false
,
tableData
:
[],
tableData
:
[],
addShow
:
false
,
addShow
:
false
,
editRow
:
{}
editRow
:
{},
// 企微好友
wxDate
:
''
};
};
},
},
computed
:
{},
computed
:
{},
...
@@ -192,12 +194,32 @@ export default {
...
@@ -192,12 +194,32 @@ export default {
let
para
=
{
let
para
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
wxEnterpriseId
:
that
.
wxEnterpriseId
};
};
getRequest
(
'/haoban-manage3-web/
wxEnterprise-refresh
'
,
para
)
getRequest
(
'/haoban-manage3-web/
fresh-wx-friend
'
,
para
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
showMsg
.
showmsg
(
'刷新成功'
,
'success'
);
showMsg
.
showmsg
(
'刷新成功'
,
'success'
);
return
false
;
}
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
that
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
});
});
},
getRefreshTime
()
{
const
that
=
this
;
let
para
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
};
getRequest
(
'/haoban-manage3-web/get-fresh-detail'
,
para
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
that
.
wxDate
=
resData
.
result
||
''
;
return
false
;
return
false
;
}
}
errMsg
.
errorMsg
(
resData
);
errMsg
.
errorMsg
(
resData
);
...
@@ -446,6 +468,7 @@ export default {
...
@@ -446,6 +468,7 @@ export default {
that
.
getData
();
that
.
getData
();
that
.
getSecretData
();
that
.
getSecretData
();
that
.
getTipData
();
that
.
getTipData
();
that
.
getRefreshTime
();
},
},
destroyed
()
{
destroyed
()
{
document
.
documentElement
.
style
.
backgroundColor
=
'#fff'
;
document
.
documentElement
.
style
.
backgroundColor
=
'#fff'
;
...
...
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