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
0f24e887
Commit
0f24e887
authored
Jun 03, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改通讯录
parent
d449d699
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
84 additions
and
61 deletions
+84
-61
index.html
dist/index.html
+2
-2
app.b0a73b02cecf6d534078dceea99be794.css
dist/static/css/app.b0a73b02cecf6d534078dceea99be794.css
+0
-0
10.3a2ffba2181a39a83d3c.js
dist/static/js/10.3a2ffba2181a39a83d3c.js
+2
-0
10.fe6046b42bf7992a8a11.js
dist/static/js/10.fe6046b42bf7992a8a11.js
+0
-2
manifest.8cac7fd2fee0e0a66b91.js
dist/static/js/manifest.8cac7fd2fee0e0a66b91.js
+2
-2
secret-set.vue
src/components/set/secret-set.vue
+12
-13
enterpriseSet.vue
src/views/enterprise/enterpriseSet.vue
+66
-42
No files found.
dist/index.html
View file @
0f24e887
<!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.b9db9a34ddeea4ed7ad14c32b53e1f21.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>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.fe2306307af4ced49cf4.js
></script><script
type=
text/javascript
src=
./static/js/vendor.5b33c5efa6caf40b5ed9.js
></script><script
type=
text/javascript
src=
./static/js/app.d443f31f548acbe029fd.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.b0a73b02cecf6d534078dceea99be794.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>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.8cac7fd2fee0e0a66b91.js
></script><script
type=
text/javascript
src=
./static/js/vendor.5b33c5efa6caf40b5ed9.js
></script><script
type=
text/javascript
src=
./static/js/app.d443f31f548acbe029fd.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.b
9db9a34ddeea4ed7ad14c32b53e1f21
.css
→
dist/static/css/app.b
0a73b02cecf6d534078dceea99be794
.css
View file @
0f24e887
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/10.3a2ffba2181a39a83d3c.js
0 → 100644
View file @
0f24e887
webpackJsonp
([
10
],{
"0Lwl"
:
function
(
e
,
t
){},
Br1u
:
function
(
e
,
t
){},
I591
:
function
(
e
,
t
){},
feRM
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"//Fk"
),
o
=
a
.
n
(
s
),
r
=
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
e
=
window
.
location
.
origin
;
-
1
!=
e
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
e
},
methods
:{
uploadUrl
:
function
(){
var
e
=
window
.
location
.
origin
,
t
=
void
0
;
return
t
=
"-1"
!=
e
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
e
,
this
.
upUrl
=
t
+
"/haoban-manage3-web/upload-file?fileType="
+
this
.
fileType
,
this
.
upUrl
},
handleAvatarSuccess
:
function
(
e
,
t
,
a
){
1
==
e
.
errorCode
?(
console
.
log
(
e
),
this
.
videoFlag
=!
1
,
3
==
this
.
uploadType
?
this
.
$emit
(
"update:videoSrc"
,
e
.
result
.
url
):
this
.
$emit
(
"update:imgSrc"
,
e
.
result
.
url
)):
r
.
a
.
errorMsg
(
e
)},
beforeAvatarUpload
:
function
(
e
){
console
.
log
(
e
),
this
.
fileType
=
"image/jpeg"
===
e
.
type
?
"jpeg"
:
"image/jpg"
===
e
.
type
?
"jpg"
:
"image/png"
===
e
.
type
?
"png"
:
"video/mp4"
==
e
.
type
?
"mp4"
:
""
;
var
t
=
"image/jpeg"
===
e
.
type
||
"image/jpg"
===
e
.
type
||
"image/png"
===
e
.
type
,
a
=
"video/mp4"
==
e
.
type
,
s
=
e
.
size
/
1024
/
1024
<
this
.
uploadLimit
;
return
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
t
||
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
:
t
&&
s
&&
new
o
.
a
(
function
(
t
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
e
){
var
a
=
new
Image
;
a
.
onload
=
function
(){
this
.
width
,
this
.
height
;
t
()},
a
.
src
=
e
.
target
.
result
},
s
.
readAsDataURL
(
e
)})},
showImage
:
function
(
e
){
if
(
!
e
||
""
==
e
)
return
!
1
;
this
.
imgShowFlag
=!
0
,
this
.
imgUrl
=
e
},
hideImage
:
function
(
e
){
this
.
imgShowFlag
=
e
}}},
i
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"single-upload-wrap"
},[
a
(
"el-upload"
,{
staticClass
:
"avatar-uploader"
,
attrs
:{
action
:
e
.
uploadUrl
(),
"show-file-list"
:
!
1
,
"on-success"
:
e
.
handleAvatarSuccess
,
"before-upload"
:
e
.
beforeAvatarUpload
}},[
e
.
imgSrc
?
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
e
.
imgSrc
},
on
:{
mouseover
:
function
(
t
){
e
.
showImage
(
e
.
imgSrc
)}}}):
e
.
_e
(),
e
.
_v
(
" "
),
""
!=
e
.
videoSrc
&&
0
==
e
.
videoFlag
?
a
(
"video"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
e
.
videoSrc
}},[
e
.
_v
(
"您的浏览器不支持视频播放"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
imgSrc
||
e
.
videoSrc
?
e
.
_e
():
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-plus avatar-uploader-icon"
}),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-606266"
},[
e
.
_v
(
e
.
_s
(
1
==
e
.
uploadType
||
2
==
e
.
uploadType
?
"上传图片"
:
"上传视频"
))])])]),
e
.
_v
(
" "
),
1
==
e
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
e
.
_v
(
"
\
n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
e
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
e
.
_v
(
"
\
n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB
\
n "
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
==
e
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
e
.
_v
(
"
\
n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效
\
n "
)]):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
l
=
a
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
e
){
a
(
"0Lwl"
)},
"data-v-51d864ba"
,
null
);
t
.
a
=
l
.
exports
},
x5Fx
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"c9no"
),
o
=
a
(
"mvHQ"
),
r
=
a
.
n
(
o
),
n
=
a
(
"fZjL"
),
i
=
a
.
n
(
n
),
l
=
a
(
"feRM"
),
c
=
a
(
"l46T"
),
p
=
a
(
"Kkt8"
),
m
=
a
(
"PI0u"
),
d
=
a
(
"P9l9"
),
u
=
a
(
"3E4D"
),
f
=
a
(
"Ch4/"
),
h
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
c
.
a
,
limitTextarea
:
p
.
a
,
singleUpload
:
l
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
secretName
:
""
,
memberSecret
:
""
,
enterpriseId
:
""
,
secretRelationId
:
""
},
rules
:{
secretName
:[{
required
:
!
0
,
message
:
"请输入小程序名称"
,
trigger
:
"blur"
}],
memberSecret
:[{
required
:
!
0
,
message
:
"请输入secret"
,
trigger
:
"blur"
}],
enterpriseId
:[{
required
:
!
0
,
message
:
"请选择关联商户"
,
trigger
:
"change"
}]},
brandOptions
:[]}},
methods
:{
getBrandData
:
function
(){
var
e
=
this
;
Object
(
d
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
e
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
toCancel
:
function
(){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
e
){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
m
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
t
.
postSave
()})},
300
),
postSave
:
function
(){
var
e
=
this
,
t
=
{
secretRelationId
:
e
.
ruleForm
.
secretRelationId
,
secretName
:
e
.
ruleForm
.
secretName
,
enterpriseId
:
e
.
ruleForm
.
enterpriseId
,
memberSecret
:
e
.
ruleForm
.
memberSecret
};
Object
(
d
.
d
)(
"/haoban-manage3-web/wx-enterprise-member-secret-set"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
==
a
.
errorCode
?(
u
.
a
.
showmsg
(
"操作成功"
,
"success"
),
e
.
$refs
.
ruleForm
.
resetFields
(),
e
.
$emit
(
"submitText"
)):
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
editRow
:
function
(
e
){
i
()(
e
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
r
()(
e
)))}},
mounted
:
function
(){
this
.
getBrandData
(),
i
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
r
()(
this
.
editRow
)))}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
editRow
.
materialId
?
"编辑"
:
"新建"
,
visible
:
e
.
dialogVisible
,
width
:
"600px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"div"
,{},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"小程序名称"
,
prop
:
"secretName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
e
.
ruleForm
.
secretName
,
holder
:
"请输入小程序名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"secretName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"secret"
,
prop
:
"memberSecret"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
e
.
ruleForm
.
memberSecret
,
holder
:
"请输入secret"
,
getByType
:
"word"
,
maxLength
:
80
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"memberSecret"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"关联商户"
,
prop
:
"enterpriseId"
}},[
a
(
"el-select"
,{
staticClass
:
"w-402"
,
attrs
:{
placeholder
:
"全部品牌"
},
on
:{
change
:
e
.
getTableList
},
model
:{
value
:
e
.
ruleForm
.
enterpriseId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"enterpriseId"
,
t
)},
expression
:
"ruleForm.enterpriseId"
}},
e
.
_l
(
e
.
brandOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
enterpriseId
,
attrs
:{
label
:
e
.
enterpriseName
,
value
:
e
.
enterpriseId
}})}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
h
,
b
,
!
1
,
function
(
e
){
a
(
"I591"
)},
"data-v-b262ee1c"
,
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
:{}}},
computed
:{},
methods
:{
addSecret
:
function
(){
this
.
addShow
=!
0
,
this
.
editRow
=
{}},
toEdit
:
function
(
e
,
t
){
this
.
addShow
=!
0
,
this
.
editRow
=
t
},
closeText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{}},
submitText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{},
this
.
getAppData
()},
toDel
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确定删除当前小程序信息?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
secretRelationId
:
t
.
secretRelationId
};
Object
(
d
.
d
)(
"/haoban-manage3-web/member-secret-del"
,
s
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getSecretData
();
f
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
saveSecret
:
Object
(
m
.
a
)(
function
(
e
){
var
t
=
{};
if
(
1
==
e
&&
(
t
.
memberSecret
=
String
(
this
.
wxObj
.
secretVal
).
trim
(),
this
.
showWxError
=!
this
.
wxObj
.
secretVal
),
3
==
e
&&
(
t
.
memberSecret
=
String
(
this
.
haobanObj
.
secretVal
).
trim
(),
this
.
showHaobanError
=!
this
.
haobanObj
.
secretVal
),
this
.
showWxError
||
this
.
showHaobanError
)
return
!
1
;
this
.
postSaveSecret
(
e
,
t
)},
300
),
postSaveSecret
:
function
(
e
,
t
){
var
a
=
this
;
Object
(
d
.
d
)(
"/haoban-manage3-web/wx-enterprise-member-secret-set"
,
t
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
)
return
u
.
a
.
showmsg
(
"操作成功"
,
"success"
),
a
.
getSecretData
(),
!
1
;
f
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
refeshData
:
function
(){
this
.
refreshData
()},
refreshData
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
d
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
t
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getSecretData
:
function
(){
var
e
=
this
,
t
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
d
.
a
)(
"/haoban-manage3-web/secret-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
[],
a
.
result
&&
a
.
result
.
length
&&
a
.
result
.
forEach
(
function
(
t
){
1
==
t
.
secretType
&&
(
e
.
wxObj
=
t
),
2
==
t
.
secretType
&&
(
e
.
contactObj
=
t
),
3
==
t
.
secretType
&&
(
e
.
haobanObj
=
t
),
4
==
t
.
secretType
&&
e
.
tableData
.
push
(
t
)}),
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getData
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
d
.
a
)(
"/haoban-manage3-web/wxEnterprise-detail"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getTipData
:
function
(){
var
e
=
this
;
Object
(
d
.
a
)(
"/haoban-manage3-web/is-wx-enterprise-secret-set"
,{}).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
e
.
checkShow
=
a
.
result
}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
(),
this
.
getAppData
(),
this
.
getTipData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
setTip
:
s
.
a
,
secretSet
:
g
}},
_
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
a
(
"div"
,{
staticClass
:
"daily-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"
},[
e
.
_v
(
"企业微信基本信息"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
refeshData
}},[
e
.
_v
(
"同步刷新 "
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
checkShow
?
e
.
_e
():
a
(
"set-tip"
,{
attrs
:{
tipText
:
e
.
tipText
}})],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"105px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业名称"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-r-10"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
corpName
))]),
e
.
_v
(
" "
),
a
(
"el-tag"
,[
e
.
_v
(
" "
+
e
.
_s
(
1
==
e
.
companyObj
.
contactFlag
?
"已认证"
:
"未认证"
))]),
1
==
e
.
companyObj
.
contactFlag
?
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
e
.
_v
(
"认证到期 "
+
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
e
.
companyObj
.
verifiedEndTime
)))]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业ID"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
corpid
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"行业类型"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
corpIndustry
)
+
" / "
+
e
.
_s
(
e
.
companyObj
.
corpSubIndustry
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人员规模"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
corpScale
))])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"地址"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
location
))])])],
1
)],
1
),
e
.
_v
(
" "
),
e
.
_m
(
0
),
e
.
_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"
}},[
e
.
_v
(
"客户联系secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
e
.
companyObj
.
secretVal
,
callback
:
function
(
t
){
e
.
$set
(
e
.
companyObj
,
"secretVal"
,
t
)},
expression
:
"companyObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
saveSecret
(
"1"
)}}},[
e
.
_v
(
"保存"
)]),
e
.
companyObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
e
.
_v
(
"最后一次保存:"
+
e
.
_s
(
e
.
_f
(
"formatTimeStamp"
)(
e
.
companyObj
.
updateTime
)))]):
e
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
companyObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
e
.
_v
(
" "
),
e
.
showWxError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
e
.
_v
(
"请填写客户联系 secret"
)]):
e
.
_e
()],
1
),
e
.
_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"
},[
e
.
_v
(
"企业微信中通讯录同步若更新secret,请复制后更新至此处。"
),
a
(
"br"
),
e
.
_v
(
"因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"
),
a
(
"br"
),
e
.
_v
(
"若发生相关变更,与企业微信无关,特此告知!"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"通讯录secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"非必填"
},
model
:{
value
:
e
.
companyObj
.
secretVal
,
callback
:
function
(
t
){
e
.
$set
(
e
.
companyObj
,
"secretVal"
,
t
)},
expression
:
"companyObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
saveSecret
(
"2"
)}}},[
e
.
_v
(
"保存"
)]),
e
.
companyObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
e
.
_v
(
"最后一次保存:"
+
e
.
_s
(
e
.
_f
(
"formatTimeStamp"
)(
e
.
companyObj
.
updateTime
)))]):
e
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
companyObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])])],
1
),
e
.
_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"
}},[
e
.
_v
(
"好办助手secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
placeholder
:
"必填"
},
model
:{
value
:
e
.
companyObj
.
secretVal
,
callback
:
function
(
t
){
e
.
$set
(
e
.
companyObj
,
"secretVal"
,
t
)},
expression
:
"companyObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
saveSecret
(
"3"
)}}},[
e
.
_v
(
"保存"
)]),
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
e
.
_v
(
"最后一次保存:"
+
e
.
_s
(
e
.
companyObj
.
updateTime
||
e
.
formatTimeStamp
))]),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
companyObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
e
.
_v
(
e
.
_s
(
e
.
companyObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
e
.
_v
(
" "
),
e
.
showHaobanError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
e
.
_v
(
"请填写好办助手 secret"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"secret-cell "
},[
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"
}},[
e
.
_v
(
"会员小程序secret:"
)])]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"p-l-5 font-14 color-303133 font-w-500"
},[
e
.
_v
(
"会员小程序信息"
)]),
e
.
_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
:
e
.
tableH
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"小程序名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
secretName
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"secret"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"'--'"
)(
t
.
row
.
secretVal
)))]),
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
row
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"关联商户"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"'--'"
)(
t
.
row
.
enterpriseName
)))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"最近编辑时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToYmd"
)(
t
.
row
.
updateTime
)))]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeStampToHms"
)(
t
.
row
.
updateTime
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toEdit
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDel
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
tableData
.
length
<
10
?
a
(
"div"
,{
staticClass
:
"text-center add-cell cursor-pointer"
,
on
:{
click
:
e
.
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"
},[
e
.
_v
(
"新建"
)]),
a
(
"span"
,{
staticClass
:
"font-12 color-c0c4cc p-l-20"
},[
e
.
_v
(
"最多添加10个"
)])]):
e
.
_e
()],
1
)],
1
)])]),
e
.
_v
(
" "
),
e
.
addShow
?
a
(
"secret-set"
,{
attrs
:{
editRow
:
e
.
editRow
},
on
:{
closeText
:
e
.
closeText
,
submitText
:
e
.
submitText
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"company-title m-b-20 m-t-30"
},[
t
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
this
.
_v
(
"客户密钥维护"
)])])}]};
var
w
=
a
(
"VU/8"
)(
v
,
_
,
!
1
,
function
(
e
){
a
(
"Br1u"
)},
"data-v-1296631e"
,
null
);
t
.
default
=
w
.
exports
}});
\ No newline at end of file
dist/static/js/10.fe6046b42bf7992a8a11.js
deleted
100644 → 0
View file @
d449d699
webpackJsonp
([
10
],{
"0Lwl"
:
function
(
t
,
e
){},
"2HqF"
:
function
(
t
,
e
){},
feRM
:
function
(
t
,
e
,
a
){
"use strict"
;
var
s
=
a
(
"//Fk"
),
o
=
a
.
n
(
s
),
r
=
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
?(
console
.
log
(
t
),
this
.
videoFlag
=!
1
,
3
==
this
.
uploadType
?
this
.
$emit
(
"update:videoSrc"
,
t
.
result
.
url
):
this
.
$emit
(
"update:imgSrc"
,
t
.
result
.
url
)):
r
.
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
o
.
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
(
"0Lwl"
)},
"data-v-51d864ba"
,
null
);
e
.
a
=
c
.
exports
},
lSyp
:
function
(
t
,
e
){},
x5Fx
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"c9no"
),
o
=
a
(
"mvHQ"
),
r
=
a
.
n
(
o
),
n
=
a
(
"fZjL"
),
i
=
a
.
n
(
n
),
c
=
a
(
"feRM"
),
l
=
a
(
"l46T"
),
p
=
a
(
"Kkt8"
),
m
=
a
(
"PI0u"
),
d
=
a
(
"P9l9"
),
u
=
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
:{
appName
:
""
,
secret
:
""
,
enterpriseId
:
""
,
secretRelationId
:
""
},
rules
:{
appName
:[{
required
:
!
0
,
message
:
"请输入小程序名称"
,
trigger
:
"blur"
}],
agentid
:[{
required
:
!
0
,
message
:
"请输入agentid"
,
trigger
:
"blur"
}],
secret
:[{
required
:
!
0
,
message
:
"请输入secret"
,
trigger
:
"blur"
}],
enterpriseId
:[{
required
:
!
0
,
message
:
"请选择关联商户"
,
trigger
:
"change"
}]},
brandOptions
:[]}},
methods
:{
getBrandData
:
function
(){
var
t
=
this
;
Object
(
d
.
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
(
m
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
secretRelationId
:
t
.
ruleForm
.
secretRelationId
,
appName
:
t
.
ruleForm
.
appName
,
enterpriseId
:
t
.
ruleForm
.
enterpriseId
,
secret
:
t
.
ruleForm
.
secret
};
Object
(
d
.
d
)((
t
.
ruleForm
.
secretRelationId
,
"/haoban-manage3-web/member-secret-set"
),
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
u
.
a
.
showmsg
(
"操作成功"
,
"success"
),
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
){
i
()(
t
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
r
()(
t
)))}},
mounted
:
function
(){
this
.
getBrandData
(),
i
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
r
()(
this
.
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
:
"appName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
appName
,
holder
:
"请输入小程序名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"appName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"secret"
,
prop
:
"secret"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secret
,
holder
:
"请输入secret"
,
getByType
:
"word"
,
maxLength
:
80
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secret"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"关联商户"
,
prop
:
"enterpriseId"
}},[
a
(
"el-select"
,{
staticClass
:
"w-402"
,
attrs
:{
placeholder
:
"全部品牌"
},
on
:{
change
:
t
.
getTableList
},
model
:{
value
:
t
.
ruleForm
.
enterpriseId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"enterpriseId"
,
e
)},
expression
:
"ruleForm.enterpriseId"
}},
t
.
_l
(
t
.
brandOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
enterpriseId
,
attrs
:{
label
:
t
.
enterpriseName
,
value
:
t
.
enterpriseId
}})}))],
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
(
"2HqF"
)},
"data-v-017a971f"
,
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
:
""
,
wxSecretKey
:
""
,
contactSecret
:
""
,
memberSecret
:
""
,
wxSecretKeyFlag
:
!
0
,
contactSecretFlag
:
!
0
,
memberSecretFlag
:
!
0
,
wxSecretKeyLastTime
:
null
,
contactSecretLastTime
:
null
,
memberSecretLastTime
:
null
,
haobanSecret
:
""
,
haobanSecretFlag
:
!
0
,
haobanSecretLastTime
:
null
},
showWxError
:
!
1
,
showContactError
:
!
1
,
showHaobanError
:
!
1
,
tableData
:[],
addShow
:
!
1
,
editRow
:{}}},
computed
:{},
methods
:{
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
.
getAppData
()},
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
=
{
secretRelationId
:
e
.
secretRelationId
};
Object
(
d
.
d
)(
"/haoban-manage3-web/member-secret-set"
,
s
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getAppData
();
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
saveSecret
:
Object
(
m
.
a
)(
function
(
t
){
var
e
=
{};
if
(
1
==
t
&&
(
e
.
wxSecretKey
=
String
(
this
.
companyObj
.
wxSecretKey
).
trim
(),
this
.
showWxError
=!
this
.
companyObj
.
wxSecretKey
),
3
==
t
&&
(
e
.
haobanSecret
=
String
(
this
.
companyObj
.
haobanSecret
).
trim
(),
this
.
showHaobanError
=!
this
.
companyObj
.
haobanSecret
),
this
.
showWxError
||
this
.
showHaobanError
)
return
!
1
;
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-member-secret-set"
;
Object
(
d
.
d
)(
"/haoban-manage3-web/"
+
s
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
u
.
a
.
showmsg
(
"操作成功"
,
"success"
),
a
.
getData
(),
!
1
;
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
(
d
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
u
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getAppData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
d
.
a
)(
"/haoban-manage3-web/member-secret-list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
d
.
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
(
d
.
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
.
getAppData
(),
this
.
getTipData
()},
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
:
"daily-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
.
companyObj
.
wxSecretKey
,
callback
:
function
(
e
){
t
.
$set
(
t
.
companyObj
,
"wxSecretKey"
,
e
)},
expression
:
"companyObj.wxSecretKey"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"1"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
companyObj
.
wxSecretKeyLastTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
companyObj
.
wxSecretKeyLastTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
companyObj
.
wxSecretKeyFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
wxSecretKeyFlag
?
"校验成功"
:
"校验失败"
))])]),
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
.
companyObj
.
contactSecret
,
callback
:
function
(
e
){
t
.
$set
(
t
.
companyObj
,
"contactSecret"
,
e
)},
expression
:
"companyObj.contactSecret"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"2"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
companyObj
.
contactSecretLastTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
companyObj
.
contactSecretLastTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
companyObj
.
contactSecretFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
contactSecretFlag
?
"校验成功"
:
"校验失败"
))])])],
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
:{
placeholder
:
"必填"
},
model
:{
value
:
t
.
companyObj
.
haobanSecret
,
callback
:
function
(
e
){
t
.
$set
(
t
.
companyObj
,
"haobanSecret"
,
e
)},
expression
:
"companyObj.haobanSecret"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"3"
)}}},[
t
.
_v
(
"保存"
)]),
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
companyObj
.
haobanSecretLastTime
||
t
.
formatTimeStamp
))]),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
companyObj
.
haobanSecretFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
haobanSecretFlag
?
"校验成功"
:
"校验失败"
))])]),
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 "
},[
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
.
appName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"secret"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"'--'"
)(
e
.
row
.
secret
)))]),
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
row
.
check_flag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
check_flag
?
"校验成功"
:
"校验失败"
))])]}}])}),
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
(
t
.
_f
(
"'--'"
)(
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
.
update_time
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
update_time
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
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
(
" "
),
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
(
"lSyp"
)},
"data-v-23abda46"
,
null
);
e
.
default
=
w
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
fe2306307af4ced49cf4
.js
→
dist/static/js/manifest.
8cac7fd2fee0e0a66b91
.js
View file @
0f24e887
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
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
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
77
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
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
:
"1e01efaf386c04cc0fc5"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"8ab6ab882649230c8ad6"
,
3
:
"65e069d67a3851b89976"
,
4
:
"07e47b9d5e170e32b993"
,
5
:
"21ff51bad022ad886165"
,
6
:
"49975f0236d705152f51"
,
7
:
"ece0a2d210892b176e55"
,
8
:
"7d0a8e6532c58d0c2415"
,
9
:
"a2c899ef9125a9264a50"
,
10
:
"fe6046b42bf7992a8a11"
,
11
:
"b594c1b71947487e0f33"
,
12
:
"0b370ee5f1f094e8a182"
,
13
:
"6608be9a11fc20f1312e"
,
14
:
"e0892950a514c89d900f"
,
15
:
"cbb4f21291e322d6864b"
,
16
:
"eae721902cf685d8ac7d"
,
17
:
"ebf1847c50132c6f96a7"
,
18
:
"6f15fd7752271bce818a"
,
19
:
"35726f60c578a23e9017"
,
20
:
"4663352c619a815d8119"
,
21
:
"ac187141cee7f3f54a26"
,
22
:
"4ec09df7e6dce074084e"
,
23
:
"0701e07f97c5ea8c69f9"
,
24
:
"7a57624e89e34e420a52"
,
25
:
"326a8c2ad9617bfe863c"
,
26
:
"458f45f2633ae24c5755"
,
27
:
"aa816867f4d0cb0d6131"
,
28
:
"d476fdb456a0627b48ba"
,
29
:
"57b1c2b00fbd821963a3"
,
30
:
"37cb4d2da6489d905573"
,
31
:
"a491ec6fa2128e9a2b0f"
,
32
:
"55c47cf4b7b63a259239"
,
33
:
"d3515af25c3e7e22153f"
,
34
:
"18bce297c3536920f0be"
,
35
:
"814dd1eb24901e53ab86"
,
36
:
"c0359ca785e1f0dde1fc"
,
37
:
"76183a99b8ed65d42c18"
,
38
:
"5f7c3caf988efd4a4f93"
,
39
:
"d4563b358e555e3c15ca"
,
40
:
"e4e58e6370ff73e217b2"
,
41
:
"675f4b34699982dd5507"
,
42
:
"b715318c692c9a359f88"
,
43
:
"076c1d6b1696b46db350"
,
44
:
"9a001dcb0b20412481a9"
,
45
:
"2c6b2a0c1ecdf5dbf3c8"
,
46
:
"9dad3123f2fc347c9f46"
,
47
:
"d0292ad4a1c0a2fe6924"
,
48
:
"bf0f43e67bca163a8825"
,
49
:
"db237966421b9efea688"
,
50
:
"91613ce4f17c75cebd9d"
,
51
:
"1d0b44b210fa29a9b7ae"
,
52
:
"786cdb9d06901d9f46d6"
,
53
:
"76cc13b40c7878ec1850"
,
54
:
"820754e769c8a91d22ef"
,
55
:
"62d7e11a79d40049fabc"
,
56
:
"4a9b801a8b14fe18b3b2"
,
57
:
"6bbaa008f0140ef0b244"
,
58
:
"89745e27566eaf3aebae"
,
59
:
"b3656882f12d5cc52079"
,
60
:
"a862123e36a80e6d5687"
,
61
:
"b62a5ef535c3bf5ae16c"
,
62
:
"568df88cb70591564450"
,
63
:
"227586c658a3f35ffc4a"
,
64
:
"32c41338a10d6a8ba316"
,
65
:
"dbf0e416350c970674ed"
,
66
:
"b3fc8c83ffbdf39a1cdb"
,
67
:
"b6da4f35c80e5246dd03"
,
68
:
"1cc4f0da6ca2684e5b24"
,
69
:
"78c1148df0648f724434"
,
70
:
"d8b620c8d056d806ac23"
,
71
:
"8ce9113b1568e9bf5537"
,
72
:
"a6222ada9c9a2655c92a"
,
73
:
"959fb844a60624eba321"
,
74
:
"8f58470ff84acae11858"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
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
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
77
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
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
:
"1e01efaf386c04cc0fc5"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"8ab6ab882649230c8ad6"
,
3
:
"65e069d67a3851b89976"
,
4
:
"07e47b9d5e170e32b993"
,
5
:
"21ff51bad022ad886165"
,
6
:
"49975f0236d705152f51"
,
7
:
"ece0a2d210892b176e55"
,
8
:
"7d0a8e6532c58d0c2415"
,
9
:
"a2c899ef9125a9264a50"
,
10
:
"3a2ffba2181a39a83d3c"
,
11
:
"b594c1b71947487e0f33"
,
12
:
"0b370ee5f1f094e8a182"
,
13
:
"6608be9a11fc20f1312e"
,
14
:
"e0892950a514c89d900f"
,
15
:
"cbb4f21291e322d6864b"
,
16
:
"eae721902cf685d8ac7d"
,
17
:
"ebf1847c50132c6f96a7"
,
18
:
"6f15fd7752271bce818a"
,
19
:
"35726f60c578a23e9017"
,
20
:
"4663352c619a815d8119"
,
21
:
"ac187141cee7f3f54a26"
,
22
:
"4ec09df7e6dce074084e"
,
23
:
"0701e07f97c5ea8c69f9"
,
24
:
"7a57624e89e34e420a52"
,
25
:
"326a8c2ad9617bfe863c"
,
26
:
"458f45f2633ae24c5755"
,
27
:
"aa816867f4d0cb0d6131"
,
28
:
"d476fdb456a0627b48ba"
,
29
:
"57b1c2b00fbd821963a3"
,
30
:
"37cb4d2da6489d905573"
,
31
:
"a491ec6fa2128e9a2b0f"
,
32
:
"55c47cf4b7b63a259239"
,
33
:
"d3515af25c3e7e22153f"
,
34
:
"18bce297c3536920f0be"
,
35
:
"814dd1eb24901e53ab86"
,
36
:
"c0359ca785e1f0dde1fc"
,
37
:
"76183a99b8ed65d42c18"
,
38
:
"5f7c3caf988efd4a4f93"
,
39
:
"d4563b358e555e3c15ca"
,
40
:
"e4e58e6370ff73e217b2"
,
41
:
"675f4b34699982dd5507"
,
42
:
"b715318c692c9a359f88"
,
43
:
"076c1d6b1696b46db350"
,
44
:
"9a001dcb0b20412481a9"
,
45
:
"2c6b2a0c1ecdf5dbf3c8"
,
46
:
"9dad3123f2fc347c9f46"
,
47
:
"d0292ad4a1c0a2fe6924"
,
48
:
"bf0f43e67bca163a8825"
,
49
:
"db237966421b9efea688"
,
50
:
"91613ce4f17c75cebd9d"
,
51
:
"1d0b44b210fa29a9b7ae"
,
52
:
"786cdb9d06901d9f46d6"
,
53
:
"76cc13b40c7878ec1850"
,
54
:
"820754e769c8a91d22ef"
,
55
:
"62d7e11a79d40049fabc"
,
56
:
"4a9b801a8b14fe18b3b2"
,
57
:
"6bbaa008f0140ef0b244"
,
58
:
"89745e27566eaf3aebae"
,
59
:
"b3656882f12d5cc52079"
,
60
:
"a862123e36a80e6d5687"
,
61
:
"b62a5ef535c3bf5ae16c"
,
62
:
"568df88cb70591564450"
,
63
:
"227586c658a3f35ffc4a"
,
64
:
"32c41338a10d6a8ba316"
,
65
:
"dbf0e416350c970674ed"
,
66
:
"b3fc8c83ffbdf39a1cdb"
,
67
:
"b6da4f35c80e5246dd03"
,
68
:
"1cc4f0da6ca2684e5b24"
,
69
:
"78c1148df0648f724434"
,
70
:
"d8b620c8d056d806ac23"
,
71
:
"8ce9113b1568e9bf5537"
,
72
:
"a6222ada9c9a2655c92a"
,
73
:
"959fb844a60624eba321"
,
74
:
"8f58470ff84acae11858"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/set/secret-set.vue
View file @
0f24e887
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditTime: 2020-0
5-28 15:34:32
* @LastEditTime: 2020-0
6-03 16:28:31
-->
<!--
<secret-set :categoryId="categoryId" @closeText="closeText" @submitText="submitText"></secret-set>
...
...
@@ -14,14 +14,14 @@
<el-dialog
:title=
"!!editRow.materialId ? '编辑' : '新建'"
:visible
.
sync=
"dialogVisible"
width=
"600px"
:before-close=
"handleClose"
>
<div
class=
""
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"小程序名称"
prop=
"
app
Name"
>
<limitInput
:inputWidth=
"402"
:inputValue
.
sync=
"ruleForm.
app
Name"
:holder=
"'请输入小程序名称'"
:getByType=
"'word'"
:maxLength=
"20"
>
</limitInput>
<el-form-item
label=
"小程序名称"
prop=
"
secret
Name"
>
<limitInput
:inputWidth=
"402"
:inputValue
.
sync=
"ruleForm.
secret
Name"
:holder=
"'请输入小程序名称'"
:getByType=
"'word'"
:maxLength=
"20"
>
</limitInput>
</el-form-item>
<!--
<el-form-item
label=
"agentid"
prop=
"agentid"
>
<limitInput
:inputWidth=
"402"
:inputValue
.
sync=
"ruleForm.agentid"
:holder=
"'请输入agentid'"
:getByType=
"'word'"
:maxLength=
"80"
>
</limitInput>
</el-form-item>
-->
<el-form-item
label=
"secret"
prop=
"
s
ecret"
>
<limitInput
:inputWidth=
"402"
:inputValue
.
sync=
"ruleForm.
s
ecret"
:holder=
"'请输入secret'"
:getByType=
"'word'"
:maxLength=
"80"
>
</limitInput>
<el-form-item
label=
"secret"
prop=
"
memberS
ecret"
>
<limitInput
:inputWidth=
"402"
:inputValue
.
sync=
"ruleForm.
memberS
ecret"
:holder=
"'请输入secret'"
:getByType=
"'word'"
:maxLength=
"80"
>
</limitInput>
</el-form-item>
<el-form-item
label=
"关联商户"
prop=
"enterpriseId"
>
<el-select
class=
"w-402"
v-model=
"ruleForm.enterpriseId"
placeholder=
"全部品牌"
@
change=
"getTableList"
>
...
...
@@ -70,15 +70,14 @@ export default {
editPersion
:
localStorage
.
getItem
(
'userName'
),
dialogVisible
:
true
,
ruleForm
:
{
app
Name
:
''
,
s
ecret
:
''
,
secret
Name
:
''
,
memberS
ecret
:
''
,
enterpriseId
:
''
,
secretRelationId
:
''
},
rules
:
{
appName
:
[{
required
:
true
,
message
:
'请输入小程序名称'
,
trigger
:
'blur'
}],
agentid
:
[{
required
:
true
,
message
:
'请输入agentid'
,
trigger
:
'blur'
}],
secret
:
[{
required
:
true
,
message
:
'请输入secret'
,
trigger
:
'blur'
}],
secretName
:
[{
required
:
true
,
message
:
'请输入小程序名称'
,
trigger
:
'blur'
}],
memberSecret
:
[{
required
:
true
,
message
:
'请输入secret'
,
trigger
:
'blur'
}],
enterpriseId
:
[{
required
:
true
,
message
:
'请选择关联商户'
,
trigger
:
'change'
}]
},
brandOptions
:
[]
//品牌
...
...
@@ -130,11 +129,11 @@ export default {
const
that
=
this
;
const
data
=
{
secretRelationId
:
that
.
ruleForm
.
secretRelationId
,
appName
:
that
.
ruleForm
.
app
Name
,
secretName
:
that
.
ruleForm
.
secret
Name
,
enterpriseId
:
that
.
ruleForm
.
enterpriseId
,
secret
:
that
.
ruleForm
.
s
ecret
memberSecret
:
that
.
ruleForm
.
memberS
ecret
};
postRequest
(
that
.
ruleForm
.
secretRelationId
?
'/haoban-manage3-web/member-secret-set'
:
'/haoban-manage3-web/
member-secret-set'
,
data
)
postRequest
(
'/haoban-manage3-web/wx-enterprise-
member-secret-set'
,
data
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
...
...
src/views/enterprise/enterpriseSet.vue
View file @
0f24e887
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-06-0
2 15:43:06
* @LastEditTime: 2020-06-0
3 16:38:47
-->
<
template
>
<div
class=
"daily-set-wrap "
>
...
...
@@ -43,9 +43,9 @@
<div
class=
"m-b-20 secret-cell"
>
<span
class=
"inline-block w-127"
><el-tooltip
class=
"item"
effect=
"dark"
content=
"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。"
placement=
"top-start"
>
<span
style=
"cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;"
class=
"font-14 color-606266"
>
客户联系secret:
</span></el-tooltip>
</span
><el-input
class=
"m-l-10 w-399"
maxlength=
"200"
v-model=
"companyObj.
wxSecretKey"
placeholder=
"必填"
></el-input><el-button
class=
"m-l-20"
type=
"text"
@
click=
"saveSecret('1')"
>
保存
</el-button><span
v-if=
"companyObj.wxSecretKeyLastTime"
class=
"m-l-20 font-12 color-909399"
>
最后一次保存:
{{
companyObj
.
wxSecretKeyLast
Time
|
formatTimeStamp
}}
</span
><el-input
class=
"m-l-10 w-399"
maxlength=
"200"
v-model=
"companyObj.
secretVal"
placeholder=
"必填"
></el-input><el-button
class=
"m-l-20"
type=
"text"
@
click=
"saveSecret('1')"
>
保存
</el-button><span
v-if=
"companyObj.updateTime"
class=
"m-l-20 font-12 color-909399"
>
最后一次保存:
{{
companyObj
.
update
Time
|
formatTimeStamp
}}
</span
><span
class=
"m-l-37 font-14 color-303133"
><span
:class=
"['iconfont', companyObj.
wxSecretKeyFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
companyObj
.
wxSecretKey
Flag
?
'校验成功'
:
'校验失败'
}}
</span></span
><span
:class=
"['iconfont', companyObj.
checkFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
companyObj
.
check
Flag
?
'校验成功'
:
'校验失败'
}}
</span></span
>
<div
v-if=
"showWxError"
class=
"el-form-item__error m-l-137"
>
请填写客户联系 secret
</div>
</div>
...
...
@@ -56,19 +56,19 @@
<div
slot=
"content"
>
企业微信中通讯录同步若更新secret,请复制后更新至此处。
<br
/>
因获取Secret而获取通讯录的相关信息。首次使用好办请输入。
<br
/>
若发生相关变更,与企业微信无关,特此告知!
</div>
<span
style=
"cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;"
class=
"font-14 color-606266"
>
通讯录secret:
</span></el-tooltip
></span
><el-input
class=
"m-l-10 w-399"
maxlength=
"200"
v-model=
"companyObj.
contactSecret"
placeholder=
"非必填"
></el-input><el-button
class=
"m-l-20"
type=
"text"
@
click=
"saveSecret('2')"
>
保存
</el-button><span
v-if=
"companyObj.contactSecretLastTime"
class=
"m-l-20 font-12 color-909399"
>
最后一次保存:
{{
companyObj
.
contactSecretLast
Time
|
formatTimeStamp
}}
</span
><el-input
class=
"m-l-10 w-399"
maxlength=
"200"
v-model=
"companyObj.
secretVal"
placeholder=
"非必填"
></el-input><el-button
class=
"m-l-20"
type=
"text"
@
click=
"saveSecret('2')"
>
保存
</el-button><span
v-if=
"companyObj.updateTime"
class=
"m-l-20 font-12 color-909399"
>
最后一次保存:
{{
companyObj
.
update
Time
|
formatTimeStamp
}}
</span
><span
class=
"m-l-37 font-14 color-303133"
><span
:class=
"['iconfont', companyObj.c
ontactSecretFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
companyObj
.
contactSecret
Flag
?
'校验成功'
:
'校验失败'
}}
</span></span
><span
:class=
"['iconfont', companyObj.c
heckFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
companyObj
.
check
Flag
?
'校验成功'
:
'校验失败'
}}
</span></span
>
</div>
<div
class=
"m-b-20 secret-cell"
>
<span
class=
"inline-block w-127"
><el-tooltip
class=
"item"
effect=
"dark"
content=
"用于获取登录小程序用户的手机号/姓名/部门信息"
placement=
"top-start"
>
<span
style=
"cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;"
class=
"font-14 color-606266"
>
好办助手secret:
</span></el-tooltip>
</span
><el-input
class=
"m-l-10 w-399"
v-model=
"companyObj.
haobanSecret"
placeholder=
"必填"
></el-input><el-button
class=
"m-l-20"
type=
"text"
@
click=
"saveSecret('3')"
>
保存
</el-button><span
class=
"m-l-20 font-12 color-909399"
>
最后一次保存:
{{
companyObj
.
haobanSecretLast
Time
||
formatTimeStamp
}}
</span
><el-input
class=
"m-l-10 w-399"
v-model=
"companyObj.
secretVal"
placeholder=
"必填"
></el-input><el-button
class=
"m-l-20"
type=
"text"
@
click=
"saveSecret('3')"
>
保存
</el-button><span
class=
"m-l-20 font-12 color-909399"
>
最后一次保存:
{{
companyObj
.
update
Time
||
formatTimeStamp
}}
</span
><span
class=
"m-l-37 font-14 color-303133"
><span
:class=
"['iconfont', companyObj.
haobanSecretFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
companyObj
.
haobanSecret
Flag
?
'校验成功'
:
'校验失败'
}}
</span></span
><span
:class=
"['iconfont', companyObj.
checkFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
companyObj
.
check
Flag
?
'校验成功'
:
'校验失败'
}}
</span></span
>
<div
v-if=
"showHaobanError"
class=
"el-form-item__error m-l-137"
>
请填写
通讯录
secret
</div>
<div
v-if=
"showHaobanError"
class=
"el-form-item__error m-l-137"
>
请填写
好办助手
secret
</div>
</div>
<!--
<div
class=
"secret-cell m-b-20"
>
<span
class=
"inline-block w-127"
...
...
@@ -84,12 +84,12 @@
<div
class=
"table-cell m-t-10 p-l-137"
>
<el-table
class=
"no-empty-icon-table"
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%', minHeight: tableH }">
<el-table-column
label=
"小程序名称"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
app
Name
||
'--'
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
secret
Name
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"secret"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
secret
|
'--'
}}
</span
><span
:class=
"['iconfont', scope.row.check
_flag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
scope
.
row
.
check_f
lag
?
'校验成功'
:
'校验失败'
}}
</span>
<span>
{{
scope
.
row
.
secret
Val
|
'--'
}}
</span
><span
:class=
"['iconfont', scope.row.check
Flag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"
></span><span
class=
"p-l-10"
>
{{
scope
.
row
.
checkF
lag
?
'校验成功'
:
'校验失败'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"关联商户"
show-overflow-tooltip
>
...
...
@@ -97,8 +97,8 @@
</el-table-column>
<el-table-column
prop=
""
label=
"最近编辑时间"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<div
class=
"line-18"
>
{{
scope
.
row
.
update
_t
ime
|
timeStampToYmd
}}
</div>
<div
class=
"line-18"
>
{{
scope
.
row
.
update
_t
ime
|
timeStampToHms
}}
</div>
<div
class=
"line-18"
>
{{
scope
.
row
.
update
T
ime
|
timeStampToYmd
}}
</div>
<div
class=
"line-18"
>
{{
scope
.
row
.
update
T
ime
|
timeStampToHms
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"操作"
show-overflow-tooltip
>
...
...
@@ -139,20 +139,28 @@ export default {
corpIndustry
:
''
,
corpSubIndustry
:
''
,
corpUserMax
:
''
,
location
:
''
,
wxSecretKey
:
''
,
contactSecret
:
''
,
memberSecret
:
''
,
wxSecretKeyFlag
:
true
,
contactSecretFlag
:
true
,
memberSecretFlag
:
true
,
wxSecretKeyLastTime
:
null
,
contactSecretLastTime
:
null
,
memberSecretLastTime
:
null
,
haobanSecret
:
''
,
haobanSecretFlag
:
true
,
haobanSecretLastTime
:
null
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
:
false
,
showContactError
:
false
,
...
...
@@ -209,12 +217,12 @@ export default {
let
para
=
{
secretRelationId
:
row
.
secretRelationId
};
postRequest
(
'/haoban-manage3-web/member-secret-
set
'
,
para
)
postRequest
(
'/haoban-manage3-web/member-secret-
del
'
,
para
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
showMsg
.
showmsg
(
'删除成功'
,
'success'
);
that
.
get
App
Data
();
that
.
get
Secret
Data
();
return
;
}
errMsg
.
errorMsg
(
resData
);
...
...
@@ -233,16 +241,16 @@ export default {
const
that
=
this
;
let
para
=
{};
if
(
flag
==
1
)
{
para
.
wxSecretKey
=
String
(
that
.
companyObj
.
wxSecretKey
).
trim
();
that
.
showWxError
=
!!
that
.
companyObj
.
wxSecretKey
?
false
:
true
;
para
.
memberSecret
=
String
(
that
.
wxObj
.
secretVal
).
trim
();
that
.
showWxError
=
!!
that
.
wxObj
.
secretVal
?
false
:
true
;
}
// if (flag == 2) {
// para.
contactSecret = String(that.companyObj.contactSecret
).trim();
// that.showContactError = !!that.companyObj.
contactSecret
? false : true;
// para.
secretVal = String(that.wxObj.secretVal
).trim();
// that.showContactError = !!that.companyObj.
secretVal
? false : true;
// }
if
(
flag
==
3
)
{
para
.
haobanSecret
=
String
(
that
.
companyObj
.
haobanSecret
).
trim
();
that
.
showHaobanError
=
!!
that
.
companyObj
.
haobanSecret
?
false
:
true
;
para
.
memberSecret
=
String
(
that
.
haobanObj
.
secretVal
).
trim
();
that
.
showHaobanError
=
!!
that
.
haobanObj
.
secretVal
?
false
:
true
;
}
if
(
that
.
showWxError
||
that
.
showHaobanError
)
{
return
false
;
...
...
@@ -251,13 +259,12 @@ export default {
},
300
),
postSaveSecret
(
flag
,
para
)
{
const
that
=
this
;
const
url
=
flag
==
1
?
'/wx-enterprise-wx-secret-set'
:
flag
==
2
?
'wx-enterprise-contact-secret-set'
:
'wx-enterprise-member-secret-set'
;
postRequest
(
`/haoban-manage3-web/
${
url
}
`
,
para
)
postRequest
(
`/haoban-manage3-web/wx-enterprise-member-secret-set`
,
para
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
showMsg
.
showmsg
(
'操作成功'
,
'success'
);
that
.
getData
();
that
.
get
Secret
Data
();
return
false
;
}
errMsg
.
errorMsg
(
resData
);
...
...
@@ -298,19 +305,36 @@ export default {
});
});
},
/**
* 获取
小程序
数据
* 获取
secret
数据
*/
get
AppData
(
val
)
{
get
SecretData
(
)
{
const
that
=
this
;
let
para
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
};
getRequest
(
'/haoban-manage3-web/
member-
secret-list'
,
para
)
getRequest
(
'/haoban-manage3-web/secret-list'
,
para
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
that
.
tableData
=
resData
.
result
;
that
.
tableData
=
[];
if
(
resData
.
result
&&
resData
.
result
.
length
)
{
resData
.
result
.
forEach
(
ele
=>
{
if
(
ele
.
secretType
==
1
)
{
that
.
wxObj
=
ele
;
}
if
(
ele
.
secretType
==
2
)
{
that
.
contactObj
=
ele
;
}
if
(
ele
.
secretType
==
3
)
{
that
.
haobanObj
=
ele
;
}
if
(
ele
.
secretType
==
4
)
{
that
.
tableData
.
push
(
ele
);
}
});
}
return
false
;
}
errMsg
.
errorMsg
(
resData
);
...
...
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