This commit is contained in:
2024-01-15 11:10:42 +08:00
parent c439aee354
commit 592ba530a0
3 changed files with 20 additions and 14 deletions

View File

@@ -48,7 +48,8 @@ export default {
queryParams: {
groupCode: this.$route.params.groupCode,
phoneNumber: null
}
},
groupCode: this.$route.params.groupCode
};
},
@@ -69,7 +70,11 @@ export default {
this.queryParams.phoneNumber = ''
return false;
}
addMemberGroup(this.phoneNumber).then(response => {
const param = {
"phoneNumber": this.phoneNumber,
"groupCode": this.groupCode
};
addMemberGroup(param).then(response => {
console.log(response);
this.$modal.msgSuccess("添加成功");
this.queryParams.openAddMember = true;
@@ -83,4 +88,4 @@ export default {
};
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped></style>

View File

@@ -111,8 +111,6 @@
v-hasPermi="['member:memberGroup:edit']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['member:memberGroup:remove']">删除</el-button>
<!-- <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAddMember(scope.row)"
v-hasPermi="['member:memberGroup:edit']">添加会员</el-button> -->
</template>
</el-table-column>
</el-table>
@@ -336,15 +334,6 @@ export default {
...this.queryParams
}, `memberGroup_${new Date().getTime()}.xlsx`)
},
/** 添加会员按钮 */
handleAddMember(row) {
this.reset();
const id = row.id || this.ids
getMemberGroup(id).then(response => {
this.form = response.data;
this.openAddMember = true;
});
},
}
};
</script>