admin_chrg 유저ID 조회 수정

This commit is contained in:
2023-03-29 10:49:34 +09:00
parent 393f802915
commit c3421a81ab
12 changed files with 197 additions and 20 deletions

View File

@@ -12,9 +12,9 @@
<th>유저 ID</th>
<td>
<div class="input_search">
<input class="search-box" type="text" placeholder="아이디 입력" v-model="userId" />
<!-- <input class="search-box" type="text" placeholder="아이디 입력" disabled v-model="searchText1" /> -->
<!-- <button type="button" class="button grey" @click="searchIdPop">조회</button> -->
<!-- <input class="search-box" type="text" placeholder="아이디 입력" v-model="userId" /> -->
<input class="search-box" type="text" placeholder="아이디 입력" disabled v-model="userId" />
<button type="button" class="button grey" @click="searchIdPop">조회</button>
</div>
</td>

View File

@@ -16,13 +16,13 @@
<thead>
<tr>
<th>ID</th>
<th>사업자등록번호</th>
<th>고객사명</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, idx) in list">
<td>{{ item.userId }}</td>
<td><a href="javascript:void(0)" @click="setUserInfo(item)">{{ item.bregNo }}</a></td>
<td><a href="javascript:void(0)" @click="setUserInfo(item)">{{ item.custNm }}</a></td>
</tr>
</tbody>
</table>
@@ -53,8 +53,7 @@ export default {
},
methods : {
search (isKeep) {
},
setUserInfo (props){
this.$emit('event-data', props)
this.UserListPopClose();
@@ -81,7 +80,7 @@ export default {
if(this.row.searchText1 == ''){
return false;
}
const response = await custMgtApi.memberDetail(this.row);
const response = await custMgtApi.userList(this.row);
const result = response.data;
if (result != null && result.retCode == "0000") {
this.list = result.data.list

View File

@@ -108,6 +108,12 @@ const deleteChrg = (params) => {
return httpClient.post('/api/v1/bo/custMgt/deleteChrg', params);
}
// 유저 ID 조회
const userList = (params) => {
return httpClient.post('/api/v1/bo/custMgt/userList', params);
}
const getExcelHeader = category => {
// 엑셀에 출력할 Header 정보를 Mockup 데이터로 관리한다.
return new Promise(function(resolve, reject) {
@@ -153,4 +159,5 @@ export default {
updateChrg,
chrgDetail,
deleteChrg,
userList,
}

View File

@@ -302,8 +302,8 @@ export default {
if (type != undefined && type != null) {
let initStartDate = new Date();
let initEndDate = new Date();
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 4)
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) - 2)
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -100)
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) + 100)
if (type == 'start') {
@@ -327,7 +327,7 @@ export default {
} else if (this.sDateDiv == 'year') {
return moment(date).format('YYYY');
} else {
return moment(date).format('YYYY-MM-DD');
return moment(date).format('YYYY-MM');
}
},
gridParamSet() {
@@ -338,12 +338,12 @@ export default {
},
initSetStartDate() {
let initStartDate = new Date();
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 4);
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) );
this.startDate = initStartDate;
},
initSetEndDate() {
let initEndDate = new Date();
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) - 2);
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +1);
this.endDate = initEndDate;
},