Commit c64e521b authored by wangqinghua's avatar wangqinghua

share

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