Compare commits

..

7 Commits

4 changed files with 44 additions and 18 deletions

View File

@ -150,24 +150,25 @@
border-color: #494c56;
}
.toastui-editor-dark.toastui-editor-defaultUI .toastui-editor-close-button {
color: #eee;
border-color: #303238;
background-color: #232428;
.toastui-editor-dark .toastui-editor-defaultUI .toastui-editor-close-button {
background: #212224;
color: rgba(255, 255, 255, 0.85098);
border: 1px solid #424242;
}
.toastui-editor-dark.toastui-editor-defaultUI .toastui-editor-close-button:hover {
border-color: #494c56;
.toastui-editor-dark .toastui-editor-defaultUI .toastui-editor-close-button:hover {
border-color: #424242;
}
.toastui-editor-dark.toastui-editor-defaultUI .toastui-editor-ok-button {
color: #121212;
background-color: #67ccff;
.toastui-editor-dark .toastui-editor-defaultUI .toastui-editor-ok-button {
background: #1668DC;
border-color: #1668DC;
color: #212224;
}
.toastui-editor-dark.toastui-editor-defaultUI .toastui-editor-ok-button:hover {
color: #121212;
background-color: #32baff;
.toastui-editor-dark .toastui-editor-defaultUI .toastui-editor-ok-button:hover {
color: #212224;
background-color: #1668DC;
}
.toastui-editor-dark .toastui-editor-popup-add-table .toastui-editor-table-cell {

View File

@ -177,6 +177,8 @@ import ThemeSwitch from "@/components/common/ThemeSwitch";
import AdminMenu from "@/components/common/AdminMenu";
import FadeLoader from "vue-spinner/src/FadeLoader.vue";
import ChangePswdPop from "~/components/common/modal/ChangePswdPop";
import { notification } from 'ant-design-vue';
export default {
components: {
@ -233,6 +235,7 @@ export default {
drawer: (state) => state.drawer,
userInfo: (state) => state.userInfo,
pageData: "pageData",
openTabList: (state) => state.openTabList
}),
activeTabs() {
if (this.routerTabInstance) {
@ -275,6 +278,11 @@ export default {
var _this = this;
const nv = newVal[0];
const ov = oldVal[0];
// Check open tab at menu
if (this.openTabList.length > 7 && !this.openTabList.some(tab => tab.to === to.fullPath)) {
return;
}
if (nv !== ov) {
if (!nv) {
// 중복클릭 시 발생 상황 기존 값을 다시 넣어줌
@ -395,6 +403,24 @@ export default {
this.$router.beforeEach((to, from, next) => {
_this.isLoading = true;
const tabList = this.openTabList;
const targetPrgmId = to.query.prgmId;
const currentPrgmId = from.query.prgmId;
const isTabAlreadyOpen = tabList.includes(targetPrgmId);
const isSamePage = to.fullPath === from.fullPath || targetPrgmId === currentPrgmId;
if (tabList.length >= 7 && !isTabAlreadyOpen && !isSamePage) {
notification.error({
message: 'Error',
description: '탭을 7개 이상 열 수 없습니다.',
});
next(false);
return;
}
// console.log('$router.beforeEach...');
// console.log('state : ', _this.$store.state)
// console.log('activeActionCnt : ', _this.$store.state.activeActionCnt)

View File

@ -561,12 +561,6 @@ export default {
columnOptions: {
resizable: true,
},
rowHeaders: [
{
type: 'rowNum',
align: 'right',
},
],
header: {
height: 37,
},
@ -623,6 +617,7 @@ export default {
}
}
const myColumns = [
{ header: 'No.', name: 'rowSeq', align: 'right', width: 90 },
{
header: 'FAB',
name: 'fabNm',

View File

@ -136,6 +136,10 @@ export const state = () => Object.assign({}, INIT_STATE);
export const mutations = {
// 활성화 페이지 메뉴정보 set
setActiveMenuInfo(state, payload) {
const isTabAlreadyOpen = state.openTabList.includes(payload.prgmId);
if(state.openTabList.length >= 7 && !isTabAlreadyOpen) {
return;
}
// console.log("=======================================================");
// console.log(
// ">>>>>>>>>> ",