|
@@ -1,8 +1,7 @@
|
|
-<template>
|
|
|
|
- <div class="cityResource-tableSetting">
|
|
|
|
-
|
|
|
|
|
|
+<template>
|
|
|
|
+ <div class="cityResource-tableSetting">
|
|
<el-card>
|
|
<el-card>
|
|
- <el-form ref="tableFormData" class="topFormStyle2" :inline="true" :model="tableFormData" label-width="120px">
|
|
|
|
|
|
+ <el-form ref="tableFormData" class="topFormStyle2" :inline="true" :model="tableFormData" label-width="120px">
|
|
<el-form-item label="表格时间选择" >
|
|
<el-form-item label="表格时间选择" >
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="tableFormData.startTime"
|
|
v-model="tableFormData.startTime"
|
|
@@ -79,7 +78,6 @@
|
|
width="auto">
|
|
width="auto">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <!-- 根据 transactionType 的值来渲染不同的内容 -->
|
|
|
|
<span v-if="scope.row.transactionType === 0">工程建设</span>
|
|
<span v-if="scope.row.transactionType === 0">工程建设</span>
|
|
<span v-else-if="scope.row.transactionType === 1">政府采购</span>
|
|
<span v-else-if="scope.row.transactionType === 1">政府采购</span>
|
|
<span v-else-if="scope.row.transactionType === 2">土地矿权</span>
|
|
<span v-else-if="scope.row.transactionType === 2">土地矿权</span>
|
|
@@ -104,7 +102,6 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
-
|
|
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="20">
|
|
<el-col :span="20">
|
|
<comp-page
|
|
<comp-page
|
|
@@ -117,12 +114,11 @@
|
|
</el-row>
|
|
</el-row>
|
|
</el-card>
|
|
</el-card>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
|
|
+ </template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import compPage from 'pkgs/components/pagination/index';
|
|
import compPage from 'pkgs/components/pagination/index';
|
|
import {areaTransactionList} from './areaTransactionList.js'
|
|
import {areaTransactionList} from './areaTransactionList.js'
|
|
- import ElSwitch from "element-ui/packages/switch/src/component";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'areaTransactionList',
|
|
name: 'areaTransactionList',
|
|
@@ -142,7 +138,6 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
- ElSwitch,
|
|
|
|
compPage
|
|
compPage
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -156,7 +151,6 @@
|
|
this.getRole();
|
|
this.getRole();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- /** 表格获取数据 */
|
|
|
|
getTableData: function () {
|
|
getTableData: function () {
|
|
areaTransactionList.getAreaTransactionList({pageNum: this.page, pageSize: 5, startDate: this.tableFormData.startTime, endDate: this.tableFormData.endTime}).then(res => {
|
|
areaTransactionList.getAreaTransactionList({pageNum: this.page, pageSize: 5, startDate: this.tableFormData.startTime, endDate: this.tableFormData.endTime}).then(res => {
|
|
this.tableData = res.data.result;
|
|
this.tableData = res.data.result;
|
|
@@ -164,12 +158,10 @@
|
|
this.page = res.data.pageMessage.pageNum;
|
|
this.page = res.data.pageMessage.pageNum;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- /** 分页 */
|
|
|
|
handleCurrentChange: function (val) {
|
|
handleCurrentChange: function (val) {
|
|
this.page = val;
|
|
this.page = val;
|
|
this.getTableData();
|
|
this.getTableData();
|
|
},
|
|
},
|
|
- /**确认时间,查询表格数据*/
|
|
|
|
searchTableData: function () {
|
|
searchTableData: function () {
|
|
this.getTableData();
|
|
this.getTableData();
|
|
},
|
|
},
|
|
@@ -204,4 +196,4 @@
|
|
background-color: white;
|
|
background-color: white;
|
|
padding-bottom: 20px;
|
|
padding-bottom: 20px;
|
|
}
|
|
}
|
|
- </style>
|
|
|
|
|
|
+ </style>
|