| | |
| | | * @Author: Morpheus |
| | | * @Date: 2022-05-11 15:00:23 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2022-07-13 17:58:03 |
| | | * @Last Modified time: 2022-07-14 11:28:08 |
| | | * 驾驶舱 |
| | | */ |
| | | <template> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="c"> |
| | | <div class="farm-more-btn" @click="farmOperClick({type: '', landId: ''})"> |
| | | 更多 |
| | | <i class="el-icon-d-arrow-right"></i> |
| | | </div> |
| | | |
| | | <div class="title-box"> |
| | | <div class="icon"></div> |
| | | <div class="text"> |
| | |
| | | </div> |
| | | |
| | | <div class="content-box" :v-if="isFarmingDetail"> |
| | | <div |
| | | @click="farmOperClick(item)" |
| | | class="detail" |
| | | v-for="(item, index) in farmingList" |
| | | :key="index" |
| | | > |
| | | <div class="detail" v-for="(item, index) in farmingList" :key="index"> |
| | | <div class="title">{{ item.name }}</div> |
| | | <div class="num-unit"> |
| | | <div class="num">{{ item.value }}</div> |
| | |
| | | <template slot="public-box-content"> |
| | | <div class="action-bar"> |
| | | <div class="search"> |
| | | <el-select size="small" v-model="farmOperType" placeholder="选择农事类型"> |
| | | <el-select |
| | | class="select-type" |
| | | size="small" |
| | | v-model="farmOperType" |
| | | placeholder="选择农事类型" |
| | | > |
| | | <el-option |
| | | v-for="(item, index) in farmingList" |
| | | :key="index" |
| | | :label="item.name" |
| | | :value="item.name" |
| | | :value="item.type" |
| | | ></el-option> |
| | | </el-select> |
| | | <!-- |
| | | <el-select size="small" v-model="value" placeholder="选择地块"> |
| | | |
| | | <el-select |
| | | class="select-plot" |
| | | size="small" |
| | | v-model="farmPlotId" |
| | | placeholder="选择地块" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | v-for="(item, index) in plotNumArray" |
| | | :key="index" |
| | | :label="item.landName" |
| | | :value="item.id" |
| | | ></el-option> |
| | | </el-select>--> |
| | | </el-select> |
| | | </div> |
| | | <div class="btn-grounp"> |
| | | <el-button |
| | |
| | | class="search" |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | @click="farmSelectList" |
| | | >查询</el-button> |
| | | <el-button |
| | | size="small" |
| | | class="reset" |
| | | type="info" |
| | | icon="el-icon-refresh-right" |
| | | @click="farmResetList" |
| | | >重置</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | <div>{{item.typeName}}</div> |
| | | <div>{{item.landName}}</div> |
| | | <div>{{item.remarks == '' ? '--' : item.remarks}}</div> |
| | | <div>{{item.content}}</div> |
| | | <div>{{item.agriculturalName}}</div> |
| | | <div>{{item.jobWay == 0 ? '人工' : '机械'}}</div> |
| | | <div>{{item.time}}</div> |
| | | <div>{{item.createTime.substr(0,10)}}</div> |
| | |
| | | // 农事操作记录列表 |
| | | farmOperList: [], |
| | | // 选择的农事类型 |
| | | farmOperType: '' |
| | | farmOperType: '', |
| | | // 农场地块id |
| | | farmPlotId: '' |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | this.initRightPie('EquipmentEcharts') |
| | | }, |
| | | methods: { |
| | | // 农事操作搜索 |
| | | farmSelectList () { |
| | | this.farmOperClick({ type: this.farmOperType, landId: this.farmPlotId }) |
| | | }, |
| | | |
| | | // 农事操作重置 |
| | | farmResetList () { |
| | | this.farmOperType = '' |
| | | this.farmPlotId = '' |
| | | this.farmOperClick({ type: this.farmOperType, landId: this.farmPlotId }) |
| | | }, |
| | | |
| | | farmOperClick (item) { |
| | | getFarmingRecordList({ type: item.type }).then(res => { |
| | | getFarmingRecordList({ type: item.type, landId: item.landId }).then(res => { |
| | | this.farmOperList = res.data.data |
| | | this.farmOperPopup = true |
| | | }) |
| | |
| | | |
| | | getLandList () { |
| | | getLandList().then(res => { |
| | | console.log(res.data.data, 456) |
| | | |
| | | res.data.data.forEach(item => { |
| | | if (item.landRange != '' || item.landRange != null) { |
| | | item.landRange = item.landRange.replace(/POLYGON\(\(/g, '') |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .farm-more-btn { |
| | | position: absolute; |
| | | top: 4px; |
| | | right: 0; |
| | | font-size: 14px; |
| | | color: #a9d1d7; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | </style> |