Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ef23f99f
authored
May 27, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
d8eb7873
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
27 deletions
packageMine/pages/staffManage/staffList/staffList.js
packageMine/pages/staffManage/staffList/staffList.scss
packageMine/pages/staffManage/staffList/staffList.wxml
utils/request/environment.js
packageMine/pages/staffManage/staffList/staffList.js
View file @
ef23f99
...
@@ -84,12 +84,12 @@ Page({
...
@@ -84,12 +84,12 @@ Page({
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
},
onLoad
(
options
)
{},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{
},
onReady
()
{},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
...
@@ -114,13 +114,18 @@ Page({
...
@@ -114,13 +114,18 @@ Page({
this
.
getStaffAuditPage
(
true
);
this
.
getStaffAuditPage
(
true
);
});
});
},
},
// 切换tab 重新请求
changeTabIndx
(
e
)
{
changeTabIndx
(
e
)
{
// console.log(e);
// console.log(e);
let
{
detail
}
=
e
;
let
{
detail
}
=
e
;
this
.
setData
({
this
.
setData
({
tabIndx
:
detail
,
tabIndx
:
detail
,
});
});
detail
==
0
?
this
.
getList
(
true
)
:
this
.
getStaffAuditPage
(
true
)
this
.
setData
({
currentPageApplication
:
1
,
currentPage
:
1
,
});
detail
==
0
?
this
.
getList
(
true
)
:
this
.
getStaffAuditPage
(
true
);
},
},
getStaffAuditPage
(
isReset
=
false
)
{
getStaffAuditPage
(
isReset
=
false
)
{
let
{
let
{
...
@@ -145,6 +150,7 @@ Page({
...
@@ -145,6 +150,7 @@ Page({
}
}
this
.
setData
({
this
.
setData
({
isAskApplication
:
true
,
isAskApplication
:
true
,
triggeredApplication
:
true
,
});
});
mineApi
mineApi
.
staffAuditPage
(
params
)
.
staffAuditPage
(
params
)
...
@@ -229,11 +235,11 @@ Page({
...
@@ -229,11 +235,11 @@ Page({
search
()
{
search
()
{
this
.
setData
({
this
.
setData
({
nothingApplication
:
false
,
currentPage
:
1
,
totalApplication
:
0
,
nothing
:
false
,
currentPageApplication
:
1
,
total
:
0
,
});
});
this
.
get
StaffAuditPage
(
true
);
this
.
get
List
(
true
);
},
},
onBottomRefreshApplication
()
{
onBottomRefreshApplication
()
{
console
.
log
(
"onBottomRefreshApplication"
);
console
.
log
(
"onBottomRefreshApplication"
);
...
@@ -242,11 +248,11 @@ Page({
...
@@ -242,11 +248,11 @@ Page({
searchApplication
()
{
searchApplication
()
{
this
.
setData
({
this
.
setData
({
currentPage
:
1
,
nothingApplication
:
false
,
nothing
:
false
,
totalApplication
:
0
,
total
:
0
,
currentPageApplication
:
1
,
});
});
this
.
get
List
(
true
);
this
.
get
StaffAuditPage
(
true
);
},
},
// 筛选员工类型
// 筛选员工类型
...
@@ -285,13 +291,13 @@ Page({
...
@@ -285,13 +291,13 @@ Page({
// 创建/编辑员工
// 创建/编辑员工
jump
(
e
)
{
jump
(
e
)
{
console
.
log
(
e
,
'e'
);
console
.
log
(
e
,
"e"
);
let
info
=
e
.
currentTarget
.
dataset
.
info
let
info
=
e
.
currentTarget
.
dataset
.
info
;
if
(
info
.
auditStatus
==
0
)
{
if
(
info
?
.
auditStatus
==
0
)
{
return
wx
.
$api
.
showToast
({
return
wx
.
$api
.
showToast
({
title
:
'审核中不可操作'
,
title
:
"审核中不可操作"
,
icon
:
'error'
icon
:
"error"
,
})
})
;
}
}
// 校验是否有配置服务中心
// 校验是否有配置服务中心
if
(
!
this
.
data
.
serviceList
.
length
)
{
if
(
!
this
.
data
.
serviceList
.
length
)
{
...
@@ -315,25 +321,25 @@ Page({
...
@@ -315,25 +321,25 @@ Page({
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
()
{
},
onHide
()
{},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
()
{
},
onUnload
()
{},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
()
{
},
onPullDownRefresh
()
{},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom
()
{
},
onReachBottom
()
{},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
},
onShareAppMessage
()
{},
});
});
packageMine/pages/staffManage/staffList/staffList.scss
View file @
ef23f99
...
@@ -138,10 +138,11 @@
...
@@ -138,10 +138,11 @@
width
:
36rpx
;
width
:
36rpx
;
height
:
36rpx
;
height
:
36rpx
;
}
}
.auditstatus
{
.auditstatus
{
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#3666FE
;
color
:
#3666FE
;
}
}
}
}
...
@@ -356,7 +357,7 @@ font-size: 24rpx;
...
@@ -356,7 +357,7 @@ font-size: 24rpx;
margin
:
0
6rpx
;
margin
:
0
6rpx
;
}
}
.order-value.auditType
{
.
list
.item
.order
.
order-value.auditType
{
color
:
#EF971E
;
color
:
#EF971E
;
}
}
...
...
packageMine/pages/staffManage/staffList/staffList.wxml
View file @
ef23f99
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<view wx:else class="order-value">{{li[i.key] || ''}}</view>
<view wx:else class="order-value">{{li[i.key] || ''}}</view>
</view>
</view>
</block>
</block>
<view class="order" wx:if="{{ li.auditStatus ==
3
}}">
<view class="order" wx:if="{{ li.auditStatus ==
2
}}">
<view class="order-label">驳回原因:</view>
<view class="order-label">驳回原因:</view>
<view class="order-value">{{li.auditRemark || ''}}</view>
<view class="order-value">{{li.auditRemark || ''}}</view>
</view>
</view>
...
...
utils/request/environment.js
View file @
ef23f99
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
1
let
index
=
2
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment