init upload
This commit is contained in:
parent
d1dd52fe90
commit
00343fa5b9
@ -45,7 +45,8 @@
|
|||||||
<!-- extra components , like Markdown or RichEdit -->
|
<!-- extra components , like Markdown or RichEdit -->
|
||||||
<template v-if="configs.extraComponents && configs.extraComponents.length > 0">
|
<template v-if="configs.extraComponents && configs.extraComponents.length > 0">
|
||||||
<el-form-item v-for="ec in configs.extraComponents" :key="ec.name" :label="ec.label">
|
<el-form-item v-for="ec in configs.extraComponents" :key="ec.name" :label="ec.label">
|
||||||
<component :is="ec.component" v-model="dataForm[ec.name]"></component>
|
<!-- <component :is="ec.component" v-model="dataForm[ec.name]"></component> -->
|
||||||
|
<component :is="ec.component" v-bind="ec.props" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
9
src/components/base-upload/index.vue
Normal file
9
src/components/base-upload/index.vue
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<div class="base-upload"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
@ -79,7 +79,15 @@ const addOrUpdateConfigs = {
|
|||||||
{ name: 'save', url: '/monitoring/equipmentType', permission: '', showOnEdit: false },
|
{ name: 'save', url: '/monitoring/equipmentType', permission: '', showOnEdit: false },
|
||||||
{ name: 'update', url: '/monitoring/equipmentType', permission: '', showOnEdit: true }
|
{ name: 'update', url: '/monitoring/equipmentType', permission: '', showOnEdit: true }
|
||||||
],
|
],
|
||||||
extraComponents: null
|
extraComponents: [
|
||||||
|
{
|
||||||
|
name: 'file-upload-key',
|
||||||
|
label: '上传资料',
|
||||||
|
component: null,
|
||||||
|
props: { // 上传组件需要的 props
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
Reference in New Issue
Block a user