项目 表单设置 添加 插槽

feature-JimuReport-1106-yjl
张同海 1 month ago
parent fe9ceb5bf5
commit 0f61f5439b

@ -56,7 +56,7 @@
name: { name: {
type: String, type: String,
default: '', default: '',
} },
}, },
setup(props, context) { setup(props, context) {
const { t } = useI18n() const { t } = useI18n()
@ -74,6 +74,7 @@
required: item.required || false, required: item.required || false,
colProps: item.colProps || { span: 24 }, colProps: item.colProps || { span: 24 },
component: item.component, component: item.component,
slot: item.slot,
} }
// //
if (item.show !== false) { if (item.show !== false) {
@ -95,12 +96,11 @@
columns: columns, columns: columns,
}), }),
} }
editCodeGoodsType(Apidata) editCodeGoodsType(Apidata).then((res) => {
.then((res) => { if (res.succeeded) {
if (res.succeeded) { createMessage.success('添加成功!')
createMessage.success('添加成功!') }
} })
})
} }
return { return {
t, t,

@ -165,11 +165,12 @@
> >
</div> </div>
</template> </template>
<!-- <template #description="item">
</template> -->
<template #description="{ model, values }"> <template #description="{ model, values }">
<span class="iconfont icon-fuzhi11" @click="copyTxt(values, 'description')"></span> <span
v-show="values.description"
class="iconfont icon-fuzhi11"
@click="copyTxt(values, 'description')"
></span>
<a-input <a-input
@change=" @change="
(e) => { (e) => {

Loading…
Cancel
Save