Commit c64e521b authored by wangqinghua's avatar wangqinghua

share

parent 3d6fe5ef
...@@ -42,9 +42,10 @@ export class PublishPage { ...@@ -42,9 +42,10 @@ export class PublishPage {
publishRange: '', publishRange: '',
}; };
fileList = []; //文件数组 fileList = []; //文件数组
group = [{groupName:'全体人员',id:null}]; //用户组 group = [{groupName: '全体人员', id: null}]; //用户组
userid; //当前登录人的id userid; //当前登录人的id
file; // 文件 file; // 文件
orgName; //登录人的部门
pictrue = AppGlobal.domain + '/wisdomgroup'; pictrue = AppGlobal.domain + '/wisdomgroup';
...@@ -63,11 +64,21 @@ export class PublishPage { ...@@ -63,11 +64,21 @@ export class PublishPage {
ionViewDidLoad() { ionViewDidLoad() {
this.type = this.navParams.get('type'); this.type = this.navParams.get('type');
this.getRole(); this.getRole();
this.getOrg();
this.storage.get("userLoginInfo").then((value) => { this.storage.get("userLoginInfo").then((value) => {
this.userid = value.userid; this.userid = value.userid;
}) })
} }
//获取部门
getOrg() {
this.tabSer.getUserIntegral().subscribe(
(res) => {
this.orgName = res.data.orgName;
}
);
}
//获取权限 //获取权限
//返回值int :3-管理员,2-处室领导,1-内勤人员,0-普通用户 //返回值int :3-管理员,2-处室领导,1-内勤人员,0-普通用户
getRole() { getRole() {
...@@ -253,7 +264,7 @@ export class PublishPage { ...@@ -253,7 +264,7 @@ export class PublishPage {
const data = { const data = {
title: this.obj.title, //标题 title: this.obj.title, //标题
plateType: this.obj.type, //分类 plateType: this.obj.type, //分类
source: '上海市委组织部', //来源 source: this.orgName, //来源
publishStatus: status, //已提交 退回1 发布3 publishStatus: status, //已提交 退回1 发布3
content: `        ` + content, //内容 content: `        ` + content, //内容
publishRange: this.obj.publishRange, //范围 publishRange: this.obj.publishRange, //范围
......
...@@ -77,7 +77,7 @@ export class MyPublishPage { ...@@ -77,7 +77,7 @@ export class MyPublishPage {
}) })
} }
goTo(item){ goTo(item) {
this.navCtrl.push('VerifyEditPage', {stuffId: item.id}); this.navCtrl.push('VerifyEditPage', {stuffId: item.id, source: 'publish'});
} }
} }
...@@ -57,6 +57,7 @@ export class VerifyEditPage { ...@@ -57,6 +57,7 @@ export class VerifyEditPage {
caroul; //轮播图 caroul; //轮播图
stuffId; stuffId;
source; //verify 审核 publish 发布
constructor(public navCtrl: NavController, public navParams: NavParams, public storage: Storage, constructor(public navCtrl: NavController, public navParams: NavParams, public storage: Storage,
public camera: Camera, public actionSheetCtrl: ActionSheetController, public camera: Camera, public actionSheetCtrl: ActionSheetController,
...@@ -67,6 +68,7 @@ export class VerifyEditPage { ...@@ -67,6 +68,7 @@ export class VerifyEditPage {
ionViewDidLoad() { ionViewDidLoad() {
this.stuffId = this.navParams.get('stuffId'); this.stuffId = this.navParams.get('stuffId');
this.source = this.navParams.get('source');
this.getStuff(); this.getStuff();
this.getRole(); this.getRole();
this.storage.get("userLoginInfo").then((value) => { this.storage.get("userLoginInfo").then((value) => {
...@@ -378,8 +380,7 @@ export class VerifyEditPage { ...@@ -378,8 +380,7 @@ export class VerifyEditPage {
} else { } else {
buttonArr.push(submit); buttonArr.push(submit);
} }
buttonArr.push(publish); if (this.source == "publish") buttonArr.push(draft);
buttonArr.push(draft);
buttonArr.push(cancel); buttonArr.push(cancel);
const actionSheet = this.actionSheetCtrl.create({ const actionSheet = this.actionSheetCtrl.create({
......
...@@ -82,7 +82,7 @@ export class VerifyHandlePage { ...@@ -82,7 +82,7 @@ export class VerifyHandlePage {
} }
edit() { edit() {
this.navCtrl.push('VerifyEditPage', {stuffId: this.stuffId}); this.navCtrl.push('VerifyEditPage', {stuffId: this.stuffId,source:'verify'});
} }
} }
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
<ion-label>是否接受推送消息</ion-label> <ion-label>是否接受推送消息</ion-label>
<ion-toggle [(ngModel)]="pusNumber" (ionChange)="savePush()"></ion-toggle> <ion-toggle [(ngModel)]="pusNumber" (ionChange)="savePush()"></ion-toggle>
</ion-item> </ion-item>
<ion-item (click)="goTo('SharePage')">
<span>分享客户端</span>
<ion-icon float-right name="ios-arrow-forward" ></ion-icon>
</ion-item>
<ion-item (click)="goTo('OperationListPage')"> <ion-item (click)="goTo('OperationListPage')">
<span>操作记录</span> <span>操作记录</span>
<ion-icon float-right name="ios-arrow-forward" ></ion-icon> <ion-icon float-right name="ios-arrow-forward" ></ion-icon>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment