|
@@ -128,7 +128,7 @@ export default {
|
|
|
align: 'left'
|
|
align: 'left'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '亩均水权(亩/m³)',
|
|
|
|
|
|
|
+ label: '亩均水权(m³/亩)',
|
|
|
prop: 'amountPerMu',
|
|
prop: 'amountPerMu',
|
|
|
customRender: '',
|
|
customRender: '',
|
|
|
align: 'left'
|
|
align: 'left'
|
|
@@ -169,22 +169,22 @@ export default {
|
|
|
res = await getTree();
|
|
res = await getTree();
|
|
|
this.$store.dispatch('tree/setTree', res);
|
|
this.$store.dispatch('tree/setTree', res);
|
|
|
}
|
|
}
|
|
|
- this.treeData = res?.data
|
|
|
|
|
- let tflag = true
|
|
|
|
|
- this.treeData.forEach(t => {
|
|
|
|
|
|
|
+ this.treeData = res?.data;
|
|
|
|
|
+ let tflag = true;
|
|
|
|
|
+ this.treeData.forEach((t) => {
|
|
|
if (t?.cusareaName == '全部') {
|
|
if (t?.cusareaName == '全部') {
|
|
|
- tflag = false
|
|
|
|
|
|
|
+ tflag = false;
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
if (tflag) {
|
|
if (tflag) {
|
|
|
this.treeData.unshift({
|
|
this.treeData.unshift({
|
|
|
id: '',
|
|
id: '',
|
|
|
cusareaId: '',
|
|
cusareaId: '',
|
|
|
cusareaName: '全部'
|
|
cusareaName: '全部'
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- this.cusareaName ||= this.treeData[0].cusareaName
|
|
|
|
|
- this.areaId = this.treeData[0].cusareaId
|
|
|
|
|
|
|
+ this.cusareaName ||= this.treeData[0].cusareaName;
|
|
|
|
|
+ this.areaId = this.treeData[0].cusareaId;
|
|
|
}
|
|
}
|
|
|
const params = {
|
|
const params = {
|
|
|
areaId: this.areaId,
|
|
areaId: this.areaId,
|