Browse Source

bug

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

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

@ -167,8 +167,8 @@ export default {
...res.data
}
const grid = this.optionsG.filter(item => item.value === res.data.gridId)
if (grid.length < 1) {
const grid = this.optionsG.filter(item => item.gridId === res.data.gridId)
if (grid.length < 1 && res.data.gridId !== '') {
this.gridState = false
this.optionsG.push({gridName:res.data.gridName, gridId:res.data.gridId, disabled: true})
} else {
@ -201,7 +201,6 @@ export default {
}
},
getGridList() {
this.optionsG = []
this.$http
.post('/gov/mine/agency/getmygrids')
.then(({ data: res }) => {

Loading…
Cancel
Save