项目 表单设置 添加 插槽

feature-JimuReport-1106-yjl
张同海 4 weeks ago
parent fe9ceb5bf5
commit 0f61f5439b

@ -18,7 +18,7 @@
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { FormSchema } from '/@/components/Table'
//
import { editCodeGoodsType } from '/@/views/baseinfo/formset/api'
@ -56,7 +56,7 @@
name: {
type: String,
default: '',
}
},
},
setup(props, context) {
const { t } = useI18n()
@ -74,6 +74,7 @@
required: item.required || false,
colProps: item.colProps || { span: 24 },
component: item.component,
slot: item.slot,
}
//
if (item.show !== false) {
@ -95,12 +96,11 @@
columns: columns,
}),
}
editCodeGoodsType(Apidata)
.then((res) => {
if (res.succeeded) {
createMessage.success('添加成功!')
}
})
editCodeGoodsType(Apidata).then((res) => {
if (res.succeeded) {
createMessage.success('添加成功!')
}
})
}
return {
t,

@ -165,11 +165,12 @@
>
</div>
</template>
<!-- <template #description="item">
</template> -->
<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
@change="
(e) => {

Loading…
Cancel
Save