update theme header
This commit is contained in:
@ -13,14 +13,15 @@
|
||||
</v-col>
|
||||
<v-col :cols="label ? textCols : ''">
|
||||
|
||||
<a-checkbox
|
||||
v-model:checked="chkValue"
|
||||
:disabled="disabledFlag"
|
||||
:readonly="readonly || false"
|
||||
:required="required || false"
|
||||
@change="modifyValue"
|
||||
>
|
||||
</a-checkbox>
|
||||
<v-checkbox
|
||||
v-model="chkValue"
|
||||
:disabled="disabledFlag"
|
||||
:readonly="readonly || false"
|
||||
:required="required || false"
|
||||
:false-value="false"
|
||||
:color="isDarkMode ? '#fff' : '#1890ff'"
|
||||
@change="modifyValue"
|
||||
></v-checkbox>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
@ -1,9 +1,11 @@
|
||||
<template>
|
||||
<v-switch
|
||||
class="theme-switch"
|
||||
v-model="mode"
|
||||
@change="themeChange"
|
||||
></v-switch>
|
||||
<a-button
|
||||
class="btn-header"
|
||||
:color="mode ? 'dark' : 'light'"
|
||||
@click="themeChange"
|
||||
icon="bulb"
|
||||
>
|
||||
</a-button>
|
||||
</template>
|
||||
<script>
|
||||
import { mapState, mapMutations } from 'vuex';
|
||||
@ -26,8 +28,11 @@ export default {
|
||||
setThemeChange: 'setThemeChange',
|
||||
}),
|
||||
themeChange() {
|
||||
this.mode = !this.mode;
|
||||
this.$vuetify.theme.isDark = this.mode;
|
||||
this.setThemeChange(this.mode);
|
||||
console.log(this.mode)
|
||||
console.log(this.$vuetify.theme.isDark)
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -69,12 +74,14 @@ export default {
|
||||
background-color: #f2f2f2;
|
||||
top: 2px;
|
||||
left: 0;
|
||||
background-image: url(../../assets/images/icon/ico-theme-light.png);
|
||||
// background-image: url(../../assets/images/icon/ico-theme-light.png);
|
||||
content: "light";
|
||||
background-size: 18px 18px;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
&.v-input--is-label-active {
|
||||
::v-deep {
|
||||
.v-input--switch__track {
|
||||
@ -82,7 +89,8 @@ export default {
|
||||
}
|
||||
.v-input--switch__thumb {
|
||||
// transform: translate(38px, 0);
|
||||
background-image: url(../../assets/images/icon/ico-theme-dark.png);
|
||||
// background-image: url(../../assets/images/icon/ico-theme-dark.png);
|
||||
content: 'dark';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
v-if="item.label"
|
||||
:cols="item.cols == 12 ? 2 : 4"
|
||||
:style="item.padding ? 'padding-left:10px' : ''"
|
||||
class="mb-2"
|
||||
class="py-0"
|
||||
>
|
||||
<label for="" class="search-box-label">
|
||||
<v-icon
|
||||
|
@ -62,7 +62,7 @@
|
||||
<v-row align="center" no-gutters>
|
||||
<v-col :cols="12">
|
||||
<label for="" class="search-box-label">
|
||||
<v-icon small :class="['mr-1','icon-blue']">$icoBulletPoint</v-icon>
|
||||
<v-icon small :class="['mr-1', 'icon-blue']">$icoBulletPoint</v-icon>
|
||||
설비
|
||||
</label>
|
||||
</v-col>
|
||||
@ -80,7 +80,7 @@
|
||||
<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>
|
||||
<v-icon small :class="['mr-1', 'icon-blue']">$icoBulletPoint</v-icon>
|
||||
가이드지표
|
||||
</label>
|
||||
</v-col>
|
||||
@ -190,7 +190,7 @@ export default {
|
||||
modalDataKey: 'modalData',
|
||||
myModalKey: 'eqpmDetlPop',
|
||||
gridName: 'eqpmDetlGrid',
|
||||
loadGrid: true,
|
||||
loadGrid: false,
|
||||
setGrid: false,
|
||||
popCheck: false,
|
||||
dialog: false,
|
||||
@ -217,13 +217,7 @@ export default {
|
||||
}),
|
||||
InputValue: {
|
||||
get() {
|
||||
// return this.myBindingData;
|
||||
return [{
|
||||
"eqpmId": "EQ001",
|
||||
"eqpmNm": "Etcher A12",
|
||||
"gdIdxId": "GD001",
|
||||
"gdIdxNm": "Etch Depth Guide",
|
||||
}]
|
||||
return this.myBindingData;
|
||||
}
|
||||
},
|
||||
chkDialog() {
|
||||
@ -241,7 +235,7 @@ export default {
|
||||
},
|
||||
async popCheck(val) {
|
||||
if (val) {
|
||||
// await this.getRowGridData();
|
||||
await this.getRowGridData();
|
||||
this.dialog = true;
|
||||
} else {
|
||||
this.dialog = false;
|
||||
@ -365,57 +359,24 @@ export default {
|
||||
},
|
||||
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'),
|
||||
// }
|
||||
// );
|
||||
|
||||
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": "경고"
|
||||
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
|
||||
},
|
||||
{
|
||||
"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": "주의"
|
||||
});
|
||||
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({
|
||||
|
@ -234,13 +234,7 @@ export default {
|
||||
}),
|
||||
InputValue: {
|
||||
get() {
|
||||
return [{
|
||||
"eqpmId": "EQ001",
|
||||
"eqpmNm": "Etcher A12",
|
||||
"gdIdxId": "GD001",
|
||||
"gdIdxNm": "Etch Depth Guide",
|
||||
}]
|
||||
// return this.myBindingData;
|
||||
return this.myBindingData;
|
||||
}
|
||||
},
|
||||
chkDialog() {
|
||||
@ -258,7 +252,7 @@ export default {
|
||||
},
|
||||
async popCheck(val) {
|
||||
if (val) {
|
||||
// await this.getData();
|
||||
await this.getData();
|
||||
this.dialog = true;
|
||||
} else {
|
||||
this.dialog = false;
|
||||
@ -288,13 +282,13 @@ export default {
|
||||
}),
|
||||
init() {
|
||||
|
||||
// this.gridInit();
|
||||
this.gridInit();
|
||||
},
|
||||
closePop() {
|
||||
this.popCheck = false;
|
||||
},
|
||||
search() {
|
||||
// this.getData();
|
||||
this.getData();
|
||||
},
|
||||
async getData() {
|
||||
var res = await this.postApiReturn({
|
||||
|
@ -323,58 +323,58 @@ export default {
|
||||
this.getRowGridData();
|
||||
},
|
||||
async getFab() {
|
||||
// let res = await this.postApiReturn({
|
||||
// apiKey: 'selectFabCodeList',
|
||||
// resKey: 'fabCodeLists',
|
||||
// sendParam: {},
|
||||
// });
|
||||
// if (res.length > 0) {
|
||||
// this.selectValueList02 = await res.map(item => {
|
||||
// return {
|
||||
// text: item.eccNm,
|
||||
// value: item.eccId,
|
||||
// };
|
||||
// });
|
||||
// this.selectValueList02.unshift({
|
||||
// text:"전체",
|
||||
// value:null
|
||||
// });
|
||||
// // if(this.pageData.eccId != null && this.pageData.eccId != ''){
|
||||
// // this.selectValue02 = this.pageData.eccId;
|
||||
// // }else if(this.pageData.eccId == null || this.pageData.eccId == ''){
|
||||
// this.selectValue02.push(this.selectValueList02[0].value);
|
||||
// // }
|
||||
// } else {
|
||||
// this.selectValueList02 = [];
|
||||
// this.selectValue02 = [];
|
||||
// }
|
||||
let res = await this.postApiReturn({
|
||||
apiKey: 'selectFabCodeList',
|
||||
resKey: 'fabCodeLists',
|
||||
sendParam: {},
|
||||
});
|
||||
if (res.length > 0) {
|
||||
this.selectValueList02 = await res.map(item => {
|
||||
return {
|
||||
text: item.eccNm,
|
||||
value: item.eccId,
|
||||
};
|
||||
});
|
||||
this.selectValueList02.unshift({
|
||||
text: "전체",
|
||||
value: null
|
||||
});
|
||||
// if(this.pageData.eccId != null && this.pageData.eccId != ''){
|
||||
// this.selectValue02 = this.pageData.eccId;
|
||||
// }else if(this.pageData.eccId == null || this.pageData.eccId == ''){
|
||||
this.selectValue02.push(this.selectValueList02[0].value);
|
||||
// }
|
||||
} else {
|
||||
this.selectValueList02 = [];
|
||||
this.selectValue02 = [];
|
||||
}
|
||||
},
|
||||
async getEqpmGrp() {
|
||||
// let res = await this.postApiReturn({
|
||||
// apiKey: 'selectEqpmGrpCodeList',
|
||||
// resKey: 'eqpmGrpCodeLists',
|
||||
// sendParam: { },
|
||||
// });
|
||||
// if (res.length > 0) {
|
||||
// this.selectValueList01 = await res.map(item => {
|
||||
// return {
|
||||
// text: item.eqpmGrpNm,
|
||||
// value: item.eqpmGrpId,
|
||||
// };
|
||||
// });
|
||||
// this.selectValueList01.unshift({
|
||||
// text:"전체",
|
||||
// value:null
|
||||
// });
|
||||
// // if(this.pageData.eqpmGrpId != null && this.pageData.eqpmGrpId != ''){
|
||||
// // this.selectValue02 = this.pageData.eqpmGrpId;
|
||||
// // }else if(this.pageData.eqpmGrpId == null || this.pageData.eqpmGrpId == ''){
|
||||
// this.selectValue01 = this.selectValueList01[0].value;
|
||||
// // }
|
||||
// } else {
|
||||
// this.selectValueList01 = [];
|
||||
// this.selectValue01 = null;
|
||||
// }
|
||||
let res = await this.postApiReturn({
|
||||
apiKey: 'selectEqpmGrpCodeList',
|
||||
resKey: 'eqpmGrpCodeLists',
|
||||
sendParam: {},
|
||||
});
|
||||
if (res.length > 0) {
|
||||
this.selectValueList01 = await res.map(item => {
|
||||
return {
|
||||
text: item.eqpmGrpNm,
|
||||
value: item.eqpmGrpId,
|
||||
};
|
||||
});
|
||||
this.selectValueList01.unshift({
|
||||
text: "전체",
|
||||
value: null
|
||||
});
|
||||
// if(this.pageData.eqpmGrpId != null && this.pageData.eqpmGrpId != ''){
|
||||
// this.selectValue02 = this.pageData.eqpmGrpId;
|
||||
// }else if(this.pageData.eqpmGrpId == null || this.pageData.eqpmGrpId == ''){
|
||||
this.selectValue01 = this.selectValueList01[0].value;
|
||||
// }
|
||||
} else {
|
||||
this.selectValueList01 = [];
|
||||
this.selectValue01 = null;
|
||||
}
|
||||
},
|
||||
gridInit() {
|
||||
// console.log("modalGridParent : ",this.$refs)
|
||||
@ -459,16 +459,16 @@ export default {
|
||||
},
|
||||
async getRowGridData() {
|
||||
this.loadGrid = false;
|
||||
// var res = await this.postApiReturn({
|
||||
// apiKey: 'selectEqpmPop',
|
||||
// resKey: 'eqpmPopData',
|
||||
// sendParam: {
|
||||
// fabId:this.selectValue02,
|
||||
// eqpmGrpId:this.selectValue01,
|
||||
// searchWord:this.searchWord,
|
||||
// eqpmKindId:this.myBindingData.eqpmKindId,
|
||||
// },
|
||||
// });
|
||||
var res = await this.postApiReturn({
|
||||
apiKey: 'selectEqpmPop',
|
||||
resKey: 'eqpmPopData',
|
||||
sendParam: {
|
||||
fabId: this.selectValue02,
|
||||
eqpmGrpId: this.selectValue01,
|
||||
searchWord: this.searchWord,
|
||||
eqpmKindId: this.myBindingData.eqpmKindId,
|
||||
},
|
||||
});
|
||||
// const dayjs = require('dayjs');
|
||||
// var newRes = res.map(item=>
|
||||
// item = {
|
||||
@ -477,33 +477,33 @@ export default {
|
||||
// totDttmTime : Utility.setFormatDate(item.totDttm, 'HH') + "~" + dayjs(item.totDttm).add(1,'h').format('HH')
|
||||
// }
|
||||
// );
|
||||
const res =
|
||||
[
|
||||
{
|
||||
"fabId": "FAB001",
|
||||
"fabNm": "Gumi FAB",
|
||||
"eqpmId": "EQ001",
|
||||
"eqpmNm": "Etcher A12",
|
||||
"eccId": "ECC001",
|
||||
"eccNm": "Etch Control Center"
|
||||
},
|
||||
{
|
||||
"fabId": "FAB002",
|
||||
"fabNm": "Pyeongtaek FAB",
|
||||
"eqpmId": "EQ002",
|
||||
"eqpmNm": "Deposition B34",
|
||||
"eccId": "ECC002",
|
||||
"eccNm": "Deposition Control Center"
|
||||
},
|
||||
{
|
||||
"fabId": "FAB003",
|
||||
"fabNm": "Hwaseong FAB",
|
||||
"eqpmId": "EQ003",
|
||||
"eqpmNm": "CMP C56",
|
||||
"eccId": "ECC003",
|
||||
"eccNm": "CMP Control Center"
|
||||
}
|
||||
];
|
||||
// const res =
|
||||
// [
|
||||
// {
|
||||
// "fabId": "FAB001",
|
||||
// "fabNm": "Gumi FAB",
|
||||
// "eqpmId": "EQ001",
|
||||
// "eqpmNm": "Etcher A12",
|
||||
// "eccId": "ECC001",
|
||||
// "eccNm": "Etch Control Center"
|
||||
// },
|
||||
// {
|
||||
// "fabId": "FAB002",
|
||||
// "fabNm": "Pyeongtaek FAB",
|
||||
// "eqpmId": "EQ002",
|
||||
// "eqpmNm": "Deposition B34",
|
||||
// "eccId": "ECC002",
|
||||
// "eccNm": "Deposition Control Center"
|
||||
// },
|
||||
// {
|
||||
// "fabId": "FAB003",
|
||||
// "fabNm": "Hwaseong FAB",
|
||||
// "eqpmId": "EQ003",
|
||||
// "eqpmNm": "CMP C56",
|
||||
// "eccId": "ECC003",
|
||||
// "eccNm": "CMP Control Center"
|
||||
// }
|
||||
// ];
|
||||
this.setModalGridData({
|
||||
modalKey: this.myModalKey,
|
||||
gridKey: this.gridName,
|
||||
|
Reference in New Issue
Block a user