浏览代码

优化

master
yujk 3 年前
父节点
当前提交
05bbd59cf7
共有 4 个文件被更改,包括 8 次插入6 次删除
  1. +4
    -4
      pages/apply/approval/approval.js
  2. +1
    -0
      pages/index/index.js
  3. +1
    -1
      pages/index/index.wxml
  4. +2
    -1
      pages/index/index.wxss

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

@@ -44,6 +44,7 @@ Page({
],
//事务总表对象
item:{},
detpId:187,
itemId:13,
active:0,
result:[],
@@ -62,8 +63,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({itemId:options.id});
console.log(options)
this.setData({itemId:options.id,deptId:options.deptId});
//this.getApprovalItemList();
this.groupList();
this.townList();
@@ -256,7 +256,7 @@ Page({
},
groupList:function(){
let data = {
deptId : 187,
deptId : this.data.deptId,
deptLevel:1
}
UTIL.httpRequest(API.URL_GET_USERLIST,data ,{
@@ -270,7 +270,7 @@ Page({
},
villageList:function(){
let data = {
deptId : 187,
deptId : this.data.deptId,
deptLevel:2
}
UTIL.httpRequest(API.URL_GET_USERLIST,data ,{


+ 1
- 0
pages/index/index.js 查看文件

@@ -276,6 +276,7 @@ Page({
success: (res) => {
if (res.code == API.SUCCESS_CODE) {
this.setData({userInfoObj:res.user})
console.log(res.user);
this.setData({region:res.user.deptName})
this.setData({item:JSON.stringify(res.user)})
this.getBookList()


+ 1
- 1
pages/index/index.wxml 查看文件

@@ -11,7 +11,7 @@
<text class="name">{{userInfoObj.nickName}}</text>
<view class="jobs">
<view class="icon" style="background:url('../../image/index/header_job.png') no-repeat; background-size: 100% 100%;"></view>
{{userInfoObj.remark}}
{{userInfoObj.roles.length>0?userInfoObj.roles[0].roleName:""}}
</view>
</view>
<view class="task_wrap ">


+ 2
- 1
pages/index/index.wxss 查看文件

@@ -39,7 +39,7 @@
}
.information_header .name_wrap .jobs{
margin-left: 18rpx;
width: 155rpx;
/* width: 155rpx; */
height: 40rpx;
background: #5bae75;
border:2rpx solid #2c8e68;
@@ -49,6 +49,7 @@
font-size: 28rpx;
justify-content: center;
align-items: center;
padding: 0 20rpx;
}
.information_header .name_wrap .jobs .icon{
width: 26rpx;


正在加载...
取消
保存