Commit 4fd07397 authored by levante's avatar levante

123

parent 33a9f55c
<template>
<div class="routerWapper">
<div class="portalDetailTitle" v-if="$route.name == 'actionList'">
<a-tabs default-active-key="1" @change="callback">
<a-tabs default-active-key="1">
<a-tab-pane key="1" tab="触发Action">
<div class="layoutMargin">
<a-row>
......
......@@ -2,6 +2,91 @@
<div class="routerWapper">
<div class="portalDetailTitle" v-if="$route.name == 'executionLogList'">
<span class="title">日志列表</span>
<div class="layoutPadding">
<div class="itemMargin">
<a-alert type="info" show-icon>
<p slot="description">
已选择: {{selectedRowKeys.length}}
</p>
</a-alert>
</div>
<a-table class="elevator-table portalTable" :dataSource="list" :columns="columns" size="small" :pagination="pagination" rowKey="id" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<span slot="operation" slot-scope="text, record">
<span class="actionBtn" @click="edit(record)">编辑</span>
<span class="actionBtn" @click="more(record)">更多</span>
</span>
<span slot="no" slot-scope="text, record, index">
{{index+1}}
</span>
</a-table>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
selectedRowKeys: [],
list: [],
columns: [
{
title: '#',
dataIndex: 'no',
align: 'center',
key: 'no',
scopedSlots: {
customRender: 'no',
},
},
{
title: '触发服务',
dataIndex: 'cffw',
align: 'center',
key: 'cffw'
},
{
title: '执行服务',
dataIndex: 'zxfw',
align: 'center',
key: 'zxfw'
},
{
title: '执行时间',
dataIndex: 'zxsj',
align: 'center',
key: 'zxsj'
},
{
title: '执行结果',
dataIndex: 'zxjg',
align: 'center',
key: 'zxjg'
},
],
pagination: {//分页
pageNo: 1,
pageSize: 10,
total: 10,
current: 1,
defaultCurrent: 1,
showQuickJumper: true,
onChange: this.pageChange
},
}
},
methods: {
pageChange(val) {
this.pagination.pageNo = val
this.pagination.current = val
// this.getCompanyList()
},
onSelectChange(selectedRowKeys) {
this.selectedRowKeys = selectedRowKeys
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment