|
|
@ -5,7 +5,10 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<a-col :span="colSpan" v-if="schema.show !== false">
|
|
|
|
<a-col :span="colSpan" v-if="schema.show !== false">
|
|
|
|
<div>{{ schema.label }}: {{ formModel[schema.field] || '-' }}</div>
|
|
|
|
<div class="ds-form-onlyread">
|
|
|
|
|
|
|
|
<span class="label">{{ schema.label }}:</span> {{ formModel[schema.field] || '-' }}
|
|
|
|
|
|
|
|
<span class="iconfont icon-bianji1" @click="editFormItem"></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -65,10 +68,36 @@
|
|
|
|
console.log(colValue)
|
|
|
|
console.log(colValue)
|
|
|
|
const [state] = useRuleFormItem(props, 'value', 'change')
|
|
|
|
const [state] = useRuleFormItem(props, 'value', 'change')
|
|
|
|
console.log(state.value)
|
|
|
|
console.log(state.value)
|
|
|
|
|
|
|
|
// 触发编辑框
|
|
|
|
|
|
|
|
const editFormItem = () => {
|
|
|
|
|
|
|
|
props.formActionType.updateSchema({
|
|
|
|
|
|
|
|
field: props.schema.field,
|
|
|
|
|
|
|
|
isEdit: 2
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
colSpan,
|
|
|
|
colSpan,
|
|
|
|
colValue
|
|
|
|
colValue,
|
|
|
|
|
|
|
|
editFormItem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
|
|
|
|
.ds-form-onlyread {
|
|
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
.label {
|
|
|
|
|
|
|
|
color: #7A8798;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-bianji1 {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.ds-form-onlyread:hover {
|
|
|
|
|
|
|
|
.icon-bianji1 {
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|