df2d720a by 杨威

新建临海,添加临海路由和相关组件

1 parent 5305adea
...@@ -110,7 +110,13 @@ const constantRoutes = [ ...@@ -110,7 +110,13 @@ const constantRoutes = [
110 name: "已办箱", 110 name: "已办箱",
111 code: "2-1", 111 code: "2-1",
112 component: () => import("@/views/ybx/index"), 112 component: () => import("@/views/ybx/index"),
113 } 113 },
114 {
115 path: "/lh",
116 name: "林海",
117 code: "1-3",
118 component: () => import("@/views/lh/index"),
119 },
114 ], 120 ],
115 }, 121 },
116 ]; 122 ];
......
1 <template>
2 <el-tabs v-model="activeName" class="tabs">
3 <el-tab-pane label="林海调查表" name="lhdcb"><Lhdcb></Lhdcb></el-tab-pane>
4 </el-tabs>
5 </template>
6
7 <script>
8 import { getQjZdjbxxDetailById } from "@api/zd";
9 import Lhdcb from "./lhdcb"
10 export default {
11 name: "",
12 components: {
13 Lhdcb
14 },
15 props: {},
16 data() {
17 return {
18 activeName:'lhdcb'
19 };
20 },
21 methods: {
22 getZdData(bsm) {
23 getQjZdjbxxDetailById(bsm).then((res) => {
24 if (res.success) {
25 console.log(res, "宗地信息");
26 this.isFldc = res.result.zdtzmbsm === "PSHGSBDCQJDC000000000000DC440010";
27 this.isTdcb = res.result.zdtzmbsm === ("PSHGSBDCQJDC000000000000DC440060" || "PSHGSBDCQJDC000000000000DC440070" ||"PSHGSBDCQJDC000000000000DC440080");
28
29 }
30 });
31 },
32 },
33 created() {},
34 mounted() {
35 this.getZdData(this.$route.query.bsm);
36 },
37 computed: {
38 lhbsm() {
39 return this.$route.query.bsm;
40 },
41 },
42 watch: {
43 lhbsm: function(val) {
44
45 },
46 },
47 };
48 </script>
49 <style scoped lang="less">
50 .el-tab-pane {
51 overflow-y: scroll;
52 }
53 </style>
1 <template>
2 <div class="main">
3 林海调查表
4 </div>
5 </template>
6
7 <script>
8 export default {
9 name:"",
10 components:{},
11 props:{},
12 data(){
13 return {
14 }
15 },
16 created(){},
17 mounted(){},
18 methods:{},
19 computed: {},
20 watch: {},
21 }
22 </script>
23 <style scoped lang="less">
24 </style>
...\ No newline at end of file ...\ No newline at end of file
...@@ -127,6 +127,14 @@ ...@@ -127,6 +127,14 @@
127 </div> 127 </div>
128 </el-tab-pane> 128 </el-tab-pane>
129 <el-tab-pane class="eltabspane" v-if="!createZrz" label="林权" name="lq"> 129 <el-tab-pane class="eltabspane" v-if="!createZrz" label="林权" name="lq">
130 <el-form :inline="true" :rules="rules3" :model="ruleForm3" ref="ruleForm3" class="demo-form-inline">
131 <el-form-item label="项目名称" class="w100" prop="xmmc">
132 <el-input
133 v-model="ruleForm3.xmmc"
134 placeholder="项目名称"
135 ></el-input>
136 </el-form-item>
137 </el-form>
130 <div class="handleBtn"> 138 <div class="handleBtn">
131 <!-- <el-button type="primary" class="w98 import">导入图形</el-button> --> 139 <!-- <el-button type="primary" class="w98 import">导入图形</el-button> -->
132 <el-button type="primary" class="w98 creat" @click="todo">创建</el-button> 140 <el-button type="primary" class="w98 creat" @click="todo">创建</el-button>
...@@ -218,6 +226,13 @@ export default { ...@@ -218,6 +226,13 @@ export default {
218 type: "dz", 226 type: "dz",
219 ywlx:"create" 227 ywlx:"create"
220 }, 228 },
229 ruleForm3:{
230 zdbsm:'',
231 xmmc:'',
232 userbsm:'',
233 type: "lq",
234 ywlx:"create"
235 },
221 ruleForm4:{ 236 ruleForm4:{
222 zdzhbsm:'', 237 zdzhbsm:'',
223 xmmc:'', 238 xmmc:'',
...@@ -255,6 +270,11 @@ export default { ...@@ -255,6 +270,11 @@ export default {
255 { required: true, message: '请输入项目名称', trigger: 'blur' }, 270 { required: true, message: '请输入项目名称', trigger: 'blur' },
256 ], 271 ],
257 }, 272 },
273 rules3: {
274 xmmc: [
275 { required: true, message: '请输入项目名称', trigger: 'blur' },
276 ],
277 },
258 rules4: { 278 rules4: {
259 xmmc: [ 279 xmmc: [
260 { required: true, message: '请输入项目名称', trigger: 'blur' }, 280 { required: true, message: '请输入项目名称', trigger: 'blur' },
...@@ -674,7 +694,8 @@ export default { ...@@ -674,7 +694,8 @@ export default {
674 .handleBtn{ 694 .handleBtn{
675 position: absolute; 695 position: absolute;
676 bottom: 0; 696 bottom: 0;
677 right: 35px; 697 left: 50%;
698 margin-left: -100px;
678 .w98{ 699 .w98{
679 width: 98px; 700 width: 98px;
680 } 701 }
......