Browse Source

名称修改

feature/dev_worklog
zhangyuan 3 years ago
parent
commit
3678f109e1
  1. 8
      src/views/modules/worklog/icworklog-add-or-update.vue

8
src/views/modules/worklog/icworklog-add-or-update.vue

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

Loading…
Cancel
Save