update code

This commit is contained in:
Nguyen Van Luan/(Nguyen Van Luan)/현장대리인/SK
2025-08-12 12:58:41 +09:00
parent dd24592eca
commit 31413d1e48
13 changed files with 93 additions and 96 deletions

View File

@ -4,7 +4,7 @@
class="d-flex justify-space-between align-center"
style="height: 80px;"
>
<span class="txt custom-title-4-new">공정 추가 정보</span>
<span class="txt custom-subtitle-tab">공정 추가 정보</span>
<Buttons
:parentPrgmId="parentPrgmId"
:bindingData="gridName"

View File

@ -11,7 +11,7 @@
:btnActionsFnc="btnActions"
/>
</div>
<div ref="gridParent" style="height: calc(100vh - 700px);">
<div ref="gridParent" style="height: calc(90vh - 700px);">
<component
:ref="gridName"
:is="loadGrid ? 'Grid' : null"
@ -21,7 +21,7 @@
:innerTabGridInfo="innerTabGridInfo"
/>
</div>
<div style="height: 60vh;" class="mt-5">
<div style="height: 25vh;" class="mt-5">
<component
:is="'Form'"
:bindingData="gridName"
@ -98,17 +98,19 @@ export default {
watch: {
selectedObjId(val) {
if (val === 'TAG') {
this.detailList[2].class = 'py-2 d-none';
this.detailList[3].class = 'py-2 d-none';
this.detailList[4].class = 'py-2';
this.detailList[5].class = 'py-2';
this.detailList[1].class = 'd-none';
this.detailList[2].class = 'd-block pl-4';
this.detailList[3].class = 'd-block';
} else {
// }else if(val==="READ_PLC"){
this.detailList[5].class = 'py-2 d-none';
this.detailList[4].class = 'py-2 d-none';
this.detailList[3].class = 'py-2';
this.detailList[2].class = 'py-2';
this.detailList[3].class = 'd-block';
this.detailList[2].class = 'd-none';
this.detailList[1].class = 'd-block pl-4';
}
this.detailList[4].class = 'pl-4 mt-2';
console.log(val)
console.log(this.detailList)
},
},
created() {},
@ -188,6 +190,7 @@ export default {
{ header: '대상 명', name: 'objNm', width: 300, align: 'left' },
{
header: '에너지원 명',
width: 150,
name: 'ercId',
align: 'left',
formatter({ value }) {
@ -204,8 +207,9 @@ export default {
},
{
header: '대상 유형',
width: 150,
name: 'objKind',
align: 'center',
align: 'left',
formatter({ value }) {
var retVal = '';
@ -221,7 +225,8 @@ export default {
{
header: '투입 생산 유형',
name: 'inProdKind',
align: 'center',
width: 150,
align: 'left',
formatter({ value }) {
var retVal = '';
@ -237,7 +242,8 @@ export default {
{
header: '계산 여부',
name: 'calcFg',
align: 'center',
width: 150,
align: 'left',
formatter({ value }) {
value = value === true ? '1' : '0';
const newValue = _this.pageData.useFgList.filter(
@ -247,7 +253,7 @@ export default {
// return value === true ? "사용" : "사용안함";
},
},
{ header: '분배율(1~100)', name: 'distRt', align: 'right' },
{ header: '분배율(1~100)', name: 'distRt', align: 'right', width: 150 },
{ header: '사업장', name: 'blocId', align: 'center', hidden: true },
{ header: '등록 사용자', name: 'regUserNo', hidden: true },
{ header: '등록 일자', name: 'regDttm', hidden: true },
@ -374,7 +380,7 @@ const myDetail = [
label: '대상 유형',
disabled: false,
cols: 6,
class: 'py-2 pr-4',
class: 'pr-4',
list: 'emMapDivList',
valueNm: 'objKind',
itemText: 'commCdNm',
@ -391,7 +397,7 @@ const myDetail = [
valueNm: 'objId',
disabled: false,
cols: 6,
class: 'pt-2 pb-0 mb-0 pl-4',
class: 'pl-4 py-2',
required: true,
bindNm: 'objNm',
labelCols: 12,
@ -400,24 +406,6 @@ const myDetail = [
noText: true,
iconShow: true,
},
{
// 공백 처리
type: 'Label',
cols: 6,
class: 'py-2 pr-4',
disabled: false,
},
{
type: 'InputText',
valueNm: 'objNm',
readonly: true,
disabled: true,
cols: 6,
class: 'pl-4',
labelCols: 12,
textCols: 12,
iconShow: true,
},
{
type: 'EvtObjPop',
labelContent: '대상 항목',
@ -428,16 +416,23 @@ const myDetail = [
disabled: true,
required: true,
cols: 6,
class: 'd-none pr-4',
class: 'd-none pr-4 py-2',
disableContent: true,
labelCols: 12,
textCols: 12,
iconShow: true,
},
{
// 공백 처리
type: 'Label',
cols: 6,
class: 'py-2 pr-4',
disabled: false,
},
{
type: 'InputText',
cols: 6,
class: 'd-none pt-0 pl-4',
class: 'pt-0 pl-4 mt-2 py-2',
valueNm: 'objNm',
readonly: true,
disabled: true,
@ -450,7 +445,7 @@ const myDetail = [
label: '에너지원',
disabled: false,
cols: 6,
class: 'py-2 pr-4',
class: 'py-2 pr-4 mt-2',
list: 'ercNmList',
valueNm: 'ercId',
itemText: 'text',
@ -465,7 +460,7 @@ const myDetail = [
label: '투입생산유형',
disabled: false,
cols: 6,
class: 'py-2 pl-4',
class: 'py-2 pl-4 mt-2',
list: 'cmInoutList',
valueNm: 'inProdKind',
itemText: 'commCdNm',
@ -478,7 +473,7 @@ const myDetail = [
{
type: 'CheckBox',
cols: 6,
class: 'py-2 pr-4',
class: 'py-2 pr-4 mt-2',
label: '계산 여부',
valueNm: 'calcFg',
disabled: false,
@ -495,7 +490,7 @@ const myDetail = [
valueNm: 'distRt',
readonly: false,
cols: 6,
class: 'py-2 pl-4',
class: 'py-2 pl-4 mt-2',
required: true,
labelCols: 12,
textCols: 12,