<style scoped>
|
.title {
|
height: 60px;
|
line-height: 60px;
|
}
|
|
.search {
|
background-color: #fff;
|
height: 80px;
|
display: flex;
|
align-items: center;
|
}
|
|
.search_thing {
|
width: 350px;
|
display: flex;
|
align-items: center;
|
}
|
|
.search_label {
|
width: 110px;
|
font-size: 14px;
|
text-align: right;
|
}
|
|
.search_input {
|
width: calc(100% - 110px);
|
}
|
|
.table {
|
margin-top: 10px;
|
background-color: #fff;
|
width: calc(100% - 40px);
|
height: calc(100% - 60px - 80px - 10px - 40px);
|
padding: 20px;
|
}
|
</style>
|
|
<template>
|
<div class="product_count">
|
<div>
|
<el-row class="title">
|
<el-col :span="12" style="padding-left: 20px;">项目数据统计</el-col>
|
<el-col :span="12" style="text-align: right;">
|
<el-button size="small" @click="">
|
<i class="el-icon-download" style="color: #3A7BFA;"></i>
|
<span style="color: #3A7BFA;">导出</span>
|
</el-button>
|
</el-col>
|
</el-row>
|
</div>
|
<div class="search">
|
<div class="search_thing">
|
<div class="search_label">系统日期:</div>
|
<div class="search_input">
|
<el-date-picker size="small" v-model="componentData.entity.updateTime" type="date" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" clearable></el-date-picker>
|
</div>
|
</div>
|
<div class="search_thing">
|
<div class="search_label">登记日期:</div>
|
<div class="search_input">
|
<el-date-picker size="small" v-model="componentData.entity.createTime" type="date" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" clearable></el-date-picker>
|
</div>
|
</div>
|
<div class="search_thing">
|
<div class="search_label">项目:</div>
|
<div class="search_input">
|
<el-select size="small" style="width: 100%;" placeholder="请选择" v-model="componentData.entity.product">
|
<el-option :value="null" label="全部"></el-option>
|
<el-option v-for="(a, ai) in product" :key="ai" :label="a.product" :value="a.product"></el-option>
|
</el-select>
|
</div>
|
</div>
|
<div class="search_thing" style="padding-left: 30px;">
|
<el-button size="small" @click="refresh()">重 置</el-button>
|
<el-button size="small" type="primary" @click="refreshTable()">查 询</el-button>
|
</div>
|
</div>
|
<div class="table">
|
<ValueTable ref="ValueTable" :url="$api.dataReporting.selectProductCountDtoPageList" :componentData="componentData" :key="upIndex"/>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import ValueTable from '../tool/value-table.vue'
|
export default {
|
components: {
|
ValueTable
|
},
|
data() {
|
return {
|
componentData: {
|
entity: {
|
updateTime: null,
|
createTime: null,
|
product: null,
|
orderBy: {
|
field: 'update_time',
|
order: 'asc'
|
}
|
},
|
isIndex: false,
|
showSelect: false,
|
select: true,
|
do: [],
|
tagField: {}
|
},
|
entityCopy: {},
|
upIndex: 0,
|
addDia: false,
|
product: []
|
}
|
},
|
mounted() {
|
this.entityCopy = this.HaveJson(this.componentData.entity)
|
this.selectProductEnumList()
|
},
|
methods: {
|
refreshTable() {
|
this.$refs['ValueTable'].selectList()
|
},
|
refresh() {
|
this.componentData.entity = this.HaveJson(this.entityCopy)
|
this.upIndex++
|
},
|
selectProductEnumList(){
|
this.$axios.get(this.$api.enums.selectProductEnumList).then(res=>{
|
this.product = res.data
|
})
|
}
|
}
|
}
|
</script>
|