mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:59:22 +09:00
리스크관리 / 유치채널현황 관리 / 채널관리 추가
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
<button class="btn-default" @click="excelPopClose">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -44,6 +45,7 @@ import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import xlsx from '@/common/excel';
|
||||
import moment from 'moment';
|
||||
import XLSX from 'xlsx';
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
|
||||
export default {
|
||||
name: "memberBulkRegPop",
|
||||
@@ -61,7 +63,9 @@ export default {
|
||||
totalItems: 0,
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
commonModal,
|
||||
},
|
||||
created(){
|
||||
this.getExcelHeader();
|
||||
},
|
||||
@@ -96,11 +100,15 @@ export default {
|
||||
const response = await custMgtApi.insertTestId(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
alert('저장 하였습니다.');
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
}
|
||||
} catch(err) {
|
||||
alert("실패 하였습니다.");
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -145,10 +153,12 @@ export default {
|
||||
let tmpResult = {};
|
||||
const vm = this;
|
||||
reader.onerror = (e) => {
|
||||
alert('파일을 읽는 동안 에러가 발생 했습니다.');
|
||||
}
|
||||
reader.onloadend = (e) => {
|
||||
}
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '파일을 읽는 동안 에러가 발생 했습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
reader.onloadend = (e) => {
|
||||
}
|
||||
|
||||
|
||||
reader.onload = (e) => {
|
||||
@@ -163,7 +173,9 @@ export default {
|
||||
const totalCnt = Number(this.totalItems) + rowObj.length;
|
||||
|
||||
if(totalCnt > limitCnt){
|
||||
alert('100건이상은 등록되지 않습니다.');
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '100건이상은 등록되지 않습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -270,7 +282,9 @@ export default {
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
alert("실패 하였습니다.");
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
|
||||
// 오류건수.
|
||||
|
||||
Reference in New Issue
Block a user