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;
|
||||
|
||||
@@ -23,12 +23,13 @@ module.exports = {
|
||||
port: 1888,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: 'http://10.165.0.173:8000',
|
||||
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||
// target: 'http://10.165.0.173:8000',
|
||||
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||
// target: "http://192.168.3.104:8000", // 本地
|
||||
// target: 'http://192.168.1.106: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,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
|
||||
Reference in New Issue
Block a user