Commit 1cfd07f5 by liuchenxi

update: 客户列表批量导入去任务中心

parent 293ffc29
......@@ -253,6 +253,7 @@
:integralFlag="integralFlag"
:ajaxObj="{...ajaxObj}"
:selectObj="{...selectObj}"
@successImport="successImport"
/>
<!-- 批量修改等级弹窗 -->
<grade-dailog
......@@ -261,6 +262,7 @@
:gradeList="showEditClique?cliqueMemberGrade:memberGrade"
:ajaxObj="{...ajaxObj}"
:selectObj="{...selectObj}"
@successImport="successImport"
/>
<!-- 批量修改服务门店弹窗 -->
<mainstore-dailog
......@@ -268,6 +270,7 @@
@refresh="batchRefresh"
:selectObj="{...selectObj}"
:ajaxObj="{...ajaxObj}"
@successImport="successImport"
/>
<!-- 批量修改协管门店弹窗 -->
<substore-dailog
......@@ -275,6 +278,7 @@
@refresh="batchRefresh"
:selectObj="{...selectObj}"
:ajaxObj="{...ajaxObj}"
@successImport="successImport"
/>
<!-- 批量导入 -->
<import-dialog :dialogVisible.sync="dialogImportVisible" @successImport="successImport"/>
......
......@@ -148,6 +148,7 @@ export default {
checkSuccess();
this.$refs.form.resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('successImport', res.data.result);
this.$emit('refresh');
} else {
checkFalse();
......
......@@ -177,7 +177,8 @@ export default {
checkSuccess('上传成功');
this.load = false;
this.$refs.memberUpload.clearFiles();
this.$emit('successImport')
this.$emit('update:dialogVisible', false);
this.$emit('successImport', response.result)
} else {
this.$refs.memberUpload.clearFiles();
this.load = false;
......
......@@ -189,10 +189,12 @@ export default {
pageName: pageName,
}))
.then(res => {
console.log(res);
if (res.data.errorCode === 0) {
checkSuccess('');
this.$refs.form.resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('successImport', res.data.result);
this.$emit('refresh');
} else {
checkFalse();
......
......@@ -139,6 +139,7 @@ export default {
checkSuccess();
this.$refs.form.resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('successImport', res.data.result);
this.$emit('refresh');
} else {
checkFalse();
......@@ -198,4 +199,4 @@ export default {
line-height: 17px;
}
}
</style>
\ No newline at end of file
</style>
......@@ -171,6 +171,7 @@ export default {
checkSuccess();
this.$refs.form.resetFields();
this.$emit('update:dialogVisible', false);
this.$emit('successImport', res.data.result);
this.$emit('refresh');
} else {
checkFalse();
......
......@@ -438,8 +438,8 @@ export default {
openDialogImport() {
this.dialogImportVisible = true;
},
successImport() {
this.dialogImportVisible = false;
successImport(taskId) {
// this.dialogImportVisible = false;
this.$confirm(
"任务发起成功,请去【企业管理】-【任务中心】查看处理结果和执行进度",
"任务发起成功",
......@@ -452,7 +452,7 @@ export default {
}
)
.then(() => {
window.open(`//${window.location.host}/gic-web/#/taskCenter`)
window.open(`/gic-web/#/taskDetail/${taskId}`)
this.batchRefresh()
})
.catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment