|
@@ -23,7 +23,7 @@
|
|
</div>
|
|
</div>
|
|
<el-table :data="tableData" style="margin-bottom: 19px">
|
|
<el-table :data="tableData" style="margin-bottom: 19px">
|
|
<el-table-column property="date" label="日期"></el-table-column>
|
|
<el-table-column property="date" label="日期"></el-table-column>
|
|
- <el-table-column property="itemType" label="事项类型"></el-table-column>
|
|
|
|
|
|
+ <el-table-column property="evenType" label="事项类型"></el-table-column>
|
|
<el-table-column property="serialNumber" label="编号"></el-table-column>
|
|
<el-table-column property="serialNumber" label="编号"></el-table-column>
|
|
<el-table-column property="update" label="更新内容"></el-table-column>
|
|
<el-table-column property="update" label="更新内容"></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -31,6 +31,8 @@
|
|
<el-pagination
|
|
<el-pagination
|
|
background
|
|
background
|
|
layout="prev, pager, next"
|
|
layout="prev, pager, next"
|
|
|
|
+ :current-page="curPage"
|
|
|
|
+ :page-size="pageSize"
|
|
:total="tatol">
|
|
:total="tatol">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
@@ -39,14 +41,23 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { getSpecificaltionData } from '../../api/specificationUpdateRecord';
|
|
|
|
+import _ from 'lodash';
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- incidentList: [], // 事件列表
|
|
|
|
|
|
+ incidentList: [
|
|
|
|
+ {id: 0, name: '专维'},
|
|
|
|
+ {id: 1, name: '维保任务'},
|
|
|
|
+ {id: 2, name: '第三方视图'},
|
|
|
|
+ {id: 3, name: '综合事项'},
|
|
|
|
+ ], // 事件列表
|
|
incidentType: '', // 事件类型
|
|
incidentType: '', // 事件类型
|
|
timeVal: '', // 时间
|
|
timeVal: '', // 时间
|
|
tableData: [], // 表数据
|
|
tableData: [], // 表数据
|
|
- tatol: 100, // 数据总量
|
|
|
|
|
|
+ curPage: 1, // 当前页码
|
|
|
|
+ pageSize: 10, // 每页条数
|
|
|
|
+ tatol: 0, // 数据总量
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -54,9 +65,35 @@ export default {
|
|
|
|
|
|
computed: {},
|
|
computed: {},
|
|
|
|
|
|
- mounted() {},
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getTableData();
|
|
|
|
+ },
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ /**
|
|
|
|
+ * 获取表数据
|
|
|
|
+ */
|
|
|
|
+ getTableData() {
|
|
|
|
+ let param = {
|
|
|
|
+ page: this.curPage,
|
|
|
|
+ size: this.pageSize,
|
|
|
|
+ plazaId: 1000423,
|
|
|
|
+ changeDateStartDate: 20171027000000,
|
|
|
|
+ changeDateEndDate: 20171028000000,
|
|
|
|
+ }
|
|
|
|
+ getSpecificaltionData('/data/data/rpt_change_record/query', param).then((res) => {
|
|
|
|
+ console.log('res', res)
|
|
|
|
+ const { result, data, count } = res;
|
|
|
|
+ if (result === 'success') {
|
|
|
|
+ this.tatol = count;
|
|
|
|
+ _.map(data, (item) => {
|
|
|
|
+ let text = _.find(this.incidentList, (o) => {return o.id === item.objtype}).name
|
|
|
|
+ return item.evenType = text;
|
|
|
|
+ })
|
|
|
|
+ this.tableData = data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
testClick() {
|
|
testClick() {
|
|
|
|
|
|
}
|
|
}
|