flat: 123

This commit is contained in:
Apcallover
2024-03-20 22:15:08 +08:00
parent 4baf2cec38
commit 4eff3a6728
3 changed files with 16 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
style="width: 50px; height: 50px" style="width: 50px; height: 50px"
fit="contain" fit="contain"
:src="row.image" :src="row.image"
:preview-src-list="[row.image]"> >
</el-image> </el-image>
</template> </template>
<template slot="link" slot-scope="{row}"> <template slot="link" slot-scope="{row}">
@@ -38,7 +38,7 @@
</avue-crud> </avue-crud>
<el-drawer :title="drawerTitle" :visible.sync="viewDrawer" size="60%"> <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> </avue-form>
</el-drawer> </el-drawer>
@@ -219,6 +219,10 @@ export default {
window.open(`http://${url}`, "_blank") window.open(`http://${url}`, "_blank")
} }
}, },
uploadBefore(file, done, loading, column) {
this.formDrawer.image = ''
done()
},
statusSelect (row) { statusSelect (row) {
row.status = !row.status row.status = !row.status
}, },
@@ -277,6 +281,7 @@ export default {
} }
} else { } else {
// 修改 // 修改
console.log(this.formDrawer, this.recommend)
getCarouselEdit(JSON.stringify(this.formDrawer)).then(() => { getCarouselEdit(JSON.stringify(this.formDrawer)).then(() => {
this.$message({ this.$message({
type: 'success', type: 'success',

View File

@@ -3,7 +3,7 @@
<jl-go-back></jl-go-back> <jl-go-back></jl-go-back>
<el-row> <el-row>
<el-col :span="8"> <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> </avue-form>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
@@ -202,7 +202,10 @@
}; };
}, },
methods: { methods: {
uploadBefore(file, done, loading, column) {
this.form.headPic = ''
done()
},
// 值发生变化 // 值发生变化
onEditorChange(editor) { onEditorChange(editor) {
this.content = editor.html; this.content = editor.html;

View File

@@ -23,12 +23,13 @@ module.exports = {
port: 1888, port: 1888,
proxy: { proxy: {
"/api": { "/api": {
target: 'http://10.165.0.173:8000', // target: 'http://10.165.0.173:8000',
// target: "http://39.98.184.58:8000", // 阿里云后台地址 target: "http://39.98.184.58:8000", // 阿里云后台地址
// target: "http://192.168.3.104:8000", // 本地 // target: "http://192.168.3.104:8000", // 本地
// target: 'http://192.168.1.106:8000', // target: 'http://192.168.1.106:8000',
// target: 'http://192.168.3.173:8000', // target: 'http://192.168.3.173:8000',
target: 'http://10.165.0.173:8000', // target: 'http://10.165.0.173:8000',
// target: 'http://198.168.3.120:8000',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {