fix 视频显示,数据精度,æ·操问题作æ;添加操作手册

This commit is contained in:
ZhiJian 2024-07-20 16:59:33 +08:00
parent d10d97f344
commit b500a532b1
13 changed files with 97 additions and 20 deletions

View File

@ -4,9 +4,11 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.cxxm.serializer.CustomMjSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
@ -78,6 +80,7 @@ public class ZftkTask extends BaseEntity {
*/
@Excel(name = "地块面积")
@ApiModelProperty(value = "地块面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String dkmj;
@ -86,6 +89,7 @@ public class ZftkTask extends BaseEntity {
*/
@Excel(name = "农用地面积")
@ApiModelProperty(value = "农用地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String nydmj;
@ -94,6 +98,7 @@ public class ZftkTask extends BaseEntity {
*/
@Excel(name = "耕地面积")
@ApiModelProperty(value = "耕地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String gdmj;
@ -102,6 +107,7 @@ public class ZftkTask extends BaseEntity {
*/
@Excel(name = "建设用地面积")
@ApiModelProperty(value = "建设用地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String jsydmj;
@ -110,6 +116,7 @@ public class ZftkTask extends BaseEntity {
*/
@Excel(name = "未利用用地面积")
@ApiModelProperty(value = "未利用用地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String wlydmj;
/**
@ -117,6 +124,7 @@ public class ZftkTask extends BaseEntity {
*/
@Excel(name = "永久基本农田面积")
@ApiModelProperty(value = "永久基本农田面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String yjjbntmj;

View File

@ -4,8 +4,10 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.cxxm.serializer.CustomMjSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -78,6 +80,7 @@ public class ZftkTaskExport extends BaseEntity {
*/
@Excel(name = "地块面积",needMerge = true)
@ApiModelProperty(value = "地块面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String dkmj;
@ -86,6 +89,7 @@ public class ZftkTaskExport extends BaseEntity {
*/
@Excel(name = "农用地面积",needMerge = true)
@ApiModelProperty(value = "农用地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String nydmj;
@ -94,6 +98,7 @@ public class ZftkTaskExport extends BaseEntity {
*/
@Excel(name = "耕地面积",needMerge = true)
@ApiModelProperty(value = "耕地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String gdmj;
@ -102,6 +107,7 @@ public class ZftkTaskExport extends BaseEntity {
*/
@Excel(name = "建设用地面积",needMerge = true)
@ApiModelProperty(value = "建设用地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String jsydmj;
@ -110,6 +116,7 @@ public class ZftkTaskExport extends BaseEntity {
*/
@Excel(name = "未利用用地面积",needMerge = true)
@ApiModelProperty(value = "未利用用地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String wlydmj;
/**
@ -117,6 +124,7 @@ public class ZftkTaskExport extends BaseEntity {
*/
@Excel(name = "永久基本农田面积",needMerge = true)
@ApiModelProperty(value = "永久基本农田面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String yjjbntmj;

View File

@ -4,9 +4,11 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.cxxm.serializer.CustomMjSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
@ -94,6 +96,7 @@ public class ZtTask extends BaseEntity {
*/
@Excel(name = "图标面积")
@ApiModelProperty(value = "图标面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String tbmj;
@ -102,6 +105,7 @@ public class ZtTask extends BaseEntity {
*/
@Excel(name = "耕地面积")
@ApiModelProperty(value = "耕地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String gdmj;
@ -110,6 +114,7 @@ public class ZtTask extends BaseEntity {
*/
@Excel(name = "基本农田面积")
@ApiModelProperty(value = "基本农田面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String jbntmj;
@ -134,6 +139,7 @@ public class ZtTask extends BaseEntity {
*/
@Excel(name = "恢复原貌面积")
@ApiModelProperty(value = "恢复原貌面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String hfymmj;

View File

@ -3,9 +3,11 @@ package com.ruoyi.cxxm.domain.entity.zt;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.cxxm.domain.entity.zftk.ZftkCheckExport;
import com.ruoyi.cxxm.serializer.CustomMjSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -94,6 +96,7 @@ public class ZtTaskExport extends BaseEntity {
*/
@Excel(name = "图标面积",needMerge = true)
@ApiModelProperty(value = "图标面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String tbmj;
@ -102,6 +105,7 @@ public class ZtTaskExport extends BaseEntity {
*/
@Excel(name = "耕地面积",needMerge = true)
@ApiModelProperty(value = "耕地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String gdmj;
@ -110,6 +114,7 @@ public class ZtTaskExport extends BaseEntity {
*/
@Excel(name = "基本农田面积",needMerge = true)
@ApiModelProperty(value = "基本农田面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String jbntmj;
@ -134,6 +139,7 @@ public class ZtTaskExport extends BaseEntity {
*/
@Excel(name = "恢复原貌面积",needMerge = true)
@ApiModelProperty(value = "恢复原貌面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String hfymmj;

View File

@ -4,9 +4,11 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.cxxm.serializer.CustomMjSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
@ -94,6 +96,7 @@ public class ZttbTask extends BaseEntity {
*/
@Excel(name = "图斑面积")
@ApiModelProperty(value = "图斑面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String tbmj;
@ -102,6 +105,7 @@ public class ZttbTask extends BaseEntity {
*/
@Excel(name = "耕地面积")
@ApiModelProperty(value = "耕地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String gdmj;
@ -110,6 +114,7 @@ public class ZttbTask extends BaseEntity {
*/
@Excel(name = "基本农田面积")
@ApiModelProperty(value = "基本农田面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String jbntmj;

View File

@ -3,9 +3,11 @@ package com.ruoyi.cxxm.domain.entity.zttb;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.cxxm.domain.entity.zt.ZtCheckExport;
import com.ruoyi.cxxm.serializer.CustomMjSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -94,6 +96,7 @@ public class ZttbTaskExport extends BaseEntity {
*/
@Excel(name = "图标面积",needMerge = true)
@ApiModelProperty(value = "图标面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String tbmj;
@ -102,6 +105,7 @@ public class ZttbTaskExport extends BaseEntity {
*/
@Excel(name = "耕地面积",needMerge = true)
@ApiModelProperty(value = "耕地面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String gdmj;
@ -110,6 +114,7 @@ public class ZttbTaskExport extends BaseEntity {
*/
@Excel(name = "基本农田面积",needMerge = true)
@ApiModelProperty(value = "基本农田面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String jbntmj;
@ -134,6 +139,7 @@ public class ZttbTaskExport extends BaseEntity {
*/
@Excel(name = "恢复原貌面积",needMerge = true)
@ApiModelProperty(value = "恢复原貌面积")
@JsonSerialize(using = CustomMjSerialize.class)
private String hfymmj;

View File

@ -0,0 +1,29 @@
package com.ruoyi.cxxm.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.text.DecimalFormat;
public class CustomMjSerialize extends JsonSerializer<String> {
private DecimalFormat df = new DecimalFormat("0.0000");
@Override
public void serialize(String value, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
if (value == null || value.equals(" ")) {
value = "0";
}
try {
if (value.contains(".")) {
value = df.format(Double.parseDouble(value));
}
} catch (Exception e) {
} finally {
jsonGenerator.writeString(value);
}
}
}

View File

@ -3,7 +3,7 @@
<div id="lonlatMap" style=" width:100%; height: 100%;position: absolute;z-index: 1"></div>
<div
style="position: absolute;right:10px;top: 10px;z-index: 2;background:rgba(255,255,255,0.6);border-radius: 5px;overflow: hidden">
<div class="map-gj">图层</div>
<!-- <div class="map-gj">图层</div>-->
<div class="map-gj" @click="onLineTool">测距</div>
<div class="map-gj" @click="onPolygonTool">测面</div>
<div class="map-gj" @click="clerOver">清除</div>

View File

@ -230,7 +230,6 @@ export default {
.map-gj {
padding: 5px 10px;
border: 1px solid #999999;
}
.map-gj:last-child {

View File

@ -9,12 +9,18 @@ export default {
name: 'RuoYiDoc',
data() {
return {
url: 'http://doc.ruoyi.vip/ruoyi-vue'
url: 'http://doc.ruoyi.vip/ruoyi-vue',
zjDoc: process.env.VUE_APP_BASE_API + "/profile/common/州级账号Web平台操作指导手册.pdf",
sjDoc: process.env.VUE_APP_BASE_API + "/profile/common/市、县级账号Web平台操作指导手册.pdf",
}
},
methods: {
goto() {
window.open(this.url)
var gotoURL = this.sjDoc;
if(this.$auth.hasRoleOr(["admin", "zjgly"])){
gotoURL = this.zjDoc
}
window.open(gotoURL)
}
}
}

View File

@ -1,6 +1,7 @@
<template>
<div class="navbar">
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container"
@toggleClick="toggleSideBar"/>
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav"/>
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav"/>
@ -13,9 +14,9 @@
<!-- <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />-->
<!-- </el-tooltip>-->
<!-- <el-tooltip content="文档地址" effect="dark" placement="bottom">-->
<!-- <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />-->
<!-- </el-tooltip>-->
<el-tooltip content="操作手册" effect="dark" placement="bottom">
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect"/>
</el-tooltip>
<screenfull id="screenfull" class="right-menu-item hover-effect"/>
@ -104,7 +105,8 @@ export default {
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
})
}).catch(() => {});
}).catch(() => {
});
}
}
}

View File

@ -354,6 +354,7 @@ export default {
dicts: ["task_zgqk", "task_shjg", "sf", "zt_zgqk", "zftk_ccjd"],
data() {
return {
baseUrl: process.env.VUE_APP_BASE_API,
activeName: "1",
activeStep: 0,
activeCollapses: ["1"],

View File

@ -354,6 +354,7 @@ export default {
dicts: ["task_zgqk", "task_shjg", "sf", "zftk_sdxz", "zftk_ccjd"],
data() {
return {
baseUrl: process.env.VUE_APP_BASE_API,
activeName: "1",
activeStep: 0,
activeCollapses: ["1"],