| | |
| | | <el-switch :disabled="!scope.row.status" size="small" v-model="scope.row[item.prop]" |
| | | v-else-if="item.type === 'boolean'" /> |
| | | <el-input size="small" v-model="scope.row[item.prop]" placeholder="" v-else-if="scope.row.status" |
| | | :disabled="(item.prop == 'dpLabel' && 'Other' !== scope.row.dpCategory)"></el-input> |
| | | :disabled="(['dpLabel', 'dpName'].includes(item.prop) && 'Other' !== scope.row.dpCategory)"></el-input> |
| | | <span v-else>{{ scope.row[item.prop] }}</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | value: 'Alarm' |
| | | }].find(v => v.value === e).label |
| | | this.tabledata[index].dpLabel = label |
| | | this.tabledata[index].dpName = e |
| | | } else if (prop === 'dpCategory' && e === 'Other') { |
| | | this.tabledata[index].dpLabel = '' |
| | | this.tabledata[index].dpName = '' |
| | | } |
| | | }, |
| | | changeType(val) { |