会议详情样式修改,bug修改

This commit is contained in:
zhaoxiao
2021-10-19 16:15:15 +08:00
parent 97e6a76001
commit b0a50b19e1
6 changed files with 263 additions and 148 deletions
@@ -18,7 +18,7 @@
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="运行年份" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-year-date style="width:100%" placeholder="请选择运行年份" v-model="queryParam.year"></j-year-date>
<j-year-date style="width:100%" placeholder="请选择运行年份" v-model="queryParam.year" @change="dateChange"></j-year-date>
</a-form-item>
</a-col>
@@ -163,7 +163,16 @@ export default {
}
},
methods: {
/**
* 运行年份变化
*/
dateChange() {
this.$forceUpdate()
},
open() {
// 运行年份默认为当年
this.queryParam.year = new Date().getFullYear().toString()
this.lastQueryParam.year = new Date().getFullYear().toString()
this.loadData()
this.visible = true
},
@@ -230,7 +239,19 @@ export default {
addOk() {
this.close()
this.$emit('ok')
}
},
/**
* 重置
*/
searchReset() {
this.lastQueryParam = {
year: new Date().getFullYear().toString()
}
this.queryParam = {
year: new Date().getFullYear().toString()
}
this.loadData(1)
},
}
}
</script>