update code
This commit is contained in:

parent
08637f6321
commit
7e9bd540ed
@ -97,6 +97,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
selectedObjId(val) {
|
||||
console.log(val);
|
||||
if (val === 'TAG') {
|
||||
this.detailList[1].class = 'd-none ';
|
||||
this.detailList[2].class = 'd-block pl-4 mt-2';
|
||||
@ -270,12 +271,14 @@ export default {
|
||||
async getRowData(data, gridName) {
|
||||
if (data.rowStat === 'I') {
|
||||
this.detailList[0].disabled = false;
|
||||
this.detailList[1].disabled = false;
|
||||
this.detailList[2].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[1].disabled = true;
|
||||
this.detailList[2].disabled = true;
|
||||
this.detailList[3].disabled = true;
|
||||
this.detailList[4].disabled = true;
|
||||
@ -294,6 +297,7 @@ export default {
|
||||
case 'add':
|
||||
this.$refs[this.gridName].addRow();
|
||||
this.detailList[0].disabled = false;
|
||||
this.detailList[1].disabled = false;
|
||||
this.detailList[2].disabled = false;
|
||||
this.detailList[3].disabled = false;
|
||||
this.detailList[4].disabled = false;
|
||||
@ -376,7 +380,6 @@ const myDetail = [
|
||||
{
|
||||
type: 'SelectBox',
|
||||
label: '대상 유형',
|
||||
disabled: false,
|
||||
cols: 6,
|
||||
class: 'pr-4 py-2 mt-1',
|
||||
list: 'emMapDivList',
|
||||
@ -392,6 +395,7 @@ const myDetail = [
|
||||
{
|
||||
type: 'ReadPlcPop',
|
||||
label: '대상 항목',
|
||||
modalTitle:'대상 항목',
|
||||
valueNm: 'objId',
|
||||
disabled: true,
|
||||
cols: 6,
|
||||
@ -400,8 +404,7 @@ const myDetail = [
|
||||
bindNm: 'objNm',
|
||||
labelCols: 12,
|
||||
textCols: 12,
|
||||
iconShow: true,
|
||||
noText: true,
|
||||
disableContent: true,
|
||||
iconShow: true,
|
||||
},
|
||||
{
|
||||
@ -480,6 +483,7 @@ const myDetail = [
|
||||
disabledFg: 'objKind',
|
||||
labelCols: 12,
|
||||
textCols: 12,
|
||||
iconShow: true,
|
||||
},
|
||||
{
|
||||
type: 'InputText',
|
||||
|
Reference in New Issue
Block a user