수정건 수정

This commit is contained in:
USER
2022-09-01 16:54:21 +09:00
parent 648a16ad4f
commit 8dcd9365b6
15 changed files with 216 additions and 33 deletions

View File

@@ -27,12 +27,12 @@
<div class="input_box id">
<label for="id1" class="label">ID</label>
<input type="text" id="id1" placeholder="검색어 입력" v-model.trim="grid.params.searchText1"
@keyup.enter="search"/>
@keyup.enter="search" :readonly="!isFocused" @focus="isFocused = true" @blur="isFocused = false"/>
</div>
<div class="input_box">
<label for="name" class="label">이름(대리점명)</label>
<input type="text" id="name" placeholder="검색어 입력" v-model.trim="grid.params.searchText2"
@keyup.enter="search"/>
@keyup.enter="search" :readonly="!isFocused" @focus="isFocused = true" @blur="isFocused = false"/>
</div>
<button type="button" class="button grey" @click="search">조회</button>
</div>
@@ -101,6 +101,7 @@ export default {
name: 'adminList',
data() {
return {
isFocused: false,
row: {},
authType: [],
statType: [],
@@ -172,6 +173,7 @@ export default {
isKeep = true;
}
this.search(isKeep);
},
methods: {
search: function (isKeep) {
@@ -224,18 +226,20 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
},
async setCodeData() {
// 상태 옵션 셋팅.
api.commCode({'grpCd': 'ADM_STTUS_CD'}).then(response => {
this.statType = response.data.dat.a.list;
});
// api.commAuth().then(response => {
// this.authType = response.data.data.list;
// });
// 상태
try {
const res = await api.commCode({'grpCd': 'ADM_STTUS_CD'});
if(res.data.retCode == '0000'){
this.statType = res.data.data.list;
}
}catch(err){
}
// 권한
try {
const response = await api.commAuth();
if(response.data.retCode == '0000'){
this.authType = response.data.datalist;
this.authType = response.data.data.list;
}
}catch(err){