Commit 2fbcb645 by Kyle_Li

批量积分导入新增入口

parent b232a2b2
......@@ -808,7 +808,7 @@ export default {
// }
// }
// },
handleFocusBatch() {
handleFocusBatch(val) {
if (this.batchValue == "bulkIntegral") {
this.batchValue = '';
this.$router.push({ path: '/bulkIntegral' });
......@@ -817,36 +817,32 @@ export default {
checkFalse('请勾选会员');
return false;
}
if (!val) {
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
} else if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
this.storeName = '';
} else if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
this.storeName = '';
} else if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
}
this.batchValue = '';
},
selectAllmultipleList() {
this.selectAll = !this.selectAll;
......
......@@ -411,19 +411,26 @@ export default {
this.$message.warning('超出最大上传数');
},
handleError() {
checkFalse('上传失败');
this.load = false;
},
onDialogSuccessClosed() {
// 更新表单
this.getIntegral();
},
handleSuccess() {
checkSuccess('上传成功');
this.dialogImport = false;
this.load = false;
this.dialogSuccess = true;
this.$refs.memberUpload.clearFiles();
this.getIntegral();
handleSuccess(response, file, fileList) {
// console.log(response)
if(response.errorCode == 0) {
checkSuccess('上传成功');
this.dialogImport = false;
this.load = false;
this.dialogSuccess = true;
this.$refs.memberUpload.clearFiles();
this.getIntegral();
} else {
this.load = false;
checkFalse(response.message)
}
}
},
created() {
......@@ -455,7 +462,7 @@ export default {
#bulkIntegral {
height: 100%;
.el-table{
width:99.9%;
width: 99.9%;
}
.contentBulkIntegral {
padding: 22px 24px;
......
......@@ -828,7 +828,7 @@ export default {
// }
// }
// },
handleFocusBatch() {
handleFocusBatch(val) {
if (this.batchValue == "bulkIntegral") {
this.batchValue = '';
this.$router.push({ path: '/bulkIntegral' });
......@@ -837,36 +837,32 @@ export default {
checkFalse('请勾选会员');
return false;
}
if (!val) {
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
} else if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
this.storeName = '';
} else if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
this.storeName = '';
} else if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
}
this.batchValue = '';
},
selectAllmultipleList() {
this.selectAll = !this.selectAll;
......
......@@ -736,7 +736,7 @@ export default {
// }
// }
// },
handleFocusBatch() {
handleFocusBatch(val) {
if (this.batchValue == "bulkIntegral") {
this.batchValue = '';
this.$router.push({ path: '/bulkIntegral' });
......@@ -745,36 +745,32 @@ export default {
checkFalse('请勾选会员');
return false;
}
if (!val) {
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "integral") {
this.dilogIntegralVisible = true;
this.getEnterpriseInfo();
if (this.$refs.IntegralForm) {
this.$refs.IntegralForm.resetFields();
}
if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
} else if (this.batchValue == "grade") {
this.dilogGradeVisible = true;
if (this.$refs.gradeForm) {
this.$refs.gradeForm.resetFields();
}
if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
this.storeName = '';
} else if (this.batchValue == "mainstore") {
this.dilogMainstoreVisible = true;
this.selectStore(val);
if (this.$refs.mainstoreForm) {
this.$refs.mainstoreForm.resetFields();
}
if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
this.storeName = '';
} else if (this.batchValue == "store") {
this.dilogSubStoreVisible = true;
if (this.$refs.storeForm) {
this.$refs.storeForm.resetFields();
}
this.getSubStoreList();
}
this.batchValue = '';
},
selectAllmultipleList() {
this.selectAll = !this.selectAll;
......
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