+
@@ -41,8 +50,8 @@
-
-
+
+
{{ $t('export') }}
-->
-
+
{
@@ -237,10 +248,46 @@ export default {
created: function () {
},
- watch: {
-
- },
+ watch: {
+ ids: function (val) {
+ if (val.length === 0) {
+ this.dataForm.streetId = ''
+ this.dataForm.communityId = ''
+ this.dataForm.gridId = ''
+ }
+ if (val.length === 1) {
+ this.dataForm.streetId = this.ids[0]
+ this.dataForm.communityId = ''
+ this.dataForm.gridId = ''
+ }
+ if (val.length === 2) {
+ this.dataForm.streetId = this.ids[0]
+ this.dataForm.communityId = this.ids[1]
+ this.dataForm.gridId = ''
+ }
+ if (val.length === 3) {
+ this.dataForm.streetId = this.ids[0]
+ this.dataForm.communityId = this.ids[1]
+ this.dataForm.gridId = this.ids[2]
+ }
+ }
+ },
+ created: function () {
+ this.getOptions()
+ },
methods: {
+ getOptions () {
+ this.$http
+ .get(`/sys/user/deptOptions/getByLoginUser`)
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.options = res.data.options
+ })
+ .catch(() => {
+ })
+ },
dealAction (id) {
this.$parent.selectComponent = 'AppealDetailView'
this.$router.push({ path: '/events-appeal-peo', query: { id: id } })