init dev-push code ui base design
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-row class="search-box" align="center" no-gutters >
|
||||
<v-row class="search-box" align="center" no-gutters>
|
||||
<!-- <v-col v-if="label" cols="2"> -->
|
||||
<!-- <v-col v-if="label" :cols="labelCols">
|
||||
<label for="" class="search-box-label">
|
||||
@ -27,18 +27,15 @@
|
||||
</v-col> -->
|
||||
|
||||
<!-- <v-row justify="center"> -->
|
||||
<v-dialog
|
||||
ref="popModal"
|
||||
v-model="dialog"
|
||||
width="1400"
|
||||
overlay-color="#000"
|
||||
overlay-opacity="0.8"
|
||||
scrollable
|
||||
>
|
||||
<v-dialog ref="popModal" v-model="dialog" width="1200" overlay-color="#000" overlay-opacity="0.8" scrollable>
|
||||
<!-- <template v-slot:activator="{ on, attrs }">
|
||||
<v-btn color="primary" dark v-bind="attrs" v-on="on">공정/설비</v-btn>
|
||||
</template> -->
|
||||
<v-card style="height: 100%">
|
||||
<v-card-title class="px-5 py-4 d-flex align-center justify-space-between">
|
||||
<span class="custom-title-4">가이드 알람이력</span>
|
||||
<a-button icon="close" type="text" @click="closePop()"></a-button>
|
||||
</v-card-title>
|
||||
<!-- <v-card-title
|
||||
class="v-card__title d-flex align-center justify-space-between"
|
||||
>
|
||||
@ -50,105 +47,66 @@
|
||||
<!-- <v-card-actions> -->
|
||||
<div class="pa-5">
|
||||
<!-- <v-text-field label="위치정보 선택"></v-text-field> -->
|
||||
<v-row align="center" no-gutters>
|
||||
<v-col :cols="4">
|
||||
<div class="d-flex align-center justify-space-between pb-5">
|
||||
<v-card-title class="pa-0">가이드 알람이력</v-card-title>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col :cols="8" class="text-right">
|
||||
<v-btn icon tile :ripple="false" @click="closePop()">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!-- <v-row align="center" no-gutters>
|
||||
<v-col :cols="4">
|
||||
<div class="d-flex align-center justify-space-between pb-5">
|
||||
<v-card-title class="pa-0">가이드 알람이력</v-card-title>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col :cols="8" class="text-right">
|
||||
<v-btn icon tile :ripple="false" @click="closePop()">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
<v-row align="center" no-gutters>
|
||||
<v-col :cols="1">
|
||||
<label for="" class="search-box-label">
|
||||
<v-icon
|
||||
x-small
|
||||
:color="'primary'"
|
||||
class="mr-1"
|
||||
>mdi-record-circle</v-icon
|
||||
>
|
||||
설비
|
||||
</label>
|
||||
</v-col>
|
||||
<v-col :cols="2">
|
||||
<v-text-field
|
||||
v-if="dialog"
|
||||
v-model="InputValue['eqpmId']"
|
||||
class="v-input__custom"
|
||||
:readonly="true"
|
||||
outlined
|
||||
:hide-details="true"
|
||||
>
|
||||
</v-text-field>
|
||||
<v-col :cols="12">
|
||||
<label for="" class="search-box-label">
|
||||
<v-icon small :class="['mr-1','icon-blue']">$icoBulletPoint</v-icon>
|
||||
설비
|
||||
</label>
|
||||
</v-col>
|
||||
<v-col :cols="3">
|
||||
<v-text-field
|
||||
v-if="dialog"
|
||||
v-model="InputValue['eqpmNm']"
|
||||
class="v-input__custom"
|
||||
:readonly="true"
|
||||
outlined
|
||||
:hide-details="true"
|
||||
>
|
||||
</v-text-field>
|
||||
<v-col :cols="6" class="pr-2 py-0">
|
||||
<v-text-field v-if="dialog" v-model="InputValue['eqpmId']" class="v-input__custom"
|
||||
:readonly="true" outlined :hide-details="true">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col :cols="6">
|
||||
<v-col :cols="6" class="pl-2 py-0">
|
||||
<v-text-field v-if="dialog" v-model="InputValue['eqpmNm']" class="v-input__custom"
|
||||
:readonly="true" outlined :hide-details="true">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col :cols="1">
|
||||
<label for="" class="search-box-label">
|
||||
<v-icon
|
||||
x-small
|
||||
:color="'primary'"
|
||||
class="mr-1"
|
||||
>mdi-record-circle</v-icon
|
||||
>
|
||||
가이드지표
|
||||
</label>
|
||||
</v-col>
|
||||
<v-col :cols="2">
|
||||
<v-text-field
|
||||
v-if="dialog"
|
||||
v-model="InputValue['gdIdxId']"
|
||||
class="v-input__custom"
|
||||
:readonly="true"
|
||||
outlined
|
||||
:hide-details="true"
|
||||
>
|
||||
</v-text-field>
|
||||
</v-row>
|
||||
<v-row align="center" no-gutters class="mt-4">
|
||||
<v-col :cols="12">
|
||||
<label for="" class="search-box-label">
|
||||
<v-icon small :class="['mr-1','icon-blue']">$icoBulletPoint</v-icon>
|
||||
가이드지표
|
||||
</label>
|
||||
</v-col>
|
||||
<v-col :cols="3">
|
||||
<v-text-field
|
||||
v-if="dialog"
|
||||
v-model="InputValue['gdIdxNm']"
|
||||
class="v-input__custom"
|
||||
:readonly="true"
|
||||
outlined
|
||||
:hide-details="true"
|
||||
>
|
||||
</v-text-field>
|
||||
<v-col :cols="6" class="pr-2 py-0">
|
||||
<v-text-field v-if="dialog" v-model="InputValue['gdIdxId']" class="v-input__custom"
|
||||
:readonly="true" outlined :hide-details="true">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col :cols="6" class="pl-2 py-0">
|
||||
<v-text-field v-if="dialog" v-model="InputValue['gdIdxNm']" class="v-input__custom"
|
||||
:readonly="true" outlined :hide-details="true">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<v-divider></v-divider>
|
||||
<div class="d-flex align-center justify-space-between pa-4">
|
||||
<v-card-title class="pa-0 custom-title-4">◇ 설비 가이드 정보</v-card-title>
|
||||
<v-card-title class="py-0 px-2 custom-title-4">설비 가이드 정보</v-card-title>
|
||||
</div>
|
||||
<div class="px-5" style="height:calc(100% - 76px)">
|
||||
<div ref="modalGridParent" class="w100 h100">
|
||||
<component
|
||||
:ref="gridName"
|
||||
:is="loadGrid? 'Grid' : null"
|
||||
:dataPath="searchParam.modalData.eqpmDetlPop"
|
||||
:gridName="gridName"
|
||||
:parentPrgmId="parentPrgmId"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div id="gridParent" ref="gridParent" style="height: 500px">
|
||||
<div class="px-5" style="height:calc(100% - 76px)">
|
||||
<div ref="modalGridParent" class="w100 h100">
|
||||
<component :ref="gridName" :is="loadGrid ? 'Grid' : null"
|
||||
:dataPath="searchParam.modalData.eqpmDetlPop" :gridName="gridName"
|
||||
:parentPrgmId="parentPrgmId" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div id="gridParent" ref="gridParent" style="height: 500px">
|
||||
<component
|
||||
:ref="'gridName' + parentPrgmId"
|
||||
:is="loadGrid && dialog ? 'Grid' : null"
|
||||
@ -160,11 +118,10 @@
|
||||
@dblClick="setUpdate()"
|
||||
/>
|
||||
</div> -->
|
||||
|
||||
<v-divider></v-divider>
|
||||
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="primary" dark @click="closePop()">확인</v-btn>
|
||||
<a-button color="primary" type="primary" @click="closePop()">확인</a-button>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
@ -223,19 +180,19 @@ export default {
|
||||
components: {
|
||||
Grid,
|
||||
selectCodeList,
|
||||
dateUtility,
|
||||
dateUtility,
|
||||
InputText
|
||||
// Tree
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
labelPrepend: true,
|
||||
modalDataKey:'modalData',
|
||||
modalDataKey: 'modalData',
|
||||
myModalKey: 'eqpmDetlPop',
|
||||
gridName: 'eqpmDetlGrid',
|
||||
loadGrid: false,
|
||||
setGrid:false,
|
||||
popCheck:false,
|
||||
loadGrid: true,
|
||||
setGrid: false,
|
||||
popCheck: false,
|
||||
dialog: false,
|
||||
activeRowData: {},
|
||||
checkedRowDataList: [],
|
||||
@ -258,32 +215,38 @@ export default {
|
||||
}
|
||||
},
|
||||
}),
|
||||
InputValue: {
|
||||
InputValue: {
|
||||
get() {
|
||||
return this.myBindingData;
|
||||
// return this.myBindingData;
|
||||
return [{
|
||||
"eqpmId": "EQ001",
|
||||
"eqpmNm": "Etcher A12",
|
||||
"gdIdxId": "GD001",
|
||||
"gdIdxNm": "Etch Depth Guide",
|
||||
}]
|
||||
}
|
||||
},
|
||||
chkDialog(){
|
||||
chkDialog() {
|
||||
return this.dialog
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
async chkDialog(val){
|
||||
if(!val){
|
||||
this.closePop();
|
||||
}else{
|
||||
// await this.getRowGridData();
|
||||
|
||||
}
|
||||
async chkDialog(val) {
|
||||
if (!val) {
|
||||
this.closePop();
|
||||
} else {
|
||||
// await this.getRowGridData();
|
||||
|
||||
}
|
||||
},
|
||||
async popCheck(val){
|
||||
if(val){
|
||||
await this.getRowGridData();
|
||||
this.dialog= true;
|
||||
}else{
|
||||
this.dialog=false;
|
||||
}
|
||||
}
|
||||
async popCheck(val) {
|
||||
if (val) {
|
||||
// await this.getRowGridData();
|
||||
this.dialog = true;
|
||||
} else {
|
||||
this.dialog = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
beforeCreate() {
|
||||
@ -297,7 +260,7 @@ export default {
|
||||
methods: {
|
||||
...mapMutations({
|
||||
setPageData: 'setPageData',
|
||||
setModalGridData: 'setModalGridData',
|
||||
setModalGridData: 'setModalGridData',
|
||||
setModalGridColumn: 'setModalGridColumn',
|
||||
setModalGridOption: 'setModalGridOption',
|
||||
}),
|
||||
@ -306,28 +269,32 @@ export default {
|
||||
}),
|
||||
init() {
|
||||
|
||||
this.gridInit();
|
||||
this.gridInit();
|
||||
},
|
||||
closePop(){
|
||||
this.popCheck= false;
|
||||
closePop() {
|
||||
this.popCheck = false;
|
||||
},
|
||||
search() {
|
||||
// this.getData();
|
||||
},
|
||||
gridInit(){
|
||||
// const gridHeight = this.$refs.gridParent.offsetHeight - 30;
|
||||
gridInit() {
|
||||
// const gridHeight = this.$refs.gridParent.offsetHeight - 30;
|
||||
|
||||
const myOptions = {
|
||||
rowHeaders: ['rowNum'],
|
||||
columnOptions: {
|
||||
resizable: true,
|
||||
minWidth:100
|
||||
},
|
||||
setScroll: true,
|
||||
};
|
||||
const myOptions = {
|
||||
rowHeaders: ['rowNum'],
|
||||
columnOptions: {
|
||||
resizable: true,
|
||||
minWidth: 100
|
||||
},
|
||||
// setScroll: true,
|
||||
header: {
|
||||
height: 37,
|
||||
},
|
||||
rowHeight: 'auto',
|
||||
};
|
||||
|
||||
|
||||
this.setModalGridOption({
|
||||
this.setModalGridOption({
|
||||
modalKey: this.myModalKey,
|
||||
gridKey: this.gridName,
|
||||
modalDataKey: this.modalDataKey,
|
||||
@ -338,55 +305,55 @@ export default {
|
||||
),
|
||||
});
|
||||
|
||||
const myColumns= [
|
||||
{
|
||||
header : '발생일',
|
||||
name : 'totDttmDay',
|
||||
align:'center'
|
||||
},
|
||||
{
|
||||
header : '발생시간대',
|
||||
name : 'totDttmTime',
|
||||
align:'center'
|
||||
},
|
||||
{
|
||||
header : '가이드지표명',
|
||||
minWidth:200,
|
||||
name : 'gdIdxNm',
|
||||
},
|
||||
{
|
||||
header : '주의',
|
||||
width:100,
|
||||
name : 'careStndVal',
|
||||
align:'center'
|
||||
},
|
||||
{
|
||||
header : '경고',
|
||||
width:100,
|
||||
name : 'warnStndVal',
|
||||
align:'center'
|
||||
},
|
||||
{
|
||||
header : '가이드값',
|
||||
width:100,
|
||||
name : 'totVal',
|
||||
align:'center'
|
||||
},
|
||||
{
|
||||
header : '알람내용',
|
||||
minWidth:300,
|
||||
width:'auto',
|
||||
name : 'alrmMsg',
|
||||
},
|
||||
{
|
||||
header : '알람종류',
|
||||
name : 'alrmKind',
|
||||
hidden:true
|
||||
},
|
||||
const myColumns = [
|
||||
{
|
||||
header: '발생일',
|
||||
name: 'totDttmDay',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
header: '발생시간대',
|
||||
name: 'totDttmTime',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
header: '가이드지표명',
|
||||
minWidth: 200,
|
||||
name: 'gdIdxNm',
|
||||
},
|
||||
{
|
||||
header: '주의',
|
||||
width: 100,
|
||||
name: 'careStndVal',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
header: '경고',
|
||||
width: 100,
|
||||
name: 'warnStndVal',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
header: '가이드값',
|
||||
width: 100,
|
||||
name: 'totVal',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
header: '알람내용',
|
||||
minWidth: 300,
|
||||
width: 'auto',
|
||||
name: 'alrmMsg',
|
||||
},
|
||||
{
|
||||
header: '알람종류',
|
||||
name: 'alrmKind',
|
||||
hidden: true
|
||||
},
|
||||
|
||||
]
|
||||
]
|
||||
|
||||
this.setModalGridColumn({
|
||||
this.setModalGridColumn({
|
||||
modalKey: this.myModalKey,
|
||||
gridKey: this.gridName,
|
||||
modalDataKey: this.modalDataKey,
|
||||
@ -394,59 +361,90 @@ export default {
|
||||
});
|
||||
|
||||
|
||||
// this.getRowGridData();
|
||||
},
|
||||
async getRowGridData(){
|
||||
this.loadGrid =false;
|
||||
var res = await this.postApiReturn({
|
||||
apiKey: 'selectEqpmDetailPop',
|
||||
resKey: 'eqpmDetlPopData',
|
||||
sendParam: {
|
||||
gdIdxId : this.myBindingData.gdIdxId,
|
||||
eqpmId : this.myBindingData.eqpmId,
|
||||
fromDt : this.myBindingData.fromDt,
|
||||
toDt : this.myBindingData.toDt
|
||||
},
|
||||
});
|
||||
const dayjs = require('dayjs');
|
||||
var newRes = res.map(item=>
|
||||
item = {
|
||||
...item,
|
||||
totDttmDay : Utility.setFormatDate(item.totDttm, 'YYYY-MM-DD'),
|
||||
totDttmTime : Utility.setFormatDate(item.totDttm, 'HH') + "~" + dayjs(item.totDttm).add(1,'h').format('HH'),
|
||||
}
|
||||
);
|
||||
this.getRowGridData();
|
||||
},
|
||||
async getRowGridData() {
|
||||
this.loadGrid = false;
|
||||
// var res = await this.postApiReturn({
|
||||
// apiKey: 'selectEqpmDetailPop',
|
||||
// resKey: 'eqpmDetlPopData',
|
||||
// sendParam: {
|
||||
// gdIdxId : this.myBindingData.gdIdxId,
|
||||
// eqpmId : this.myBindingData.eqpmId,
|
||||
// fromDt : this.myBindingData.fromDt,
|
||||
// toDt : this.myBindingData.toDt
|
||||
// },
|
||||
// });
|
||||
// const dayjs = require('dayjs');
|
||||
// var newRes = res.map(item=>
|
||||
// item = {
|
||||
// ...item,
|
||||
// totDttmDay : Utility.setFormatDate(item.totDttm, 'YYYY-MM-DD'),
|
||||
// totDttmTime : Utility.setFormatDate(item.totDttm, 'HH') + "~" + dayjs(item.totDttm).add(1,'h').format('HH'),
|
||||
// }
|
||||
// );
|
||||
|
||||
this.setModalGridData({
|
||||
const newRes = [
|
||||
{
|
||||
"totDttmDay": "2025-07-10",
|
||||
"totDttmTime": "14:00~15:00",
|
||||
"gdIdxNm": "Etch Depth Guide",
|
||||
"careStndVal": 500,
|
||||
"warnStndVal": 700,
|
||||
"totVal": 720,
|
||||
"alrmMsg": "Chamber pressure exceeded warning threshold. Immediate inspection required.",
|
||||
"alrmKind": "경고"
|
||||
},
|
||||
{
|
||||
"totDttmDay": "2025-07-10",
|
||||
"totDttmTime": "09:00~10:00",
|
||||
"gdIdxNm": "Etch Depth Guide",
|
||||
"careStndVal": 60,
|
||||
"warnStndVal": 80,
|
||||
"totVal": 75,
|
||||
"alrmMsg": "Temperature nearing warning threshold. Monitor closely.",
|
||||
"alrmKind": "주의"
|
||||
},
|
||||
{
|
||||
"totDttmDay": "2025-07-09",
|
||||
"totDttmTime": "22:00~23:00",
|
||||
"gdIdxNm": "Etch Depth Guide",
|
||||
"careStndVal": 300,
|
||||
"warnStndVal": 400,
|
||||
"totVal": 290,
|
||||
"alrmMsg": "Gas flow rate below caution level. Check for leaks or blockages.",
|
||||
"alrmKind": "주의"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
this.setModalGridData({
|
||||
modalKey: this.myModalKey,
|
||||
gridKey: this.gridName,
|
||||
modalDataKey: this.modalDataKey,
|
||||
value: newRes,
|
||||
});
|
||||
|
||||
|
||||
this.loadGrid=true;
|
||||
|
||||
this.setGrid = true;
|
||||
}
|
||||
this.loadGrid = true;
|
||||
|
||||
this.setGrid = true;
|
||||
}
|
||||
},
|
||||
};
|
||||
var eqpmDetlPop ={
|
||||
eqpmDetlGrid:{
|
||||
data:[],
|
||||
column:[],
|
||||
option:{}
|
||||
}
|
||||
var eqpmDetlPop = {
|
||||
eqpmDetlGrid: {
|
||||
data: [],
|
||||
column: [],
|
||||
option: {}
|
||||
}
|
||||
}
|
||||
|
||||
// 전력량 요금(원/kWh)
|
||||
</script>
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
// @import '@/assets/scss/common/grid.scss';
|
||||
.tui-grid-scrollbar-left-bottom {
|
||||
display: none !important;
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
Reference in New Issue
Block a user