c2a10fc8 by 杨威
2 parents fd8e2f3f 3d3e9b4d
......@@ -31,6 +31,12 @@
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont">&#xe7af;</span>
<div class="name">打印</div>
<div class="code-name">&amp;#xe7af;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe7a6;</span>
<div class="name">饼图</div>
<div class="code-name">&amp;#xe7a6;</div>
......@@ -651,6 +657,15 @@
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont icondayin"></span>
<div class="name">
打印
</div>
<div class="code-name">.icondayin
</div>
</li>
<li class="dib">
<span class="icon iconfont iconbingtu"></span>
<div class="name">
饼图
......@@ -1536,6 +1551,14 @@
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icondayin"></use>
</svg>
<div class="name">打印</div>
<div class="code-name">#icondayin</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconbingtu"></use>
</svg>
<div class="name">饼图</div>
......
This diff could not be displayed because it is too large.
......@@ -6,6 +6,13 @@
"description": "",
"glyphs": [
{
"icon_id": "19479731",
"name": "打印",
"font_class": "dayin",
"unicode": "e7af",
"unicode_decimal": 59311
},
{
"icon_id": "19449217",
"name": "饼图",
"font_class": "bingtu",
......
......@@ -20,6 +20,9 @@ Created by iconfont
/>
<missing-glyph />
<glyph glyph-name="dayin" unicode="&#59311;" d="M721.454545 523.636364H791.272727a46.545455 46.545455 0 0 0 46.545455-46.545455v-279.272727a46.545455 46.545455 0 0 0-46.545455-46.545455h-23.272727v23.272728a93.090909 93.090909 0 0 1-93.090909 93.090909h-372.363636a93.090909 93.090909 0 0 1-93.09091-93.090909v-23.272728H186.181818a46.545455 46.545455 0 0 0-46.545454 46.545455V477.090909a46.545455 46.545455 0 0 0 46.545454 46.545455h535.272727z m0 46.545454h-465.454545V663.272727a46.545455 46.545455 0 0 0 46.545455 46.545455h372.363636a46.545455 46.545455 0 0 0 46.545454-46.545455v-93.090909z m-418.90909-349.090909h372.363636a46.545455 46.545455 0 0 0 46.545454-46.545454V58.181818a46.545455 46.545455 0 0 0-46.545454-46.545454h-372.363636a46.545455 46.545455 0 0 0-46.545455 46.545454v116.363637a46.545455 46.545455 0 0 0 46.545455 46.545454z m-23.272728 232.727273a23.272727 23.272727 0 1 1 0-46.545455h93.090909a23.272727 23.272727 0 0 1 0 46.545455H279.272727z" horiz-adv-x="1024" />
<glyph glyph-name="bingtu" unicode="&#59302;" d="M512 864a480 480 0 1 0 0-960 480 480 0 0 0 0 960z m-60.032-64.256A420.096 420.096 0 0 1 512-36.032a420.096 420.096 0 0 1 415.744 360H481.92a30.016 30.016 0 0 0-29.44 24.64l-0.512 5.376V799.744zM512 804.032V384h420.032A419.968 419.968 0 0 1 512 804.032z" horiz-adv-x="1024" />
......
<template>
<div >
<table border="1">
<thead>
<tr rowspan="2">
<th colspan="4">
<h2> 集体土地所有权宗地分类面积调查表</h2><br/>
<div class="dw">
单位:
<el-radio-group v-model="flmjData.dw">
<el-radio :label="3">平方米</el-radio>
<el-radio :label="6">公顷</el-radio>
<el-radio :label="9"></el-radio>
</el-radio-group>
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<th>权利人</th>
<td colspan="3">
<el-input v-model="flmjData.qlr" disabled></el-input>
</td>
</tr>
<tr>
<th>宗地代码</th>
<td colspan="3">
<el-input v-model="flmjData.zddm" disabled></el-input>
</td>
</tr>
<tr>
<th>不动产单元号</th>
<td colspan="3">
<el-input v-model="flmjData.bdcdyh" disabled></el-input>
</td>
</tr>
<tr >
<th rowspan="7">
分类面积
</th>
<th colspan="2">农用地</th>
<td>
<el-input v-model="flmjData.lyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th rowspan="4">
其他
</th>
<th>
耕地
</th>
<th colspan="2">
<el-input v-model="flmjData.gd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</th>
</tr>
<tr>
<th>林地</th>
<td colspan="2">
<el-input v-model="flmjData.ld" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th>
草地
</th>
<td colspan="2">
<el-input v-model="flmjData.cd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th>其他</th>
<td colspan="2">
<el-input v-model="flmjData.qt" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th>建设用地</th>
<td colspan="3">
<el-input v-model="flmjData.jsyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th>
未利用地
</th>
<td colspan="3">
<el-input v-model="flmjData.wlyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
</td>
</tr>
<tr>
<th rowspan="2">调查记事</th>
<td colspan="3">
<el-input type="textarea"
:autosize="{ minRows: 2, maxRows: 4}" v-model="flmjData.dcjs"></el-input>
</td>
</tr>
<tr>
<td colspan="3">
<el-form :inline="true" :model="flmjData" class="demo-form-inline">
<el-form-item label="调查员:">
<el-input v-model="flmjData.dcy" ></el-input>
</el-form-item>
<el-form-item label="日期:">
<el-input
placeholder="请选择日期"
title="调查日期"
type="date"
v-model="flmjData.dcrq">
</el-input>
</el-form-item>
</el-form>
</td>
</tr>
<tr>
<th rowspan="2">审核意见</th>
<td colspan="3">
<el-input type="textarea"
:autosize="{ minRows: 2, maxRows: 4}" v-model="flmjData.shyj"></el-input>
</td>
</tr>
<tr>
<td colspan="3">
<el-form :inline="true" :model="flmjData" class="demo-form-inline">
<el-form-item label="审核员:">
<el-input v-model="flmjData.shy" ></el-input>
</el-form-item>
<el-form-item label="日期:">
<el-input
placeholder="请选择日期"
title="调查日期"
type="date"
v-model="flmjData.shrq">
</el-input>
</el-form-item>
</el-form>
</td>
</tr>
<tr>
<td colspan="4" style="text-align: center">
<el-button>保存</el-button>
</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
export default {
name: "Fldcb",
data(){
return{
flmjData:{
dw:'', // 单位
qlr:'', // 权利人
zddm:'', // 宗地代码
bdcdyh:'', // 不动产单元号
lyd:'', // 农用地
gd:'', // 耕地
ld:'', // 林地
cd:'', // 草地
qt:'', //其他
jsyd:'', // 建设用地
wlyd:'', // 未利用地
dcjs:"", // 调查记事
dcy:'', // 调查员
dcrq:'', // 调查日期
shyj:'', // 审核意见
shy:'', // 审核员
shrq:'' // 审核日期
}
}
}
}
</script>
<style scoped lang="less">
table{
margin-top: 20px;
background-color: #fff;
font-size: 14px;
width: 100%;
cursor: pointer;
th{
height: 36px;
}
}
.dw{
float: right;
}
.demo-form-inline{
float: right;
}
</style>
......@@ -315,7 +315,7 @@
export default {
name: "",
inject: ['getTreeByS','getRightTree'],
inject: ['getTreeByS','getRightTree','getTreeByBsm'],
components: {zdQueryData,dzQueryData,hfghb},
props: {},
data() {
......@@ -646,14 +646,25 @@
saveDzFg(this.dzFghData).then(res => {
vm.loadingHide()
if (res.success) {
this.getRightTree(res.result,'0,1,2');
this.$router.push({
path: '/zd',
query: {
bsm: res.result,
source: 3, //分割标识
}
});
if(res.result.zrz!==''&&res.result.zrz!=null){
this.getTreeByBsm(res.result.zrz,'zrz','0,1,2');
this.$router.push({
path: '/zrz',
query: {
bsm: res.result.zrz,
source: 3, //分割标识
}
});
}else if(res.result.dz!==''&&res.result.dz!=null){
this.getTreeByBsm(res.result.dz,'dz','0,1,2');
this.$router.push({
path: '/dz',
query: {
bsm: res.result.dz,
source: 3, //分割标识
}
});
}
} else {
Message.error("保存失败")
}
......
......@@ -176,6 +176,45 @@ export default {
clearPostionLayer(viewId){
var view = maps[viewId];
view.graphics.removeAll();
},
//打印地图
printMap(viewId,outSpatialReference,serverUrl,priTemParames,callBackFunction){
var self = this;
loadModules([
"esri/tasks/PrintTask",
"esri/tasks/support/PrintParameters",
"esri/tasks/support/PrintTemplate"
]).then(([
PrintTask,
PrintParameters,
PrintTemplate
]) => {
var view = maps[viewId],
printTask = new PrintTask({
url:serverUrl
}),
template = new PrintTemplate({
layout:priTemParames.layOut,
format:priTemParames.format,
layoutOptions: {
titleText:priTemParames.title,
scalebarUnit:'Meters',
authorText:priTemParames.author
}
}),
paramets = new PrintParameters({
view:view,
template:template
});
paramets.outSpatialReference = outSpatialReference ? outSpatialReference : view.spatialReference;
printTask.execute(paramets).then(res => {
if(callBackFunction && typeof callBackFunction == 'function'){
callBackFunction(res);
}
});
}).catch(err => {
console.log(err);
})
}
}
}
\ No newline at end of file
......
......@@ -38,9 +38,13 @@
<span>缩小</span>
</li>
<li @click="info">
<i class="iconfont iconxinxi"></i>
<i class="iconfont iconshibie"></i>
<span>识别</span>
</li>
<li @click="print">
<i class="iconfont icondayin"></i>
<span>打印</span>
</li>
<li @click="clear">
<i class="iconfont iconqingchu"></i>
<span>清除</span>
......@@ -59,6 +63,9 @@
</el-form-item>
</el-form>
</div>
<el-dialog title="地图打印" :visible.sync="printDialog" :close-on-click-modal="false" width="30%">
<print-template :viewId='viewId'></print-template>
</el-dialog>
</div>
</template>
<script>
......@@ -71,6 +78,8 @@ import mapTools from "./js/mapTools";
import {loadModules} from "esri-loader"
import printTemplate from './printTemplate.vue'
export default {
props:{
viewId:{
......@@ -90,9 +99,13 @@ export default {
x:"",
y:""
},
isPostion:false
isPostion:false,
printDialog:false
}
},
components:{
printTemplate
},
methods:{
fullMap(){
var view = maps[this.viewId];
......@@ -129,7 +142,9 @@ export default {
},true,'all',3,view.extent);
});
},
print(){
this.printDialog = true;
},
zoomOut(){
var view = maps[this.viewId];
this.initDraw("rectangle",this.viewId,null,function(geo){
......@@ -227,5 +242,8 @@ export default {
top: 58px;
}
}
/deep/ .v-modal{
z-index:10
}
</style>
\ No newline at end of file
......
......@@ -2,6 +2,7 @@
<!-- <div class="content_box"> -->
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" >
<el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
<el-tab-pane label="分类调查表" name="fldcb"><fldcb v-if="fldbcVisible"></fldcb></el-tab-pane>
<el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb></el-tab-pane>
<el-tab-pane label="界址点" name="jzd">
<jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd>
......@@ -26,10 +27,11 @@ import djb from "./djb";
import lshs from "./lshs";
import fjcl from "./fjcl/fjcl"
import {queryStatus} from "@api/search"
import Fldcb from "@components/Fldcb/Fldcb"
export default {
name: "",
components: {
zddcb,mjftb,jzd,jzx,djb,lshs,fjcl
zddcb,mjftb,jzd,jzx,djb,lshs,fjcl,Fldcb
},
props: {},
data() {
......@@ -38,6 +40,7 @@ export default {
activeName: "djdcb",
mjftbVisible:false,
jzdVisible:false,
fldbcVisible:false,
jzxVisible:false,
djbVisible:false,
lshsVisible:false,
......@@ -67,6 +70,9 @@ export default {
case 'mjftb':
this.mjftbVisible = true;
break;
case 'fldcb':
this.fldbcVisible = true;
break;
case 'jzd':
this.jzdVisible = true;
break;
......