Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
b75f226b4b
3 changed files with 8 additions and 11 deletions
  1. +1
    -2
      src/components/Template/CustomTable.vue
  2. +6
    -2
      src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue
  3. +1
    -7
      src/views/business/comps/template/formConfig/paralleAndLadderConfig.js

+ 1
- 2
src/components/Template/CustomTable.vue View File

@ -201,7 +201,6 @@ export default {
formData: {
immediate: true,
handler(newData) {
console.log(newData, "newData")
const { stepTableFormData = [], headerSelectFields = {} } = newData;
this.updateDataSource(stepTableFormData);
this.headerSelectFields = JSON.parse(JSON.stringify(headerSelectFields))
@ -243,7 +242,7 @@ export default {
isShowBodySub(col,row) {
if (col.hasOwnProperty("disabled")) {
return col.showBodySub
}else if(col.bodySubType === 'span'&&row[col.bodySubKey]){//span
}else if(col.bodySubType === 'span'&&!row[col.bodySubKey]){//span
return false;
}
return col.bodySubType && col.bodySubKey;

+ 6
- 2
src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue View File

@ -41,7 +41,7 @@
</template>
</CustomTable>
<Step class="mt-0" :ref="`ladderStepRef_${ladderIndex}`"
<Step class="mt-0 s-container" :ref="`ladderStepRef_${ladderIndex}`"
:formData="ladderConfig.ladderStepData" fieldItemLabel="阶梯配制"
:prefixKey="'ladder_' + ladderIndex"></Step>
</div>
@ -72,7 +72,7 @@
</template>
</CustomTable>
<Step class="mt-0" :ref="`paralleStepRef_${paralleIndex}`"
<Step class="mt-0 s-container" :ref="`paralleStepRef_${paralleIndex}`"
:formData="paralleConfig.paralleStepData" fieldItemLabel="平行配制"
:prefixKey="'paralle' + paralleIndex"></Step>
</div>
@ -418,4 +418,8 @@ export default {
.mt-0 {
margin-top: 0;
}
.s-container{
box-shadow: none !important;
padding:24px 0 !important;
}
</style>

+ 1
- 7
src/views/business/comps/template/formConfig/paralleAndLadderConfig.js View File

@ -150,16 +150,10 @@ export const getParallelColumnsConfig = ($this) => {
label: '目标溶液编号',
prop: 'targetSolutionCode',
bodyType: 'select',
bodyOptions: [
{label: '目标溶液1',value:'目标溶液1'},
{label: '目标溶液2',value:'目标溶液2'},
{label: '其他',value:-1},
],
bodyOptions: $this.getDictOptions('business_sp_nbgzy'),
subType: 'span',
subKey: 'subTargetSolutionCode',
bodyFillType: 'preFill',
otherCode: 'targetSolutionCodeOther',
width: 280
},
{

Loading…
Cancel
Save