no message

This commit is contained in:
小陌 2023-06-20 23:44:48 +08:00
parent 2e0caf02ac
commit d83613d9f8
5 changed files with 11 additions and 11 deletions

View File

@ -9,7 +9,6 @@
<template>
<el-skeleton v-if="renderLoading || Object.keys(form).length==0" animated />
<el-form v-else ref="form" :model="form" :label-width="config.labelWidth" :label-position="config.labelPosition" v-loading="loading" element-loading-text="Loading...">
<el-row :gutter="15">
<template v-for="(item, index) in config.formItems" :key="index">
@ -47,7 +46,7 @@
</template>
<!-- upload -->
<template v-else-if="item.component=='upload'">
<sc-upload v-model="form[item.name]" :width="item.options.width || 100" :height="item.options.height || 100"></sc-upload>
<sc-upload v-model="form[item.name]" :cropper="item.options.cropper || false" :compress="1" :aspectRatio="item.options.aspectRatio || 1/1" :width="item.options.width || 148" :height="item.options.height || 148"></sc-upload>
</template>
<!-- switch -->
<template v-else-if="item.component=='switch'">

View File

@ -6,8 +6,11 @@
<template v-for="(item, index) in column" :key="index">
<el-table-column v-if="!item.hide && item.name" :column-key="item.name" :label="item.label" :prop="item.name" :width="item.width || 150" :sortable="item.sortable" :fixed="item.fixed" :filters="item.filters" :filter-method="remoteFilter||!item.filters?null:filterHandler" :show-overflow-tooltip="item.showOverflowTooltip">
<template #default="scope">
<slot :name="item.name" v-bind="scope">
<el-avatar v-if="item.columntype=='avatar'" :src="scope.row[item.name]" size="small"></el-avatar>
<slot v-else :name="item.name" v-bind="scope">
{{scope.row[item.name]}}
{{ item.slot }}
</slot>
</template>
</el-table-column>

View File

@ -21,7 +21,8 @@
--el-color-primary-dark-8: #0c1f32;
--el-color-primary-dark-9: #060f19;
--el-menu-base-level-padding: 15px;
--el-menu-icon-width: 20px
--el-menu-icon-width: 20px;
--el-upload-picture-card-size: 100%;
}
.el-menu {border: none!important;}

View File

@ -8,13 +8,6 @@
<el-main class="nopadding">
<scTable ref="table" :tableColumn="column" :api="api" row-key="id" @selection-change="selectionChange" :remoteSort="true" :remoteFilter="true" stripe>
<el-table-column type="selection" width="50"></el-table-column>
<el-table-column label="头像" width="80" column-key="filterAvatar" :filters="[{text: '已上传', value: '1'}, {text: '未上传', value: '0'}]">
<template #default="scope">
<el-avatar :src="scope.row.avatar" size="small"></el-avatar>
</template>
</el-table-column>
<el-table-column min-width="1" label="操作" :width="(Object.keys(operation).length*50)+22" fixed="right" align="left" v-if="Object.keys(operation).length>0">
<template #default="scope">
<el-button-group>

View File

@ -12,6 +12,10 @@
</el-drawer>
</template>
<style type="text/css">
.el-dialog__body{padding: 0px}
</style>
<script>
export default {
emits: ['success', 'closed'],