|
|
|
@ -11,6 +11,7 @@ import { |
|
|
|
import validate from '@/api/DesignForm/validate' |
|
|
|
import { FormItem, FormList } from '@/api/DesignForm/types' |
|
|
|
import Tooltips from '@/components/DesignForm/tooltip.vue' |
|
|
|
import { AnalysisCss,AnalysisInputCss } from '@/components/DesignForm/public/form/calculate/cssInfo' |
|
|
|
import { nodePoweInfo,powerAryInfo } from "@/api/taskapi/types"; |
|
|
|
const props = withDefaults( |
|
|
|
defineProps<{ |
|
|
|
@ -157,6 +158,17 @@ const openUrl = () => { |
|
|
|
onMounted(() => { |
|
|
|
// console.log("编码组件-url--》",props.data) |
|
|
|
}) |
|
|
|
|
|
|
|
const getFormItemLableStyle = (ele: any) => { |
|
|
|
if(ele?.labelStyle){ |
|
|
|
// console.log("返回栅格宽度3",AnalysisCss(ele?.labelStyle)) |
|
|
|
return AnalysisCss(ele?.labelStyle) |
|
|
|
} |
|
|
|
} |
|
|
|
//组件css部分 |
|
|
|
const configStyle = computed(() => { |
|
|
|
return props.data.styles || {} |
|
|
|
}) |
|
|
|
const allNodePwoer = inject('flowNodePower') as any |
|
|
|
const currentNodePowerKey = inject('currentNodeKey') as any |
|
|
|
|
|
|
|
@ -227,7 +239,8 @@ const judgeIsEdit = (key: string) => { |
|
|
|
v-if="judgeIsShow(data.name)" |
|
|
|
> |
|
|
|
<template v-if="config.help" #label > |
|
|
|
{{ getLabel(data.item) }} |
|
|
|
<span :style="getFormItemLableStyle(configStyle)">{{ getLabel(data.item) }}</span> |
|
|
|
|
|
|
|
<Tooltips :content="config.help" /> |
|
|
|
</template> |
|
|
|
<div v-if="type === 4" class="form-value" v-html="value"></div> |
|
|
|
@ -242,7 +255,11 @@ const judgeIsEdit = (key: string) => { |
|
|
|
<template #append><el-button type="warning" @click="openUrl">访问</el-button></template> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</template> |
|
|
|
<style lang='scss' scoped> |
|
|
|
|
|
|
|
|