Commit 48c5ea55 authored by wangqinghua's avatar wangqinghua

..

parent 53a337ac
项目结构 项目结构
├── README.md ├── README.md //介绍
├── config.xml //cordova插件配置目录 ├── config.xml //cordova插件配置目录
├── ionic.config.json ├── ionic.config.json //服务代理
├── ionic.starter.json ├── ionic.starter.json
├── package-lock.json ├── package-lock.json
├── package.json //项目依赖目录 ├── package.json //项目依赖目录
├── platforms ├── platforms
│   └── android │   └── android //安卓平台
│   ├── CordovaLib │   ├── CordovaLib
│   ├── android.json │   ├── android.json
│   ├── app │   ├── app
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
│   ├── project.properties │   ├── project.properties
│   ├── settings.gradle │   ├── settings.gradle
│   └── wrapper.gradle │   └── wrapper.gradle
├── plugins ├── plugins //cordova插件
│   ├── android.json │   ├── android.json
│   ├── cordova-plugin-app-version │   ├── cordova-plugin-app-version
│   │   ├── CHANGELOG.md │   │   ├── CHANGELOG.md
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
│   ├── plugin.xml │   ├── plugin.xml
│   ├── src │   ├── src
│   └── www │   └── www
├── resources ├── resources //启动页的图片,app的icon
│   ├── README.md │   ├── README.md
│   ├── android │   ├── android
│   │   ├── icon │   │   ├── icon
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
│   │   ├── search │   │   ├── search
│   │   ├── tabs │   │   ├── tabs
│   │   └── version │   │   └── version
│   ├── service //异常处理 │   ├── service //http服务
│   │   ├── activityStatisticService.ts │   │   ├── activityStatisticService.ts
│   │   ├── appHttpService.ts │   │   ├── appHttpService.ts
│   │   └── appUpdateService.ts │   │   └── appUpdateService.ts
...@@ -151,22 +151,18 @@ ...@@ -151,22 +151,18 @@
│   └── theme //核心CSS │   └── theme //核心CSS
│   ├── icon.scss │   ├── icon.scss
│   └── variables.scss │   └── variables.scss
├── tsconfig.json ├── tsconfig.json //ts规范
└── tslint.json //ts规范 └── tslint.json //ts规范
启动命令: 启动命令:
1.npm install //安装项目依赖 1.npm install //安装项目依赖
2.ionic serve //项目编译启动 2.ionic serve //项目编译启动
3.ionic g page newPage //创建新页面
安装 cordova插件命令: 安装 cordova插件命令:
ionic cordova plugin add 插件名 ionic cordova plugin add 插件名
例如: 例如:
ionic cordova plugin add cordova-plugin-badge ionic cordova plugin add cordova-plugin-badge
"proxyUrl": "http://180.168.156.212:2931/wisdomgroup"
"proxyUrl": "http://10.10.200.11:8080/wisdomgroup"
http://10.10.200.105:8080
如果build android 报错了请在platforms/build.gradle里面的最后添加如下代码: 如果build android 报错了请在platforms/build.gradle里面的最后添加如下代码:
configurations.all { configurations.all {
......
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter2" version="1.3.8" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="io.ionic.starter2" version="1.4.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>智汇19号(测)</name> <name>智汇19号(测)</name>
<description>An awesome Ionic/Cordova app.</description> <description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author> <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
......
...@@ -27,7 +27,6 @@ export class BlockModalPage { ...@@ -27,7 +27,6 @@ export class BlockModalPage {
dismiss() { dismiss() {
let selectBatch = []; let selectBatch = [];
console.log(selectBatch.length);
this.blockList.forEach(res=>{ this.blockList.forEach(res=>{
if(res.check == true){ if(res.check == true){
selectBatch.push(res); selectBatch.push(res);
......
...@@ -38,7 +38,6 @@ export class ReplaceApplyPage { ...@@ -38,7 +38,6 @@ export class ReplaceApplyPage {
} }
ionViewDidLoad() { ionViewDidLoad() {
console.log('ionViewDidLoad ReplaceApplyPage');
} }
ionViewDidEnter() { ionViewDidEnter() {
...@@ -141,7 +140,6 @@ export class ReplaceApplyPage { ...@@ -141,7 +140,6 @@ export class ReplaceApplyPage {
this.selectBatchList.forEach(res=>{ this.selectBatchList.forEach(res=>{
order.batchlist += res.id + ','; order.batchlist += res.id + ',';
}); });
console.log(order);
this.appService.ObserverHttpPost("/wisdomgroup/modules/order/create", order) this.appService.ObserverHttpPost("/wisdomgroup/modules/order/create", order)
.subscribe((res: Response) => { .subscribe((res: Response) => {
this.navCtrl.pop(); this.navCtrl.pop();
......
...@@ -97,21 +97,8 @@ export class ActivityApplyPage { ...@@ -97,21 +97,8 @@ export class ActivityApplyPage {
}); });
} }
//切换批次其对应活动说明也发生改变
showBatchDetails(onebatchDetail) {
console.log(onebatchDetail.batchSetAddress);
this.onebatch = onebatchDetail;
this.order.Batchid = this.onebatch["id"]; //改变批次时,更改工单关联的批次id
this.isSelected = this.onebatch["id"]; //选中批次的id
this.noticeArry = this.onebatch["batchNotice"].split("\r\n");
}
//携带人数 数字加减 //携带人数 数字加减
add() { add() {
console.log("1:" + this.order.Personnumber);
if (this.order.Personnumber < this.item.batchPerNumber) { if (this.order.Personnumber < this.item.batchPerNumber) {
this.order.Personnumber++; this.order.Personnumber++;
} }
...@@ -150,7 +137,6 @@ export class ActivityApplyPage { ...@@ -150,7 +137,6 @@ export class ActivityApplyPage {
let applyNum = 0; let applyNum = 0;
this.activity.batchList.forEach((res) => { this.activity.batchList.forEach((res) => {
if (res.order) { if (res.order) {
console.log(res.order);
applyNum++; applyNum++;
} }
}); });
...@@ -178,9 +164,7 @@ export class ActivityApplyPage { ...@@ -178,9 +164,7 @@ export class ActivityApplyPage {
if (true) { if (true) {
this.isSuccess = true; this.isSuccess = true;
setTimeout(() => { setTimeout(() => {
console.log("报名成功");
this.isSuccess = false; this.isSuccess = false;
//this.navCtrl.setRoot("MyActivityListPage");
this.navCtrl.push("MyActivityListPage"); this.navCtrl.push("MyActivityListPage");
}, 1000); }, 1000);
} else { } else {
...@@ -196,7 +180,6 @@ export class ActivityApplyPage { ...@@ -196,7 +180,6 @@ export class ActivityApplyPage {
this.order.Batchid = this.item.id; this.order.Batchid = this.item.id;
this.order.Activityid = this.item.activityId; this.order.Activityid = this.item.activityId;
this.order.batchlist = this.item.id + ','; this.order.batchlist = this.item.id + ',';
console.log(this.order);
this.appService.ObserverHttpPostOption("/wisdomgroup/modules/order/create", this.order) this.appService.ObserverHttpPostOption("/wisdomgroup/modules/order/create", this.order)
.subscribe((res: Response) => { .subscribe((res: Response) => {
if (true) { if (true) {
......
...@@ -204,7 +204,6 @@ export class ActivityConfirmPage { ...@@ -204,7 +204,6 @@ export class ActivityConfirmPage {
data.orderstate = '4'; data.orderstate = '4';
} }
console.log(data);
this.appService.ObserverHttpPost("/wisdomgroup/modules/order/confirmEvaluationOrder",data) this.appService.ObserverHttpPost("/wisdomgroup/modules/order/confirmEvaluationOrder",data)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let resultback = res.json(); let resultback = res.json();
......
...@@ -77,7 +77,6 @@ export class ActivityDetailPage { ...@@ -77,7 +77,6 @@ export class ActivityDetailPage {
//批次详情 //批次详情
goBatchDetail(item) { goBatchDetail(item) {
console.log(this.activity);
this.navCtrl.push('BatchDetailPage', {batch: item, activity: this.activity}); this.navCtrl.push('BatchDetailPage', {batch: item, activity: this.activity});
} }
...@@ -138,7 +137,6 @@ export class ActivityDetailPage { ...@@ -138,7 +137,6 @@ export class ActivityDetailPage {
{ {
text: '取消', text: '取消',
handler: () => { handler: () => {
console.log('Disagree clicked');
} }
}, },
{ {
......
...@@ -40,7 +40,6 @@ export class ActivityListPage { ...@@ -40,7 +40,6 @@ export class ActivityListPage {
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log("activityListData------->",data);
this.items =data; this.items =data;
}, error => { }, error => {
} }
...@@ -49,26 +48,13 @@ export class ActivityListPage { ...@@ -49,26 +48,13 @@ export class ActivityListPage {
//查看详情 //查看详情
goDetail(item){ goDetail(item){
console.log(item);
let id = item.id; let id = item.id;
this.navCtrl.push("ActivityDetailPage",{id:id}); this.navCtrl.push("ActivityDetailPage",{id:id});
} }
goApplyDetails(item){
console.log(item);
// if(item.activityState==2 && item.orderList.length>0){
this.goDetail(item);
// }else{
// this.goApply(item);
// }
}
doRefresh(refresher) { doRefresh(refresher) {
console.log('Begin async operation', refresher);
setTimeout(() => { setTimeout(() => {
this.getActivityList(); this.getActivityList();
console.log('Async operation has ended');
refresher.complete(); refresher.complete();
}, 2000); }, 2000);
} }
......
...@@ -91,7 +91,6 @@ export class BatchDetailPage { ...@@ -91,7 +91,6 @@ export class BatchDetailPage {
//立即报名 //立即报名
goApply(){ goApply(){
console.log(this.activity);
this.navCtrl.push('ActivityApplyPage',{ this.navCtrl.push('ActivityApplyPage',{
activity:this.activity, activity:this.activity,
item:this.batch item:this.batch
......
...@@ -37,7 +37,6 @@ export class OrderDetailPage { ...@@ -37,7 +37,6 @@ export class OrderDetailPage {
this.batch = this.navParams.get('item').batch; this.batch = this.navParams.get('item').batch;
let con = this.batch.batchNotice.replace(/\r?\n/g, "<br />"); let con = this.batch.batchNotice.replace(/\r?\n/g, "<br />");
this.batch.batchNotice = this.sanitizer.bypassSecurityTrustHtml(con); this.batch.batchNotice = this.sanitizer.bypassSecurityTrustHtml(con);
console.log(this.order);
} }
//取消报名(订单) //取消报名(订单)
......
...@@ -33,7 +33,6 @@ export class OrderEditPage { ...@@ -33,7 +33,6 @@ export class OrderEditPage {
this.submitOrder.Batchid = this.order.batchid; this.submitOrder.Batchid = this.order.batchid;
this.submitOrder.Orderbz = this.order.orderbz; this.submitOrder.Orderbz = this.order.orderbz;
this.submitOrder.Personnumber = this.order.personnumber; this.submitOrder.Personnumber = this.order.personnumber;
console.log(this.navParams.get('item'));
this.getAllBatch(); this.getAllBatch();
} }
...@@ -60,7 +59,6 @@ export class OrderEditPage { ...@@ -60,7 +59,6 @@ export class OrderEditPage {
} }
submit(){ submit(){
console.log('报名操作');
const data = { const data = {
Orderid: this.order.orderid, //订单id Orderid: this.order.orderid, //订单id
Personnumber: this.submitOrder.Personnumber, //携带人数 Personnumber: this.submitOrder.Personnumber, //携带人数
......
...@@ -174,7 +174,6 @@ export class ChooseAddressPage { ...@@ -174,7 +174,6 @@ export class ChooseAddressPage {
//搜索地址 //搜索地址
searchAddress() { searchAddress() {
console.log("searchValue:"+this.searchValue);
if(this.searchValue == null || this.searchValue == ''){ if(this.searchValue == null || this.searchValue == ''){
this.isSearch = false; this.isSearch = false;
return false; return false;
......
...@@ -55,7 +55,6 @@ export class BlockListPage { ...@@ -55,7 +55,6 @@ export class BlockListPage {
this.appService.ObserverHttpPostData('/wisdomgroup/modules/telpBook', data) this.appService.ObserverHttpPostData('/wisdomgroup/modules/telpBook', data)
.subscribe((res) => { .subscribe((res) => {
console.log(res.json());
if (res.json().apiResult.errcode == '0') { if (res.json().apiResult.errcode == '0') {
toast.setMessage('添加成功'); toast.setMessage('添加成功');
toast.present(); toast.present();
......
...@@ -57,7 +57,6 @@ export class ContactListPage { ...@@ -57,7 +57,6 @@ export class ContactListPage {
this.appService.ObserverHttpGetOption("/wisdomgroup/app/contact/getGeneralContactPersons", data) this.appService.ObserverHttpGetOption("/wisdomgroup/app/contact/getGeneralContactPersons", data)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log("data1:" + JSON.stringify(data));
this.contactPersons = data; this.contactPersons = data;
this.contactPersons.forEach(element => { this.contactPersons.forEach(element => {
//常用联系人的部门信息 //常用联系人的部门信息
...@@ -65,7 +64,6 @@ export class ContactListPage { ...@@ -65,7 +64,6 @@ export class ContactListPage {
element["orgName"] = result["orgName"]; element["orgName"] = result["orgName"];
}); });
//是否已添加到常用联系人中: //是否已添加到常用联系人中:
//true:按钮为:移除常用联系人
//false:按钮为:添加常用联系人 //false:按钮为:添加常用联系人
//常用联系人:默认为true 有移除常用联系人按钮 //常用联系人:默认为true 有移除常用联系人按钮
element["hasgeneralpersonsflag"] = true; element["hasgeneralpersonsflag"] = true;
...@@ -93,7 +91,6 @@ export class ContactListPage { ...@@ -93,7 +91,6 @@ export class ContactListPage {
this.appService.ObserverHttpGet("/wisdomgroup/sysmanagement/user/getAllUserByOrgid", {"orgId": this.orgid}) this.appService.ObserverHttpGet("/wisdomgroup/sysmanagement/user/getAllUserByOrgid", {"orgId": this.orgid})
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log("data:" + data);
this.contactPersons = data; this.contactPersons = data;
this.contactPersons.forEach(element => { this.contactPersons.forEach(element => {
//部门人员的部门信息 //部门人员的部门信息
......
...@@ -133,7 +133,6 @@ export class ContractPersoninfoPage { ...@@ -133,7 +133,6 @@ export class ContractPersoninfoPage {
} }
call(number) { call(number) {
console.log("拨打:" + number);
window.location.href = "tel:" + number; window.location.href = "tel:" + number;
} }
......
...@@ -30,7 +30,6 @@ export class DutySignUpPage { ...@@ -30,7 +30,6 @@ export class DutySignUpPage {
ionViewDidLoad() { ionViewDidLoad() {
this.nowDay = moment().format('l'); this.nowDay = moment().format('l');
console.log(this.nowDay);
this.appService.ObserverHttpGetOption('/wisdomgroup/schedule/myScheduleOfToday', null) this.appService.ObserverHttpGetOption('/wisdomgroup/schedule/myScheduleOfToday', null)
.subscribe((res) => { .subscribe((res) => {
if(res){ if(res){
...@@ -47,7 +46,6 @@ export class DutySignUpPage { ...@@ -47,7 +46,6 @@ export class DutySignUpPage {
}; };
this.appService.ObserverHttpGetOption('/wisdomgroup/schedule/signIn', data) this.appService.ObserverHttpGetOption('/wisdomgroup/schedule/signIn', data)
.subscribe((res) => { .subscribe((res) => {
console.log(res);
}) })
} }
...@@ -60,17 +58,13 @@ export class DutySignUpPage { ...@@ -60,17 +58,13 @@ export class DutySignUpPage {
}; };
this.appService.ObserverHttpGet('/wisdomgroup/schedule/signOut',data) this.appService.ObserverHttpGet('/wisdomgroup/schedule/signOut',data)
.subscribe((res)=>{ .subscribe((res)=>{
console.log(res);
}) })
} }
//计算距离 //计算距离
calcuDistance() { calcuDistance() {
this.geolocation.getCurrentPosition().then((resp) => { this.geolocation.getCurrentPosition().then((resp) => {
console.log(resp.coords.latitude);
console.log(resp.coords.longitude);
const distance = this.getDisance(this.mainLat, this.mainLng, resp.coords.latitude, resp.coords.longitude); const distance = this.getDisance(this.mainLat, this.mainLng, resp.coords.latitude, resp.coords.longitude);
console.log(distance);
alert('距离:' + distance); alert('距离:' + distance);
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);
......
...@@ -68,7 +68,6 @@ export class DutyPage { ...@@ -68,7 +68,6 @@ export class DutyPage {
} }
onChange(e){ onChange(e){
console.log(e);
const date = new Date(e).toLocaleDateString(); const date = new Date(e).toLocaleDateString();
this.getDuty(date); this.getDuty(date);
} }
......
...@@ -21,7 +21,6 @@ export class MoreAppPage { ...@@ -21,7 +21,6 @@ export class MoreAppPage {
} }
ionViewDidLoad() { ionViewDidLoad() {
console.log('ionViewDidLoad MoreAppPage');
this.getRole(); this.getRole();
} }
......
...@@ -27,10 +27,7 @@ export class JoinPersonsPage { ...@@ -27,10 +27,7 @@ export class JoinPersonsPage {
public appService: AppService, public toast: ToastController) { public appService: AppService, public toast: ToastController) {
this.batchid = this.navParams.get("batchid"); this.batchid = this.navParams.get("batchid");
console.log("选择的批次id:"+this.batchid);
this.batch = this.navParams.get("batch"); this.batch = this.navParams.get("batch");
console.log("批次信息:"+this.batch);
} }
ngOnInit():void{ ngOnInit():void{
...@@ -38,7 +35,6 @@ export class JoinPersonsPage { ...@@ -38,7 +35,6 @@ export class JoinPersonsPage {
this.appService.ObserverHttpGet("/wisdomgroup/modules/order/batchParticipantsInfo",{"id":this.batchid}) this.appService.ObserverHttpGet("/wisdomgroup/modules/order/batchParticipantsInfo",{"id":this.batchid})
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log("canyurenyuan :"+data);
this.items = data; this.items = data;
}, error => { }, error => {
} }
......
...@@ -36,8 +36,6 @@ export class DutyApplyHandlePage { ...@@ -36,8 +36,6 @@ export class DutyApplyHandlePage {
} }
submit(type){ submit(type){
console.log(this.applyDetail);
switch (type){ switch (type){
case '1':{ //换班 case '1':{ //换班
this.navCtrl.push('SelectChangePersonPage',{ this.navCtrl.push('SelectChangePersonPage',{
...@@ -63,7 +61,7 @@ export class DutyApplyHandlePage { ...@@ -63,7 +61,7 @@ export class DutyApplyHandlePage {
.subscribe((res)=>{ .subscribe((res)=>{
this.appService.popToastView('已忽略','middle',2000); this.appService.popToastView('已忽略','middle',2000);
this.navCtrl.pop(); this.navCtrl.pop();
}) });
break; break;
} }
} }
......
...@@ -96,7 +96,6 @@ export class SelectChangePersonPage { ...@@ -96,7 +96,6 @@ export class SelectChangePersonPage {
onSelect(e) { onSelect(e) {
this.changeInfo = null; this.changeInfo = null;
console.log(e);
if (e.subTitle != '') { if (e.subTitle != '') {
this.changeInfo = e; this.changeInfo = e;
} }
......
...@@ -18,7 +18,6 @@ export class MyDutyPage { ...@@ -18,7 +18,6 @@ export class MyDutyPage {
} }
ionViewDidLoad() { ionViewDidLoad() {
console.log('ionViewDidLoad MyDutyPage');
this.getDuty(); this.getDuty();
} }
......
...@@ -91,7 +91,6 @@ export class MyActivityListPage { ...@@ -91,7 +91,6 @@ export class MyActivityListPage {
this.appService.ObserverHttpPost("/wisdomgroup/modules/order/searchAllOrder", null) this.appService.ObserverHttpPost("/wisdomgroup/modules/order/searchAllOrder", null)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log("activityOrderListData------->", data);
this.allOrder = data; this.allOrder = data;
this.allOrder.forEach(element => { //待出行 this.allOrder.forEach(element => { //待出行
//添加属性 //添加属性
...@@ -99,7 +98,6 @@ export class MyActivityListPage { ...@@ -99,7 +98,6 @@ export class MyActivityListPage {
if (element["orderstate"] == '1') { if (element["orderstate"] == '1') {
element["showParticipantBtn"] = false; element["showParticipantBtn"] = false;
let signflag = Date.parse(element["batch"].batchEndDate.toString())<Date.parse(new Date().toString()); let signflag = Date.parse(element["batch"].batchEndDate.toString())<Date.parse(new Date().toString());
console.log("signflag:"+signflag);
if(signflag){ if(signflag){
element["showParticipantBtn"] = true; //显示参与人员按钮标识 element["showParticipantBtn"] = true; //显示参与人员按钮标识
} }
...@@ -138,7 +136,6 @@ export class MyActivityListPage { ...@@ -138,7 +136,6 @@ export class MyActivityListPage {
} }
this.waitgoOrderCount = this.waitGoOrder.length; this.waitgoOrderCount = this.waitGoOrder.length;
//this.allOrder.splice(this.allOrder.indexOf(orderid),1) //this.allOrder.splice(this.allOrder.indexOf(orderid),1)
//console.log("b:"+this.allOrder);
//this.waitGoOrder.splice(this.waitGoOrder.indexOf(orderid),1) //this.waitGoOrder.splice(this.waitGoOrder.indexOf(orderid),1)
//this.waitgoOrderCount = this.waitGoOrder.length; //this.waitgoOrderCount = this.waitGoOrder.length;
...@@ -245,7 +242,6 @@ export class MyActivityListPage { ...@@ -245,7 +242,6 @@ export class MyActivityListPage {
//确认出行:更改订单状态为完成,订单满意度评价,意见,确认方式 //确认出行:更改订单状态为完成,订单满意度评价,意见,确认方式
this.order["orderstate"] = '4'; //已完成 this.order["orderstate"] = '4'; //已完成
this.order["orderconfirm"] = '1' ; //手机app确认 this.order["orderconfirm"] = '1' ; //手机app确认
console.log("ordervalue:"+this.order);
this.appService.ObserverHttpPost("/wisdomgroup/modules/order/confirmEvaluationOrder",this.order) this.appService.ObserverHttpPost("/wisdomgroup/modules/order/confirmEvaluationOrder",this.order)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let resultback = res.json(); let resultback = res.json();
......
...@@ -38,8 +38,6 @@ export class MyReportPage { ...@@ -38,8 +38,6 @@ export class MyReportPage {
public appService: AppService, public appService: AppService,
public activityStatisticService: ActivityStatisticService, public activityStatisticService: ActivityStatisticService,
public storage: Storage) { public storage: Storage) {
console.log(this.navCtrl);
} }
//初始化加载我的报备 //初始化加载我的报备
......
...@@ -32,14 +32,8 @@ export class MySurveyPage { ...@@ -32,14 +32,8 @@ export class MySurveyPage {
}) })
}) })
}); });
// this.getSurveyList()
} }
getSurveyList(){
const userId = {};
console.log( this.userId);
}
//填写问卷 //填写问卷
geToWrite(item){ geToWrite(item){
......
...@@ -43,10 +43,6 @@ export class SurveryPage { ...@@ -43,10 +43,6 @@ export class SurveryPage {
}); });
} }
getSurveyList(){
const userId = {};
console.log( this.userId);
}
//填写问卷 //填写问卷
geToWrite(item){ geToWrite(item){
......
...@@ -46,10 +46,8 @@ export class SurveyPreviewPage { ...@@ -46,10 +46,8 @@ export class SurveyPreviewPage {
data.select = false; data.select = false;
} }
}); });
console.log(res.option.answerdesc);
} }
}); });
console.log(this.contentList);
}) })
}); });
......
...@@ -33,7 +33,6 @@ export class SurveyResultPage { ...@@ -33,7 +33,6 @@ export class SurveyResultPage {
this.contentList.forEach(res=>{ this.contentList.forEach(res=>{
res.quesDesc = JSON.parse(res.quesDesc); res.quesDesc = JSON.parse(res.quesDesc);
}); });
console.log(this.contentList);
}) })
} }
......
...@@ -42,39 +42,31 @@ export class ModifyPasswordPage { ...@@ -42,39 +42,31 @@ export class ModifyPasswordPage {
} }
sureModifyPassword(){ sureModifyPassword(){
console.log("修改密码!");
if(this.passwordInfo.formerPassword == ''|| if(this.passwordInfo.formerPassword == ''||
this.passwordInfo.modifyPassword == ''|| this.passwordInfo.modifyPassword == ''||
this.passwordInfo.sureModifyPassword == ''){ this.passwordInfo.sureModifyPassword == ''){
console.log("请输入完整信息");
this.appService.popToastView("请输入完整信息!",'top',2000); this.appService.popToastView("请输入完整信息!",'top',2000);
return; return;
} }
if(this.passwordInfo.formerPassword != ''){ if(this.passwordInfo.formerPassword != ''){
if(this.user.password != this.passwordInfo.formerPassword){ if(this.user.password != this.passwordInfo.formerPassword){
console.log("原密码输入有误!");
this.appService.popToastView("原密码输入有误!",'top',2000); this.appService.popToastView("原密码输入有误!",'top',2000);
return ; return ;
} }
} }
if(!this.myreg.test(this.passwordInfo.modifyPassword)){ if(!this.myreg.test(this.passwordInfo.modifyPassword)){
console.log('新密码由8到16位数字和字母组成!');
this.appService.popToastView('新密码由8到16位数字和字母组成!','top',2000); this.appService.popToastView('新密码由8到16位数字和字母组成!','top',2000);
return false; return false;
} }
if(this.passwordInfo.modifyPassword != this.passwordInfo.sureModifyPassword){ if(this.passwordInfo.modifyPassword != this.passwordInfo.sureModifyPassword){
console.log("两次输入的密码不一致");
this.appService.popToastView("两次输入的密码不一致",'top',2000); this.appService.popToastView("两次输入的密码不一致",'top',2000);
return; return;
}else{ }else{
console.log("到后台!");
this.appService.ObserverHttpPost("/wisdomgroup/manager/updatePassword",{"password":this.passwordInfo.modifyPassword}) this.appService.ObserverHttpPost("/wisdomgroup/manager/updatePassword",{"password":this.passwordInfo.modifyPassword})
.subscribe((res: Response) => { .subscribe((res: Response) => {
this.appService.popToastView("修改成功!",'top',2000); this.appService.popToastView("修改成功!",'top',2000);
//将缓存中密码密码修改 //将缓存中密码密码修改
this.user.password = this.passwordInfo.modifyPassword; this.user.password = this.passwordInfo.modifyPassword;
console.log(this.user);
this.storage.set('userLoginInfo',this.user); this.storage.set('userLoginInfo',this.user);
//退出后台 //退出后台
this.logoutApp(); this.logoutApp();
......
...@@ -32,7 +32,6 @@ export class OperationListPage { ...@@ -32,7 +32,6 @@ export class OperationListPage {
} }
ionViewDidLoad() { ionViewDidLoad() {
console.log('ionViewDidLoad OperationListPage');
//this.initMineOperationInfo(); //this.initMineOperationInfo();
} }
...@@ -74,7 +73,6 @@ export class OperationListPage { ...@@ -74,7 +73,6 @@ export class OperationListPage {
let hour = Math.round(timegap%nd/nh);//计算差多少小时 let hour = Math.round(timegap%nd/nh);//计算差多少小时
let min = Math.round(timegap%nd%nh/nm);//计算差多少分钟 let min = Math.round(timegap%nd%nh/nm);//计算差多少分钟
let sec = Math.round(timegap%nd%nh%nm/ns);//计算差多少秒//输出结果 let sec = Math.round(timegap%nd%nh%nm/ns);//计算差多少秒//输出结果
console.log("时间相差:"+day+"天"+hour+"小时"+min+"分钟"+sec+"秒。");
if(day>0){ if(day>0){
result = day+"天前"; result = day+"天前";
...@@ -104,7 +102,6 @@ export class OperationListPage { ...@@ -104,7 +102,6 @@ export class OperationListPage {
}); });
this.pageOperations = this.pageOperations.concat(this.tempOperations); this.pageOperations = this.pageOperations.concat(this.tempOperations);
console.log("scroll:"+JSON.stringify(this.pageOperations));
infiniteScroll.complete(); //当数据请求完成调用 infiniteScroll.complete(); //当数据请求完成调用
} }
//数据少于一页时 隐藏 ion-infinate-scroll //数据少于一页时 隐藏 ion-infinate-scroll
......
...@@ -55,7 +55,6 @@ export class EditPersonInfoPage { ...@@ -55,7 +55,6 @@ export class EditPersonInfoPage {
ionViewDidLoad():void{ ionViewDidLoad():void{
this.user = this.storage.get("user").then((value)=>{ this.user = this.storage.get("user").then((value)=>{
this.user = value; this.user = value;
console.log(this.user);
this.gender = this.user.userDetail.user.gender; this.gender = this.user.userDetail.user.gender;
this.userinfo = this.user.userDetail.user; this.userinfo = this.user.userDetail.user;
this.userinfo.userId = this.user.id; this.userinfo.userId = this.user.id;
...@@ -97,18 +96,15 @@ export class EditPersonInfoPage { ...@@ -97,18 +96,15 @@ export class EditPersonInfoPage {
//修改信息:房间号,座机号,邮箱 //修改信息:房间号,座机号,邮箱
updateUserInfo(): void { updateUserInfo(): void {
console.log("1:"+this.userinfo);
if(this.code == '2'){ if(this.code == '2'){
if(!this.myregMobile.test(this.userinfo.telephone)){ if(!this.myregMobile.test(this.userinfo.telephone)){
console.log('请输入规则的电话号码!');
this.appService.popToastView('请输入规则的电话号码!','top',2000); this.appService.popToastView('请输入规则的电话号码!','top',2000);
return ; return ;
} }
} }
if(this.code == '3'){ if(this.code == '3'){
if(!this.myregEamil.test(this.userinfo.email)){ if(!this.myregEamil.test(this.userinfo.email)){
console.log('请输入规则的邮箱!');
this.appService.popToastView('请输入规则的邮箱!','top',2000); this.appService.popToastView('请输入规则的邮箱!','top',2000);
return ; return ;
} }
...@@ -117,19 +113,11 @@ export class EditPersonInfoPage { ...@@ -117,19 +113,11 @@ export class EditPersonInfoPage {
this.appService.ObserverHttpPost("/wisdomgroup/auth4/updateUserInfo",this.userinfo) this.appService.ObserverHttpPost("/wisdomgroup/auth4/updateUserInfo",this.userinfo)
.toPromise() .toPromise()
.then(res => { .then(res => {
var data = res.json(); let data = res.json();
console.log("reback user data:"+data);
// this.user.userDetail.user.abbreviation = data.abbreviation;
// this.user.userDetail.user.telephone = data.telephone;
// this.user.userDetail.user.email = data.email;
this.user.userDetail.user = data; this.user.userDetail.user = data;
this.storage.remove("user"); this.storage.remove("user");
this.storage.set("user",this.user); this.storage.set("user",this.user);
console.log("abbreviation:"+this.user.userDetail.user.abbreviation);
//this.changeImageFlag();
this.navCtrl.pop(); this.navCtrl.pop();
}) })
.catch(error => { .catch(error => {
......
...@@ -31,10 +31,7 @@ export class PersonInfoPage { ...@@ -31,10 +31,7 @@ export class PersonInfoPage {
ionViewWillEnter(): void { ionViewWillEnter(): void {
this.user = this.storage.get("user").then((value) => { this.user = this.storage.get("user").then((value) => {
this.user = value; this.user = value;
console.log(this.user);
console.log("id1:" + this.user.id);
this.gender = this.user.userDetail.user.gender; this.gender = this.user.userDetail.user.gender;
console.log("gender:" + this.gender);
this.getOrgName(this.user.id, result => { this.getOrgName(this.user.id, result => {
let data = result; let data = result;
this.orgName = data["orgName"]; this.orgName = data["orgName"];
......
...@@ -27,14 +27,12 @@ export class OutGoingReportPage { ...@@ -27,14 +27,12 @@ export class OutGoingReportPage {
//刷新 //刷新
doRefresh(refresher) { doRefresh(refresher) {
console.log('Begin async operation', refresher);
setTimeout(() => { setTimeout(() => {
if (this.type == 1) { if (this.type == 1) {
this.initPremanagerList(); this.initPremanagerList();
} else if (this.type == 2) { } else if (this.type == 2) {
this.initPremanagerListAboutNot(); this.initPremanagerListAboutNot();
} }
console.log('Async operation has ended');
refresher.complete(); refresher.complete();
}, 2000); }, 2000);
} }
...@@ -68,7 +66,6 @@ export class OutGoingReportPage { ...@@ -68,7 +66,6 @@ export class OutGoingReportPage {
this.appService.ObserverHttpGet("/wisdomgroup/modules/premanager/findNeedPremanager", null) this.appService.ObserverHttpGet("/wisdomgroup/modules/premanager/findNeedPremanager", null)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log(data);
this.PremanagerList = data; this.PremanagerList = data;
}, error => { }, error => {
} }
......
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
</ion-item> </ion-item>
</ion-list> </ion-list>
<button class="submit-btn submit" *ngIf="!premanager.reported" (click)="savePremanager()">提交报备</button> <button class="submit-btn submit" *ngIf="!userpre.id" (click)="savePremanager()">提交报备</button>
<button class="submit-btn submit" *ngIf="premanager.reported" (click)="editPremanager()">修改报备</button> <button class="submit-btn submit" *ngIf="userpre.id" (click)="editPremanager()">修改报备</button>
</ion-content> </ion-content>
......
...@@ -69,7 +69,6 @@ export class OutGoingReportEditPage { ...@@ -69,7 +69,6 @@ export class OutGoingReportEditPage {
this.storage.get("premanager").then((value) => { this.storage.get("premanager").then((value) => {
if (value != null && value != '') { if (value != null && value != '') {
this.premanager = value; this.premanager = value;
console.log(this.premanager);
//加载报备的图片 //加载报备的图片
this.picture = AppGlobal.picture + this.premanager["uploadPic"]; this.picture = AppGlobal.picture + this.premanager["uploadPic"];
//加载报备详细说明 //加载报备详细说明
...@@ -181,7 +180,6 @@ export class OutGoingReportEditPage { ...@@ -181,7 +180,6 @@ export class OutGoingReportEditPage {
//报备详情限定一行17个字符串,两行57个字符串,多余以省略号代替 //报备详情限定一行17个字符串,两行57个字符串,多余以省略号代替
subIntroduce(str: string) { subIntroduce(str: string) {
console.log("introduce:" + str.length);
if (!str) this.introduce = ''; if (!str) this.introduce = '';
if (str.length <= 17) this.introduce = str; if (str.length <= 17) this.introduce = str;
if (str.length > 17 && str.length <= 25) this.introduce = str.substr(0, 17) + "..."; if (str.length > 17 && str.length <= 25) this.introduce = str.substr(0, 17) + "...";
...@@ -278,7 +276,6 @@ export class OutGoingReportEditPage { ...@@ -278,7 +276,6 @@ export class OutGoingReportEditPage {
//修改报备 //修改报备
editPremanager() { editPremanager() {
if (this.userpre.isorFromsh == 1) { if (this.userpre.isorFromsh == 1) {
//判断离沪地点是否选择 //判断离沪地点是否选择
if (this.userpre.outaddressids == null || this.userpre.outaddressids == '') { if (this.userpre.outaddressids == null || this.userpre.outaddressids == '') {
...@@ -292,6 +289,10 @@ export class OutGoingReportEditPage { ...@@ -292,6 +289,10 @@ export class OutGoingReportEditPage {
this.userpre.userpreDesc = temp_userpreDesc; this.userpre.userpreDesc = temp_userpreDesc;
} }
} }
if(this.person){
this.userpre.userId = this.person.id;
this.userpre.userName = this.person.name;
}
this.storage.get("cityList").then((value) => { this.storage.get("cityList").then((value) => {
if (value != null && value != '') { //离沪 if (value != null && value != '') { //离沪
...@@ -307,15 +308,18 @@ export class OutGoingReportEditPage { ...@@ -307,15 +308,18 @@ export class OutGoingReportEditPage {
let resultback = result; let resultback = result;
if (resultback.code == '200') { if (resultback.code == '200') {
//this.appService.popToastView(resultback.msg,'middle',1000); //this.appService.popToastView(resultback.msg,'middle',1000);
if( this.userpre.id ){
//清空 插入 const index = this.navCtrl.getActive().index;
const index = this.navCtrl.getActive().index; this.navCtrl.remove(3, index);
this.navCtrl.remove(0, index); this.navCtrl.pop();
this.navCtrl.setRoot(MinePage); }else{
this.navCtrl.parent.select(3); // //清空 插入
const index = this.navCtrl.getActive().index;
this.navCtrl.remove(0, index);
this.navCtrl.push("MyReportPage"); this.navCtrl.setRoot(MinePage);
this.navCtrl.parent.select(3);
this.navCtrl.push("MyReportPage");
}
} else { } else {
//失败 //失败
this.appService.popToastView(resultback.msg, 'middle', 1000); this.appService.popToastView(resultback.msg, 'middle', 1000);
......
...@@ -85,6 +85,5 @@ export class OutGoingReportViewPage { ...@@ -85,6 +85,5 @@ export class OutGoingReportViewPage {
} }
ionViewDidLoad() { ionViewDidLoad() {
console.log('ionViewDidLoad OutGoingReportViewPage');
} }
} }
...@@ -62,7 +62,6 @@ export class ReportDetailPage { ...@@ -62,7 +62,6 @@ export class ReportDetailPage {
this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getUserAboutLeave", {id: id}) this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getUserAboutLeave", {id: id})
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log(data);
this.itemsOfLeave = data; this.itemsOfLeave = data;
}, error => { }, error => {
} }
...@@ -74,7 +73,6 @@ export class ReportDetailPage { ...@@ -74,7 +73,6 @@ export class ReportDetailPage {
this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getUserAboutNotLeave", {id: id}) this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getUserAboutNotLeave", {id: id})
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log(data);
this.itemsOfNotLeave = data; this.itemsOfNotLeave = data;
}, error => { }, error => {
} }
......
...@@ -37,7 +37,6 @@ export class CreatePage { ...@@ -37,7 +37,6 @@ export class CreatePage {
ionViewDidLoad() { ionViewDidLoad() {
this.temp = this.navParams.get('temp'); //问卷信息 this.temp = this.navParams.get('temp'); //问卷信息
console.log(this.temp);
if (this.navParams.get('edit')) { //编辑 if (this.navParams.get('edit')) { //编辑
this.editTemp = this.navParams.get('edit'); this.editTemp = this.navParams.get('edit');
this.editIndex = this.navParams.get('index'); this.editIndex = this.navParams.get('index');
...@@ -106,7 +105,6 @@ export class CreatePage { ...@@ -106,7 +105,6 @@ export class CreatePage {
array: JSON.stringify(newArr), array: JSON.stringify(newArr),
id: this.temp.id id: this.temp.id
}; };
console.log(newArr);
const toast = this.toastCtrl.create(message); const toast = this.toastCtrl.create(message);
this.appService.ObserverHttpPost('/wisdomgroup/modules/question/saveQuestion', data) this.appService.ObserverHttpPost('/wisdomgroup/modules/question/saveQuestion', data)
.subscribe( .subscribe(
...@@ -161,7 +159,6 @@ export class CreatePage { ...@@ -161,7 +159,6 @@ export class CreatePage {
const data = { const data = {
array: JSON.stringify(arr) array: JSON.stringify(arr)
}; };
console.log(this.temp);
const toast = this.toastCtrl.create(message); const toast = this.toastCtrl.create(message);
this.appService.ObserverHttpPost('/wisdomgroup/modules/question/saveQuestion', data) this.appService.ObserverHttpPost('/wisdomgroup/modules/question/saveQuestion', data)
.subscribe( .subscribe(
......
...@@ -90,7 +90,6 @@ export class DesicrPage { ...@@ -90,7 +90,6 @@ export class DesicrPage {
isans: this.desrc.isans, //是否匿名 isans: this.desrc.isans, //是否匿名
state: this.desrc.state //状态 state: this.desrc.state //状态
}; };
console.log(data);
this.appService.ObserverHttpPost('/wisdomgroup/modules/question/updateOnApp', data) this.appService.ObserverHttpPost('/wisdomgroup/modules/question/updateOnApp', data)
.subscribe((res) => { .subscribe((res) => {
if (res) { if (res) {
......
...@@ -20,7 +20,6 @@ export class DetailPage { ...@@ -20,7 +20,6 @@ export class DetailPage {
ionViewDidLoad() { ionViewDidLoad() {
this.temp = this.navParams.get('temp'); this.temp = this.navParams.get('temp');
console.log(this.temp);
this.getDetail(); this.getDetail();
} }
......
...@@ -75,7 +75,6 @@ export class EditPage { ...@@ -75,7 +75,6 @@ export class EditPage {
} }
goEdit(index) { goEdit(index) {
console.log(index);
this.navCtrl.push('CreatePage', { this.navCtrl.push('CreatePage', {
edit: this.contentList, edit: this.contentList,
index: index, index: index,
...@@ -177,7 +176,6 @@ export class EditPage { ...@@ -177,7 +176,6 @@ export class EditPage {
}; };
newArr.push(arr); newArr.push(arr);
} }
console.log(newArr);
const data = { const data = {
array: JSON.stringify(newArr), array: JSON.stringify(newArr),
id: this.temp.id id: this.temp.id
......
...@@ -48,13 +48,11 @@ export class SetPage { ...@@ -48,13 +48,11 @@ export class SetPage {
save() { save() {
//是否匿名 //是否匿名
console.log(this.isans);
if (this.isans == true || this.isans == 1) { if (this.isans == true || this.isans == 1) {
this.temp.isans = 1; this.temp.isans = 1;
} else { } else {
this.temp.isans = 2; this.temp.isans = 2;
} }
console.log(this.temp.isans);
//是否公开问卷结果 //是否公开问卷结果
if (this.isopen == true || this.isopen == 1) { if (this.isopen == true || this.isopen == 1) {
this.temp.isopen = 1; this.temp.isopen = 1;
......
...@@ -47,10 +47,7 @@ export class MinePage { ...@@ -47,10 +47,7 @@ export class MinePage {
orgNameInfo(): void { orgNameInfo(): void {
this.user = this.storage.get("user").then((value) => { this.user = this.storage.get("user").then((value) => {
this.user = value; this.user = value;
console.log(this.user);
console.log("id1:" + this.user.id);
this.gender = this.user.userDetail.user.gender; this.gender = this.user.userDetail.user.gender;
console.log("gender:" + this.gender);
this.getOrgName(this.user.id, result => { this.getOrgName(this.user.id, result => {
let data = result; let data = result;
this.orgName = data["orgName"]; this.orgName = data["orgName"];
...@@ -112,7 +109,6 @@ export class MinePage { ...@@ -112,7 +109,6 @@ export class MinePage {
// }) // })
//退出登陆,将缓存中的用户注销,跳转到登陆页面。 //退出登陆,将缓存中的用户注销,跳转到登陆页面。
this.storage.get("user").then((value) => { this.storage.get("user").then((value) => {
console.log(value);
}); });
this.storage.remove("user"); this.storage.remove("user");
this.storage.remove("userLoginInfo"); this.storage.remove("userLoginInfo");
...@@ -152,12 +148,10 @@ export class MinePage { ...@@ -152,12 +148,10 @@ export class MinePage {
} }
}); });
}).catch(err => { }).catch(err => {
console.log('getVersionNumber:' + err);
}); });
} }
goSet() { goSet() {
// this.navCtrl.push('VersionPage');
this.app.getRootNav().push('VersionPage'); this.app.getRootNav().push('VersionPage');
} }
......
...@@ -75,7 +75,6 @@ export class VersionPage { ...@@ -75,7 +75,6 @@ export class VersionPage {
} }
}); });
}).catch(err => { }).catch(err => {
console.log('getVersionNumber:' + err);
}); });
} }
......
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