会议详情样式修改,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
@@ -20,6 +20,7 @@
v-model="queryParam.departId"
placeholder="请选择科室"
:disabled="pack === 0"
allowClear
@change="departChange">
</a-tree-select>
</a-form-item>
@@ -28,16 +29,24 @@
<a-form-item label="负责人" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-model="queryParam.principalId"
show-search
allowClear
placeholder="请选择负责人"
option-filter-prop="children"
@change="principalChange"
:filter-option="filterOption">
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname }}</a-select-option>
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">
{{ item.realname }}
</a-select-option>
</a-select>
</a-form-item>
</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="请选择运行年份"
allowClear
v-model="queryParam.year"
@change="dateChange"></j-year-date>
</a-form-item>
</a-col>
@@ -133,7 +142,7 @@ export default {
contractId: {
type: String,
requird: false,
default: null,
default: null
},
// 项目类型,1--普通项目;2--工作组项目;3--会议项目;4--会员项目
projectType: {
@@ -248,10 +257,23 @@ export default {
}
],
treeDepartData: [], // 部门列表
userList: [], // 用户列表
userList: [] // 用户列表
}
},
methods: {
/**
* 运行年份变化
*/
dateChange() {
this.$forceUpdate()
},
/**
* 负责人变化
*/
principalChange() {
this.$forceUpdate()
},
open() {
// 运行年份默认为当年
this.queryParam.year = new Date().getFullYear().toString()
@@ -357,13 +379,13 @@ export default {
* 重置
*/
searchReset() {
this.lastQueryParam = {}
let obj = {
departId: this.departId,
principalId: undefined,
year: undefined,
principalId: this.principal,
year: new Date().getFullYear().toString(),
}
this.queryParam = Object.assign(this.queryParam, obj)
this.lastQueryParam = Object.assign(this.lastQueryParam, obj)
this.loadData(1)
},
/**