fixbug screen 20
This commit is contained in:

parent
a85f9f98f6
commit
a6e8e6cf86
@ -358,7 +358,6 @@ const myEqpmConstDetail = [
|
||||
{
|
||||
type: 'SelectBox',
|
||||
label: '대상 유형',
|
||||
disabled: true,
|
||||
cols: 6,
|
||||
class: 'py-3 pr-4',
|
||||
list: 'emMapDivList2',
|
||||
|
@ -18,7 +18,7 @@
|
||||
:innerTabGridInfo="innerTabGridInfo"
|
||||
/>
|
||||
</div>
|
||||
<div style="min-height: calc(100vh - 900px);">
|
||||
<div style="min-height: calc(100vh - 900px);" class="mt-4">
|
||||
<component
|
||||
:is="'Form'"
|
||||
:parentPrgmId="parentPrgmId"
|
||||
@ -108,18 +108,24 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
selectedObjId(val) {
|
||||
// console.log('selectedObjId : ', val);
|
||||
if (val === 'TAG') {
|
||||
// this.detailList[1].class = 'py-3 pl-4 pb-0';
|
||||
this.detailList[1].class = 'py-3 d-none';
|
||||
this.detailList[2].class = 'py-3 d-none';
|
||||
this.detailList[3].class = 'py-3 pl-4 pt-1 d-none';
|
||||
|
||||
this.detailList[4].class = 'py-3';
|
||||
this.detailList[5].class = 'py-3';
|
||||
this.detailList[6].class = 'py-3 pl-4 pt-0';
|
||||
} else {
|
||||
// }else if(val==="READ_PLC"){
|
||||
this.detailList[5].class = 'py-3 d-none';
|
||||
this.detailList[4].class = 'py-3 d-none';
|
||||
this.detailList[3].class = 'py-3 pl-4 pt-1';
|
||||
this.detailList[1].class = 'py-3 pl-4';
|
||||
this.detailList[2].class = 'py-3';
|
||||
this.detailList[3].class = 'py-3 pl-4 pt-0';
|
||||
|
||||
this.detailList[4].class = 'py-3 d-none';
|
||||
this.detailList[5].class = 'py-3 d-none';
|
||||
this.detailList[6].class = 'py-3 d-none';
|
||||
}
|
||||
},
|
||||
selectedCalcFg(val) {
|
||||
@ -280,15 +286,16 @@ export default {
|
||||
this.loadGrid = true;
|
||||
},
|
||||
async getRowData(data, gridName) {
|
||||
console.log("--------------------DEBUG-----getRowData---------------", {data, gridName});
|
||||
if (data.rowStat === 'I') {
|
||||
this.detailList[0].disabled = false;
|
||||
this.detailList[2].disabled = false;
|
||||
this.detailList[1].disabled = false;
|
||||
this.detailList[3].disabled = false;
|
||||
this.detailList[4].disabled = false;
|
||||
this.detailList[5].disabled = false;
|
||||
} else {
|
||||
this.detailList[0].disabled = true;
|
||||
this.detailList[2].disabled = true;
|
||||
this.detailList[1].disabled = true;
|
||||
this.detailList[3].disabled = true;
|
||||
this.detailList[4].disabled = true;
|
||||
this.detailList[5].disabled = true;
|
||||
@ -306,7 +313,7 @@ export default {
|
||||
case 'add':
|
||||
this.$refs[this.gridName].addRow();
|
||||
this.detailList[0].disabled = false;
|
||||
this.detailList[2].disabled = false;
|
||||
this.detailList[1].disabled = false;
|
||||
this.detailList[3].disabled = false;
|
||||
this.detailList[4].disabled = false;
|
||||
this.detailList[5].disabled = false;
|
||||
@ -315,7 +322,7 @@ export default {
|
||||
case 'remove':
|
||||
this.$refs[this.gridName].removeRow();
|
||||
this.detailList[0].disabled = true;
|
||||
this.detailList[2].disabled = true;
|
||||
this.detailList[1].disabled = true;
|
||||
this.detailList[3].disabled = true;
|
||||
this.detailList[4].disabled = true;
|
||||
this.detailList[5].disabled = true;
|
||||
@ -436,10 +443,10 @@ const myEqpmIaoDetail = [
|
||||
type: 'ReadPlcPop',
|
||||
label: '대상 항목',
|
||||
valueNm: 'objId',
|
||||
disabled: true,
|
||||
cols: 6,
|
||||
class: 'py-3 pl-4',
|
||||
class: 'py-3 pl-4 pb-0',
|
||||
required: true,
|
||||
disabled: true,
|
||||
bindNm: 'objNm',
|
||||
textCols: 12,
|
||||
labelCols: 12,
|
||||
@ -460,11 +467,12 @@ const myEqpmIaoDetail = [
|
||||
readonly: true,
|
||||
disabled: true,
|
||||
cols: 6,
|
||||
class: 'py-3 pl-4 pt-1',
|
||||
class: 'py-3 pl-4 pt-0',
|
||||
textCols: 12,
|
||||
labelCols: 12,
|
||||
iconShow: true
|
||||
},
|
||||
// ============
|
||||
{
|
||||
type: 'EvtObjPop',
|
||||
labelContent: '대상 항목',
|
||||
@ -474,16 +482,24 @@ const myEqpmIaoDetail = [
|
||||
disabled: true,
|
||||
required: true,
|
||||
cols: 6,
|
||||
class: 'py-3 d-none',
|
||||
class: 'py-3 pl-4 d-none',
|
||||
disableContent: true,
|
||||
textCols: 12,
|
||||
labelCols: 12,
|
||||
iconShow: true
|
||||
},
|
||||
{
|
||||
type: 'InputText',
|
||||
type: 'Label',
|
||||
cols: 6,
|
||||
class: 'py-3 d-none',
|
||||
disabled: true,
|
||||
textCols: 12,
|
||||
labelCols: 12,
|
||||
},
|
||||
{
|
||||
type: 'InputText',
|
||||
cols: 6,
|
||||
class: 'py-3 pl-4 d-none',
|
||||
valueNm: 'objNm',
|
||||
readonly: true,
|
||||
disabled: true,
|
||||
@ -491,6 +507,7 @@ const myEqpmIaoDetail = [
|
||||
labelCols: 12,
|
||||
iconShow: true
|
||||
},
|
||||
// --------------------------------------------
|
||||
{
|
||||
type: 'SelectBox',
|
||||
label: '에너지원',
|
||||
|
Reference in New Issue
Block a user