Browse Source

bug修改 清空按钮

master
王金鹏 6 years ago
parent
commit
1a5a38a3f0
  1. 16
      src/views/modules/events/issue-change.vue
  2. 16
      src/views/modules/events/issue-close.vue
  3. 16
      src/views/modules/events/issue-process.vue
  4. 16
      src/views/modules/events/issue-reject.vue
  5. 16
      src/views/modules/events/issue-review.vue
  6. 16
      src/views/modules/events/item-close.vue
  7. 16
      src/views/modules/events/item-deal.vue
  8. 16
      src/views/modules/events/item-end.vue

16
src/views/modules/events/issue-change.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -195,6 +197,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -205,6 +214,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/issue-close.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -196,6 +198,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -206,6 +215,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/issue-process.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -213,6 +215,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -223,6 +232,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/issue-reject.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -177,6 +179,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -187,6 +196,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/issue-review.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -29,7 +31,7 @@
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
placeholder="请选择">
clearable placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
@ -177,6 +179,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -187,6 +196,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/item-close.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -196,6 +198,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -206,6 +215,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/item-deal.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -201,6 +203,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -211,6 +220,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

16
src/views/modules/events/item-end.vue

@ -8,6 +8,7 @@
<el-form-item label="街道">
<el-select v-model="dataForm.streetId"
placeholder="请选择"
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
@ -19,6 +20,7 @@
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
@ -28,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
@ -197,6 +199,13 @@ export default {
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
@ -207,6 +216,11 @@ export default {
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {

Loading…
Cancel
Save