async fnSelectOne() {
try {
const params = {
- authrtCdId: this.pageId,
+ authrtCd: this.pageId,
};
const res = await findByAuthrt(params);
if (res.status == 200) {
this.authrt = res.data.data.authrt;
- if (this.authrt.authrtCdId != null) {
+ if (this.authrt.authrtCd != null) {
this.submitStts = false;
}
this.originAuthCd = this.authrt.authrtCd;
const res = await save(this.authrt);
alert(res.data.message);
- console.log("res: ", res);
this.$router.push({
name: "admAuthoritySelectListOne",
query: {
- pageId: res.data.data.authrtCdId,
+ pageId: this.authrt.authrtCd,
},
});
} else {
- this.authrt.authrtCdId = this.pageId;
+ this.authrt.originAuthrtCd = this.pageId;
const res = await update(this.authrt);
- pageId: this.authrt.authrtCdId,
>
<template v-slot:button="{ row, idx }">
<button
- class="btn-ico sm ico-del"
+ class="btn-ico md ico-del"
@click.stop="fnDel(row, idx)"
v-if="pageAuth.delAuthrt == 'Y'"
- pageId: this.list[idx]["authrtCdId"],
+ pageId: this.list[idx]["authrtCd"],
name: "admAuthorityInsert",
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?