| @@ -64,6 +64,7 @@ Page({ | |||||
| */ | */ | ||||
| onLoad(options) { | onLoad(options) { | ||||
| this.setData({itemId:options.id,deptId:options.deptId}); | this.setData({itemId:options.id,deptId:options.deptId}); | ||||
| console.log(options); | |||||
| //this.getApprovalItemList(); | //this.getApprovalItemList(); | ||||
| this.groupList(); | this.groupList(); | ||||
| this.townList(); | this.townList(); | ||||
| @@ -87,7 +88,8 @@ Page({ | |||||
| let d = { | let d = { | ||||
| templateId : _this.data.item.templateId, | templateId : _this.data.item.templateId, | ||||
| orderByColumn:"id", | orderByColumn:"id", | ||||
| isAsc:"asc" | |||||
| isAsc:"asc", | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | ||||
| success: (r) => { | success: (r) => { | ||||
| @@ -168,7 +170,8 @@ Page({ | |||||
| let data={ | let data={ | ||||
| dataType:0, | dataType:0, | ||||
| pageNum:1, | pageNum:1, | ||||
| pageSize:50 | |||||
| pageSize:50, | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_TEMPLATELIST, data, { | UTIL.httpRequest(API.URL_GET_TEMPLATELIST, data, { | ||||
| success: (res) => { | success: (res) => { | ||||
| @@ -178,7 +181,8 @@ Page({ | |||||
| let d = { | let d = { | ||||
| templateId : res.rows[0].id, | templateId : res.rows[0].id, | ||||
| orderByColumn:"id", | orderByColumn:"id", | ||||
| isAsc:"asc" | |||||
| isAsc:"asc", | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, d, { | ||||
| success: (r) => { | success: (r) => { | ||||
| @@ -201,7 +205,8 @@ Page({ | |||||
| let data = { | let data = { | ||||
| templateId : e.currentTarget.dataset.id, | templateId : e.currentTarget.dataset.id, | ||||
| orderByColumn:"id", | orderByColumn:"id", | ||||
| isAsc:"asc" | |||||
| isAsc:"asc", | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, data, { | UTIL.httpRequest(API.URL_GET_TEMPLATEDETAIL, data, { | ||||
| success: (res) => { | success: (res) => { | ||||
| @@ -241,7 +246,8 @@ Page({ | |||||
| success: function (response) { | success: function (response) { | ||||
| let d = { | let d = { | ||||
| deptId:response.data.data.deptId, | deptId:response.data.data.deptId, | ||||
| deptLevel:3 | |||||
| deptLevel:3, | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_USERLIST,d,{ | UTIL.httpRequest(API.URL_GET_USERLIST,d,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| @@ -257,7 +263,8 @@ Page({ | |||||
| groupList:function(){ | groupList:function(){ | ||||
| let data = { | let data = { | ||||
| deptId : this.data.deptId, | deptId : this.data.deptId, | ||||
| deptLevel:1 | |||||
| deptLevel:1, | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| @@ -271,7 +278,8 @@ Page({ | |||||
| villageList:function(){ | villageList:function(){ | ||||
| let data = { | let data = { | ||||
| deptId : this.data.deptId, | deptId : this.data.deptId, | ||||
| deptLevel:2 | |||||
| deptLevel:2, | |||||
| method:"GET" | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | UTIL.httpRequest(API.URL_GET_USERLIST,data ,{ | ||||
| success: (res) => { | success: (res) => { | ||||