style: lint格式化文件
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
:opinionsComponents="data.opinionsComponents"
|
||||
@get-form-configs="(config) => (formConfigs = config)"
|
||||
/>
|
||||
<component v-else-if="data" :is="componentName" :formData="data" :flowData="flowData"/>
|
||||
<component v-else-if="data" :is="componentName" :formData="data" :flowData="flowData" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -26,28 +26,21 @@
|
||||
// 流程编码
|
||||
// 'exchange_opinion',
|
||||
// 'audit_programme'
|
||||
]
|
||||
];
|
||||
const selfFormMap = {
|
||||
// 流程编码对应文件路径
|
||||
// 'exchange_opinion': 'auditOperationsCenter/exchangeViews/index.vue',
|
||||
// 'audit_programme': 'auditOperationsCenter/preAuditProgramme/index.vue'
|
||||
|
||||
}
|
||||
};
|
||||
const isSelfForm = computed(() => {
|
||||
return selfFormList.includes(props.data.item.code)
|
||||
})
|
||||
return selfFormList.includes(props.data.item.code);
|
||||
});
|
||||
|
||||
const componentName = computed(() => {
|
||||
return defineAsyncComponent({
|
||||
loader: () =>
|
||||
import(
|
||||
`../${selfFormMap[props.data.item.code]}`
|
||||
|
||||
),
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
loader: () => import(`../${selfFormMap[props.data.item.code]}`)
|
||||
});
|
||||
});
|
||||
|
||||
const readonly = ref(true); // 查看流程会触发只读模式
|
||||
const renderKey = ref('');
|
||||
@ -62,21 +55,17 @@
|
||||
type: Object,
|
||||
default: () => null
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
})
|
||||
onMounted(async () => {});
|
||||
|
||||
defineExpose({});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.flow-page {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.flow-page {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user