diff --git a/src/views/modules/workRecord/group-user.vue b/src/views/modules/workRecord/group-user.vue new file mode 100644 index 00000000..53745ac7 --- /dev/null +++ b/src/views/modules/workRecord/group-user.vue @@ -0,0 +1,200 @@ + + + + \ No newline at end of file diff --git a/src/views/modules/workRecord/groupfamily-add.vue b/src/views/modules/workRecord/groupfamily-add.vue index a63e910f..3b531648 100644 --- a/src/views/modules/workRecord/groupfamily-add.vue +++ b/src/views/modules/workRecord/groupfamily-add.vue @@ -37,6 +37,15 @@ + + + + @@ -97,8 +106,13 @@ export default { createdBy: '', createdTime: '', updatedBy: '', - updatedTime: '' + updatedTime: '', + streetId: '', + communityId: '', + gridId: '' }, + ids:[], + options: [], pairingReason:[], sexList: [ {dictValue: '1', dictName: '男'}, @@ -165,8 +179,47 @@ export default { }, created: function () { this.getPairingReasonInfo() + this.getOptions() + }, + watch: { + ids: function (val) { + console.log("部门树:"+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] + } + } }, 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(() => { + }) + }, getPairingReasonInfo () { this.$http.get(`sys/dict/listSimple/pairing_reason`).then(({ data: res }) => { this.pairingReason = res.data diff --git a/src/views/modules/workRecord/helpgroup-add-or-update.vue b/src/views/modules/workRecord/helpgroup-add-or-update.vue index 85b43afb..280ce76a 100644 --- a/src/views/modules/workRecord/helpgroup-add-or-update.vue +++ b/src/views/modules/workRecord/helpgroup-add-or-update.vue @@ -1,27 +1,28 @@