s_grade.js
1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//logs.js
var util = require('../../utils/util.js')
var uri=require('../../utils/uri.js')
import App from '../../utils/api.js'
Page({
data: {
toView:''
},
onLoad: function () {
var that = this;
util.setBarTitle('员工与职级管理')
let headerHeight=util.cache('headerHeight');
var fixedheight=240/(750/util.cache('system.info').windowWidth);
var contentHeight=Math.round((util.cache('system.info').windowHeight)-fixedheight-headerHeight);
this.setData({
sellerid: util.cache("sellerid"),
contentHeight:contentHeight,
identity:util.cache('identity') ? util.cache('identity') : null,
headerHeight:headerHeight,
fixedheight:fixedheight
})
},
onShow:function(){
this.getstaff();
},
//获取员工别列表
getstaff:function(){
console.log('ppppp')
App.Seller.GetAuthUserLists({sellerid:this.data.sellerid}).then((json)=>{
console.log(json,'uuuuuuu')
if(json.ret==200){
this.setData({
list:json.data
})
}
})
},
editService:function(e){
wx.navigateTo({
url:'../store/s_staffadd?id='+e.currentTarget.dataset.id+'&type='+2
})
},
netchange:function(){
this.onShow();
}
})