diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue index b0638a8..3e9c0e7 100644 --- a/src/components/Template/Step.vue +++ b/src/components/Template/Step.vue @@ -12,7 +12,7 @@ -
@@ -83,6 +83,7 @@ import jr from "./StepComponents/ry/jr.vue";//溶液-加热 //表配置 import jrry_b from './StepComponents/b/jrry_b.vue';//表配置-加入溶液 +//表配置-离心:使用溶液离心 import { public_templateStepList } from '@/api/business/public/public'; @@ -259,6 +260,7 @@ export default { //标配配置 'jrry_b': 'jrry_b', + 'lx_b': 'lx', } } return this.componentMap diff --git a/src/components/Template/StepComponents/ry/lx.vue b/src/components/Template/StepComponents/ry/lx.vue index 2253e91..4bb113d 100644 --- a/src/components/Template/StepComponents/ry/lx.vue +++ b/src/components/Template/StepComponents/ry/lx.vue @@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js'; export default { mixins: [stepMixins], + props: { + sn: { + type: String, + default: 'lx', + }, + }, components: { StepFormPackage }, computed: { formConfig() { - return [{ + let config = [{ config: { text1: { label: "使用离心机", @@ -116,12 +122,19 @@ export default { type: "button", buttonName: "开始", }, - text9: { - type: "text", - label: "。", - }, } }] + if(this.sn==='lx_b'){ + config[0].config.remark = { + type: "input", + fillType: "actFill", + } + } + config[0].config.text9 = { + type: "text", + label: "。", + } + return config } }, }