Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
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
徐俊
yn-science-front
Commits
c46dc64f
Commit
c46dc64f
authored
Dec 09, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4444444
parent
aa137b34
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
86 deletions
+87
-86
infoEdit.vue
src/views/basicSetting/person/components/infoEdit.vue
+8
-7
index.vue
src/views/basicSetting/person/index.vue
+1
-1
info.vue
src/views/basicSetting/person/info.vue
+77
-77
Index.vue
src/views/basicSetting/unit/Index.vue
+1
-1
No files found.
src/views/basicSetting/person/components/infoEdit.vue
View file @
c46dc64f
...
@@ -47,11 +47,11 @@ export default {
...
@@ -47,11 +47,11 @@ export default {
return
{
return
{
rules
:
{
rules
:
{
personName
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
personName
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
nation
:
[{
required
:
fals
e
,
message
:
'*'
,
trigger
:
'change'
}],
nation
:
[{
required
:
tru
e
,
message
:
'*'
,
trigger
:
'change'
}],
title
:
[{
required
:
fals
e
,
message
:
'*'
,
trigger
:
'change'
}],
title
:
[{
required
:
tru
e
,
message
:
'*'
,
trigger
:
'change'
}],
spec
:
[{
required
:
fals
e
,
message
:
'*'
,
trigger
:
'change'
}],
spec
:
[{
required
:
tru
e
,
message
:
'*'
,
trigger
:
'change'
}],
degree
:
[{
required
:
fals
e
,
message
:
'*'
,
trigger
:
'change'
}],
degree
:
[{
required
:
tru
e
,
message
:
'*'
,
trigger
:
'change'
}],
duty
:
[{
required
:
fals
e
,
message
:
'*'
,
trigger
:
'blur'
}],
duty
:
[{
required
:
tru
e
,
message
:
'*'
,
trigger
:
'blur'
}],
telephone
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
telephone
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
fax
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
fax
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
email
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
email
:
[{
required
:
true
,
message
:
'*'
,
trigger
:
'blur'
},],
...
@@ -77,12 +77,13 @@ export default {
...
@@ -77,12 +77,13 @@ export default {
let
par
=
{
...
pars
}
let
par
=
{
...
pars
}
this
.
$api
.
person
.
updatePerson
(
par
).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
person
.
updatePerson
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
$message
.
success
(
'
修改
成功!'
)
this
.
$message
.
success
(
'成功!'
)
}
}
this
.
$emit
(
'load'
,
false
)
this
.
$emit
(
'load'
,
false
)
}).
catch
(()
=>
{
this
.
$emit
(
'load'
,
false
)
})
}).
catch
(()
=>
{
this
.
$emit
(
'load'
,
false
)
})
}
else
{
}
else
{
return
false
;
this
.
$message
.
warn
(
'信息未填写完全!'
)
return
false
}
}
});
});
},
},
...
...
src/views/basicSetting/person/index.vue
View file @
c46dc64f
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
import
infoEdit
from
'@/views/basicSetting/person/components/infoEdit'
import
infoEdit
from
'@/views/basicSetting/person/components/infoEdit'
export
default
{
export
default
{
name
:
"
unit
Edit"
,
name
:
"
personInfo
Edit"
,
components
:
{
components
:
{
infoEdit
infoEdit
},
},
...
...
src/views/basicSetting/person/info.vue
View file @
c46dc64f
<
template
>
<
template
>
<div
class=
"app-content"
>
<div
class=
"app-content"
>
<div
class=
"card-left border-style"
>
<div
style=
"min-width:910px;width:100%;height: 100%;"
>
<div
class=
"holder-photo"
><img
alt=
""
src=
"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png"
>
<div
class=
"card-left border-style"
>
<div
class=
"holder-name"
>
<div
class=
"holder-photo"
><img
alt=
""
src=
"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png"
>
<!--
<a
title=
"修改"
style=
"text-decoration:none;"
href=
"#"
>
[修改]
</a>
-->
<div
class=
"holder-name"
>
</div>
</div>
<div
class=
"holder-info"
>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
邮 箱
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
email
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
手机号
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
mobile
}}
<!--
<a
title=
"修改"
style=
"text-decoration:none;"
href=
"#"
>
[修改]
</a>
-->
<!--
<a
title=
"修改"
style=
"text-decoration:none;"
href=
"#"
>
[修改]
</a>
-->
</a-col>
</div>
</a-row>
<a-divider
dashed
/>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
姓 名
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
personName
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
性 别
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
sex
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
生 日
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
birthday
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
证件号
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
certId
}}
</a-col>
</a-row>
</div>
</div>
<div
class=
"card-right border-style"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<a-tabs
:activeKey=
"tabsActive"
@
tabClick=
"tabclick"
>
<a-tab-pane
key=
"1"
tab=
"设置"
>
</a-tab-pane>
<a-tab-pane
key=
"2"
tab=
"消息"
force-render
>
</a-tab-pane>
</a-tabs>
<div
v-show=
"tabsActive!='1'"
>
<a-empty
/>
</div>
</div>
<div
v-show=
"tabsActive=='1'"
>
<div
class=
"holder-info"
>
<info-edit
:formData
.
sync=
"formData"
@
load=
"onLoad"
ref=
"infoEdit"
/>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
邮 箱
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
email
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
手机号
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
mobile
}}
<!--
<a
title=
"修改"
style=
"text-decoration:none;"
href=
"#"
>
[修改]
</a>
-->
</a-col>
</a-row>
<a-divider
dashed
/>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
姓 名
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
personName
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
性 别
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
sex
}}
</a-col>
</a-row>
<a-row>
<a-col
:span=
"6"
class=
"title"
>
生 日
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
birthday
}}
</a-col>
</a-row>
<a-row>
<a-row>
<a-col
style=
"text-align: center;width:100%;"
>
<a-col
:span=
"6"
class=
"title"
>
<a-button
type=
"primary"
style=
"width:80px;"
@
click=
"submit"
>
保存
</a-button>
证件号
</a-col>
<a-col
:span=
"18"
>
{{
personInfo
.
certId
}}
</a-col>
</a-col>
</a-row>
</a-row>
</div>
</div>
</a-spin>
</div>
<div
class=
"card-right border-style"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<a-tabs
:activeKey=
"tabsActive"
@
tabClick=
"tabclick"
>
<a-tab-pane
key=
"1"
tab=
"设置"
>
</a-tab-pane>
<a-tab-pane
key=
"2"
tab=
"消息"
force-render
>
</a-tab-pane>
</a-tabs>
<div
v-show=
"tabsActive!='1'"
>
<a-empty
/>
</div>
<div
v-show=
"tabsActive=='1'"
>
<info-edit
:formData
.
sync=
"formData"
@
load=
"onLoad"
ref=
"infoEdit"
/>
<a-row>
<a-col
style=
"text-align: center;width:100%;"
>
<a-button
type=
"primary"
style=
"width:80px;"
@
click=
"submit"
>
保存
</a-button>
</a-col>
</a-row>
</div>
</a-spin>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -125,8 +127,8 @@ export default {
...
@@ -125,8 +127,8 @@ export default {
this
.
$api
.
person
.
getUserInfo
().
then
(({
data
=
{}
})
=>
{
this
.
$api
.
person
.
getUserInfo
().
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
personInfo
=
data
this
.
personInfo
=
data
Object
.
assign
(
this
.
formData
,
data
)
this
.
personInfo
.
birthday
=
moment
(
this
.
personInfo
.
birthday
).
format
(
'YYYY-MM-DD'
)
this
.
personInfo
.
birthday
=
moment
(
this
.
personInfo
.
birthday
).
format
(
'YYYY-MM-DD'
)
this
.
getCurrentPersonInfo
()
}
}
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
})
},
},
...
@@ -135,10 +137,8 @@ export default {
...
@@ -135,10 +137,8 @@ export default {
},
},
onLoad
(
value
)
{
onLoad
(
value
)
{
this
.
loading
=
value
this
.
loading
=
value
this
.
personInfo
.
email
=
this
.
formData
.
email
},
},
getCurrentPersonInfo
()
{
Object
.
assign
(
this
.
personInfo
,
this
.
formData
)
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/basicSetting/unit/Index.vue
View file @
c46dc64f
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
import
infoEdit
from
'@/views/basicSetting/person/components/infoEdit'
import
infoEdit
from
'@/views/basicSetting/person/components/infoEdit'
export
default
{
export
default
{
name
:
"unitEdit"
,
name
:
"unit
Info
Edit"
,
components
:
{
components
:
{
infoEdit
infoEdit
},
},
...
...
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