impoaver sceen 2-notice management page #2
@ -2,7 +2,8 @@ import $cookie from 'vue-cookie';
|
|||||||
|
|
||||||
export default async function({ store, route, redirect }) {
|
export default async function({ store, route, redirect }) {
|
||||||
// const menuId = route.query.menuId;
|
// const menuId = route.query.menuId;
|
||||||
const FEMS_SESSION = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTYiLCJyb2xlIjoiYWRtaW4ifQ.sflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';
|
// const FEMS_SESSION = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTYiLCJyb2xlIjoiYWRtaW4ifQ.sflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';
|
||||||
|
const FEMS_SESSION = $cookie.get('FEMS_SESSION');
|
||||||
if (!FEMS_SESSION) {
|
if (!FEMS_SESSION) {
|
||||||
if (route.name !== 'login') redirect('/login');
|
if (route.name !== 'login') redirect('/login');
|
||||||
} else {
|
} else {
|
||||||
|
@ -61,15 +61,15 @@ module.exports = {
|
|||||||
styleResources: {
|
styleResources: {
|
||||||
scss: ['./assets/scss/*.scss'],
|
scss: ['./assets/scss/*.scss'],
|
||||||
},
|
},
|
||||||
// proxy: {
|
proxy: {
|
||||||
// "/api/": {
|
"/api/": {
|
||||||
// target: "http://0.0.0.0:9999/",
|
target: "http://0.0.0.0:9999/",
|
||||||
// //target: "http://192.168.0.152:8082/",
|
//target: "http://192.168.0.152:8082/",
|
||||||
// pathRewrite: {
|
pathRewrite: {
|
||||||
// "^/api/": ""
|
"^/api/": ""
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
axios: {
|
axios: {
|
||||||
//baseURL: "http://dotest.kfems.kr:9997",
|
//baseURL: "http://dotest.kfems.kr:9997",
|
||||||
proxy: true,
|
proxy: true,
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
<v-row algin="center" no-gutters>
|
<v-row algin="end" no-gutters>
|
||||||
<v-col :cols="3">
|
<v-col :cols="3">
|
||||||
<InputText
|
<InputText
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
label="역할ID"
|
label="역할ID"
|
||||||
valueNm="roleId"
|
valueNm="roleId"
|
||||||
:searchOption="true"
|
:searchOption="true"
|
||||||
|
customClass="input-large"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="3">
|
<v-col :cols="3">
|
||||||
@ -18,17 +19,19 @@
|
|||||||
label="역할명"
|
label="역할명"
|
||||||
valueNm="roleNm"
|
valueNm="roleNm"
|
||||||
:searchOption="true"
|
:searchOption="true"
|
||||||
|
customClass="input-large"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="6" class="text-right">
|
<v-col :cols="6" class="text-right">
|
||||||
<!-- <v-btn @click="test = !test">WWW</v-btn> -->
|
<!-- <v-btn @click="test = !test">WWW</v-btn> -->
|
||||||
<BtnSearch />
|
<BtnSearch size="large" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row ref="contents">
|
|
||||||
|
<v-row ref="contents" style="height: 100vh;">
|
||||||
<v-col cols="12" lg="2" class="h100">
|
<v-col cols="12" lg="2" class="h100">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
|
@ -1,107 +1,86 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<!-- 리스트 페이지 시작 -->
|
<!-- 리스트 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'list'" class="h100">
|
<div v-if="pageActionFlag == 'list'" class="h1001">
|
||||||
|
<v-card class="" >
|
||||||
|
<div class="pa-5">
|
||||||
<v-row align="center" no-gutters >
|
<v-row align="center" no-gutters >
|
||||||
<v-col :cols="12">
|
<v-col :cols="12" class="d-flex align-center justify-space-between">
|
||||||
<v-card>
|
<v-card-title class="pa-0 custom-title-4">공지사항</v-card-title>
|
||||||
<div class="d-flex align-center justify-space-between pa-5">
|
|
||||||
<v-card-title class="pa-0">공지사항</v-card-title>
|
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<!-- <v-btn @click="listPageButtonGroupClickEvent('view')" :ripple="false" class="mr-1">상세보기</v-btn> -->
|
<!-- <v-btn @click="listPageButtonGroupClickEvent('view')" :ripple="false" class="mr-1">상세보기</v-btn> -->
|
||||||
<a-button type="primary" size="large" @click="listPageButtonGroupClickEvent('write')" :ripple="false"
|
<a-button type="primary" size="large" @click="listPageButtonGroupClickEvent('write')" :ripple="false"
|
||||||
icon="edit" class="mr-1">작성</a-button>
|
icon="edit" class="mr-1">작성</a-button>
|
||||||
<!-- <v-btn @click="listPageButtonGroupClickEvent('delete')" :ripple="false">삭제</v-btn> -->
|
<!-- <v-btn @click="listPageButtonGroupClickEvent('delete')" :ripple="false">삭제</v-btn> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
<v-col :cols="12" ref="contents" class="mt-5">
|
||||||
<v-row ref="contents">
|
|
||||||
<v-col :cols="12">
|
|
||||||
<v-card class="pa-5">
|
|
||||||
<div ref="gridParent" class="h100 px-50">
|
<div ref="gridParent" class="h100 px-50">
|
||||||
<component :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
<component :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
||||||
ref="noticeMngGrid" @getRowsData="getRowData" :dataPath="dataPathMock" />
|
ref="noticeMngGrid" @getRowsData="getRowData" :dataPath="dataPathMock" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="h100 W100 px-50" style="min-height:calc(100% - 70px)">
|
|
||||||
</div> -->
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</div>
|
</div>
|
||||||
|
</v-card>
|
||||||
|
</div>
|
||||||
<!-- 리스트 페이지 끝 -->
|
<!-- 리스트 페이지 끝 -->
|
||||||
<!-- 상세보기 페이지 시작 -->
|
<!-- 상세보기 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'view'" class="h100">
|
<div v-if="pageActionFlag == 'view'" class="h1001">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-row class="pa-5">
|
<v-row class="pa-5">
|
||||||
<v-col :cols="12" class="d-flex align-center justify-space-between ">
|
<v-col :cols="12" class="d-flex align-center justify-space-between ">
|
||||||
<v-card-title class="pa-0 custom-title-4">공지사항</v-card-title>
|
<v-card-title class="pa-0 custom-title-4">공지사항</v-card-title>
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<a-button @click="viewPageButtonGroupClickEvent('list')" type="primary" :ripple="false" class="mr-1" icon="unordered-list" >목록</a-button>
|
<a-button @click="viewPageButtonGroupClickEvent('list')" type="primary" :ripple="false" class="mr-1"
|
||||||
<a-button @click="viewPageButtonGroupClickEvent('reply')" type="primary" :ripple="false" class="mr-1" icon="send-outlined" >
|
icon="unordered-list">목록</a-button>
|
||||||
<v-icon
|
<a-button @click="viewPageButtonGroupClickEvent('reply')" type="primary" :ripple="false" class="mr-1"
|
||||||
small
|
icon="send-outlined">
|
||||||
:class="['mr-2']"
|
<v-icon small :class="['mr-2']">$icoSend</v-icon>
|
||||||
>$icoSend</v-icon>
|
|
||||||
답글
|
답글
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="viewPageButtonGroupClickEvent('update')" type="primary" :ripple="false" class="mr-1" icon="edit">수정</a-button>
|
<a-button @click="viewPageButtonGroupClickEvent('update')" type="primary" :ripple="false" class="mr-1"
|
||||||
|
icon="edit">수정</a-button>
|
||||||
<a-button @click="viewPageButtonGroupClickEvent('delete')" type="danger" ghost icon="delete">삭제</a-button>
|
<a-button @click="viewPageButtonGroupClickEvent('delete')" type="danger" ghost icon="delete">삭제</a-button>
|
||||||
</div>
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" class="custom-title-4-new">
|
|
||||||
제목
|
|
||||||
</v-col>
|
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-text-field v-model="viewActionData.title" class="v-input__custom" hide-details
|
<p class="custom-title-3 mb-2"> 제목 </p>
|
||||||
:readonly="true">
|
<v-text-field v-model="viewActionData.title" class="v-input__custom" hide-details :readonly="true">
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
<v-col :cols="12" style="min-height:calc(90vh - 218px);" class="pa-5">
|
||||||
<v-row style="height:calc(100% - 218px);">
|
|
||||||
<v-col :cols="12" style="height: 100%;">
|
|
||||||
<v-card class="pa-5" style="overflow-y:auto;">
|
|
||||||
<viewer v-if="viewActionData.viewerFlag" ref="tuiViewer" height="inherit"
|
<viewer v-if="viewActionData.viewerFlag" ref="tuiViewer" height="inherit"
|
||||||
:initialValue="viewActionData.content" theme="white"
|
:initialValue="viewActionData.content" theme="white"
|
||||||
:class="isDarkMode ? 'theme--white' : 'theme--black'" />
|
:class="isDarkMode ? 'theme--white' : 'theme--black'" />
|
||||||
</v-card>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
<v-col :cols="6">
|
||||||
<v-row>
|
<p class="custom-title-3 mb-2">파일목록</p>
|
||||||
<v-col :cols="12">
|
<div v-for="fileData in viewActionData.fileData"
|
||||||
<v-card class="pa-5">
|
:key="fileData.apndFileId"
|
||||||
<v-row align="center" no-gutters>
|
class="file-item">
|
||||||
<v-col cols="1">
|
|
||||||
<v-card-subtitle class="pa-0">파일목록</v-card-subtitle>
|
|
||||||
</v-col>
|
|
||||||
<v-col :cols="11">
|
|
||||||
<v-row v-for="fileData in viewActionData.fileData" :key="fileData.apndFileId">
|
|
||||||
<a @click.prevent="downloadFile(fileData)">
|
<a @click.prevent="downloadFile(fileData)">
|
||||||
<div class="search-box-label">
|
<div class="d-flex justify-space-between search-box-label">
|
||||||
{{ fileData.apndFileNm + '.' + fileData.apndFileExt }}
|
<v-icon>mdi-paperclip</v-icon>
|
||||||
|
<span class="file-item-name">{{ fileData.apndFileNm + '.' + fileData.apndFileExt }}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</v-row>
|
</div>
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
</div>
|
</div>
|
||||||
<!-- 상세보기 페이지 끝 -->
|
<!-- 상세보기 페이지 끝 -->
|
||||||
<!-- 작성 페이지 시작 -->
|
<!-- 작성 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'write'" class="h100">
|
<div v-if="pageActionFlag == 'write'" class="h1001">
|
||||||
<v-row align="center" no-gutters>
|
|
||||||
<v-col :cols="12">
|
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>공지사항</v-card-title>
|
<div class="pa-5">
|
||||||
<v-row class="pa-5">
|
<v-row class="pa-50">
|
||||||
<v-col :cols="12" class="custom-title-4-new">
|
<v-col :cols="12" class="">
|
||||||
제목
|
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12">
|
<v-col :cols="12" class="custom-title-4-new mt-4">
|
||||||
|
<p class="custom-title-3 mb-2">제목</p>
|
||||||
<v-text-field v-model="writeActionData.title" class="v-input__custom" hide-details outlined>
|
<v-text-field v-model="writeActionData.title" class="v-input__custom" hide-details outlined>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -109,53 +88,82 @@
|
|||||||
<editor ref="tuiEditor" height="100%" initialEditType="wysiwyg" />
|
<editor ref="tuiEditor" height="100%" initialEditType="wysiwyg" />
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col :cols="12" class="custom-title-4-new mt-2">
|
<v-col :cols="12" class="mt-2">
|
||||||
|
<p class="custom-title-3 mb-2">
|
||||||
파일첨부
|
파일첨부
|
||||||
|
</p>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="6">
|
<v-col :cols="6">
|
||||||
<!-- background-color="#47535c" -->
|
<div class="" v-if="writeActionData.fileData">
|
||||||
<v-file-input multiple show-size v-model="writeActionData.fileData" hide-details="true"
|
<div
|
||||||
clear-icon="delete" chips label="업로드" flat hide-input outlined>
|
v-for="(fileData, index) in writeActionData.fileData"
|
||||||
<!-- append-icon="cancel" -->
|
:key="fileData.apndFileId"
|
||||||
</v-file-input>
|
class="file-item d-flex justify-space-between">
|
||||||
|
<div class="file-item-detail">
|
||||||
|
<v-icon>mdi-paperclip</v-icon>
|
||||||
|
<span href="#" class="file-item-name">{{ fileData.name }}</span>
|
||||||
|
</div>
|
||||||
|
<a-icon type="delete" class="v-icon pointer" @click="writeActionData.fileData.splice(index, 1)" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a-button class="mt-2" icon="upload" @click="$refs.writeInputFile.$refs.input.click()" >
|
||||||
|
업로드
|
||||||
|
</a-button>
|
||||||
|
<v-file-input
|
||||||
|
ref="writeInputFile"
|
||||||
|
v-model="writeActionData.fileData"
|
||||||
|
multiple
|
||||||
|
outlined
|
||||||
|
hide-input
|
||||||
|
class="d-none"
|
||||||
|
prepend-icon="mdi-tray-arrow-up"
|
||||||
|
></v-file-input>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" class="text-right">
|
<v-col :cols="12" class="text-right">
|
||||||
<a-button @click="writePageButtonGroupClickEvent('cancel')" :ripple="false" class="mr-2">취소</a-button>
|
<a-button @click="writePageButtonGroupClickEvent('cancel')" :ripple="false" class="mr-2">취소</a-button>
|
||||||
<a-button @click="writePageButtonGroupClickEvent('write')" :ripple="false" type="primary">등록</a-button>
|
<a-button @click="writePageButtonGroupClickEvent('write')" :ripple="false" type="primary">등록</a-button>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 작성 페이지 끝 -->
|
<!-- 작성 페이지 끝 -->
|
||||||
<!-- 답글 작성 페이지 시작 -->
|
<!-- 답글 작성 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'reply'" class="h1001">
|
<div v-if="pageActionFlag == 'reply'" class="h1001">
|
||||||
<v-card class="pa-5">
|
<v-card class="pa-5">
|
||||||
<v-row>
|
<v-row align="center" class="mt-0">
|
||||||
<v-col :cols="12" class="card-title-color">
|
<v-col :cols="12" class="">
|
||||||
<v-card-title class="pa-0 custom-title-4">공지사항</v-card-title>
|
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
|
||||||
<v-row align="center" class="mt-5" >
|
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<p class="custom-title-4-new">제목</p>
|
<p class="custom-title-3 mb-2">제목</p>
|
||||||
<v-text-field v-model="replyActionData.title" class="v-input__custom" placeholder="제목" outlined hide-details>
|
<v-text-field v-model="replyActionData.title" class="v-input__custom" placeholder="제목" outlined
|
||||||
|
hide-details>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" style="height: calc(100vh - 270px);" class="mt-4" >
|
<v-col :cols="12" style="height: calc(100vh - 270px);" class="mt-2">
|
||||||
<editor ref="tuiReplyEditor" height="100%" initialEditType="wysiwyg" />
|
<editor ref="tuiReplyEditor" height="100%" initialEditType="wysiwyg" />
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" class="custom-title-4-new mt-4" >
|
<v-col :cols="6" class="mt-4">
|
||||||
|
<p class="custom-title-3 mb-2">
|
||||||
파일첨부
|
파일첨부
|
||||||
</v-col>
|
</p>
|
||||||
<v-col :cols="12" >
|
<div class="" v-if="replyActionData.fileData">
|
||||||
<v-file-input
|
<div
|
||||||
multiple
|
v-for="(fileData, index) in replyActionData.fileData"
|
||||||
show-size
|
:key="fileData.apndFileId"
|
||||||
v-model="replyActionData.fileData"
|
class="file-item d-flex justify-space-between">
|
||||||
hide-details="true">
|
<div class="file-item-detail">
|
||||||
|
<v-icon>mdi-paperclip</v-icon>
|
||||||
|
<span href="#" class="file-item-name">{{ fileData.name }}</span>
|
||||||
|
</div>
|
||||||
|
<a-icon type="delete" class="v-icon pointer" @click="replyActionData.fileData.splice(index, 1)" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a-button class="mt-3" icon="upload" @click="$refs.replyInputFile.$refs.input.click()" >
|
||||||
|
업로드
|
||||||
|
</a-button>
|
||||||
|
<v-file-input ref="replyInputFile" multiple show-size v-model="replyActionData.fileData" hide-details="true" class="d-none">
|
||||||
</v-file-input>
|
</v-file-input>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" class="text-right">
|
<v-col :cols="12" class="text-right">
|
||||||
@ -164,80 +172,54 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 답글 작성 페이지 끝 -->
|
<!-- 답글 작성 페이지 끝 -->
|
||||||
<!-- 수정 페이지 시작 -->
|
<!-- 수정 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'update'" class="h100">
|
<div v-if="pageActionFlag == 'update'" class="h1001">
|
||||||
|
<v-card>
|
||||||
|
<div class="pa-5">
|
||||||
<v-row align="center" no-gutters>
|
<v-row align="center" no-gutters>
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card>
|
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
||||||
<v-card-title>공지사항</v-card-title>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
<v-col :cols="12" class="mt-4">
|
||||||
<v-row>
|
<p class="custom-title-3 mb-2">제목</p>
|
||||||
<v-col :cols="12">
|
<v-text-field v-model="updateActionData.title" class="v-input__custom" placeholder="" hide-details outlined>
|
||||||
<v-card min-height="60" class="pa-5">
|
|
||||||
<v-text-field v-model="updateActionData.title" class="v-input__custom" placeholder="제목" hide-details>
|
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-card>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
<v-col :cols="12" style="height: calc(90vh - 270px);" class="mt-4" >
|
||||||
<v-row style="height:calc(100% - 342px)">
|
|
||||||
<v-col :cols="12">
|
|
||||||
<editor ref="tuiUpdateEditor" height="100%" initialEditType="wysiwyg"
|
<editor ref="tuiUpdateEditor" height="100%" initialEditType="wysiwyg"
|
||||||
:initialValue="updateActionData.content" />
|
:initialValue="updateActionData.content" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
<v-col :cols="6">
|
||||||
<v-row>
|
<p class="pa-0 mb-2 custom-title-4-new-1">파일첨부</p>
|
||||||
<v-col :cols="12">
|
<div class="" v-if="updateActionData.fileData">
|
||||||
<v-card class="pa-5">
|
<div
|
||||||
<v-row align="center" no-gutters>
|
v-for="(fileData, index) in updateActionData.fileData"
|
||||||
<v-col cols="1">
|
:key="fileData.apndFileId"
|
||||||
<v-card-subtitle class="pa-0">파일첨부</v-card-subtitle>
|
class="file-item d-flex justify-space-between">
|
||||||
</v-col>
|
<div class="file-item-detail">
|
||||||
<v-col :cols="4">
|
<v-icon>mdi-paperclip</v-icon>
|
||||||
<v-file-input multiple background-color="#47535c" show-size v-model="updateActionData.fileData"
|
<span href="#" class="file-item-name">{{ fileData.name }}</span>
|
||||||
hide-details="true">
|
</div>
|
||||||
|
<a-icon type="delete" class="v-icon pointer" @click="updateActionData.fileData.splice(index, 1)" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a-button class="mt-2" icon="upload" @click="$refs.updateInputFile.$refs.input.click()" >
|
||||||
|
업로드
|
||||||
|
</a-button>
|
||||||
|
<v-file-input ref="updateInputFile" multiple show-size v-model="updateActionData.fileData"
|
||||||
|
hide-details="true" class="d-none">
|
||||||
</v-file-input>
|
</v-file-input>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
<v-row>
|
|
||||||
<v-col :cols="12">
|
|
||||||
<v-card class="pa-5">
|
|
||||||
<v-row align="center">
|
|
||||||
<v-col :cols="1">
|
|
||||||
<v-card-subtitle class="pa-0">파일목록</v-card-subtitle>
|
|
||||||
</v-col>
|
|
||||||
<v-col :cols="11">
|
|
||||||
<v-row v-for="fileData in updateActionData.currentFileList" :key="fileData.apndFileId">
|
|
||||||
<a @click.prevent="downloadFile(fileData)">
|
|
||||||
<v-col :cols="12">
|
|
||||||
<div class="search-box-label">
|
|
||||||
{{ fileData.apndFileNm + '.' + fileData.apndFileExt }}
|
|
||||||
</div>
|
|
||||||
</v-col>
|
|
||||||
</a>
|
|
||||||
<v-icon class="pl-5" @click="addFileToDeleteFileList(fileData)">
|
|
||||||
mdi-close
|
|
||||||
</v-icon>
|
|
||||||
</v-row>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
</v-card>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
<v-row>
|
|
||||||
<v-col :cols="12" class="text-right">
|
<v-col :cols="12" class="text-right">
|
||||||
<v-btn @click="updatePageButtonGroupClickEvent('update')" :ripple="false">등록</v-btn>
|
<a-button @click="updatePageButtonGroupClickEvent('cancel')" >취소</a-button>
|
||||||
<v-btn @click="updatePageButtonGroupClickEvent('cancel')" :ripple="false">취소</v-btn>
|
<a-button @click="updatePageButtonGroupClickEvent('update')" type="primary" >등록</a-button>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</div>
|
</div>
|
||||||
|
</v-card>
|
||||||
|
</div>
|
||||||
<!-- 수정 페이지 끝 -->
|
<!-- 수정 페이지 끝 -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -363,6 +345,9 @@ export default {
|
|||||||
chkOpenTabList: 'chkOpenTabList',
|
chkOpenTabList: 'chkOpenTabList',
|
||||||
getDomain: 'modules/list/getDomain',
|
getDomain: 'modules/list/getDomain',
|
||||||
}),
|
}),
|
||||||
|
onTest(){
|
||||||
|
console.log(this.writeActionData.fileData);
|
||||||
|
},
|
||||||
async init() {
|
async init() {
|
||||||
this.initData();
|
this.initData();
|
||||||
await this.gridInit();
|
await this.gridInit();
|
||||||
@ -1069,7 +1054,18 @@ const dataPathDataExample = getPathDataExample({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.pointer,
|
||||||
.tui-grid-table tr {
|
.tui-grid-table tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.file-item {
|
||||||
|
width: auto;
|
||||||
|
margin: 2px 0;
|
||||||
|
padding: 4px;
|
||||||
|
background-color: #0000000A;
|
||||||
|
.file-item-name{
|
||||||
|
color: #1677FF;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -147,6 +147,26 @@ export default {
|
|||||||
// }
|
// }
|
||||||
await this.loginChk();
|
await this.loginChk();
|
||||||
},
|
},
|
||||||
|
// async loginChk() {
|
||||||
|
// const DOMAIN = '';
|
||||||
|
// const apiUrl = 'loginChk';
|
||||||
|
// const params = {
|
||||||
|
// local: 'ko',
|
||||||
|
// comId: this.userComId, // 요청 comId는 클라우드 서비스시는 입력 값으로 처리 되어야 할수 있음.
|
||||||
|
// userId: this.userId,
|
||||||
|
// userPswd: this.userPw,
|
||||||
|
// };
|
||||||
|
// const res = await this.$axios.post(DOMAIN + apiUrl, { params: params });
|
||||||
|
// const femsSessionCookie = 3434;
|
||||||
|
// const FEMS_SESSION = femsSessionCookie;
|
||||||
|
// $cookie.set('FEMS_SESSION', FEMS_SESSION);
|
||||||
|
// this.setUserInfo(res.data.dataset.userInfo);
|
||||||
|
// // alert("임시로 로그인 처리 되었습니다. dashboard 페이지로 이동합니다.");
|
||||||
|
// // console.log('res.data.dataset.userInfo: ', res.data.dataset.userInfo);
|
||||||
|
// // return;
|
||||||
|
// this.$router.push({ path: this.myHome.root });
|
||||||
|
|
||||||
|
// },
|
||||||
async loginChk() {
|
async loginChk() {
|
||||||
const DOMAIN = '';
|
const DOMAIN = '';
|
||||||
const apiUrl = 'loginChk';
|
const apiUrl = 'loginChk';
|
||||||
@ -156,15 +176,25 @@ export default {
|
|||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
userPswd: this.userPw,
|
userPswd: this.userPw,
|
||||||
};
|
};
|
||||||
|
console.log('asdasd' + JSON.stringify( DOMAIN) + params)
|
||||||
const res = await this.$axios.post(DOMAIN + apiUrl, { params: params });
|
const res = await this.$axios.post(DOMAIN + apiUrl, { params: params });
|
||||||
const femsSessionCookie = 3434;
|
if (res.data.retnCd === -9001) {
|
||||||
|
alert(res.data.retnMsg);
|
||||||
|
return {};
|
||||||
|
} else {
|
||||||
|
const femsSessionCookie = res.data.dataset.FEMS_SESSION;
|
||||||
const FEMS_SESSION = femsSessionCookie;
|
const FEMS_SESSION = femsSessionCookie;
|
||||||
|
|
||||||
$cookie.set('FEMS_SESSION', FEMS_SESSION);
|
$cookie.set('FEMS_SESSION', FEMS_SESSION);
|
||||||
this.setUserInfo(res.data.dataset.userInfo);
|
this.setUserInfo(res.data.dataset.userInfo);
|
||||||
|
|
||||||
|
console.log('FEMS_SESSION', FEMS_SESSION);
|
||||||
|
console.log('$cookie.get', $cookie.get('FEMS_SESSION'));
|
||||||
|
console.log('userInfo', JSON.stringify(res.data.dataset.userInfo));
|
||||||
|
|
||||||
// alert("임시로 로그인 처리 되었습니다. dashboard 페이지로 이동합니다.");
|
// alert("임시로 로그인 처리 되었습니다. dashboard 페이지로 이동합니다.");
|
||||||
this.$router.push({ path: this.myHome.root });
|
this.$router.push({ path: this.myHome.root });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import $cookie from 'vue-cookie';
|
import $cookie from 'vue-cookie';
|
||||||
export default ({ $axios, res }) => {
|
export default ({ $axios, res }) => {
|
||||||
|
$axios.defaults.baseURL = '/api/';
|
||||||
$axios.onRequest(config => {
|
$axios.onRequest(config => {
|
||||||
config.headers.common['AUTHENTICATION_FEMS_SESSION'] = `${$cookie.get(
|
config.headers.common['AUTHENTICATION_FEMS_SESSION'] = `${$cookie.get(
|
||||||
'FEMS_SESSION',
|
'FEMS_SESSION',
|
||||||
|
Reference in New Issue
Block a user