|
|
@@ -147,7 +147,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
|
|
|
- <el-button icon='el-icon-search' class='ml-20' type='primary' @click='search'>搜 索</el-button>
|
|
|
+ <el-button icon='el-icon-search' class='ml-20' type='primary' @click='search(false)'>搜 索</el-button>
|
|
|
<el-button icon='el-icon-delete' class='ml-20' type='primary' plain @click='resetKey'>清 空</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -325,7 +325,7 @@ export default {
|
|
|
switchTab (item, index) {
|
|
|
this.fieldType[index].isSelect = !this.fieldType[index].isSelect
|
|
|
this.selectIndex = index
|
|
|
- if (index === 2) {
|
|
|
+ if (index === 2) { // 年度投资情况
|
|
|
this.$api.params.paramsList({
|
|
|
type: this.fieldType[this.selectIndex].dictKey,
|
|
|
year: this.year,
|
|
|
@@ -333,14 +333,14 @@ export default {
|
|
|
month: this.month
|
|
|
}).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.parseList(res.data.records, index)
|
|
|
+ this.parseList(res.data.records, index, false)
|
|
|
}
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
this.$api.params.getListByKey({ type: this.fieldType[index].dictKey, export: 1 }).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.parseList(res.data.records, index)
|
|
|
+ this.parseList(res.data.records, index, false)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -349,7 +349,7 @@ export default {
|
|
|
* @param list
|
|
|
* @param index
|
|
|
*/
|
|
|
- parseList (list, index, reset = Boolean) {
|
|
|
+ parseList (list, index, reset) {
|
|
|
const tmps = list.map(e => {
|
|
|
e.checked = reset ? false : this.fieldType[index].params === undefined ? false : this.fieldType[index].params.findIndex(sub => sub.id === e.id) > -1
|
|
|
return e
|
|
|
@@ -486,8 +486,9 @@ export default {
|
|
|
this.year = ''
|
|
|
this.season = ''
|
|
|
this.month = ''
|
|
|
+ this.search(false)
|
|
|
},
|
|
|
- search () {
|
|
|
+ search (clean) {
|
|
|
this.$api.params.paramsList({
|
|
|
type: this.fieldType[this.selectIndex].dictKey,
|
|
|
year: this.year,
|
|
|
@@ -495,7 +496,7 @@ export default {
|
|
|
month: this.month
|
|
|
}).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.parseList(res.data.records, this.selectIndex, true)
|
|
|
+ this.parseList(res.data.records, this.selectIndex, clean)
|
|
|
}
|
|
|
})
|
|
|
}
|