| | |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | <el-table :data="paramData" class="l-mes" height="600"> |
| | | <!-- <paramMergeTemplate |
| | | :tableData="paramData" |
| | | :page="{}" |
| | | > |
| | | </paramMergeTemplate> --> |
| | | <component |
| | | :is="paramMergeTemplate" |
| | | :tableData="paramData" |
| | | :routingTemplateId="routingTemplateId" |
| | | ></component> |
| | | <!-- <el-table :data="paramData" class="l-mes" height="600"> |
| | | <el-table-column |
| | | label="参数项" |
| | | prop="parameterItem" |
| | |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-table> --> |
| | | </el-card> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | import ElRow from 'element-ui/packages/row/src/row' |
| | | import ElCol from 'element-ui/packages/col/src/col' |
| | | import { getOperationParam } from '../../../api/basic/template' |
| | | import paramMergeTemplate from '../../common/param-mergeTemplate.vue' |
| | | import zttdraggable from 'vuedraggable' |
| | | |
| | | const capabilityArray = [ |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | paramMergeTemplate: '', |
| | | itemKey: '', |
| | | typeOptions: [], |
| | | paramTemplateSelArr: [], |
| | |
| | | operationPartDialog, |
| | | RichText, |
| | | editRoutingOperation, |
| | | zttdraggable |
| | | zttdraggable, |
| | | paramMergeTemplate |
| | | }, |
| | | mounted() { |
| | | window.addEventListener( |
| | |
| | | ).then((response) => { |
| | | if (response.data.data.length > 0) { |
| | | this.paramData = response.data.data |
| | | this.paramMergeTemplate = 'paramMergeTemplate' |
| | | } else { |
| | | this.paramData = [] |
| | | } |
| | |
| | | }, |
| | | // 保存所有参数的修改 |
| | | saveAllParamChange() { |
| | | const paramJson = { routingOperationParam: this.paramData } |
| | | let data = [] |
| | | this.paramData.forEach(ele=>{ |
| | | let o = { |
| | | id: null, |
| | | paramValue: ele.paramValue |
| | | } |
| | | if(ele.threeId && ele.threeId != 'null'){ |
| | | o.id = ele.threeId |
| | | }else{ |
| | | if(ele.twoId && ele.twoId != 'null'){ |
| | | o.id = ele.twoId |
| | | }else{ |
| | | o.id = ele.oneId |
| | | } |
| | | } |
| | | data.push(o) |
| | | }) |
| | | const paramJson = { routingOperationParam: data } |
| | | putRoutingTemplateParam(paramJson).then((response) => { |
| | | const data = response.data |
| | | if (data.code == 0) { |