|
@@ -14,14 +14,12 @@
|
|
|
placeholder="请选择年份">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="organIds">
|
|
|
+ <el-form-item prop="organId">
|
|
|
<el-select
|
|
|
- multiple
|
|
|
clearable
|
|
|
filterable
|
|
|
- collapse-tags
|
|
|
placeholder="请选择分部"
|
|
|
- v-model="search.organIds"
|
|
|
+ v-model="search.organId"
|
|
|
>
|
|
|
<el-option v-for="(item,index) in selects.branchs"
|
|
|
:key="index"
|
|
@@ -82,7 +80,7 @@ export default {
|
|
|
return {
|
|
|
search: {
|
|
|
year: '',
|
|
|
- organIds: []
|
|
|
+ organId: null
|
|
|
},
|
|
|
dataInfo: {},
|
|
|
business: {},
|
|
@@ -100,7 +98,7 @@ export default {
|
|
|
methods: {
|
|
|
reset() {
|
|
|
this.$set(this.search, 'year', this.$helpers.dayjs())
|
|
|
- this.$set(this.search, 'organIds', [])
|
|
|
+ this.$set(this.search, 'organId', [])
|
|
|
this.FetchDetail()
|
|
|
},
|
|
|
async FetchDetail() {
|
|
@@ -109,7 +107,6 @@ export default {
|
|
|
const res = await getIndex({
|
|
|
...this.search,
|
|
|
year: this.$helpers.dayjs(this.search.year).year() || '',
|
|
|
- organIds: this.search.organIds.join(',')
|
|
|
})
|
|
|
for (const item of res.data) {
|
|
|
data[item.dataType] = {
|