提交 | 用户 | 时间
|
850106
|
1 |
<template> |
H |
2 |
<el-card shadow="never" class="aui-card--fill"> |
|
3 |
<div class="mod-device__device-account-history}"> |
|
4 |
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
5 |
<el-form-item> |
|
6 |
<el-input v-model="dataForm.id" placeholder="id" clearable></el-input> |
|
7 |
</el-form-item> |
|
8 |
<el-form-item> |
|
9 |
<el-button @click="getDataList()">{{ $t('query') }}</el-button> |
|
10 |
</el-form-item> |
|
11 |
</el-form> |
|
12 |
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
|
13 |
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> |
|
14 |
<el-table-column prop="id" label="id" header-align="center" align="center"></el-table-column> |
|
15 |
<el-table-column prop="faultDevice" label="故障设备" header-align="center" align="center"></el-table-column> |
|
16 |
<el-table-column prop="faultParts" label="故障部件" header-align="center" align="center"></el-table-column> |
|
17 |
<el-table-column prop="faultType" label="故障类型" header-align="center" align="center"></el-table-column> |
|
18 |
<el-table-column prop="faultCause" label="故障原因" header-align="center" align="center"></el-table-column> |
|
19 |
<el-table-column prop="solution" label="处理对策" header-align="center" align="center"></el-table-column> |
|
20 |
<el-table-column prop="state" label="处理状态" header-align="center" align="center"></el-table-column> |
|
21 |
<el-table-column prop="affectHour" label="影响时长" header-align="center" align="center"></el-table-column> |
|
22 |
<el-table-column prop="creatorDate" label="发生时间" header-align="center" align="center"></el-table-column> |
|
23 |
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
24 |
<template slot-scope="scope"> |
|
25 |
<el-button v-if="$hasPermission('device:device-account-history:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button> |
|
26 |
<el-button v-if="$hasPermission('device:device-account-history:delete')" type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> |
|
27 |
</template> |
|
28 |
</el-table-column> |
|
29 |
</el-table> |
|
30 |
<el-pagination |
|
31 |
:current-page="page" |
|
32 |
:page-sizes="[10, 20, 50, 100]" |
|
33 |
:page-size="limit" |
|
34 |
:total="total" |
|
35 |
layout="total, sizes, prev, pager, next, jumper" |
|
36 |
@size-change="pageSizeChangeHandle" |
|
37 |
@current-change="pageCurrentChangeHandle"> |
|
38 |
</el-pagination> |
|
39 |
<!-- 弹窗, 新增 / 修改 --> |
|
40 |
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> |
|
41 |
</div> |
|
42 |
</el-card> |
|
43 |
</template> |
|
44 |
|
|
45 |
<script> |
|
46 |
import mixinViewModule from '@/mixins/view-module' |
|
47 |
import AddOrUpdate from './device-account-history-add-or-update' |
|
48 |
export default { |
|
49 |
mixins: [mixinViewModule], |
|
50 |
data () { |
|
51 |
return { |
|
52 |
mixinViewModuleOptions: { |
|
53 |
getDataListURL: '/iailab-ntt-model/device/device-account-history/page', |
|
54 |
getDataListIsPage: true, |
|
55 |
}, |
|
56 |
dataForm: { |
|
57 |
id: '' |
|
58 |
} |
|
59 |
} |
|
60 |
}, |
|
61 |
components: { |
|
62 |
AddOrUpdate |
|
63 |
} |
|
64 |
} |
|
65 |
</script> |