|
@@ -150,7 +150,7 @@
|
|
|
</viewer>
|
|
</viewer>
|
|
|
<el-button @click="openImageUploadDialog"
|
|
<el-button @click="openImageUploadDialog"
|
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
|
- size="small">上传图片</el-button>
|
|
|
|
|
|
|
+ size="small">上传封面图片</el-button>
|
|
|
<input type="file" ref="addImageUploadInput" style="display:none" accept=".jpg,.png"
|
|
<input type="file" ref="addImageUploadInput" style="display:none" accept=".jpg,.png"
|
|
|
@change="uploadImageVideo($event, 'img')" />
|
|
@change="uploadImageVideo($event, 'img')" />
|
|
|
</div>
|
|
</div>
|
|
@@ -188,7 +188,7 @@
|
|
|
</viewer>
|
|
</viewer>
|
|
|
<el-button @click="openImageDetailUploadDialog"
|
|
<el-button @click="openImageDetailUploadDialog"
|
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
|
- size="small">上传图片</el-button>
|
|
|
|
|
|
|
+ size="small">上传详情图片</el-button>
|
|
|
<input type="file" ref="addImageDetailUploadInput" style="display:none" accept=".jpg,.png"
|
|
<input type="file" ref="addImageDetailUploadInput" style="display:none" accept=".jpg,.png"
|
|
|
@change="uploadImageVideo($event, 'imgDetail')" />
|
|
@change="uploadImageVideo($event, 'imgDetail')" />
|
|
|
</div>
|
|
</div>
|
|
@@ -286,10 +286,10 @@
|
|
|
style="border-radius: 5px;">
|
|
style="border-radius: 5px;">
|
|
|
<img v-else :src="formModifyDialog.first_img" height="180px" width="150px" style="border-radius: 5px;">
|
|
<img v-else :src="formModifyDialog.first_img" height="180px" width="150px" style="border-radius: 5px;">
|
|
|
</viewer>
|
|
</viewer>
|
|
|
- <el-button
|
|
|
|
|
|
|
+ <el-button @click="openImageUploadDialog_modify"
|
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
|
- size="small">上传图片</el-button>
|
|
|
|
|
- <input type="file" ref="addImageUploadInput" style="display:none" accept=".jpg,.png"
|
|
|
|
|
|
|
+ size="small">上传封面图片</el-button>
|
|
|
|
|
+ <input type="file" ref="modifyImageUploadInput" style="display:none" accept=".jpg,.png"
|
|
|
@change="uploadModifyImageVideo($event, 'img')" />
|
|
@change="uploadModifyImageVideo($event, 'img')" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -305,10 +305,10 @@
|
|
|
style="border-radius: 5px;">
|
|
style="border-radius: 5px;">
|
|
|
<video-player v-else class="video-player vjs-custom-skin" @play="onPlayerPlay($event)" :playsinline="true"
|
|
<video-player v-else class="video-player vjs-custom-skin" @play="onPlayerPlay($event)" :playsinline="true"
|
|
|
:options="formModifyDialog.show_video" style="height: 180px;"></video-player>
|
|
:options="formModifyDialog.show_video" style="height: 180px;"></video-player>
|
|
|
- <el-button @click="openVideoUploadDialog"
|
|
|
|
|
|
|
+ <el-button @click="openVideoUploadDialog_modify"
|
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
|
size="small">上传视频</el-button>
|
|
size="small">上传视频</el-button>
|
|
|
- <input type="file" ref="addVideoUploadInput" style="display:none" accept=".mp4"
|
|
|
|
|
|
|
+ <input type="file" ref="modifyVideoUploadInput" style="display:none" accept=".mp4"
|
|
|
@change="uploadModifyImageVideo($event, 'video')" />
|
|
@change="uploadModifyImageVideo($event, 'video')" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -324,10 +324,10 @@
|
|
|
</el-carousel-item>
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
</el-carousel>
|
|
|
</viewer>
|
|
</viewer>
|
|
|
- <el-button
|
|
|
|
|
|
|
+ <el-button @click="openImageDetailUploadDialog_modify"
|
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
style="margin-top: 8px; width: 150px; border: none; background: rgba(9, 101, 98, 1); color: #fff; border-radius: 5px;"
|
|
|
- size="small">上传图片</el-button>
|
|
|
|
|
- <input type="file" ref="addImageDetailUploadInput" style="display:none" accept=".jpg,.png"
|
|
|
|
|
|
|
+ size="small">上传详情图片</el-button>
|
|
|
|
|
+ <input type="file" ref="modifyImageDetailUploadInput" style="display:none" accept=".jpg,.png"
|
|
|
@change="uploadModifyImageVideo($event, 'imgDetail')" />
|
|
@change="uploadModifyImageVideo($event, 'imgDetail')" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -431,7 +431,7 @@
|
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
- <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
|
|
|
|
+ <el-tabs v-model="activeName">
|
|
|
<el-tab-pane label="产品" name="first">
|
|
<el-tab-pane label="产品" name="first">
|
|
|
<el-button class="export" style="margin-bottom: 10px !important;" size="small" @click="showAddProductDialog">
|
|
<el-button class="export" style="margin-bottom: 10px !important;" size="small" @click="showAddProductDialog">
|
|
|
<i class="el-icon el-icon-circle-plus-outline" style="font-size: 16px;"></i>
|
|
<i class="el-icon el-icon-circle-plus-outline" style="font-size: 16px;"></i>
|
|
@@ -990,10 +990,11 @@
|
|
|
document.removeEventListener('fullscreenchange', this.handleFullScreenChange);
|
|
document.removeEventListener('fullscreenchange', this.handleFullScreenChange);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 显示地图界面
|
|
|
showMapDialog() {
|
|
showMapDialog() {
|
|
|
- this.$set(this.zoom, 13)
|
|
|
|
|
|
|
+ this.zoom = 13
|
|
|
|
|
|
|
|
- if (this.dialogAddVisible) {
|
|
|
|
|
|
|
+ if (this.dialogAddVisible && !isEmpty(this.formAddDialog.jingwei)) {
|
|
|
var t = this.formAddDialog.jingwei.split(',')
|
|
var t = this.formAddDialog.jingwei.split(',')
|
|
|
this.$set(this.center, 'lng', t[0])
|
|
this.$set(this.center, 'lng', t[0])
|
|
|
this.$set(this.center, 'lat', t[1])
|
|
this.$set(this.center, 'lat', t[1])
|
|
@@ -1001,7 +1002,7 @@
|
|
|
this.$set(this.markerPosition, 'lng', t[0])
|
|
this.$set(this.markerPosition, 'lng', t[0])
|
|
|
this.$set(this.markerPosition, 'lat', t[1])
|
|
this.$set(this.markerPosition, 'lat', t[1])
|
|
|
|
|
|
|
|
- } else if (this.dialogModifyVisible) {
|
|
|
|
|
|
|
+ } else if (this.dialogModifyVisible && !isEmpty(this.formModifyDialog.jingwei)) {
|
|
|
var t = this.formModifyDialog.jingwei.split(',')
|
|
var t = this.formModifyDialog.jingwei.split(',')
|
|
|
this.$set(this.center, 'lng', t[0])
|
|
this.$set(this.center, 'lng', t[0])
|
|
|
this.$set(this.center, 'lat', t[1])
|
|
this.$set(this.center, 'lat', t[1])
|
|
@@ -1012,6 +1013,7 @@
|
|
|
|
|
|
|
|
this.dialogMapVisible = true;
|
|
this.dialogMapVisible = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ // 地图的单击,获取坐标、地址
|
|
|
handleMapClick(e) {
|
|
handleMapClick(e) {
|
|
|
const {
|
|
const {
|
|
|
lng,
|
|
lng,
|
|
@@ -1043,6 +1045,7 @@
|
|
|
})
|
|
})
|
|
|
// console.log(this.formAddDialog.jingwei);
|
|
// console.log(this.formAddDialog.jingwei);
|
|
|
},
|
|
},
|
|
|
|
|
+ // 周边类型下拉列表发生改变
|
|
|
handleTypeChange() {
|
|
handleTypeChange() {
|
|
|
this.get_table_data('search')
|
|
this.get_table_data('search')
|
|
|
},
|
|
},
|
|
@@ -1115,9 +1118,6 @@
|
|
|
this.playering = player
|
|
this.playering = player
|
|
|
this.full(player)
|
|
this.full(player)
|
|
|
},
|
|
},
|
|
|
- handleClick(tab, event) {
|
|
|
|
|
- console.log(tab, event);
|
|
|
|
|
- },
|
|
|
|
|
// 添加对话框单击上传封面图片
|
|
// 添加对话框单击上传封面图片
|
|
|
openImageUploadDialog() {
|
|
openImageUploadDialog() {
|
|
|
this.$refs.addImageUploadInput.click();
|
|
this.$refs.addImageUploadInput.click();
|
|
@@ -1130,7 +1130,19 @@
|
|
|
openImageDetailUploadDialog() {
|
|
openImageDetailUploadDialog() {
|
|
|
this.$refs.addImageDetailUploadInput.click();
|
|
this.$refs.addImageDetailUploadInput.click();
|
|
|
},
|
|
},
|
|
|
- // 上传文件
|
|
|
|
|
|
|
+ // 修改对话框单击上传封面图片
|
|
|
|
|
+ openImageUploadDialog_modify() {
|
|
|
|
|
+ this.$refs.modifyImageUploadInput.click();
|
|
|
|
|
+ },
|
|
|
|
|
+ // 修改对话框单击上传视频
|
|
|
|
|
+ openVideoUploadDialog_modify() {
|
|
|
|
|
+ this.$refs.modifyVideoUploadInput.click();
|
|
|
|
|
+ },
|
|
|
|
|
+ // 修改对话框单击上传详情图
|
|
|
|
|
+ openImageDetailUploadDialog_modify() {
|
|
|
|
|
+ this.$refs.modifyImageDetailUploadInput.click();
|
|
|
|
|
+ },
|
|
|
|
|
+ // 周边新增上传文件
|
|
|
uploadImageVideo(event, imgOrVideo) {
|
|
uploadImageVideo(event, imgOrVideo) {
|
|
|
const file = event.target.files[0];
|
|
const file = event.target.files[0];
|
|
|
var that = this
|
|
var that = this
|
|
@@ -1418,7 +1430,7 @@
|
|
|
that.dialogDeleteVisible = false
|
|
that.dialogDeleteVisible = false
|
|
|
that.$message.success('周边删除成功!')
|
|
that.$message.success('周边删除成功!')
|
|
|
} else {
|
|
} else {
|
|
|
- that.$message.err(res.message)
|
|
|
|
|
|
|
+ that.$message.error(res.message)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|