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