mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
509a26ea50
commit
bfbc6aa85f
@ -1,9 +1,9 @@
|
|||||||
<div id="staffAttendanceManageModel" class="modal fade" role="dialog" aria-labelledby="staffAttendanceManageModel" aria-hidden="true">
|
<div id="staffAttendanceDetailModel" class="modal fade" role="dialog" aria-labelledby="staffAttendanceDetailModel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h3 class="modal-title" id="chooseFloorModelLabel">
|
<h3 class="modal-title" id="chooseFloorModelLabel">
|
||||||
<span><vc:i18n name="考勤明细" namespace="staffAttendanceManage"></vc:i18n></span>
|
<span><vc:i18n name="考勤明细" namespace="staffAttendanceDetail"></vc:i18n></span>
|
||||||
</h3>
|
</h3>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
@ -18,15 +18,15 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
<span><vc:i18n name="员工名称" namespace="staffAttendanceManage"></vc:i18n></span>
|
<span><vc:i18n name="员工名称" namespace="staffAttendanceDetail"></vc:i18n></span>
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
<span><vc:i18n name="考勤时间" namespace="staffAttendanceManage"></vc:i18n></span>
|
<span><vc:i18n name="考勤时间" namespace="staffAttendanceDetail"></vc:i18n></span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="detail in staffAttendanceManageInfo.details">
|
<tr v-for="detail in staffAttendanceDetailInfo.details">
|
||||||
<td class="text-center">{{detail.staffName}}</td>
|
<td class="text-center">{{detail.staffName}}</td>
|
||||||
<td class="text-center">{{detail.clockTime}}</td>
|
<td class="text-center">{{detail.clockTime}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
(function(vc) {
|
(function(vc) {
|
||||||
vc.extends({
|
vc.extends({
|
||||||
data: {
|
data: {
|
||||||
staffAttendanceManageInfo: {
|
staffAttendanceDetailInfo: {
|
||||||
details: []
|
details: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function() {},
|
_initMethod: function() {},
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
vc.on('staffAttendanceManage', 'openModel', function(_param) {
|
vc.on('staffAttendanceDetail', 'openModel', function(_param) {
|
||||||
$('#staffAttendanceManageModel').modal('show');
|
$('#staffAttendanceDetailModel').modal('show');
|
||||||
$that.staffAttendanceManageInfo.feeDetailDiscounts = [];
|
$that.staffAttendanceDetailInfo.feeDetailDiscounts = [];
|
||||||
vc.component._loadStaffAttendanceDetailInfo(_param);
|
vc.component._loadStaffAttendanceDetailInfo(_param);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -29,7 +29,7 @@
|
|||||||
param,
|
param,
|
||||||
function(json, res) {
|
function(json, res) {
|
||||||
let _attendanceLogManageInfo = JSON.parse(json);
|
let _attendanceLogManageInfo = JSON.parse(json);
|
||||||
vc.component.staffAttendanceManageInfo.details = _attendanceLogManageInfo.data;
|
vc.component.staffAttendanceDetailInfo.details = _attendanceLogManageInfo.data;
|
||||||
},
|
},
|
||||||
function(errInfo, error) {
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user