This commit is contained in:
wangting 2024-06-20 10:47:43 +08:00
parent fd33256cae
commit 69289dfa3d
4 changed files with 27 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 803 KiB

After

Width:  |  Height:  |  Size: 634 KiB

View File

@ -213,7 +213,7 @@ export default {
// //
let length = quill.getSelection().index; let length = quill.getSelection().index;
// res.url // res.url
quill.insertEmbed(length, "image", res.fileName); quill.insertEmbed(length, "image", res.url);
// //
quill.setSelection(length + 1); quill.setSelection(length + 1);
} else { } else {

View File

@ -71,9 +71,7 @@
<editor v-model="form.content" :min-height="192"/> <editor v-model="form.content" :min-height="192"/>
</el-form-item> </el-form-item>
<el-form-item label="封面图片" prop="coverImage"> <el-form-item label="封面图片" prop="coverImage">
<el-input disabled v-model="form.coverImage" class="input-with-select"> <image-upload :limit="1" v-model="form.coverImage" @input="inputImg"/>
<el-button slot="append" @click="openDialog">选择</el-button>
</el-input>
</el-form-item> </el-form-item>
<el-form-item label="所属栏目" prop="ids"> <el-form-item label="所属栏目" prop="ids">
<el-select v-model="form.ids" clearable> <el-select v-model="form.ids" clearable>
@ -180,6 +178,11 @@ export default {
this.getColumList() this.getColumList()
}, },
methods: { methods: {
inputImg(data){
if(data){
this.form.guiderImg = data
}
},
openDialog(){ openDialog(){
this.$refs.materialDialog.init() this.$refs.materialDialog.init()
}, },

View File

@ -9,22 +9,22 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="导游介绍" prop="guiderIntro"> <!-- <el-form-item label="导游介绍" prop="guiderIntro">
<el-input <el-input
v-model="queryParams.guiderIntro" v-model="queryParams.guiderIntro"
placeholder="请输入导游介绍" placeholder="请输入导游介绍"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item> -->
<el-form-item label="导游图片" prop="guiderImg"> <!-- <el-form-item label="导游图片" prop="guiderImg">
<el-input <el-input
v-model="queryParams.guiderImg" v-model="queryParams.guiderImg"
placeholder="请输入导游图片" placeholder="请输入导游图片"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -79,10 +79,14 @@
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="${comment}" align="center" prop="id" /> <!-- <el-table-column label="${comment}" align="center" prop="id" /> -->
<el-table-column label="导游姓名" align="center" prop="guiderName" /> <el-table-column label="导游姓名" align="center" prop="guiderName" />
<el-table-column label="导游介绍" align="center" prop="guiderIntro" /> <el-table-column label="导游介绍" align="center" prop="guiderIntro" />
<el-table-column label="导游图片" align="center" prop="guiderImg" /> <el-table-column label="导游图片" align="center" prop="guiderImg" >
<template slot-scope="scope">
<image-preview :src="scope.row.guiderImg" :width="50" :height="50"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -121,7 +125,7 @@
<el-input v-model="form.guiderIntro" placeholder="请输入导游介绍" /> <el-input v-model="form.guiderIntro" placeholder="请输入导游介绍" />
</el-form-item> </el-form-item>
<el-form-item label="导游图片" prop="guiderImg"> <el-form-item label="导游图片" prop="guiderImg">
<el-input v-model="form.guiderImg" placeholder="请输入导游图片" /> <image-upload :limit="1" v-model="form.guiderImg" @input="inputImg"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -165,6 +169,7 @@ export default {
guiderIntro: null, guiderIntro: null,
guiderImg: null guiderImg: null
}, },
srcList:[],
// //
form: {}, form: {},
// //
@ -176,11 +181,19 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
inputImg(data){
if(data){
this.form.guiderImg = data
}
},
/** 查询导游信息列表 */ /** 查询导游信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listInfo(this.queryParams).then(response => { listInfo(this.queryParams).then(response => {
this.infoList = response.rows; this.infoList = response.rows;
// for(let i=0;i<this.infoList.length;i++){
// this.infoList[i].guiderImg = 'http://192.168.3.114:8085'+this.infoList[i].guiderImg
// }
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });