Browse Source

feat: [步骤管理] 表配置离心-使用溶液离心

lkf
memorylkf 1 month ago
parent
commit
048eddbbe5
2 changed files with 21 additions and 6 deletions
  1. +3
    -1
      src/components/Template/Step.vue
  2. +18
    -5
      src/components/Template/StepComponents/ry/lx.vue

+ 3
- 1
src/components/Template/Step.vue View File

@ -12,7 +12,7 @@
<!-- 根据步骤类型显示对应的表单 -->
<!-- 根据步骤类型显示对应的表单 -->
<component class="flex1" :is="getStepComponent(step.type)" :formData="step.formData"
<component class="flex1" :sn="step.type" :is="getStepComponent(step.type)" :formData="step.formData"
@update="onFormUpdate(index, $event)" :ref="'stepCompRef_' + index">
</component>
<div v-if="templateFillType === 'preFill'" class="step-header-item">
@ -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

+ 18
- 5
src/components/Template/StepComponents/ry/lx.vue View File

@ -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
}
},
}

Loading…
Cancel
Save