付费申请

szh-new
lijingjia 2 months ago
parent d5ca1b271d
commit fd85ed1ca9

@ -11,8 +11,9 @@
<Row v-bind="getRow" :gutter="15" style="position: relative">
<slot name="formHeader"></slot>
<template v-for="schema in getSchema" :key="schema.field">
{{ schema }}
<FormItem
v-if="!getProps.readonly"
v-if="schema.isEdit != 1"
:is-advanced="fieldsIsAdvancedMap[schema.field]"
:table-action="tableAction"
:form-action-type="formActionType"

@ -5,7 +5,10 @@
-->
<template>
<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>
</template>
@ -65,10 +68,36 @@
console.log(colValue)
const [state] = useRuleFormItem(props, 'value', 'change')
console.log(state.value)
//
const editFormItem = () => {
props.formActionType.updateSchema({
field: props.schema.field,
isEdit: 2
})
}
return {
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>
Loading…
Cancel
Save