Browse Source

小程序码管理页面添加选项清空功能

master
yujintao 6 years ago
parent
commit
c81553d5c8
  1. 8
      src/views/modules/sys/deptmacode.vue

8
src/views/modules/sys/deptmacode.vue

@ -41,6 +41,10 @@
<el-form-item>
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
</el-form-item>
<el-form-item>
<el-button type="info"
@click="clearDataForm()">清空</el-button>
</el-form-item>
<el-form-item>
<el-button v-if="$hasPermission('sys:deptmacode:delete')"
type="danger"
@ -221,6 +225,10 @@ export default {
this.gridList = []
//
this.getDeptInfoList('grid', this.dataForm.communityId)
},
clearDataForm () {
this.dataForm.streetId = this.dataForm.communityId = this.dataForm.gridId = null
this.communityList = this.gridList = []
}
}
}

Loading…
Cancel
Save