|  |  |  | 
|---|
|  |  |  | user: { | 
|---|
|  |  |  | username: '', | 
|---|
|  |  |  | id: 0, | 
|---|
|  |  |  | type: 'user_id' | 
|---|
|  |  |  | type: '' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | falg: true, | 
|---|
|  |  |  | list: [], | 
|---|
|  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | getContractList1() { | 
|---|
|  |  |  | let _this = this | 
|---|
|  |  |  | _this.list = [] | 
|---|
|  |  |  | uni.showLoading({}) | 
|---|
|  |  |  | let param = {curr:1,limit:16,dept_id: 0,user_id: 67} | 
|---|
|  |  |  | let param = {curr:1,limit:8,dept_id: 0,user_id: 67} | 
|---|
|  |  |  | if (_this.user.type == 'user_id') { | 
|---|
|  |  |  | param = {curr:1,limit:16,user_id: _this.user.id} | 
|---|
|  |  |  | param = {curr:1,limit:8,user_id: _this.user.id} | 
|---|
|  |  |  | } else if(_this.user.type == 'dept_id') { | 
|---|
|  |  |  | param = {curr:1,limit:16,dept_id: _this.user.id} | 
|---|
|  |  |  | param = {curr:1,limit:8,dept_id: _this.user.id} | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | param = {curr:1,limit:16} | 
|---|
|  |  |  | param = {curr:1,limit:8} | 
|---|
|  |  |  | } | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: `${_this.baseUrl}/contract/list/auth`, | 
|---|
|  |  |  | 
|---|
|  |  |  | getContractList() { | 
|---|
|  |  |  | let _this = this | 
|---|
|  |  |  | uni.showLoading({}) | 
|---|
|  |  |  | let param = {curr:that.curr,limit:4,dept_id: 0,user_id: 67} | 
|---|
|  |  |  | let param = {curr:that.curr,limit:8,dept_id: 0,user_id: 67} | 
|---|
|  |  |  | if (this.user.type == 'user_id') { | 
|---|
|  |  |  | param = {curr:that.curr,limit:4,user_id: that.user.id} | 
|---|
|  |  |  | param = {curr:that.curr,limit:8,user_id: that.user.id} | 
|---|
|  |  |  | } else if(this.user.type == 'dept_id') { | 
|---|
|  |  |  | param = {curr:that.curr,limit:4,dept_id: that.user.id} | 
|---|
|  |  |  | param = {curr:that.curr,limit:8,dept_id: that.user.id} | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | param = {curr:that.curr,limit:4} | 
|---|
|  |  |  | param = {curr:that.curr,limit:8} | 
|---|
|  |  |  | } | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: `${_this.baseUrl}/contract/list/auth`, | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | let list = res.data.records | 
|---|
|  |  |  | _this.list = _this.reload ? list : _this.list.concat(list); | 
|---|
|  |  |  | _this.curr = _this.curr + 1 | 
|---|
|  |  |  | if (res.data.records.length == 0) { | 
|---|
|  |  |  | _this.status = 'noMore' | 
|---|
|  |  |  | } | 
|---|