메모 호출 수정

This commit is contained in:
USER
2022-09-14 18:34:34 +09:00
parent d5c4b2e113
commit 94c4eeda48

View File

@@ -124,19 +124,19 @@ export default {
mounted() { mounted() {
// 달력 세팅 // 달력 세팅
let page = 1; // let page = 1;
// 페이지 정보 및 검색 조건 // // 페이지 정보 및 검색 조건
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; // const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; // let isKeep = false;
if (getCondition) { // if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; // this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; // this.grid.params = getCondition.params;
page = getCondition.page; // page = getCondition.page;
isKeep = true; // isKeep = true;
} // }
this.search(isKeep); // this.search(isKeep);
}, },
methods :{ methods :{
search: function(isKeep) { search: function(isKeep) {
@@ -155,11 +155,6 @@ export default {
}, },
//메모전체 모달 Open //메모전체 모달 Open
async memoTotalModalOpen(props){ async memoTotalModalOpen(props){
this.grid.params.userId = props.adminId;
this.userId = props.adminId;
// this.grid.params.userId = props.serviceId;
// this.userId = props.serviceId;
// 메모 모달팝업 오픈 // 메모 모달팝업 오픈
var dimmed = document.getElementsByClassName('memoTotal'); var dimmed = document.getElementsByClassName('memoTotal');
for(var i = 0; i < dimmed.length; i++){ for(var i = 0; i < dimmed.length; i++){
@@ -178,6 +173,10 @@ export default {
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
this.grid.params.userId = props.userId;
this.userId = props.userId;
this.search(isKeep); this.search(isKeep);
}, },