mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
90fb403269
commit
752548d42d
@ -1,4 +1,4 @@
|
||||
<div id="breadcrumb" class="border-bottom white-bg page-heading">
|
||||
<div id="breadcrumb" class="border-bottom white-bg page-heading" v-if="breadCrumbs.length > 0">
|
||||
<div class="row">
|
||||
<div class="col-lg-12" style="margin-left: 5px;">
|
||||
<h2>{{breadCrumbs.length > 0 ? breadCrumbs[breadCrumbs.length-1].pageName : ''}}</h2>
|
||||
|
||||
@ -4,6 +4,11 @@
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>批量导入日志</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
|
||||
返回
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<table class="footable table table-stripped toggle-arrow-tiny"
|
||||
@ -22,15 +27,15 @@
|
||||
<tbody>
|
||||
<tr v-for="log in assetImportLogInfo.logs">
|
||||
<td class="text-center">{{log.logId}}</td>
|
||||
<td class="text-center">{{log.logType == '1001'?'资产':'缴费历史'}}</td>
|
||||
<td class="text-center">{{log.logTypeName}}</td>
|
||||
<td class="text-center">{{log.successCount}}</td>
|
||||
<td class="text-center">{{log.errorCount}}</td>
|
||||
<td class="text-center">{{log.remark}}</td>
|
||||
<td class="text-center">{{log.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group" v-if="log.errorCount > 0">
|
||||
<div class="btn-group" >
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openEditCarBlackWhiteModel(log)">失败详情
|
||||
v-on:click="_openDetail(log)">详情
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@ -52,6 +52,12 @@
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_goBack:function(){
|
||||
vc.goBack();
|
||||
},
|
||||
_openDetail:function(_log){
|
||||
vc.jumpToPage('/admin.html#/pages/property/assetImportLogDetail?logId='+_log.logId);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
<div class="animated fadeInRight ecommerce">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>详情</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
|
||||
返回
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<table class="footable table table-stripped toggle-arrow-tiny"
|
||||
data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">名称</th>
|
||||
<th class="text-center">状态</th>
|
||||
<th class="text-center">错误描述</th>
|
||||
<th class="text-center">导入时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="log in assetImportLogDetailInfo.logs">
|
||||
<td class="text-center">{{log.objName}}</td>
|
||||
<td class="text-center">{{log.state}}</td>
|
||||
<td class="text-center">{{log.message}}</td>
|
||||
<td class="text-center">{{log.createTime}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,63 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
assetImportLogDetailInfo: {
|
||||
logs: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
logId: '',
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that.assetImportLogDetailInfo.logId = vc.getParam('logId');
|
||||
vc.component._listAssetImportLogDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('assetImportLogDetail', 'listAssetImportLogDetail', function (_param) {
|
||||
vc.component._listAssetImportLogDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAssetImportLogDetails(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAssetImportLogDetails: function (_page, _rows) {
|
||||
var param = {
|
||||
params: {
|
||||
page: _page,
|
||||
row: _rows,
|
||||
logId: $that.assetImportLogDetailInfo.logId,
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apiGet('/assetImportLogDetail/queryAssetImportLogDetail',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _assetImportLogDetailInfo = JSON.parse(json);
|
||||
vc.component.assetImportLogDetailInfo.total = _assetImportLogDetailInfo.total;
|
||||
vc.component.assetImportLogDetailInfo.records = _assetImportLogDetailInfo.records;
|
||||
vc.component.assetImportLogDetailInfo.logs = _assetImportLogDetailInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.assetImportLogDetailInfo.records,
|
||||
dataCount: vc.component.assetImportLogDetailInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_goBack: function () {
|
||||
vc.goBack();
|
||||
},
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user