| | |
| | | <el-form-item v-show="shape!=='custom-circle1'" label="节点名称" prop="nodeText" label-width="80px"> |
| | | <el-input v-model="globalGridAttr.nodeText" style="width:100%" @change="onTextChange"></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-show="nodeType=='vote' || (nodeType=='node' && showNumberInput)" label="表决数量" prop="voteNum" |
| | | <el-form-item v-show="showNumberInput" :label='nodeType=="vote"?"表决数量":"备份数量"' prop="voteNum" |
| | | label-width="80px"> |
| | | <el-input type="number" v-model="globalGridAttr.voteNum" @change="onNumberInputValue" |
| | | placeholder="请输入数字"></el-input> |
| | | </el-form-item> |
| | | |
| | | <div v-show="globalGridAttr.productType!=='product_xdy'"> |
| | | <el-form-item v-show="nodeType=='node'" label="可靠性分布类型" prop="reliabDistribType" label-width="125px"> |
| | | <zt-dict style="width: 100%" v-model="globalGridAttr.reliabDistribType" @input="onReliabDistribType" |
| | |
| | | this.curCel.attr('text/text', this.text) |
| | | }, |
| | | onNodeTypeExtChange(e) { |
| | | if (this.globalGridAttr.nodeTypeExt === 'vote') { |
| | | alert(this.globalGridAttr.nodeTypeExt) |
| | | if (this.globalGridAttr.nodeTypeExt === 'vote' || this.globalGridAttr.nodeTypeExt === 'switch') { |
| | | this.showNumberInput = true; |
| | | } else { |
| | | this.showNumberInput = false; |
| | |
| | | this.globalGridAttr.successRate = cell.getData().successRate |
| | | this.globalGridAttr.simulatTimes = cell.getData().simulatTimes |
| | | this.globalGridAttr.successTimes = cell.getData().successTimes |
| | | if (this.nodeType === 'vote' || this.globalGridAttr.nodeTypeExt === 'vote' || (cell.getData().voteNum !== undefined && cell.getData().voteNum !== '')) { |
| | | if (this.nodeType === 'vote' || this.nodeType === 'switch') { |
| | | console.log(cell.getData().voteNum, 'cell.getData().voteNum') |
| | | this.showNumberInput = true |
| | | } |