c2a10fc8 by 杨威
2 parents fd8e2f3f 3d3e9b4d
...@@ -31,6 +31,12 @@ ...@@ -31,6 +31,12 @@
31 <ul class="icon_lists dib-box"> 31 <ul class="icon_lists dib-box">
32 32
33 <li class="dib"> 33 <li class="dib">
34 <span class="icon iconfont">&#xe7af;</span>
35 <div class="name">打印</div>
36 <div class="code-name">&amp;#xe7af;</div>
37 </li>
38
39 <li class="dib">
34 <span class="icon iconfont">&#xe7a6;</span> 40 <span class="icon iconfont">&#xe7a6;</span>
35 <div class="name">饼图</div> 41 <div class="name">饼图</div>
36 <div class="code-name">&amp;#xe7a6;</div> 42 <div class="code-name">&amp;#xe7a6;</div>
...@@ -651,6 +657,15 @@ ...@@ -651,6 +657,15 @@
651 <ul class="icon_lists dib-box"> 657 <ul class="icon_lists dib-box">
652 658
653 <li class="dib"> 659 <li class="dib">
660 <span class="icon iconfont icondayin"></span>
661 <div class="name">
662 打印
663 </div>
664 <div class="code-name">.icondayin
665 </div>
666 </li>
667
668 <li class="dib">
654 <span class="icon iconfont iconbingtu"></span> 669 <span class="icon iconfont iconbingtu"></span>
655 <div class="name"> 670 <div class="name">
656 饼图 671 饼图
...@@ -1536,6 +1551,14 @@ ...@@ -1536,6 +1551,14 @@
1536 1551
1537 <li class="dib"> 1552 <li class="dib">
1538 <svg class="icon svg-icon" aria-hidden="true"> 1553 <svg class="icon svg-icon" aria-hidden="true">
1554 <use xlink:href="#icondayin"></use>
1555 </svg>
1556 <div class="name">打印</div>
1557 <div class="code-name">#icondayin</div>
1558 </li>
1559
1560 <li class="dib">
1561 <svg class="icon svg-icon" aria-hidden="true">
1539 <use xlink:href="#iconbingtu"></use> 1562 <use xlink:href="#iconbingtu"></use>
1540 </svg> 1563 </svg>
1541 <div class="name">饼图</div> 1564 <div class="name">饼图</div>
......
This diff could not be displayed because it is too large.
...@@ -6,6 +6,13 @@ ...@@ -6,6 +6,13 @@
6 "description": "", 6 "description": "",
7 "glyphs": [ 7 "glyphs": [
8 { 8 {
9 "icon_id": "19479731",
10 "name": "打印",
11 "font_class": "dayin",
12 "unicode": "e7af",
13 "unicode_decimal": 59311
14 },
15 {
9 "icon_id": "19449217", 16 "icon_id": "19449217",
10 "name": "饼图", 17 "name": "饼图",
11 "font_class": "bingtu", 18 "font_class": "bingtu",
......
...@@ -20,6 +20,9 @@ Created by iconfont ...@@ -20,6 +20,9 @@ Created by iconfont
20 /> 20 />
21 <missing-glyph /> 21 <missing-glyph />
22 22
23 <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" />
24
25
23 <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" /> 26 <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" />
24 27
25 28
......
1 <template>
2 <div >
3 <table border="1">
4 <thead>
5 <tr rowspan="2">
6 <th colspan="4">
7 <h2> 集体土地所有权宗地分类面积调查表</h2><br/>
8 <div class="dw">
9 单位:
10 <el-radio-group v-model="flmjData.dw">
11 <el-radio :label="3">平方米</el-radio>
12 <el-radio :label="6">公顷</el-radio>
13 <el-radio :label="9"></el-radio>
14 </el-radio-group>
15 </div>
16 </th>
17 </tr>
18 </thead>
19 <tbody>
20 <tr>
21 <th>权利人</th>
22 <td colspan="3">
23 <el-input v-model="flmjData.qlr" disabled></el-input>
24 </td>
25 </tr>
26 <tr>
27 <th>宗地代码</th>
28 <td colspan="3">
29 <el-input v-model="flmjData.zddm" disabled></el-input>
30 </td>
31 </tr>
32 <tr>
33 <th>不动产单元号</th>
34 <td colspan="3">
35 <el-input v-model="flmjData.bdcdyh" disabled></el-input>
36 </td>
37 </tr>
38 <tr >
39 <th rowspan="7">
40 分类面积
41 </th>
42 <th colspan="2">农用地</th>
43 <td>
44 <el-input v-model="flmjData.lyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
45 </td>
46 </tr>
47 <tr>
48 <th rowspan="4">
49 其他
50 </th>
51 <th>
52 耕地
53 </th>
54 <th colspan="2">
55 <el-input v-model="flmjData.gd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
56 </th>
57 </tr>
58 <tr>
59 <th>林地</th>
60 <td colspan="2">
61 <el-input v-model="flmjData.ld" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
62 </td>
63 </tr>
64 <tr>
65 <th>
66 草地
67 </th>
68 <td colspan="2">
69 <el-input v-model="flmjData.cd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
70 </td>
71 </tr>
72 <tr>
73 <th>其他</th>
74 <td colspan="2">
75 <el-input v-model="flmjData.qt" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
76 </td>
77 </tr>
78 <tr>
79 <th>建设用地</th>
80 <td colspan="3">
81 <el-input v-model="flmjData.jsyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
82 </td>
83 </tr>
84 <tr>
85 <th>
86 未利用地
87 </th>
88 <td colspan="3">
89 <el-input v-model="flmjData.wlyd" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"></el-input>
90 </td>
91 </tr>
92 <tr>
93 <th rowspan="2">调查记事</th>
94 <td colspan="3">
95 <el-input type="textarea"
96 :autosize="{ minRows: 2, maxRows: 4}" v-model="flmjData.dcjs"></el-input>
97 </td>
98 </tr>
99 <tr>
100 <td colspan="3">
101
102 <el-form :inline="true" :model="flmjData" class="demo-form-inline">
103 <el-form-item label="调查员:">
104 <el-input v-model="flmjData.dcy" ></el-input>
105 </el-form-item>
106 <el-form-item label="日期:">
107 <el-input
108 placeholder="请选择日期"
109 title="调查日期"
110 type="date"
111 v-model="flmjData.dcrq">
112 </el-input>
113 </el-form-item>
114 </el-form>
115 </td>
116 </tr>
117 <tr>
118 <th rowspan="2">审核意见</th>
119 <td colspan="3">
120 <el-input type="textarea"
121 :autosize="{ minRows: 2, maxRows: 4}" v-model="flmjData.shyj"></el-input>
122 </td>
123 </tr>
124 <tr>
125 <td colspan="3">
126 <el-form :inline="true" :model="flmjData" class="demo-form-inline">
127 <el-form-item label="审核员:">
128 <el-input v-model="flmjData.shy" ></el-input>
129 </el-form-item>
130 <el-form-item label="日期:">
131 <el-input
132 placeholder="请选择日期"
133 title="调查日期"
134 type="date"
135 v-model="flmjData.shrq">
136 </el-input>
137 </el-form-item>
138 </el-form>
139 </td>
140 </tr>
141 <tr>
142 <td colspan="4" style="text-align: center">
143 <el-button>保存</el-button>
144 </td>
145 </tr>
146 </tbody>
147 </table>
148 </div>
149 </template>
150
151 <script>
152 export default {
153 name: "Fldcb",
154 data(){
155 return{
156 flmjData:{
157 dw:'', // 单位
158 qlr:'', // 权利人
159 zddm:'', // 宗地代码
160 bdcdyh:'', // 不动产单元号
161 lyd:'', // 农用地
162 gd:'', // 耕地
163 ld:'', // 林地
164 cd:'', // 草地
165 qt:'', //其他
166 jsyd:'', // 建设用地
167 wlyd:'', // 未利用地
168 dcjs:"", // 调查记事
169 dcy:'', // 调查员
170 dcrq:'', // 调查日期
171 shyj:'', // 审核意见
172 shy:'', // 审核员
173 shrq:'' // 审核日期
174 }
175 }
176 }
177 }
178 </script>
179
180 <style scoped lang="less">
181 table{
182 margin-top: 20px;
183 background-color: #fff;
184 font-size: 14px;
185 width: 100%;
186 cursor: pointer;
187 th{
188 height: 36px;
189 }
190 }
191 .dw{
192 float: right;
193 }
194 .demo-form-inline{
195 float: right;
196 }
197 </style>
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
315 315
316 export default { 316 export default {
317 name: "", 317 name: "",
318 inject: ['getTreeByS','getRightTree'], 318 inject: ['getTreeByS','getRightTree','getTreeByBsm'],
319 components: {zdQueryData,dzQueryData,hfghb}, 319 components: {zdQueryData,dzQueryData,hfghb},
320 props: {}, 320 props: {},
321 data() { 321 data() {
...@@ -646,14 +646,25 @@ ...@@ -646,14 +646,25 @@
646 saveDzFg(this.dzFghData).then(res => { 646 saveDzFg(this.dzFghData).then(res => {
647 vm.loadingHide() 647 vm.loadingHide()
648 if (res.success) { 648 if (res.success) {
649 this.getRightTree(res.result,'0,1,2'); 649 if(res.result.zrz!==''&&res.result.zrz!=null){
650 this.$router.push({ 650 this.getTreeByBsm(res.result.zrz,'zrz','0,1,2');
651 path: '/zd', 651 this.$router.push({
652 query: { 652 path: '/zrz',
653 bsm: res.result, 653 query: {
654 source: 3, //分割标识 654 bsm: res.result.zrz,
655 } 655 source: 3, //分割标识
656 }); 656 }
657 });
658 }else if(res.result.dz!==''&&res.result.dz!=null){
659 this.getTreeByBsm(res.result.dz,'dz','0,1,2');
660 this.$router.push({
661 path: '/dz',
662 query: {
663 bsm: res.result.dz,
664 source: 3, //分割标识
665 }
666 });
667 }
657 } else { 668 } else {
658 Message.error("保存失败") 669 Message.error("保存失败")
659 } 670 }
......
...@@ -176,6 +176,45 @@ export default { ...@@ -176,6 +176,45 @@ export default {
176 clearPostionLayer(viewId){ 176 clearPostionLayer(viewId){
177 var view = maps[viewId]; 177 var view = maps[viewId];
178 view.graphics.removeAll(); 178 view.graphics.removeAll();
179 },
180 //打印地图
181 printMap(viewId,outSpatialReference,serverUrl,priTemParames,callBackFunction){
182 var self = this;
183 loadModules([
184 "esri/tasks/PrintTask",
185 "esri/tasks/support/PrintParameters",
186 "esri/tasks/support/PrintTemplate"
187 ]).then(([
188 PrintTask,
189 PrintParameters,
190 PrintTemplate
191 ]) => {
192 var view = maps[viewId],
193 printTask = new PrintTask({
194 url:serverUrl
195 }),
196 template = new PrintTemplate({
197 layout:priTemParames.layOut,
198 format:priTemParames.format,
199 layoutOptions: {
200 titleText:priTemParames.title,
201 scalebarUnit:'Meters',
202 authorText:priTemParames.author
203 }
204 }),
205 paramets = new PrintParameters({
206 view:view,
207 template:template
208 });
209 paramets.outSpatialReference = outSpatialReference ? outSpatialReference : view.spatialReference;
210 printTask.execute(paramets).then(res => {
211 if(callBackFunction && typeof callBackFunction == 'function'){
212 callBackFunction(res);
213 }
214 });
215 }).catch(err => {
216 console.log(err);
217 })
179 } 218 }
180 } 219 }
181 } 220 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -38,9 +38,13 @@ ...@@ -38,9 +38,13 @@
38 <span>缩小</span> 38 <span>缩小</span>
39 </li> 39 </li>
40 <li @click="info"> 40 <li @click="info">
41 <i class="iconfont iconxinxi"></i> 41 <i class="iconfont iconshibie"></i>
42 <span>识别</span> 42 <span>识别</span>
43 </li> 43 </li>
44 <li @click="print">
45 <i class="iconfont icondayin"></i>
46 <span>打印</span>
47 </li>
44 <li @click="clear"> 48 <li @click="clear">
45 <i class="iconfont iconqingchu"></i> 49 <i class="iconfont iconqingchu"></i>
46 <span>清除</span> 50 <span>清除</span>
...@@ -59,6 +63,9 @@ ...@@ -59,6 +63,9 @@
59 </el-form-item> 63 </el-form-item>
60 </el-form> 64 </el-form>
61 </div> 65 </div>
66 <el-dialog title="地图打印" :visible.sync="printDialog" :close-on-click-modal="false" width="30%">
67 <print-template :viewId='viewId'></print-template>
68 </el-dialog>
62 </div> 69 </div>
63 </template> 70 </template>
64 <script> 71 <script>
...@@ -71,6 +78,8 @@ import mapTools from "./js/mapTools"; ...@@ -71,6 +78,8 @@ import mapTools from "./js/mapTools";
71 78
72 import {loadModules} from "esri-loader" 79 import {loadModules} from "esri-loader"
73 80
81 import printTemplate from './printTemplate.vue'
82
74 export default { 83 export default {
75 props:{ 84 props:{
76 viewId:{ 85 viewId:{
...@@ -90,9 +99,13 @@ export default { ...@@ -90,9 +99,13 @@ export default {
90 x:"", 99 x:"",
91 y:"" 100 y:""
92 }, 101 },
93 isPostion:false 102 isPostion:false,
103 printDialog:false
94 } 104 }
95 }, 105 },
106 components:{
107 printTemplate
108 },
96 methods:{ 109 methods:{
97 fullMap(){ 110 fullMap(){
98 var view = maps[this.viewId]; 111 var view = maps[this.viewId];
...@@ -129,7 +142,9 @@ export default { ...@@ -129,7 +142,9 @@ export default {
129 },true,'all',3,view.extent); 142 },true,'all',3,view.extent);
130 }); 143 });
131 }, 144 },
132 145 print(){
146 this.printDialog = true;
147 },
133 zoomOut(){ 148 zoomOut(){
134 var view = maps[this.viewId]; 149 var view = maps[this.viewId];
135 this.initDraw("rectangle",this.viewId,null,function(geo){ 150 this.initDraw("rectangle",this.viewId,null,function(geo){
...@@ -227,5 +242,8 @@ export default { ...@@ -227,5 +242,8 @@ export default {
227 top: 58px; 242 top: 58px;
228 } 243 }
229 } 244 }
245 /deep/ .v-modal{
246 z-index:10
247 }
230 248
231 </style> 249 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
2 <!-- <div class="content_box"> --> 2 <!-- <div class="content_box"> -->
3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" > 3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" >
4 <el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane> 4 <el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
5 <el-tab-pane label="分类调查表" name="fldcb"><fldcb v-if="fldbcVisible"></fldcb></el-tab-pane>
5 <el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb></el-tab-pane> 6 <el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb></el-tab-pane>
6 <el-tab-pane label="界址点" name="jzd"> 7 <el-tab-pane label="界址点" name="jzd">
7 <jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd> 8 <jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd>
...@@ -26,10 +27,11 @@ import djb from "./djb"; ...@@ -26,10 +27,11 @@ import djb from "./djb";
26 import lshs from "./lshs"; 27 import lshs from "./lshs";
27 import fjcl from "./fjcl/fjcl" 28 import fjcl from "./fjcl/fjcl"
28 import {queryStatus} from "@api/search" 29 import {queryStatus} from "@api/search"
30 import Fldcb from "@components/Fldcb/Fldcb"
29 export default { 31 export default {
30 name: "", 32 name: "",
31 components: { 33 components: {
32 zddcb,mjftb,jzd,jzx,djb,lshs,fjcl 34 zddcb,mjftb,jzd,jzx,djb,lshs,fjcl,Fldcb
33 }, 35 },
34 props: {}, 36 props: {},
35 data() { 37 data() {
...@@ -38,6 +40,7 @@ export default { ...@@ -38,6 +40,7 @@ export default {
38 activeName: "djdcb", 40 activeName: "djdcb",
39 mjftbVisible:false, 41 mjftbVisible:false,
40 jzdVisible:false, 42 jzdVisible:false,
43 fldbcVisible:false,
41 jzxVisible:false, 44 jzxVisible:false,
42 djbVisible:false, 45 djbVisible:false,
43 lshsVisible:false, 46 lshsVisible:false,
...@@ -67,6 +70,9 @@ export default { ...@@ -67,6 +70,9 @@ export default {
67 case 'mjftb': 70 case 'mjftb':
68 this.mjftbVisible = true; 71 this.mjftbVisible = true;
69 break; 72 break;
73 case 'fldcb':
74 this.fldbcVisible = true;
75 break;
70 case 'jzd': 76 case 'jzd':
71 this.jzdVisible = true; 77 this.jzdVisible = true;
72 break; 78 break;
......