|
@@ -1,5 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
|
|
+ <div class="header_title">牧场概况--{{title}}
|
|
|
|
+ <div class="right_float" @click="backBtn">回到上一页</div>
|
|
|
|
+ </div>
|
|
<div>
|
|
<div>
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="box_item">
|
|
<div class="box_item">
|
|
@@ -34,7 +37,7 @@
|
|
<div class="form_item">
|
|
<div class="form_item">
|
|
<el-form :inline="true" size="mini">
|
|
<el-form :inline="true" size="mini">
|
|
<el-form-item label="市县">
|
|
<el-form-item label="市县">
|
|
- <areaZz @getCityCode="getCityCode"></areaZz>
|
|
|
|
|
|
+ <areaZz :countyCode="cityCode" @getCityCode="getCityCode"></areaZz>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="时间:" v-if="isProvince">
|
|
<el-form-item label="时间:" v-if="isProvince">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -202,7 +205,7 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
...mapState(['baseUrl'])
|
|
...mapState(['baseUrl'])
|
|
},
|
|
},
|
|
- props: ['cityCode'],
|
|
|
|
|
|
+ props: ['cityCode', 'title'],
|
|
methods: {
|
|
methods: {
|
|
getCityCode(val) {
|
|
getCityCode(val) {
|
|
let len = val.length;
|
|
let len = val.length;
|
|
@@ -263,11 +266,11 @@ export default {
|
|
onSelect(row) {
|
|
onSelect(row) {
|
|
this.countyCode = row.code;
|
|
this.countyCode = row.code;
|
|
this.type = row.type;
|
|
this.type = row.type;
|
|
- console.log(row);
|
|
|
|
|
|
+ let title = row.name;
|
|
if(row.type === 4) {
|
|
if(row.type === 4) {
|
|
- this.$emit('goFarm', {farmCode: row.farmCode, type: 4});
|
|
|
|
|
|
+ this.$emit('goFarm', {farmCode: row.farmCode, type: 4, name: title});
|
|
} else {
|
|
} else {
|
|
- this.$emit('getCountyCode', {countyCode: this.countyCode, type: this.type});
|
|
|
|
|
|
+ this.$emit('getCountyCode', {countyCode: this.countyCode, type: this.type, title: title});
|
|
}
|
|
}
|
|
// if (row.type === 1) {
|
|
// if (row.type === 1) {
|
|
// this.initCity();
|
|
// this.initCity();
|
|
@@ -287,6 +290,9 @@ export default {
|
|
this.boxList = res.data.data;
|
|
this.boxList = res.data.data;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ backBtn() {
|
|
|
|
+ this.$emit('backBtn', 1);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -358,4 +364,26 @@ export default {
|
|
color: #DA331D;
|
|
color: #DA331D;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
+.header_title {
|
|
|
|
+ height: 40px;
|
|
|
|
+ background-color: #F7F7F7;
|
|
|
|
+ border: 1px solid #ddd;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ color: #6FA8C8;
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
+ padding-left: 20px;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.right_float {
|
|
|
|
+ width: 100px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ border: 1px solid #ddd;
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 5px;
|
|
|
|
+ right: 15px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|