flat: 123
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
style="width: 50px; height: 50px"
|
||||
fit="contain"
|
||||
:src="row.image"
|
||||
:preview-src-list="[row.image]">
|
||||
>
|
||||
</el-image>
|
||||
</template>
|
||||
<template slot="link" slot-scope="{row}">
|
||||
@@ -38,7 +38,7 @@
|
||||
</avue-crud>
|
||||
|
||||
<el-drawer :title="drawerTitle" :visible.sync="viewDrawer" size="60%">
|
||||
<avue-form :option="formOption" v-model="formDrawer" @submit="handleSubmit" ref="form">
|
||||
<avue-form :option="formOption" :upload-before="uploadBefore" v-model="formDrawer" @submit="handleSubmit" ref="form">
|
||||
</avue-form>
|
||||
</el-drawer>
|
||||
|
||||
@@ -219,6 +219,10 @@ export default {
|
||||
window.open(`http://${url}`, "_blank")
|
||||
}
|
||||
},
|
||||
uploadBefore(file, done, loading, column) {
|
||||
this.formDrawer.image = ''
|
||||
done()
|
||||
},
|
||||
statusSelect (row) {
|
||||
row.status = !row.status
|
||||
},
|
||||
@@ -277,6 +281,7 @@ export default {
|
||||
}
|
||||
} else {
|
||||
// 修改
|
||||
console.log(this.formDrawer, this.recommend)
|
||||
getCarouselEdit(JSON.stringify(this.formDrawer)).then(() => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<jl-go-back></jl-go-back>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<avue-form :option="formOption" v-model="form" @submit="handleSubmit" ref="form">
|
||||
<avue-form :option="formOption" :upload-before="uploadBefore" v-model="form" @submit="handleSubmit" ref="form">
|
||||
</avue-form>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
@@ -202,7 +202,10 @@
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
uploadBefore(file, done, loading, column) {
|
||||
this.form.headPic = ''
|
||||
done()
|
||||
},
|
||||
// 值发生变化
|
||||
onEditorChange(editor) {
|
||||
this.content = editor.html;
|
||||
|
||||
Reference in New Issue
Block a user