Commit 8bfd11c0 by xinla

新客自动拉群调试

1 parent d9e5c81c
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
}, },
// 选择二维码确认按钮 // 选择二维码确认按钮
submitSelectQrCode(data) { submitSelectQrCode(data) {
debugger // debugger
this.form.groupCodeId = data.id this.form.groupCodeId = data.id
this.form.qrCode = data.codeUrl this.form.qrCode = data.codeUrl
this.$refs.form.validateField('qrCode') this.$refs.form.validateField('qrCode')
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
}, },
// 多选框选中数据 // 多选框选中数据
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id) this.ids = selection.map((item) => item.newGroupId)
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
remove(id) { remove(id) {
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
}, },
download(data) { download(data) {
let name = data.activityScene + '-' + data.newGroupId + '.png' let name = data.activityScene + '-' + data.newGroupId + '.png'
download(id).then((res) => { download(data.newGroupId).then((res) => {
if (res != null) { if (res != null) {
let blob = new Blob([res], { type: 'application/zip' }) let blob = new Blob([res], { type: 'application/zip' })
let url = window.URL.createObjectURL(blob) let url = window.URL.createObjectURL(blob)
...@@ -111,8 +111,8 @@ export default { ...@@ -111,8 +111,8 @@ export default {
}) })
}, },
/** 批量下载 */ /** 批量下载 */
downloadBatch(qrCode) { downloadBatch() {
this.$confirm('是否确认下载所有图片吗?', '警告', { this.$confirm('是否确认下载所有活码图片吗?', '警告', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
...@@ -209,9 +209,15 @@ export default { ...@@ -209,9 +209,15 @@ export default {
</el-tooltip> </el-tooltip>
</div> </div>
<div> <div>
<el-button type="primary" @click="download()">批量下载</el-button> <el-button
type="primary"
:disabled="!ids.length"
@click="downloadBatch()"
>批量下载</el-button
>
<el-button <el-button
v-hasPermi="['customerManage:customer:export']" v-hasPermi="['customerManage:customer:export']"
:disabled="!ids.length"
type="cyan" type="cyan"
@click="remove()" @click="remove()"
>批量删除</el-button >批量删除</el-button
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!