Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
office-web
Commits
08ec5488
Commit
08ec5488
authored
Mar 27, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改设置更换管理员
parent
e1a520f4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
12 deletions
+51
-12
index.html
dist/index.html
+2
-2
app.c653b1b2004303f3de416f2dbb50ee1c.css
dist/static/css/app.c653b1b2004303f3de416f2dbb50ee1c.css
+0
-0
32.2f36e8d76bfa99f08d3e.js
dist/static/js/32.2f36e8d76bfa99f08d3e.js
+2
-0
32.bbe8a34d734db4773e2a.js
dist/static/js/32.bbe8a34d734db4773e2a.js
+0
-2
manifest.d09000bc3e2179688d8a.js
dist/static/js/manifest.d09000bc3e2179688d8a.js
+2
-2
replaceAdmin.vue
src/views/setting/replaceAdmin.vue
+45
-6
No files found.
dist/index.html
View file @
08ec5488
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.77006b78fa45bb8b5f333105780f4d26.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
https://cdn.ravenjs.com/3.26.2/vue/raven.min.js
crossorigin=
anonymous
></script><script>
Raven
.
config
(
'https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672'
).
install
();
</script><script
type=
text/javascript
src=
./static/js/manifest.96bb5f14b1988a204c4a.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2a06374a31d674ca49d2.js
></script><script
type=
text/javascript
src=
./static/js/app.e56c11819c3bab8482a2.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.c653b1b2004303f3de416f2dbb50ee1c.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
https://cdn.ravenjs.com/3.26.2/vue/raven.min.js
crossorigin=
anonymous
></script><script>
Raven
.
config
(
'https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672'
).
install
();
</script><script
type=
text/javascript
src=
./static/js/manifest.d09000bc3e2179688d8a.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2a06374a31d674ca49d2.js
></script><script
type=
text/javascript
src=
./static/js/app.e56c11819c3bab8482a2.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
77006b78fa45bb8b5f333105780f4d26
.css
→
dist/static/css/app.
c653b1b2004303f3de416f2dbb50ee1c
.css
View file @
08ec5488
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/32.2f36e8d76bfa99f08d3e.js
0 → 100644
View file @
08ec5488
webpackJsonp
([
32
],{
"6zQ6"
:
function
(
e
,
t
){},
ys9I
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"3Xzz"
),
n
=
a
(
"PI0u"
),
s
=
a
(
"Ch4/"
),
o
=
a
(
"3E4D"
),
i
=
a
(
"P9l9"
),
l
=
{
name
:
"replaceAdmin"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"更换超级管理员"
,
path
:
""
}],
subNavText
:
"更换超级管理员,需要先验证当前超级管理员身份"
,
active
:
0
,
ruleForm
:{
name
:
"11"
,
phone
:
1334444444
,
code
:
""
},
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入当前绑定账号"
,
trigger
:
"blur"
}],
phone
:[{
required
:
!
0
,
message
:
"请输入手机号"
,
trigger
:
"blur"
}],
code
:[{
required
:
!
0
,
message
:
"请输入验证码"
,
trigger
:
"blur"
}]},
disableBtn
:
!
1
,
countNum
:
60
,
newFormLoad
:
!
1
,
newRuleForm
:{
name
:
""
,
id
:
""
,
label
:
""
,
type
:
""
},
newRules
:{
name
:[{
required
:
!
0
,
message
:
"请输入手机号/姓名"
,
trigger
:[
"blur"
,
"change"
]}]},
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
0
},
treeData
:{},
defaultSelection
:[],
onlyPerson
:
!
0
,
changed
:
""
}},
computed
:{},
methods
:{
showSelect
:
function
(){
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
0
,
isSelectPerson
:
!
0
}},
handleSelectedList
:
function
(
e
){
this
.
defaultSelection
=
e
,
e
.
length
&&
(
this
.
newRuleForm
.
name
=
e
[
0
].
name
,
this
.
newRuleForm
.
id
=
e
[
0
].
id
)},
countDown
:
function
(){
var
e
=
this
,
t
=
setInterval
(
function
(){
if
(
0
===
e
.
countNum
)
return
clearInterval
(
t
),
e
.
countNum
=
60
,
e
.
disableBtn
=!
1
,
!
1
;
e
.
countNum
--
},
1
e3
)},
sendCode
:
Object
(
n
.
a
)(
function
(
e
){
this
.
disableBtn
=!
0
,
this
.
postSendCode
(
e
)},
500
),
postSendCode
:
function
(
e
){
var
t
=
this
;
Object
(
i
.
c
)(
"/haoban-manage-web/enterprise-setting/send-admin-valid-code"
,{}).
then
(
function
(
a
){
var
r
=
a
.
data
;
if
(
1
!=
r
.
errorCode
)
s
.
a
.
errorMsg
(
r
);
else
{
t
.
countDown
();
var
n
=
String
(
e
).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
);
t
.
$message
({
message
:
"验证码已发送到您的手机:+86 "
+
n
,
type
:
"success"
})}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
submitForm
:
Object
(
n
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
checkSendCode
()})},
500
),
checkSendCode
:
function
(){
var
e
=
this
,
t
=
{
code
:
e
.
ruleForm
.
code
};
Object
(
i
.
c
)(
"/haoban-manage-web/enterprise-setting/check-admin-valid-code"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
1
!=
a
.
errorCode
?
s
.
a
.
errorMsg
(
a
):
e
.
active
++>
2
&&
e
.
active
}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
newSubmitForm
:
Object
(
n
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
newRuleForm
.
name
=
t
.
newRuleForm
.
name
.
replace
(
/
(
^
\s
+
)
|
(\s
+$
)
/g
,
""
),
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postReplace
()})},
500
),
postReplace
:
function
(){
var
e
=
this
,
t
=
{
adminClerkId
:
e
.
newRuleForm
.
id
};
Object
(
i
.
c
)(
"/haoban-manage-web/enterprise-setting/check-admin-valid-code"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
active
++
,
void
o
.
a
.
showmsg
(
"保存成功"
,
"success"
);
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
submitFormBack
:
function
(){
this
.
$refs
.
newRuleForm
.
resetFields
(),
this
.
active
&&
this
.
active
--
},
getCurrentUser
:
function
(){
var
e
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
));
this
.
ruleForm
.
name
=
e
.
name
,
this
.
ruleForm
.
phone
=
e
.
phoneNumber
}},
mounted
:
function
(){
this
.
getCurrentUser
()},
components
:{
navCrumb
:
r
.
a
}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"replaceAdmin-wrap common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
height
:
e
.
$store
.
state
.
bgHeight
}},[
a
(
"el-steps"
,{
attrs
:{
active
:
e
.
active
,
"finish-status"
:
"success"
,
"align-center"
:
""
}},[
a
(
"el-step"
,{
attrs
:{
title
:
"获取验证码"
}}),
e
.
_v
(
" "
),
a
(
"el-step"
,{
attrs
:{
title
:
"绑定新的超级管理员"
}}),
e
.
_v
(
" "
),
a
(
"el-step"
,{
attrs
:{
title
:
"完成"
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"w-514 replaceAdmin-wrap-form m-t-45"
},[
0
==
e
.
active
?
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"110px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"当前绑定账号"
,
prop
:
"name"
}},[
a
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
disabled
:
""
,
placeholder
:
""
},
model
:{
value
:
e
.
ruleForm
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"name"
,
t
)},
expression
:
"ruleForm.name"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phone"
}},[
a
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
disabled
:
""
,
placeholder
:
""
},
model
:{
value
:
e
.
ruleForm
.
phone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"phone"
,
t
)},
expression
:
"ruleForm.phone"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20 v-align-b"
,
attrs
:{
type
:
"primary"
,
plain
:
""
,
disabled
:
e
.
disableBtn
},
on
:{
click
:
function
(
t
){
e
.
sendCode
(
e
.
ruleForm
.
phone
)}}},[
e
.
_v
(
e
.
_s
(
!
e
.
disableBtn
&&
e
.
countNum
?
"获取验证码"
:
e
.
countNum
+
"s"
)
+
" "
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"验证码"
,
prop
:
"code"
}},[
a
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
placeholder
:
"请输入验证码"
},
model
:{
value
:
e
.
ruleForm
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"code"
,
t
)},
expression
:
"ruleForm.code"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
1
==
e
.
active
,
expression
:
"active == 1"
}],
ref
:
"newRuleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
newRuleForm
,
rules
:
e
.
newRules
,
"label-width"
:
"140px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"新绑定超级管理员"
,
prop
:
"name"
}},[
a
(
"div"
,{
staticClass
:
"el-input w-280"
,
on
:{
click
:
e
.
showSelect
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
newRuleForm
.
name
?
e
.
newRuleForm
.
name
:
"请选择"
)
+
"
\
n "
)])]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
newFormLoad
},
on
:{
click
:
function
(
t
){
e
.
newSubmitForm
(
"newRuleForm"
)}}},[
e
.
_v
(
"提 交"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
submitFormBack
}},[
e
.
_v
(
"上一步"
)])],
1
)],
1
),
e
.
_v
(
" "
),
2
==
e
.
active
?
a
(
"div"
,{
staticClass
:
"replaceAdmin-wrap-success"
},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-w-500"
},[
e
.
_v
(
"操作成功"
)])]):
e
.
_e
()],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"vue-select-employee"
,{
attrs
:{
defaultSelection
:
e
.
defaultSelection
,
treeSet
:
e
.
treeSet
,
onlyPerson
:
e
.
onlyPerson
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"icon-outer"
},[
t
(
"i"
,{
staticClass
:
"el-icon-success"
})])}]};
var
u
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"6zQ6"
)},
"data-v-c5a21ed0"
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
dist/static/js/32.bbe8a34d734db4773e2a.js
deleted
100644 → 0
View file @
e1a520f4
webpackJsonp
([
32
],{
"5H2r"
:
function
(
e
,
t
){},
ys9I
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"3Xzz"
),
n
=
r
(
"PI0u"
),
s
=
r
(
"Ch4/"
),
o
=
r
(
"P9l9"
),
i
=
{
name
:
"replaceAdmin"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"更换超级管理员"
,
path
:
""
}],
subNavText
:
"更换超级管理员,需要先验证当前超级管理员身份"
,
active
:
0
,
ruleForm
:{
name
:
"11"
,
phone
:
1334444444
,
code
:
""
},
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入当前绑定账号"
,
trigger
:
"blur"
}],
phone
:[{
required
:
!
0
,
message
:
"请输入手机号"
,
trigger
:
"blur"
}],
code
:[{
required
:
!
0
,
message
:
"请输入验证码"
,
trigger
:
"blur"
}]},
disableBtn
:
!
1
,
countNum
:
60
,
newFormLoad
:
!
1
,
newRuleForm
:{
name
:
""
},
newRules
:{
name
:[{
required
:
!
0
,
message
:
"请输入手机号/姓名"
,
trigger
:[
"blur"
,
"change"
]}]}}},
computed
:{},
methods
:{
countDown
:
function
(){
var
e
=
this
,
t
=
setInterval
(
function
(){
if
(
0
===
e
.
countNum
)
return
clearInterval
(
t
),
e
.
countNum
=
60
,
e
.
disableBtn
=!
1
,
!
1
;
e
.
countNum
--
},
1
e3
)},
sendCode
:
Object
(
n
.
a
)(
function
(
e
){
this
.
disableBtn
=!
0
,
this
.
postSendCode
(
e
)},
500
),
postSendCode
:
function
(
e
){
var
t
=
this
;
Object
(
o
.
c
)(
"/haoban-manage-web/enterprise-setting/send-admin-valid-code"
,{}).
then
(
function
(
r
){
var
a
=
r
.
data
;
if
(
1
!=
a
.
errorCode
)
s
.
a
.
errorMsg
(
a
);
else
{
t
.
countDown
();
var
n
=
String
(
e
).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
);
t
.
$message
({
message
:
"验证码已发送到您的手机:+86 "
+
n
,
type
:
"success"
})}}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
submitForm
:
Object
(
n
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
checkSendCode
()})},
500
),
checkSendCode
:
function
(){
var
e
=
this
,
t
=
{
code
:
e
.
ruleForm
.
code
};
Object
(
o
.
c
)(
"/haoban-manage-web/enterprise-setting/check-admin-valid-code"
,
t
).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
s
.
a
.
errorMsg
(
r
):
e
.
active
++>
2
&&
e
.
active
}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
newSubmitForm
:
Object
(
n
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
newRuleForm
.
name
=
t
.
newRuleForm
.
name
.
replace
(
/
(
^
\s
+
)
|
(\s
+$
)
/g
,
""
),
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
t
.
postReplace
()})},
500
),
postReplace
:
function
(){
var
e
=
this
,
t
=
{
adminClerkId
:
e
.
newRuleForm
.
name
};
Object
(
o
.
c
)(
"/haoban-manage-web/enterprise-setting/check-admin-valid-code"
,
t
).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
s
.
a
.
errorMsg
(
r
):
e
.
active
++
}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
submitFormBack
:
function
(){
this
.
$refs
.
newRuleForm
.
resetFields
(),
this
.
active
&&
this
.
active
--
},
getCurrentUser
:
function
(){
var
e
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
));
this
.
ruleForm
.
name
=
e
.
name
,
this
.
ruleForm
.
phone
=
e
.
phoneNumber
}},
mounted
:
function
(){
this
.
getCurrentUser
()},
components
:{
navCrumb
:
a
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"replaceAdmin-wrap common-set-wrap"
},[
r
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"right-content"
},[
r
(
"div"
,{
staticClass
:
"right-box"
,
style
:{
height
:
e
.
$store
.
state
.
bgHeight
}},[
r
(
"el-steps"
,{
attrs
:{
active
:
e
.
active
,
"finish-status"
:
"success"
,
"align-center"
:
""
}},[
r
(
"el-step"
,{
attrs
:{
title
:
"获取验证码"
}}),
e
.
_v
(
" "
),
r
(
"el-step"
,{
attrs
:{
title
:
"绑定新的超级管理员"
}}),
e
.
_v
(
" "
),
r
(
"el-step"
,{
attrs
:{
title
:
"完成"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"w-514 replaceAdmin-wrap-form m-t-45"
},[
0
==
e
.
active
?
r
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"110px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"当前绑定账号"
,
prop
:
"name"
}},[
r
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
disabled
:
""
,
placeholder
:
""
},
model
:{
value
:
e
.
ruleForm
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"name"
,
t
)},
expression
:
"ruleForm.name"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"手机号"
,
prop
:
"phone"
}},[
r
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
disabled
:
""
,
placeholder
:
""
},
model
:{
value
:
e
.
ruleForm
.
phone
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"phone"
,
t
)},
expression
:
"ruleForm.phone"
}}),
r
(
"el-button"
,{
staticClass
:
"m-l-20 v-align-b"
,
attrs
:{
type
:
"primary"
,
plain
:
""
,
disabled
:
e
.
disableBtn
},
on
:{
click
:
function
(
t
){
e
.
sendCode
(
e
.
ruleForm
.
phone
)}}},[
e
.
_v
(
e
.
_s
(
!
e
.
disableBtn
&&
e
.
countNum
?
"获取验证码"
:
e
.
countNum
+
"s"
)
+
" "
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
"验证码"
,
prop
:
"code"
}},[
r
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
placeholder
:
"请输入验证码"
},
model
:{
value
:
e
.
ruleForm
.
code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"code"
,
t
)},
expression
:
"ruleForm.code"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"下一步"
)])],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
r
(
"el-form"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
1
==
e
.
active
,
expression
:
"active == 1"
}],
ref
:
"newRuleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
newRuleForm
,
rules
:
e
.
newRules
,
"label-width"
:
"140px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"新绑定超级管理员"
,
prop
:
"name"
}},[
r
(
"el-input"
,{
staticClass
:
"w-280"
,
attrs
:{
placeholder
:
"请输入手机号/姓名"
},
model
:{
value
:
e
.
newRuleForm
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
newRuleForm
,
"name"
,
t
)},
expression
:
"newRuleForm.name"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
newFormLoad
},
on
:{
click
:
function
(
t
){
e
.
newSubmitForm
(
"newRuleForm"
)}}},[
e
.
_v
(
"提 交"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
plain
:
""
},
on
:{
click
:
e
.
submitFormBack
}},[
e
.
_v
(
"上一步"
)])],
1
)],
1
),
e
.
_v
(
" "
),
2
==
e
.
active
?
r
(
"div"
,{
staticClass
:
"replaceAdmin-wrap-success"
},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"font-w-500"
},[
e
.
_v
(
"操作成功"
)])]):
e
.
_e
()],
1
)],
1
)]),
e
.
_v
(
" "
),
r
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"icon-outer"
},[
t
(
"i"
,{
staticClass
:
"el-icon-success"
})])}]};
var
c
=
r
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
r
(
"5H2r"
)},
"data-v-c7a41c18"
,
null
);
t
.
default
=
c
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
96bb5f14b1988a204c4
a.js
→
dist/static/js/manifest.
d09000bc3e2179688d8
a.js
View file @
08ec5488
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
f
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
b
[
t
]
&&
u
.
push
(
b
[
t
][
0
]),
b
[
t
]
=
0
;
for
(
r
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
r
)
&&
(
e
[
r
]
=
f
[
r
]);
for
(
c
&&
c
(
a
,
f
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
b
=
{
73
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
b
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
b
.
exports
,
b
,
b
.
exports
,
d
),
b
.
l
=!
0
,
b
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
b
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
b
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
f
=
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
:
"8bb7825054d4a9c584b6"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"c8863e7a9d4b284238db"
,
3
:
"b5227de6c62a15206034"
,
4
:
"e118a3eb217f1071e7cf"
,
5
:
"99755e0c187088d67f05"
,
6
:
"00b931389a74250125a3"
,
7
:
"50747c5f602fa39713ee"
,
8
:
"ccfd1bb81626da46f432"
,
9
:
"b916c8d12141617e4db2"
,
10
:
"c13003c7d852bdc7c856"
,
11
:
"48cce40bd1119cfef79d"
,
12
:
"8a1633b353b37d5bfcd2"
,
13
:
"8ef8b641893400bbea66"
,
14
:
"45c8be9d9f4738ad43ac"
,
15
:
"cb3cf92669ce0fb6afde"
,
16
:
"47caf94fd78d59ab457d"
,
17
:
"2c76434ec01b2b5ee02f"
,
18
:
"e92891d39fbd5cb95e11"
,
19
:
"909768b355b70e1daadf"
,
20
:
"5e49628028f6f8323119"
,
21
:
"d62a2d0db3b92654caa8"
,
22
:
"dec9447a8c45f2a2c7bb"
,
23
:
"bd9202e3991ee39668e6"
,
24
:
"3ae82214b65939d3d2e0"
,
25
:
"b4233349d83148a31f8a"
,
26
:
"19434855915319d647f1"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"66336d0349b3f92ee9cf"
,
29
:
"7997e8a2ccbd7372a45d"
,
30
:
"fa0e0e20a9883b94be73"
,
31
:
"1b98b5a68e3b103fd91f"
,
32
:
"bbe8a34d734db4773e2a"
,
33
:
"8052bd292c6b3e409828"
,
34
:
"3a04791910cd204b79c6"
,
35
:
"23d1f549124fef36aba9"
,
36
:
"b797c8ccb7c1e070cf6e"
,
37
:
"71efbfd615b2771cd30a"
,
38
:
"e0a284dc9416367412c8"
,
39
:
"4e4f3078a8dcc914f16d"
,
40
:
"c9e833cac822ab51893c"
,
41
:
"6cb8dca7cdc6583bd8af"
,
42
:
"829ad1678ff42bcd8d90"
,
43
:
"fbdc7508281f34256aae"
,
44
:
"cc08ab25e69a7512dde1"
,
45
:
"ccb831e54fa6a9b72801"
,
46
:
"9eaf66f60e0582e37dd3"
,
47
:
"20ce87b18923be5a5ade"
,
48
:
"8637ac0c8190d7e6aa0e"
,
49
:
"7a4b4987e557f21fd1e1"
,
50
:
"e5be71afc96658354e7d"
,
51
:
"53e8e57b506734c7dc8f"
,
52
:
"ba2e1eadb25224d755c2"
,
53
:
"9a3946dc1ca349c66815"
,
54
:
"d246f8dfaeac3f9c1044"
,
55
:
"e59741e60bac30a67736"
,
56
:
"a2faa30e5f1c6aeb57be"
,
57
:
"9064c84ce91fad83fe44"
,
58
:
"04dbe15e8a9576b15187"
,
59
:
"b62232922e7ccdd7242e"
,
60
:
"b8e9ee626c3fbd4087e2"
,
61
:
"ccd9812bb3bb7bdf57e7"
,
62
:
"6b6bfcaa666e2c35399e"
,
63
:
"b05b4ec28d2829c54f65"
,
64
:
"601620d6f34271c4b9bb"
,
65
:
"2fa8cdc7a52fbbb85a4d"
,
66
:
"9f1afb5a13b54ea92a02"
,
67
:
"d674abd10a01e3c004c8"
,
68
:
"2189902bf2848c91608c"
,
69
:
"a8a72ece13d321e6709c"
,
72
:
"e19aae5a21dcfad3391e"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
b
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
b
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
f
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
f
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
t
]
=
0
;
for
(
r
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
r
)
&&
(
e
[
r
]
=
f
[
r
]);
for
(
c
&&
c
(
a
,
f
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
d
=
{
73
:
0
};
function
b
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
d
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
d
.
exports
,
d
,
d
.
exports
,
b
),
d
.
l
=!
0
,
d
.
exports
}
b
.
e
=
function
(
e
){
var
c
=
d
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
b
){
c
=
d
[
e
]
=
[
a
,
b
]});
c
[
2
]
=
a
;
var
f
=
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
:
"8bb7825054d4a9c584b6"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"c8863e7a9d4b284238db"
,
3
:
"b5227de6c62a15206034"
,
4
:
"e118a3eb217f1071e7cf"
,
5
:
"99755e0c187088d67f05"
,
6
:
"00b931389a74250125a3"
,
7
:
"50747c5f602fa39713ee"
,
8
:
"ccfd1bb81626da46f432"
,
9
:
"b916c8d12141617e4db2"
,
10
:
"c13003c7d852bdc7c856"
,
11
:
"48cce40bd1119cfef79d"
,
12
:
"8a1633b353b37d5bfcd2"
,
13
:
"8ef8b641893400bbea66"
,
14
:
"45c8be9d9f4738ad43ac"
,
15
:
"cb3cf92669ce0fb6afde"
,
16
:
"47caf94fd78d59ab457d"
,
17
:
"2c76434ec01b2b5ee02f"
,
18
:
"e92891d39fbd5cb95e11"
,
19
:
"909768b355b70e1daadf"
,
20
:
"5e49628028f6f8323119"
,
21
:
"d62a2d0db3b92654caa8"
,
22
:
"dec9447a8c45f2a2c7bb"
,
23
:
"bd9202e3991ee39668e6"
,
24
:
"3ae82214b65939d3d2e0"
,
25
:
"b4233349d83148a31f8a"
,
26
:
"19434855915319d647f1"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"66336d0349b3f92ee9cf"
,
29
:
"7997e8a2ccbd7372a45d"
,
30
:
"fa0e0e20a9883b94be73"
,
31
:
"1b98b5a68e3b103fd91f"
,
32
:
"2f36e8d76bfa99f08d3e"
,
33
:
"8052bd292c6b3e409828"
,
34
:
"3a04791910cd204b79c6"
,
35
:
"23d1f549124fef36aba9"
,
36
:
"b797c8ccb7c1e070cf6e"
,
37
:
"71efbfd615b2771cd30a"
,
38
:
"e0a284dc9416367412c8"
,
39
:
"4e4f3078a8dcc914f16d"
,
40
:
"c9e833cac822ab51893c"
,
41
:
"6cb8dca7cdc6583bd8af"
,
42
:
"829ad1678ff42bcd8d90"
,
43
:
"fbdc7508281f34256aae"
,
44
:
"cc08ab25e69a7512dde1"
,
45
:
"ccb831e54fa6a9b72801"
,
46
:
"9eaf66f60e0582e37dd3"
,
47
:
"20ce87b18923be5a5ade"
,
48
:
"8637ac0c8190d7e6aa0e"
,
49
:
"7a4b4987e557f21fd1e1"
,
50
:
"e5be71afc96658354e7d"
,
51
:
"53e8e57b506734c7dc8f"
,
52
:
"ba2e1eadb25224d755c2"
,
53
:
"9a3946dc1ca349c66815"
,
54
:
"d246f8dfaeac3f9c1044"
,
55
:
"e59741e60bac30a67736"
,
56
:
"a2faa30e5f1c6aeb57be"
,
57
:
"9064c84ce91fad83fe44"
,
58
:
"04dbe15e8a9576b15187"
,
59
:
"b62232922e7ccdd7242e"
,
60
:
"b8e9ee626c3fbd4087e2"
,
61
:
"ccd9812bb3bb7bdf57e7"
,
62
:
"6b6bfcaa666e2c35399e"
,
63
:
"b05b4ec28d2829c54f65"
,
64
:
"601620d6f34271c4b9bb"
,
65
:
"2fa8cdc7a52fbbb85a4d"
,
66
:
"9f1afb5a13b54ea92a02"
,
67
:
"d674abd10a01e3c004c8"
,
68
:
"2189902bf2848c91608c"
,
69
:
"a8a72ece13d321e6709c"
,
72
:
"e19aae5a21dcfad3391e"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
d
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
f
.
appendChild
(
n
),
a
},
b
.
m
=
e
,
b
.
c
=
a
,
b
.
d
=
function
(
e
,
c
,
a
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
b
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
c
,
"a"
,
c
),
c
},
b
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
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/setting/replaceAdmin.vue
View file @
08ec5488
...
@@ -26,7 +26,9 @@
...
@@ -26,7 +26,9 @@
<!-- 新绑定 -->
<!-- 新绑定 -->
<el-form
v-show=
"active == 1"
:model=
"newRuleForm"
:rules=
"newRules"
ref=
"newRuleForm"
label-width=
"140px"
class=
"demo-ruleForm"
>
<el-form
v-show=
"active == 1"
:model=
"newRuleForm"
:rules=
"newRules"
ref=
"newRuleForm"
label-width=
"140px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"新绑定超级管理员"
prop=
"name"
class=
""
>
<el-form-item
label=
"新绑定超级管理员"
prop=
"name"
class=
""
>
<el-input
v-model=
"newRuleForm.name"
placeholder=
"请输入手机号/姓名"
class=
"w-280"
></el-input>
<div
class=
"el-input w-280"
@
click=
"showSelect"
>
{{
!!
newRuleForm
.
name
?
newRuleForm
.
name
:
'请选择'
}}
</div>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
:loading=
"newFormLoad"
@
click=
"newSubmitForm('newRuleForm')"
>
提 交
</el-button>
<el-button
type=
"primary"
:loading=
"newFormLoad"
@
click=
"newSubmitForm('newRuleForm')"
>
提 交
</el-button>
...
@@ -41,6 +43,8 @@
...
@@ -41,6 +43,8 @@
</div>
</div>
</div>
</div>
</div>
</div>
<vue-select-employee
:defaultSelection=
"defaultSelection"
:treeSet=
"treeSet"
:onlyPerson=
"onlyPerson"
:changed=
"changed"
@
handleSelectedList=
"handleSelectedList"
>
</vue-select-employee>
<vue-gic-footer></vue-gic-footer>
<vue-gic-footer></vue-gic-footer>
</div>
</div>
</
template
>
</
template
>
...
@@ -48,6 +52,7 @@
...
@@ -48,6 +52,7 @@
import
navCrumb
from
'@/components/nav/nav.vue'
;
import
navCrumb
from
'@/components/nav/nav.vue'
;
import
{
_debounce
}
from
'@/common/js/public'
;
import
{
_debounce
}
from
'@/common/js/public'
;
import
errMsg
from
'@/common/js/error'
;
import
errMsg
from
'@/common/js/error'
;
import
showMsg
from
'@/common/js/showmsg'
;
import
{
postRequest
}
from
'@/api/api'
;
import
{
postRequest
}
from
'@/api/api'
;
export
default
{
export
default
{
name
:
'replaceAdmin'
,
name
:
'replaceAdmin'
,
...
@@ -82,23 +87,56 @@ export default {
...
@@ -82,23 +87,56 @@ export default {
phone
:
[{
required
:
true
,
message
:
'请输入手机号'
,
trigger
:
'blur'
}],
phone
:
[{
required
:
true
,
message
:
'请输入手机号'
,
trigger
:
'blur'
}],
code
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
code
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
},
},
disableBtn
:
false
,
// 发验证码
disableBtn
:
false
,
// 发验证码
countNum
:
60
,
countNum
:
60
,
// 新绑定
// 新绑定
newFormLoad
:
false
,
newFormLoad
:
false
,
newRuleForm
:
{
newRuleForm
:
{
name
:
''
name
:
''
,
id
:
''
,
label
:
''
,
type
:
''
},
},
newRules
:
{
newRules
:
{
name
:
[{
required
:
true
,
message
:
'请输入手机号/姓名'
,
trigger
:
[
'blur'
,
'change'
]
}]
name
:
[{
required
:
true
,
message
:
'请输入手机号/姓名'
,
trigger
:
[
'blur'
,
'change'
]
}]
}
},
// 行政架构选人
treeSet
:
{
isSelectPerson
:
true
,
// 控制只能选部门(false)
dialogVisible
:
false
,
// 控制显示/隐藏
isSingle
:
true
// 是否单选
},
treeData
:
{},
defaultSelection
:
[],
// 已选数据
onlyPerson
:
true
,
// 控制只能选人(true)
changed
:
''
};
};
},
},
computed
:
{},
computed
:
{},
methods
:
{
methods
:
{
/**
/**
* 显示选择控件
*/
showSelect
()
{
const
that
=
this
;
that
.
treeSet
=
{
dialogVisible
:
true
,
isSingle
:
true
,
isSelectPerson
:
true
};
},
/**
* 处理树形控件选择的数据
*/
handleSelectedList
(
list
)
{
const
that
=
this
;
that
.
defaultSelection
=
list
;
if
(
!!
list
.
length
)
{
that
.
newRuleForm
.
name
=
list
[
0
].
name
;
that
.
newRuleForm
.
id
=
list
[
0
].
id
;
}
},
/**
* 倒计时
* 倒计时
*/
*/
countDown
()
{
countDown
()
{
...
@@ -213,13 +251,14 @@ export default {
...
@@ -213,13 +251,14 @@ export default {
postReplace
()
{
postReplace
()
{
let
that
=
this
;
let
that
=
this
;
let
para
=
{
let
para
=
{
adminClerkId
:
that
.
newRuleForm
.
name
,
adminClerkId
:
that
.
newRuleForm
.
id
,
};
};
postRequest
(
'/haoban-manage-web/enterprise-setting/check-admin-valid-code'
,
para
)
postRequest
(
'/haoban-manage-web/enterprise-setting/check-admin-valid-code'
,
para
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
that
.
active
++
;
that
.
active
++
;
showMsg
.
showmsg
(
'保存成功'
,
'success'
);
return
;
return
;
}
}
errMsg
.
errorMsg
(
resData
);
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