|
|
|
|
@ -13,23 +13,23 @@
|
|
|
|
|
</slot>
|
|
|
|
|
</LxHeader>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="formwrap" :style="{'height':tableHeight+'px'}">
|
|
|
|
|
<div>
|
|
|
|
|
<div style="margin-bottom:15px;margin-top:15px;">
|
|
|
|
|
<div style="margin-bottom:15px;margin-top:15px;display: flex;align-items: start;">
|
|
|
|
|
<span style="margin-bottom:15px;display: inline-block;width:45px;vertical-align: top;">年度 </span>
|
|
|
|
|
<el-radio-group style="width:90%" v-model="select.year" @change="changeYear">
|
|
|
|
|
<el-radio style="margin-right:5px;margin-bottom:15px;margin-left:0" v-for="item in yearList" border
|
|
|
|
|
:label="item">{{item}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-bottom:15px;margin-top:15px;">
|
|
|
|
|
<div style="margin-bottom:15px;margin-top:15px;">
|
|
|
|
|
<span style="margin-bottom:15px;display: inline-block;width:45px;vertical-align: top;">部门 </span>
|
|
|
|
|
<el-select v-model="select.department_id" @change="changeDep" placeholder="请选择">
|
|
|
|
|
<el-option v-for="item in depList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-bottom:15px;margin-top:15px;">
|
|
|
|
|
<div style="margin-bottom:15px;margin-top:15px;display: flex;align-items: start;">
|
|
|
|
|
<span style="margin-bottom:15px;display: inline-block;width:45px;vertical-align: top;">类型 </span>
|
|
|
|
|
<el-radio-group style="width:90%" @change="changeCategoryType" v-model="select.category_type_id">
|
|
|
|
|
<el-radio style="margin-right:5px;margin-bottom:5px;margin-left:0" v-for="item in categoryTypeList" border
|
|
|
|
|
@ -37,7 +37,10 @@
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <el-date-picker size="small" style="width: 110px;" placeholder="请选择日期" value-format="yyyy" v-model="select.year" type="year"></el-date-picker> -->
|
|
|
|
|
<Button style="margin-left: 10px;width:300px" type="primary" @click="goForm">进入填报</Button>
|
|
|
|
|
<div style="margin-top:30px">
|
|
|
|
|
<Button style="margin-left: 10px;width:300px;max-width: 300px;min-width: 300px;" size="large" type="primary"
|
|
|
|
|
@click="goForm">进入填报</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -67,19 +70,27 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
yearList: [],
|
|
|
|
|
categoryTypeList: [],
|
|
|
|
|
depList: [],
|
|
|
|
|
select: {
|
|
|
|
|
year: '',
|
|
|
|
|
department_id: '',
|
|
|
|
|
department_name:'',
|
|
|
|
|
department_id: '',
|
|
|
|
|
department_name: '',
|
|
|
|
|
category_type_id: '',
|
|
|
|
|
categoryTypeName: ''
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
let clientHeight = document.documentElement.clientHeight;
|
|
|
|
|
// let lxheader = document.querySelector(".v-header")?.getBoundingClientRect();
|
|
|
|
|
// let lxHeader_height = lxheader.height + 25; //查询 头部
|
|
|
|
|
let paginationHeight = 37; //分页的高度
|
|
|
|
|
let topHeight = 50; //页面 头部
|
|
|
|
|
this.tableHeight =
|
|
|
|
|
clientHeight - topHeight - paginationHeight - 20 - 25;
|
|
|
|
|
this.getPastYears()
|
|
|
|
|
this.getCategoryType()
|
|
|
|
|
this.getDep()
|
|
|
|
|
@ -100,23 +111,23 @@
|
|
|
|
|
this.select.categoryTypeName = res.length > 0 ? res[0].title : ''
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changeDep(e){
|
|
|
|
|
this.depList.map(item=>{
|
|
|
|
|
if(item.id===e){
|
|
|
|
|
this.select.department_id = item.id
|
|
|
|
|
this.select.department_name = item.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changeDep(e) {
|
|
|
|
|
this.depList.map(item => {
|
|
|
|
|
if (item.id === e) {
|
|
|
|
|
this.select.department_id = item.id
|
|
|
|
|
this.select.department_name = item.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changeYear(e) {},
|
|
|
|
|
changeCategoryType(e) {
|
|
|
|
|
this.categoryTypeList.map(item=>{
|
|
|
|
|
if(item.id===e){
|
|
|
|
|
this.select.category_type_id = item.id
|
|
|
|
|
this.select.categoryTypeName = item.title
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
changeCategoryType(e) {
|
|
|
|
|
this.categoryTypeList.map(item => {
|
|
|
|
|
if (item.id === e) {
|
|
|
|
|
this.select.category_type_id = item.id
|
|
|
|
|
this.select.categoryTypeName = item.title
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getPastYears(years) {
|
|
|
|
|
@ -124,19 +135,19 @@
|
|
|
|
|
this.yearList = res.years
|
|
|
|
|
this.select.year = res.selected_year
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goForm(){
|
|
|
|
|
if(!this.select.department_id){
|
|
|
|
|
this.$message({
|
|
|
|
|
type:'warning',
|
|
|
|
|
message:'请选择部门'
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path:'/departmentH5',
|
|
|
|
|
query:this.select
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goForm() {
|
|
|
|
|
if (!this.select.department_id) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message: '请选择部门'
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/departmentH5',
|
|
|
|
|
query: this.select
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
@ -161,4 +172,20 @@
|
|
|
|
|
white-space: wrap !important;
|
|
|
|
|
text-wrap: wrap
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formwrap {
|
|
|
|
|
padding: 50px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
// display: flex;
|
|
|
|
|
// justify-content: center;
|
|
|
|
|
// width: 100%;
|
|
|
|
|
|
|
|
|
|
&>div {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|