Browse Source

年度指标

master
songguoqiang 10 months ago
parent
commit
87c36acaff
  1. 17
      src/views/eam/basic/basciYearEquipment/index.vue

17
src/views/eam/basic/basciYearEquipment/index.vue

@ -38,10 +38,10 @@
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, row)" />
</template>
<template #goal="{ row }">
<span>{{ row.goal+"%" }}</span>
<span>{{ row.type=='0'?row.goal+"%":row.goal }}</span>
</template>
<template #actual="{ row }">
<span>{{ row.goal==null?"":row.goal+"%" }}</span>
<span>{{ row.actual==null||row.actual==""||row.type!='0'?row.actual:row.actual+"%" }}</span>
</template>
</Table>
</ContentWrap>
@ -170,12 +170,13 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if (type == 'update') {
console.log("123",BasciYearEquipment.allSchemas.formSchema);
BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = true//
// BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factory_type').componentProps.disabled = true//
//BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'year_index').componentProps.disabled = true//
}
// if (type == 'update') {
// BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = true//
// // BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factory_type').componentProps.disabled = true//
// //BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'year_index').componentProps.disabled = true//
// }else{
// BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = false//
// }
basicFormRef.value.open(type, row)
}

Loading…
Cancel
Save