|
|
|
@ -10,9 +10,9 @@ |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsG" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
:key="item.gridId" |
|
|
|
:label="item.gridName" |
|
|
|
:value="item.gridId" |
|
|
|
:disabled="item.disabled" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
@ -170,7 +170,7 @@ export default { |
|
|
|
const grid = this.optionsG.filter(item => item.value === res.data.gridId) |
|
|
|
if (grid.length < 1) { |
|
|
|
this.gridState = false |
|
|
|
this.optionsG.push({label:res.data.gridName, value:res.data.gridId, disabled: true}) |
|
|
|
this.optionsG.push({gridName:res.data.gridName, gridId:res.data.gridId, disabled: true}) |
|
|
|
} else { |
|
|
|
this.gridState = true |
|
|
|
} |
|
|
|
|