Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
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
wangqinghua
party-build-cloud
Commits
b37721df
Commit
b37721df
authored
Jun 16, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人信息编辑
parent
43ae4cc1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
22 deletions
+40
-22
my-publish.html
src/pages/mine-pages/my-publish/my-publish.html
+5
-7
my-publish.ts
src/pages/mine-pages/my-publish/my-publish.ts
+5
-6
verify-edit.ts
src/pages/mine-pages/verify-edit/verify-edit.ts
+27
-8
editPersonInfo.ts
src/pages/mine/person/editPersonInfo/editPersonInfo.ts
+3
-1
No files found.
src/pages/mine-pages/my-publish/my-publish.html
View file @
b37721df
...
...
@@ -66,14 +66,13 @@
<div
class=
"main-news"
>
<ng-container
*
ngFor=
"let new of draftList;"
>
<ng-container
*
ngIf=
"new.imgUrl"
>
<ion-row
class=
"news-item"
(
click
)="
goTo
Detail
(
new
)"
>
<ion-row
class=
"news-item"
(
click
)="
goTo
(
new
)"
>
<ion-col
col-8
class=
"news-left"
>
<p
class=
"news-title"
>
{{new.title}}
<ion-icon
*
ngIf=
"new.topTime"
class=
"icon-fire iconfont"
></ion-icon>
</p>
<p
class=
"news-end"
>
<span>
保存时间:
</span><span>
{{new.publishTime | date:'yyyy-MM-dd
'}}
</span>
<span>
创建时间:
</span><span>
{{new.updateTime | date:'yyyy-MM-dd HH:dd:mm
'}}
</span>
</p>
</ion-col>
<ion-col
col-4
class=
"news-right"
>
...
...
@@ -82,20 +81,19 @@
</ion-row>
</ng-container>
<ng-container
*
ngIf=
"!new.imgUrl"
>
<ion-row
class=
"news-item"
(
click
)="
goTo
Detail
(
new
)"
>
<ion-row
class=
"news-item"
(
click
)="
goTo
(
new
)"
>
<ion-col
col-12
class=
"news-left"
>
<p
class=
"news-title"
>
{{new.title}}
<ion-icon
*
ngIf=
"new.topTime"
class=
"icon-fire iconfont"
></ion-icon>
</p>
<p
class=
"news-end"
>
<span>
发布时间:
</span><span>
{{new.publishTime | date:'yyyy-MM-dd
'}}
</span>
<span>
创建时间:
</span><span>
{{new.updateTime | date:'yyyy-MM-dd HH:dd:mm
'}}
</span>
</p>
</ion-col>
</ion-row>
</ng-container>
</ng-container>
<ion-list
text-center
style=
"margin-top: 10rem"
*
ngIf=
" !isLoad &&
public
List.length == 0"
>
<ion-list
text-center
style=
"margin-top: 10rem"
*
ngIf=
" !isLoad &&
draft
List.length == 0"
>
<img
style=
"width: 20%;"
src=
"./assets/imgs/no-info.png"
alt=
""
>
<p
text-center
>
暂无发布
...
...
src/pages/mine-pages/my-publish/my-publish.ts
View file @
b37721df
...
...
@@ -20,16 +20,13 @@ export class MyPublishPage {
changeType
=
1
;
picture
:
string
=
AppGlobal
.
domain
+
'/wisdomgroup'
;
isLoad
=
true
;
totalNum
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
mineSer
:
MineService
,
public
commonSer
:
CommonService
)
{
}
ionViewDidLoad
()
{
this
.
getPublishList
();
this
.
getDraftList
();
this
.
getPublishList
();
}
change
(
type
)
{
...
...
@@ -47,8 +44,6 @@ export class MyPublishPage {
this
.
mineSer
.
myPublish
(
data
).
subscribe
(
(
res
)
=>
{
this
.
publicList
=
res
.
data
.
list
;
this
.
isLoad
=
false
;
this
.
totalNum
=
res
.
data
.
total
;
}
)
}
...
...
@@ -81,4 +76,8 @@ export class MyPublishPage {
id
:
item
.
id
})
}
goTo
(
item
){
this
.
navCtrl
.
push
(
'VerifyEditPage'
,
{
stuffId
:
item
.
id
});
}
}
src/pages/mine-pages/verify-edit/verify-edit.ts
View file @
b37721df
...
...
@@ -45,13 +45,14 @@ export class VerifyEditPage {
};
fileList
=
[];
//文件数组
group
;
//用户组
group
=
[{
groupName
:
'全体人员'
,
id
:
null
}]
;
//用户组
userid
;
//当前登录人的id
file
;
// 文件
pictrue
=
AppGlobal
.
domain
+
'/wisdomgroup'
;
type
=
"image"
;
//视频文章or图片文章
role
;
caroul
;
//轮播图
...
...
@@ -67,15 +68,10 @@ export class VerifyEditPage {
ionViewDidLoad
()
{
this
.
stuffId
=
this
.
navParams
.
get
(
'stuffId'
);
this
.
getStuff
();
this
.
getRole
();
this
.
storage
.
get
(
"userLoginInfo"
).
then
((
value
)
=>
{
this
.
userid
=
value
.
userid
;
});
//获取用户组
this
.
tabSer
.
getGroup
().
subscribe
(
(
res
)
=>
{
this
.
group
=
res
.
list
;
}
)
}
//获取文章信息
...
...
@@ -96,6 +92,16 @@ export class VerifyEditPage {
)
}
//获取权限
//返回值int :3-管理员,2-处室领导,1-内勤人员,0-普通用户
getRole
()
{
this
.
tabsSer
.
getRoles
().
subscribe
(
(
res
)
=>
{
this
.
role
=
res
;
}
)
}
tackePic
(
resourceType
)
{
const
actionSheet
=
this
.
actionSheetCtrl
.
create
({
...
...
@@ -242,6 +248,7 @@ export class VerifyEditPage {
//发布
publish
(
status
)
{
let
message
;
if
(
status
==
1
)
message
=
'确定将当前内容保存为草稿?'
;
if
(
status
==
2
)
message
=
'确定提交审核当前内容?'
;
if
(
status
==
3
)
message
=
'确定直接发布当前内容?'
;
if
(
!
this
.
check
())
{
...
...
@@ -357,10 +364,22 @@ export class VerifyEditPage {
this
.
publish
(
2
);
}
};
const
draft
=
{
text
:
'保存草稿'
,
role
:
'draft'
,
handler
:
()
=>
{
this
.
publish
(
1
);
}
};
let
buttonArr
=
[];
buttonArr
.
push
(
preview
);
if
(
this
.
role
==
3
||
this
.
role
==
5
)
{
buttonArr
.
push
(
publish
);
}
else
{
buttonArr
.
push
(
submit
);
}
buttonArr
.
push
(
publish
);
buttonArr
.
push
(
draft
);
buttonArr
.
push
(
cancel
);
const
actionSheet
=
this
.
actionSheetCtrl
.
create
({
...
...
src/pages/mine/person/editPersonInfo/editPersonInfo.ts
View file @
b37721df
...
...
@@ -26,7 +26,8 @@ export class EditPersonInfoPage {
abbreviation
:
''
,
telephone
:
''
,
email
:
''
,
birthDay
:
null
birthDay
:
null
,
job
:
null
};
code
:
string
;
...
...
@@ -53,6 +54,7 @@ export class EditPersonInfoPage {
this
.
user
=
value
;
this
.
gender
=
this
.
user
.
userDetail
.
user
.
gender
;
this
.
userinfo
=
this
.
user
.
userDetail
.
user
;
this
.
userinfo
.
job
=
null
;
console
.
log
(
this
.
userinfo
);
this
.
userinfo
.
userId
=
this
.
user
.
id
;
this
.
getOrgName
(
this
.
user
.
id
,
result
=>
{
...
...
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