mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 04:27:21 +09:00
소스검증을 위한 수정 변경
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
</td>
|
||||
<td v-else class="two_btn_group">
|
||||
<button type="button" class="button grey" @click="updateAuth(option.authCd)">수정</button>
|
||||
<button type="button" class="button white delete" @click="deleteAuth(option.authCd)">삭제</button>
|
||||
<button type="button" class="button white delete" @click="authDelete(option.authCd)">삭제</button>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
@@ -65,12 +65,14 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import sysMgtApi from "../service/sysMgtApi.js";
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
|
||||
export default {
|
||||
name: 'authList',
|
||||
@@ -81,7 +83,8 @@ export default {
|
||||
totalCnt: '',
|
||||
};
|
||||
},
|
||||
components: {
|
||||
components: {
|
||||
commonModal,
|
||||
},
|
||||
created(){
|
||||
this.getAuthList();
|
||||
@@ -104,10 +107,14 @@ export default {
|
||||
this.list = result.data.list;
|
||||
this.totalCnt = result.data.list.length;
|
||||
} else {
|
||||
alert("조회정보가 없습니다.");
|
||||
this.row.title ='권한 관리';
|
||||
this.row.msg1 ='조회정보가 없습니다.'
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch(err) {
|
||||
alert("실패 하였습니다.");
|
||||
this.row.title ='권한 관리';
|
||||
this.row.msg1 ='실패 하였습니다.'
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
},
|
||||
insertAuth(){
|
||||
@@ -118,25 +125,40 @@ export default {
|
||||
//console.log("수정페이지로 이동:"+target);
|
||||
this.$router.push({ name: 'authModify', params: { targetAuthCd: target }});
|
||||
},
|
||||
async deleteAuth(target){
|
||||
//console.log("삭제처리:"+target);
|
||||
authDelete(target){
|
||||
this.row.authCd = target;
|
||||
if(window.confirm('삭제 하시겠습니까?')){
|
||||
try {
|
||||
this.row.title ='권한 관리';
|
||||
this.row.msg1 ='삭제 하시겠습니까?'
|
||||
this.$refs.commmonModal.confirmModalOpen2(this.row);
|
||||
},
|
||||
async deleteAuth(){
|
||||
//console.log("삭제처리:"+target);
|
||||
//this.row.authCd = target;
|
||||
try {
|
||||
let response = await sysMgtApi.deleteAuth(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
alert('삭제 하였습니다.');
|
||||
this.getAuthList();
|
||||
return;
|
||||
} else {
|
||||
alert("실패 하였습니다.");
|
||||
this.row={}
|
||||
this.row.title = '권한 관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
} catch(err) {
|
||||
alert("실패 하였습니다.");
|
||||
this.row={}
|
||||
this.row.title = '권한 관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
confirmCalbackFnc(props){
|
||||
console.log(props)
|
||||
if(props.result){
|
||||
this.deleteAuth();
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user