瀏覽代碼

优化

master
yujk 3 年之前
父節點
當前提交
df44a02efe
共有 1 個文件被更改,包括 15 次插入7 次删除
  1. +15
    -7
      pages/apply/approval/approval.js

+ 15
- 7
pages/apply/approval/approval.js 查看文件

@@ -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) => {


Loading…
取消
儲存