diff --git a/src/views/modules/workRecord/group-user.vue b/src/views/modules/workRecord/group-user.vue
index 53745ac7..f85cace8 100644
--- a/src/views/modules/workRecord/group-user.vue
+++ b/src/views/modules/workRecord/group-user.vue
@@ -161,6 +161,7 @@
{groupId:this.dataForm.groupId,userList:this.responseData}).then(({ data: res }) => {
if (res.code !== 0) {
this.isAble = false
+ this.$refs['dataForm'].resetFields()
return this.$message.error(res.msg)
}
this.$message({
@@ -168,6 +169,7 @@
type: 'success',
duration: 500,
onClose: () => {
+ this.$refs['dataForm'].resetFields()
this.backToGroupList()
}
})
diff --git a/src/views/modules/workRecord/groupfamily-add.vue b/src/views/modules/workRecord/groupfamily-add.vue
index 3b531648..8776b807 100644
--- a/src/views/modules/workRecord/groupfamily-add.vue
+++ b/src/views/modules/workRecord/groupfamily-add.vue
@@ -1,5 +1,5 @@
-
+
@@ -37,11 +37,12 @@
-
+
@@ -109,9 +110,11 @@ export default {
updatedTime: '',
streetId: '',
communityId: '',
- gridId: ''
+ gridId: '',
+ ids:[]
},
ids:[],
+ adminIds:[],
options: [],
pairingReason:[],
sexList: [
@@ -123,6 +126,9 @@ export default {
computed: {
dataRule () {
return {
+ ids: [
+ { required: true, message: this.$t('validate.required'), trigger: 'blur' }
+ ],
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
@@ -207,6 +213,28 @@ export default {
}
},
methods: {
+ changeHandle(value){
+ if (value.length === 0) {
+ this.dataForm.streetId = ''
+ this.dataForm.communityId = ''
+ this.dataForm.gridId = ''
+ }
+ if (value.length === 1) {
+ this.dataForm.streetId = this.dataForm.ids[0]
+ this.dataForm.communityId = ''
+ this.dataForm.gridId = ''
+ }
+ if (value.length === 2) {
+ this.dataForm.streetId = this.dataForm.ids[0]
+ this.dataForm.communityId = this.dataForm.ids[1]
+ this.dataForm.gridId = ''
+ }
+ if (value.length === 3) {
+ this.dataForm.streetId = this.dataForm.ids[0]
+ this.dataForm.communityId = this.dataForm.ids[1]
+ this.dataForm.gridId = this.dataForm.ids[2]
+ }
+ },
//获取部门信息
getOptions() {
this.$http
@@ -255,6 +283,10 @@ export default {
}
this.$http['post']('/workRecord/familyinfoacquisition/addFamilyInfo', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
+ this.dataForm.streetId = ''
+ this.dataForm.communityId = ''
+ this.dataForm.gridId = ''
+ this.dataForm.deptInfo=''
return this.$message.error(res.msg)
}
this.$message({
@@ -262,8 +294,8 @@ export default {
type: 'success',
duration: 500,
onClose: () => {
- this.visible = false
- this.$emit('refreshDataList')
+ this.visible = false
+ this.$emit('refreshDataList')
}
})
}).catch(() => {})
diff --git a/src/views/modules/workRecord/helpgroupDetail.vue b/src/views/modules/workRecord/helpgroupDetail.vue
index c656eae9..0c80a8ea 100644
--- a/src/views/modules/workRecord/helpgroupDetail.vue
+++ b/src/views/modules/workRecord/helpgroupDetail.vue
@@ -19,9 +19,10 @@
-
+
+ {{ $t('修改') }}
{{ $t('delete') }}
@@ -60,13 +61,13 @@
{{ $t('confirm') }}
+