| | |
| | | ></rich-text> |
| | | </div> |
| | | </el-tab-pane> |
| | | <el-tab-pane v-if="dataForm.id!=null" label="工序参数" style="height: 100%;display: flex;"> |
| | | <el-card class="params-template" style="width:70%"> |
| | | <el-tab-pane v-if="dataForm.id!=null" label="工序参数" style="height: 100%;"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="9"> |
| | | <el-card class="params-template"> |
| | | <div slot="header"> |
| | | <span>参数集</span> |
| | | <el-button |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | <el-card class="template-param" style="margin-left: 10px;"> |
| | | </el-col> |
| | | <el-col :span="15"> |
| | | <el-card class="template-param"> |
| | | <div slot="header"> |
| | | <span>参数</span> |
| | | <div style="float: right;"> |
| | |
| | | ></component> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | |
| | | }, |
| | | // 参数集模板点击事件 |
| | | templateRowClick(row) { |
| | | |
| | | if(this.isShowTree){ |
| | | this.isShowTree=false |
| | | }else{ |
| | |
| | | this.$message.success('添加成功') |
| | | // 选中最后一个模板 |
| | | this.selectTempalteByIndex(this.operationTemplateList.length - 1) |
| | | this.getRoutingTemplate(this.routingOperationId) |
| | | } else { |
| | | this.$message.error('添加失败') |
| | | } |
| | |
| | | } else { |
| | | this.$message.error('添加失败') |
| | | } |
| | | this.templateRowClick({id: this.routingTemplateId}) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | } |
| | | |
| | | .params-template { |
| | | float: left; |
| | | background-color: #fff; |
| | | width: 40%; |
| | | height: 687px; |
| | | padding: 10px 0px; |
| | | border: 1px solid #ddd; |
| | | } |
| | | |
| | | .template-param { |
| | | float: right; |
| | | background-color: #fff; |
| | | width: calc(60% - 10px); |
| | | height: 687px; |
| | | padding: 10px 0px; |
| | | border: 1px solid #ddd; |