This commit is contained in:
Tony 2024-06-11 18:10:25 +08:00
commit 5fc13bc576
7 changed files with 213 additions and 107 deletions

View File

@ -1,5 +1,6 @@
package com.god.hfhEquipment.domain; package com.god.hfhEquipment.domain;
import java.time.LocalDateTime;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
@ -32,6 +33,14 @@ public class HfhEquipmentManage extends BaseEntity
@Excel(name = "设备状态") @Excel(name = "设备状态")
private String deviceStatus; private String deviceStatus;
/** 横坐标 */
@Excel(name = "横坐标")
private String abscissa;
/*纵坐标*/
@Excel(name = "纵坐标")
private String ordinate;
/** 位置 */ /** 位置 */
@Excel(name = "位置") @Excel(name = "位置")
private String location; private String location;
@ -41,14 +50,38 @@ public class HfhEquipmentManage extends BaseEntity
private String image; private String image;
/** 录入时间 */ /** 录入时间 */
@JsonFormat(pattern = "yyyy-MM-dd") // @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
@Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "录入时间")
private Date recordTime; private String recordTime;
/** 备注 */ /** 备注 */
@Excel(name = "备注") @Excel(name = "备注")
private String remarks; private String remarks;
public String getAbscissa() {
return abscissa;
}
public void setAbscissa(String abscissa) {
this.abscissa = abscissa;
}
public String getOrdinate() {
return ordinate;
}
public void setOrdinate(String ordinate) {
this.ordinate = ordinate;
}
public String getRecordTime() {
return recordTime;
}
public void setRecordTime(String recordTime) {
this.recordTime = recordTime;
}
public void setId(String id) public void setId(String id)
{ {
this.id = id; this.id = id;
@ -103,15 +136,7 @@ public class HfhEquipmentManage extends BaseEntity
{ {
return image; return image;
} }
public void setRecordTime(Date recordTime)
{
this.recordTime = recordTime;
}
public Date getRecordTime()
{
return recordTime;
}
public void setRemarks(String remarks) public void setRemarks(String remarks)
{ {
this.remarks = remarks; this.remarks = remarks;
@ -122,6 +147,7 @@ public class HfhEquipmentManage extends BaseEntity
return remarks; return remarks;
} }
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -1,5 +1,6 @@
package com.god.hfhScenicSpot.domain; package com.god.hfhScenicSpot.domain;
import java.time.LocalDateTime;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
@ -32,8 +33,8 @@ public class HfhScenicSpotManage extends BaseEntity
@Excel(name = "捕捉视频对象类型") @Excel(name = "捕捉视频对象类型")
private String capturedVideoObjectType; private String capturedVideoObjectType;
/** 捕捉图片 */ /** 景区名称 */
@Excel(name = "捕捉图片") @Excel(name = "景区名称")
private String capturePicture; private String capturePicture;
/** 视频 */ /** 视频 */
@ -41,14 +42,23 @@ public class HfhScenicSpotManage extends BaseEntity
private String video; private String video;
/** 时间 */ /** 时间 */
@JsonFormat(pattern = "yyyy-MM-dd") // @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
@Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd") // @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH-mm-ss")
private Date captureTime; @Excel(name = "时间")
private String captureTime;
/** 备注 */ /** 备注 */
@Excel(name = "备注") @Excel(name = "备注")
private String remarks; private String remarks;
public String getCaptureTime() {
return captureTime;
}
public void setCaptureTime(String captureTime) {
this.captureTime = captureTime;
}
public void setId(String id) public void setId(String id)
{ {
this.id = id; this.id = id;
@ -103,15 +113,6 @@ public class HfhScenicSpotManage extends BaseEntity
{ {
return video; return video;
} }
public void setCaptureTime(Date captureTime)
{
this.captureTime = captureTime;
}
public Date getCaptureTime()
{
return captureTime;
}
public void setRemarks(String remarks) public void setRemarks(String remarks)
{ {
this.remarks = remarks; this.remarks = remarks;

View File

@ -13,15 +13,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="image" column="image" /> <result property="image" column="image" />
<result property="recordTime" column="record_time" /> <result property="recordTime" column="record_time" />
<result property="remarks" column="remarks" /> <result property="remarks" column="remarks" />
<result property="abscissa" column="abscissa" />
<result property="ordinate" column="ordinate" />
</resultMap> </resultMap>
<sql id="selectHfhEquipmentManageVo"> <sql id="selectHfhEquipmentManageVo">
select id, device_name, device_ip, device_status, location, image, record_time, remarks from hfh_equipment_manage select id, device_name, device_ip, device_status, location, image, record_time, remarks, abscissa, ordinate from hfh_equipment_manage
</sql> </sql>
<select id="selectHfhEquipmentManageList" parameterType="HfhEquipmentManage" resultMap="HfhEquipmentManageResult"> <select id="selectHfhEquipmentManageList" parameterType="HfhEquipmentManage" resultMap="HfhEquipmentManageResult">
<include refid="selectHfhEquipmentManageVo"/> <include refid="selectHfhEquipmentManageVo"/>
<where> <where>
<if test="abscissa != null and abscissa != ''"> and abscissa like concat('%', #{abscissa}, '%')</if>
<if test="ordinate != null and ordinate != ''"> and ordinate like concat('%', #{ordinate}, '%')</if>
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if> <if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceIp != null and deviceIp != ''"> and device_ip like concat('%', #{deviceIp}, '%')</if> <if test="deviceIp != null and deviceIp != ''"> and device_ip like concat('%', #{deviceIp}, '%')</if>
<if test="deviceStatus != null and deviceStatus != ''"> and device_status like concat('%', #{deviceStatus}, '%')</if> <if test="deviceStatus != null and deviceStatus != ''"> and device_status like concat('%', #{deviceStatus}, '%')</if>
@ -48,8 +53,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="image != null">image,</if> <if test="image != null">image,</if>
<if test="recordTime != null">record_time,</if> <if test="recordTime != null">record_time,</if>
<if test="remarks != null">remarks,</if> <if test="remarks != null">remarks,</if>
<if test="abscissa != null">abscissa,</if>
<if test="ordinate != null">ordinate,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if> <if test="id != null">#{id},</if>
<if test="deviceName != null">#{deviceName},</if> <if test="deviceName != null">#{deviceName},</if>
<if test="deviceIp != null">#{deviceIp},</if> <if test="deviceIp != null">#{deviceIp},</if>
@ -58,12 +67,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="image != null">#{image},</if> <if test="image != null">#{image},</if>
<if test="recordTime != null">#{recordTime},</if> <if test="recordTime != null">#{recordTime},</if>
<if test="remarks != null">#{remarks},</if> <if test="remarks != null">#{remarks},</if>
<if test="abscissa != null">#{abscissa},</if>
<if test="ordinate != null">#{ordinate},</if>
</trim> </trim>
</insert> </insert>
<update id="updateHfhEquipmentManage" parameterType="HfhEquipmentManage"> <update id="updateHfhEquipmentManage" parameterType="HfhEquipmentManage">
update hfh_equipment_manage update hfh_equipment_manage
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="abscissa != null">abscissa = #{abscissa},</if>
<if test="ordinate != null">ordinate = #{ordinate},</if>
<if test="deviceName != null">device_name = #{deviceName},</if> <if test="deviceName != null">device_name = #{deviceName},</if>
<if test="deviceIp != null">device_ip = #{deviceIp},</if> <if test="deviceIp != null">device_ip = #{deviceIp},</if>
<if test="deviceStatus != null">device_status = #{deviceStatus},</if> <if test="deviceStatus != null">device_status = #{deviceStatus},</if>

View File

@ -227,7 +227,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="折扣" prop="reserveTwo"> <el-form-item label="折扣" prop="reserveTwo">
<el-select v-model="form.reserveTwo" placeholder="请选择折扣" style="width: 100%"> <el-select v-model="form.reserveTwo" placeholder="请选择折扣" style="width: 100%" @change="changeA">
<el-option <el-option
v-for="dict in dict.type.hfh_discount_type" v-for="dict in dict.type.hfh_discount_type"
:key="dict.value" :key="dict.value"
@ -444,7 +444,6 @@ export default {
this.$message.success('上传成功') this.$message.success('上传成功')
// this.open = false; // this.open = false;
// this.getList(); // this.getList();
console.log('查看上传结果:', res)
if (res.data) { if (res.data) {
this.form.video = res.data.fileUrl this.form.video = res.data.fileUrl
} }
@ -464,6 +463,18 @@ export default {
this.templateInfoList = response.rows this.templateInfoList = response.rows
this.total = response.total this.total = response.total
this.loading = false this.loading = false
this.templateInfoList.forEach(item => {
if(item.reserveTwo){
if(item.reserveTwo === '1'){
item.reserveThree = (item.price * 0.68).toFixed(2)
}
if(item.reserveTwo === '2'){
item.reserveThree = (item.price * 0.88).toFixed(2)
}
}else {
item.reserveThree = 0.00
}
})
}) })
}, },
// //
@ -525,6 +536,11 @@ export default {
this.form = response.data this.form = response.data
this.open = true this.open = true
this.title = 'Vlog价格配置' this.title = 'Vlog价格配置'
if(this.form.reserveTwo){
this.changeA(this.form.reserveTwo);
}else {
this.form.reserveThree = 0.00
}
}) })
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -558,6 +574,14 @@ export default {
}).catch(() => { }).catch(() => {
}) })
}, },
changeA(res){
if(res === '1'){
this.form.reserveThree = (this.form.price * 0.68).toFixed(2)
}
if(res === '2'){
this.form.reserveThree = (this.form.price * 0.88).toFixed(2)
}
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('godTemplateInfo/templateInfo/export', { this.download('godTemplateInfo/templateInfo/export', {

View File

@ -1,29 +1,33 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="活动名称" prop="taskName"> <el-form-item label="模板名称" prop="taskName">
<el-input <el-input
v-model="queryParams.taskName" v-model="queryParams.taskName"
placeholder="请输入活动名称" placeholder="请输入vlog模板名称"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="视频名称" prop="vlogName"> <el-form-item label="合成时机" prop="endTime">
<el-input <el-select v-model="queryParams.endTime" placeholder="请选择vlog合成时机">
v-model="queryParams.vlogName" <el-option
placeholder="请输入视频名称" v-for="dict in dict.type.hfh_crafting_timing"
clearable :key="dict.value"
@keyup.enter.native="handleQuery" :label="dict.label"
/> :value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="负责人" prop="userName"> <el-form-item label="抓拍排序" prop="taskStatus">
<el-input <el-select v-model="queryParams.taskStatus" placeholder="请选择vlog抓拍片段排序">
v-model="queryParams.userName" <el-option
placeholder="请输入负责人" v-for="dict in dict.type.hfh_fragment_sorting"
clearable :key="dict.value"
@keyup.enter.native="handleQuery" :label="dict.label"
/> :value="dict.value"
></el-option>
</el-select>
</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>
@ -64,40 +68,35 @@
v-hasPermi="['activity:activityManage:remove']" v-hasPermi="['activity:activityManage:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="warning" <!-- type="warning"-->
plain <!-- plain-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
size="mini" <!-- size="mini"-->
@click="handleExport" <!-- @click="handleExport"-->
v-hasPermi="['activity:activityManage:export']" <!-- v-hasPermi="['activity:activityManage:export']"-->
>导出</el-button> <!-- >导出</el-button>-->
</el-col> <!-- </el-col>-->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="activityManageList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="activityManageList" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="活动名称" align="center" prop="taskName" /> <el-table-column label="vlog模板名称" align="center" prop="taskName" />
<el-table-column label="活动描述" align="center" prop="taskDesc" /> <el-table-column label="单用户日单最大合成vlog数" align="center" prop="taskDesc"/>
<el-table-column label="负责人" align="center" prop="userName" /> <el-table-column label="单个vlog采用抓拍数量" align="center" prop="startTime"/>
<el-table-column label="开始时间" align="center" prop="startTime" > <el-table-column label="vlog合成时机" align="center" prop="endTime">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d} {h}:{m}:{s}') }}</span> <dict-tag :options="dict.type.hfh_crafting_timing" :value="scope.row.endTime"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="结束时间" align="center" prop="endTime" > <el-table-column label="vlog抓拍片段排序" align="center" prop="taskStatus">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d} {h}:{m}:{s}') }}</span> <dict-tag :options="dict.type.hfh_fragment_sorting" :value="scope.row.taskStatus"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="活动状态" align="center" prop="taskStatus" > <el-table-column label="vlog配乐" align="center" prop="vlogId" />
<template slot-scope="scope">
<dict-tag :options="dict.type.hfh_activity_status" :value="scope.row.taskStatus"/>
</template>
</el-table-column>
<el-table-column label="视频名称" align="center" prop="vlogName" />
<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
@ -127,40 +126,34 @@
/> />
<!-- 添加或修改活动管理对话框 --> <!-- 添加或修改活动管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="400px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="活动名称" prop="taskName"> <el-form-item label="模板名称" prop="taskName">
<el-input v-model="form.taskName" placeholder="请输入活动名称" /> <el-input v-model="form.taskName" placeholder="请输入vlog模板名称" />
</el-form-item> </el-form-item>
<el-form-item label="活动描述" prop="taskDesc"> <el-form-item label="最大合成数" prop="taskDesc">
<el-input v-model="form.taskDesc" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.taskDesc" placeholder="请输入单用户日单最大合成vlog数" />
</el-form-item> </el-form-item>
<el-form-item label="开始时间" prop="startTime"> <el-form-item label="抓拍数量" prop="startTime">
<el-date-picker clearable <el-input v-model="form.startTime" placeholder="请输入单个vlog采用抓拍数量" />
v-model="form.startTime"
type="datetime"
value-format="yyyy-MM-dd hh:mm:ss"
placeholder="请选择开始时间">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="结束时间" prop="endTime"> <el-form-item label="合成时机" prop="endTime">
<el-date-picker clearable <el-select v-model="form.endTime" placeholder="请选择vlog合成时机" style="width: 100%">
v-model="form.endTime" <el-option
type="datetime" v-for="dict in dict.type.hfh_crafting_timing"
value-format="yyyy-MM-dd hh:mm:ss" :key="dict.value"
placeholder="请选择结束时间"> :label="dict.label"
</el-date-picker> :value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="视频id" prop="vlogId">--> <!-- <el-form-item label="视频id" prop="vlogId">-->
<!-- <el-input v-model="form.vlogId" placeholder="请输入视频id" />--> <!-- <el-input v-model="form.vlogId" placeholder="请输入视频id" />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="视频名称" prop="vlogName"> <el-form-item label="抓拍排序" prop="taskStatus">
<el-input v-model="form.vlogName" placeholder="请输入视频名称" /> <el-select v-model="form.taskStatus" placeholder="请选择vlog抓拍片段排序" style="width: 100%">
</el-form-item>
<el-form-item label="活动状态" prop="taskStatus">
<el-select v-model="form.taskStatus" placeholder="请选择活动状态">
<el-option <el-option
v-for="dict in dict.type.hfh_activity_status" v-for="dict in dict.type.hfh_fragment_sorting"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
@ -170,8 +163,8 @@
<!-- <el-form-item label="负责人id" prop="userId">--> <!-- <el-form-item label="负责人id" prop="userId">-->
<!-- <el-input v-model="form.userId" placeholder="请输入负责人id" />--> <!-- <el-input v-model="form.userId" placeholder="请输入负责人id" />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="负责人" prop="userName"> <el-form-item label="vlog配乐" prop="vlogId">
<el-input v-model="form.userName" placeholder="请输入负责人" /> <el-input v-model="form.vlogId" placeholder="请输入vlog配乐" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -187,7 +180,7 @@ import { listActivityManage, getActivityManage, delActivityManage, addActivityMa
export default { export default {
name: "ActivityManage", name: "ActivityManage",
dicts: ['hfh_activity_status'], dicts: ['hfh_crafting_timing', 'hfh_fragment_sorting'],
data() { data() {
return { return {
// //
@ -227,10 +220,10 @@ export default {
// //
rules: { rules: {
taskName: [ taskName: [
{ required: true, message: "活动名称不能为空", trigger: "blur" } { required: true, message: "vlog模板名称不能为空", trigger: "blur" }
], ],
taskStatus: [ taskStatus: [
{ required: true, message: "活动状态不能为空", trigger: "change" } { required: true, message: "请选择vlog抓拍片段排序", trigger: "change" }
], ],
} }
}; };

View File

@ -27,6 +27,26 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="横坐标" prop="abscissa">
<el-input
v-model="queryParams.abscissa"
placeholder="请输入横坐标"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="纵坐标" prop="ordinate">
<el-input
v-model="queryParams.ordinate"
placeholder="请输入纵坐标"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="位置" prop="location"> <el-form-item label="位置" prop="location">
<el-input <el-input
v-model="queryParams.location" v-model="queryParams.location"
@ -108,6 +128,9 @@
<dict-tag :options="dict.type.hfh_equipment_status" :value="scope.row.deviceStatus"/> <dict-tag :options="dict.type.hfh_equipment_status" :value="scope.row.deviceStatus"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="横坐标" align="center" prop="abscissa" />
<el-table-column label="纵坐标" align="center" prop="ordinate" />
<el-table-column label="位置" align="center" prop="location" /> <el-table-column label="位置" align="center" prop="location" />
<el-table-column label="图片" align="center" prop="image" width="100"> <el-table-column label="图片" align="center" prop="image" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
@ -167,6 +190,16 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="横坐标" prop="abscissa">
<el-input v-model="form.abscissa" placeholder="请输入横坐标" />
</el-form-item>
<el-form-item label="纵坐标" prop="ordinate">
<el-input v-model="form.ordinate" placeholder="请输入纵坐标" />
</el-form-item>
<el-form-item label="位置" prop="location"> <el-form-item label="位置" prop="location">
<el-input v-model="form.location" placeholder="请输入位置" /> <el-input v-model="form.location" placeholder="请输入位置" />
</el-form-item> </el-form-item>

View File

@ -9,6 +9,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="景区名称" prop="parkName">
<el-input
v-model="queryParams.capturePicture"
placeholder="请输入景区名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="位置" prop="location"> <el-form-item label="位置" prop="location">
<el-input <el-input
v-model="queryParams.location" v-model="queryParams.location"
@ -92,16 +101,18 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="id" align="center" prop="id" /> --> <!-- <el-table-column label="id" align="center" prop="id" /> -->
<el-table-column label="公园名称" align="center" prop="parkName" /> <el-table-column label="公园名称" align="center" prop="parkName" />
<el-table-column label="景区名称" align="center" prop="capturePicture" />
<el-table-column label="位置" align="center" prop="location" :show-overflow-tooltip="true"/> <el-table-column label="位置" align="center" prop="location" :show-overflow-tooltip="true"/>
<el-table-column label="捕捉对象" align="center" prop="capturedVideoObjectType" /> <el-table-column label="捕捉对象" align="center" prop="capturedVideoObjectType" />
<el-table-column label="捕捉图片" align="center" prop="capturePicture" width="100">
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<image-preview :src="scope.row.capturePicture" :width="50" :height="50"/> <image-preview :src="scope.row.capturePicture" :width="50" :height="50"/>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="时间" align="center" prop="captureTime" width="180"> <el-table-column label="时间" align="center" prop="captureTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.captureTime, '{y}-{m}-{d} {h}:{m}:{s}') }}</span> <span>{{ parseTime(scope.row.captureTime, '{y}-{m}-{d} {h}:{mi}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/> <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
@ -139,20 +150,22 @@
<el-form-item label="公园名称" prop="parkName"> <el-form-item label="公园名称" prop="parkName">
<el-input v-model="form.parkName" placeholder="请输入公园名称" /> <el-input v-model="form.parkName" placeholder="请输入公园名称" />
</el-form-item> </el-form-item>
<el-form-item label="景区名称" prop="capturePicture">
<el-input v-model="form.capturePicture" placeholder="请输入景区名称" />
<!-- <image-upload v-model="form.capturePicture"/> -->
</el-form-item>
<el-form-item label="位置" prop="location"> <el-form-item label="位置" prop="location">
<el-input v-model="form.location" placeholder="请输入位置" /> <el-input v-model="form.location" placeholder="请输入位置" />
</el-form-item> </el-form-item>
<el-form-item label="捕捉对象" prop="capturedVideoObjectType"> <el-form-item label="捕捉对象" prop="capturedVideoObjectType">
<el-input v-model="form.capturedVideoObjectType" placeholder="请输入捕捉视频对象类型" /> <el-input v-model="form.capturedVideoObjectType" placeholder="请输入捕捉视频对象类型" />
</el-form-item> </el-form-item>
<el-form-item label="捕捉图片" prop="capturePicture">
<image-upload v-model="form.capturePicture"/>
</el-form-item>
<el-form-item label="时间" prop="captureTime"> <el-form-item label="时间" prop="captureTime">
<el-date-picker clearable <el-date-picker clearable
v-model="form.captureTime" v-model="form.captureTime"
type="datetime" type="datetime"
value-format="yyyy-MM-dd hh:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择时间"> placeholder="请选择时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>