어드민 수정건 수정

This commit is contained in:
USER
2022-07-11 11:43:43 +09:00
parent fb40f49f09
commit 74511fb587
47 changed files with 887 additions and 384 deletions

View File

@@ -92,7 +92,8 @@ import customGrid from '@/components/CustomGrid';
import { utils_mixin, chkPattern2 } from '../service/mixins';
import moment from 'moment';
import xlsx from '@/common/excel';
import commonModal from "@/components/modal/commonModal";
//import commonModal from "@/components/modal/commonModal";
import commonModal from "../components/commonModal";
class CustomATagRenderer {
constructor(props) {
@@ -203,13 +204,17 @@ export default {
// this.setCodeData();
// this.getExcelHeader();
this.setPeriodDay(0);
this.grid.params.searchType1 = 'ALL';
this.grid.params.searchType1 = '';
},
destroyed() {
this.grid.params.searchType1 = '';
this.grid.params.searchText1 = '';
this.grid.params.searchText2 = '';
this.grid.params.searchText3 = '';
},
mounted() {
this.grid.params.searchType1 = 'ALL';
this.grid.params.searchType1 = '';
let page = 1;
// 페이지 정보 및 검색 조건
@@ -240,15 +245,16 @@ export default {
},
methods: {
search: function(isKeep) {
this.doValidate();
this.grid.params.sentDate = moment(this.startDate).format('YYYYMMDD');
this.grid.params.reqChennel = this.grid.params.searchType1;
this.grid.params.phone = this.grid.params.searchText1;
this.grid.params.callbackNumber = this.grid.params.searchText2;
this.grid.params.custNm = this.grid.params.searchText3;
console.log(this.grid.params);
this.$refs.table.search(this.grid.params, isKeep);
this.sendStoreData();
if(this.doValidate()){
this.grid.params.sentDate = moment(this.startDate).format('YYYYMMDD');
this.grid.params.reqChennel = this.grid.params.searchType1;
this.grid.params.phone = this.grid.params.searchText1;
this.grid.params.callbackNumber = this.grid.params.searchText2;
this.grid.params.custNm = this.grid.params.searchText3;
console.log(this.grid.params);
this.$refs.table.search(this.grid.params, isKeep);
this.sendStoreData();
}
},
setPeriodDay(day) {
this.periodDay = day;
@@ -324,21 +330,30 @@ export default {
if(this.isNull(this.grid.params.searchText1)) {
this.row.title = '발송내역';
this.row.msg1 = '수신번호를 입력해 주세요.';
this.row.focusTaget = '1';
this.$refs.commmonModal.alertModalOpen(this.row);
this.$refs._searchText1.focus();
return false;
}
// 발신번호 필수입력체크
if(this.isNull(this.grid.params.searchText2)) {
this.row.title = '발송내역';
this.row.msg1 = '신번호를 입력해 주세요.';
this.row.msg1 = '신번호를 입력해 주세요.';
this.row.focusTaget = '2';
this.$refs.commmonModal.alertModalOpen(this.row);
this.$refs._searchText2.focus();
return false;
}
return true;
},
checkFocus(){
if(this.row.focusTaget === '1'){
this.$refs._searchText1.focus();
} else if(this.row.focusTaget === '2'){
this.$refs._searchText2.focus();
}
},
}
};
</script>