df2d720a by 杨威

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

1 parent 5305adea
......@@ -110,7 +110,13 @@ const constantRoutes = [
name: "已办箱",
code: "2-1",
component: () => import("@/views/ybx/index"),
}
},
{
path: "/lh",
name: "林海",
code: "1-3",
component: () => import("@/views/lh/index"),
},
],
},
];
......
<template>
<el-tabs v-model="activeName" class="tabs">
<el-tab-pane label="林海调查表" name="lhdcb"><Lhdcb></Lhdcb></el-tab-pane>
</el-tabs>
</template>
<script>
import { getQjZdjbxxDetailById } from "@api/zd";
import Lhdcb from "./lhdcb"
export default {
name: "",
components: {
Lhdcb
},
props: {},
data() {
return {
activeName:'lhdcb'
};
},
methods: {
getZdData(bsm) {
getQjZdjbxxDetailById(bsm).then((res) => {
if (res.success) {
console.log(res, "宗地信息");
this.isFldc = res.result.zdtzmbsm === "PSHGSBDCQJDC000000000000DC440010";
this.isTdcb = res.result.zdtzmbsm === ("PSHGSBDCQJDC000000000000DC440060" || "PSHGSBDCQJDC000000000000DC440070" ||"PSHGSBDCQJDC000000000000DC440080");
}
});
},
},
created() {},
mounted() {
this.getZdData(this.$route.query.bsm);
},
computed: {
lhbsm() {
return this.$route.query.bsm;
},
},
watch: {
lhbsm: function(val) {
},
},
};
</script>
<style scoped lang="less">
.el-tab-pane {
overflow-y: scroll;
}
</style>
<template>
<div class="main">
林海调查表
</div>
</template>
<script>
export default {
name:"",
components:{},
props:{},
data(){
return {
}
},
created(){},
mounted(){},
methods:{},
computed: {},
watch: {},
}
</script>
<style scoped lang="less">
</style>
\ No newline at end of file
......@@ -127,6 +127,14 @@
</div>
</el-tab-pane>
<el-tab-pane class="eltabspane" v-if="!createZrz" label="林权" name="lq">
<el-form :inline="true" :rules="rules3" :model="ruleForm3" ref="ruleForm3" class="demo-form-inline">
<el-form-item label="项目名称" class="w100" prop="xmmc">
<el-input
v-model="ruleForm3.xmmc"
placeholder="项目名称"
></el-input>
</el-form-item>
</el-form>
<div class="handleBtn">
<!-- <el-button type="primary" class="w98 import">导入图形</el-button> -->
<el-button type="primary" class="w98 creat" @click="todo">创建</el-button>
......@@ -218,6 +226,13 @@ export default {
type: "dz",
ywlx:"create"
},
ruleForm3:{
zdbsm:'',
xmmc:'',
userbsm:'',
type: "lq",
ywlx:"create"
},
ruleForm4:{
zdzhbsm:'',
xmmc:'',
......@@ -255,6 +270,11 @@ export default {
{ required: true, message: '请输入项目名称', trigger: 'blur' },
],
},
rules3: {
xmmc: [
{ required: true, message: '请输入项目名称', trigger: 'blur' },
],
},
rules4: {
xmmc: [
{ required: true, message: '请输入项目名称', trigger: 'blur' },
......@@ -674,7 +694,8 @@ export default {
.handleBtn{
position: absolute;
bottom: 0;
right: 35px;
left: 50%;
margin-left: -100px;
.w98{
width: 98px;
}
......