update screen 2, 8, 9, 10, 27, 33, 34
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="l-layout">
|
||||
<common-page-title />
|
||||
<!-- 리스트 페이지 시작 -->
|
||||
<div v-if="pageActionFlag == 'list'" class="h1001">
|
||||
<v-card class="" >
|
||||
@ -14,10 +15,12 @@
|
||||
<!-- <v-btn @click="listPageButtonGroupClickEvent('delete')" :ripple="false">삭제</v-btn> -->
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col :cols="12" ref="contents" class="mt-5">
|
||||
<v-col :cols="12" ref="contents" class="mt-5" style="min-height: calc(100% - 76px);">
|
||||
<div ref="gridParent" class="h100 px-50">
|
||||
<component :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
||||
ref="noticeMngGrid" @getRowsData="getRowData" :dataPath="dataPathMock" />
|
||||
<!-- <component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
||||
@getRowsData="getRowData" /> -->
|
||||
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
||||
@getRowsData="getRowData" :selectedRowDataWatchFlag="true" />
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@ -266,7 +269,8 @@ export default {
|
||||
myPrgmId: myPrgmId,
|
||||
//comId: "SEMPIO",
|
||||
//comId: this.userInfo.comId,
|
||||
comId: this.$store.state.userInfo.comId,
|
||||
// comId: this.$store.state.userInfo.comId,
|
||||
|
||||
bordNo: null,
|
||||
pageActionFlag: 'list',
|
||||
gridName: 'noticeMngGrid',
|
||||
@ -467,12 +471,12 @@ export default {
|
||||
value: columnList,
|
||||
});
|
||||
|
||||
// -----------------------TEST------------------
|
||||
this.dataPathMock[this.gridName] = {
|
||||
column: columnList,
|
||||
data: dataPathDataExample,
|
||||
}
|
||||
// -----------------------END TEST--------------
|
||||
// // -----------------------TEST------------------
|
||||
// this.dataPathMock[this.gridName] = {
|
||||
// column: columnList,
|
||||
// data: dataPathDataExample,
|
||||
// }
|
||||
// // -----------------------END TEST--------------
|
||||
this.getGridData();
|
||||
},
|
||||
async getGridData() {
|
||||
@ -481,31 +485,32 @@ export default {
|
||||
};
|
||||
|
||||
this.loadGrid = false;
|
||||
let res = null;
|
||||
try {
|
||||
res = await this.postApiReturn({
|
||||
apiKey: 'selectPostList',
|
||||
resKey: 'postData',
|
||||
sendParam: params,
|
||||
});
|
||||
}
|
||||
catch (err) { }
|
||||
finally {
|
||||
// -----Test mock data-------------
|
||||
if (null === res) {
|
||||
res = dataPathDataExample;
|
||||
}
|
||||
// -----End test
|
||||
}
|
||||
|
||||
const res = await this.postApiReturn({
|
||||
apiKey: 'selectPostList',
|
||||
resKey: 'postData',
|
||||
sendParam: params,
|
||||
});
|
||||
|
||||
// console.log('----------DEBUG--------res: ', res);
|
||||
const newRes = res.map(item => {
|
||||
const newObj = {
|
||||
...item,
|
||||
rowStat: null,
|
||||
dataSetId: item.dataSetId,
|
||||
dataSetNm: item.dataSetNm,
|
||||
useFg: item.useFg === '1' ? true : false, // 화면 개발 편의를 위해 boolean 타입으로 교체, 저장시 "1", "0" 으로 바꿔 보내야 함
|
||||
};
|
||||
return newObj;
|
||||
});
|
||||
|
||||
this.setGridData({
|
||||
gridKey: this.gridName,
|
||||
value: res,
|
||||
});
|
||||
this.$nextTick(() => {
|
||||
this.loadGrid = true;
|
||||
value: newRes,
|
||||
});
|
||||
|
||||
this.setPageData({ isFind: false });
|
||||
this.loadGrid = true;
|
||||
},
|
||||
getRowData(data) {
|
||||
this.selectedRowKey = data.rowKey;
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
<v-row ref="contents">
|
||||
<!-- 프로그램 리스트 -->
|
||||
<v-col :cols="5" class="h100">
|
||||
<v-col :cols="5" >
|
||||
<v-card class="pb-5">
|
||||
<div class="d-flex align-center justify-space-between pa-5">
|
||||
<v-card-title class="pa-0">프로그램 리스트</v-card-title>
|
||||
@ -50,7 +50,7 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="min-height:calc(100% - 70px)">
|
||||
<div style="min-height: 60vh">
|
||||
<div ref="gridParent" class="px-5 h100">
|
||||
<component
|
||||
:ref="gridName"
|
||||
@ -65,7 +65,7 @@
|
||||
</v-card>
|
||||
</v-col>
|
||||
<!-- 프로그램 상세 -->
|
||||
<v-col :cols="7" class="h100">
|
||||
<v-col :cols="7" >
|
||||
<v-card class="pb-5">
|
||||
<div class="d-flex align-center justify-space-between pa-5">
|
||||
<v-card-title class="pa-0">프로그램 상세</v-card-title>
|
||||
|
Reference in New Issue
Block a user