| | |
| | | @click="rejectDetail(row.id)">驳回原因</el-button> |
| | | </div> |
| | | <!--草稿--> |
| | | <div v-if="row.status == 0 && userInfo.user_id == row.create_user"> |
| | | <el-button class="edit-btn" type="text" icon="el-icon-edit-outline" |
| | | <div> |
| | | <el-button class="edit-btn" type="text" icon="el-icon-edit" |
| | | @click="handleViewDetail(row)">编辑</el-button> |
| | | <el-button class="publish-btn" type="text" icon="el-icon-position" |
| | | @click="userPublishPush(row.id)">发布</el-button> |
| | |
| | | |
| | | <el-row> |
| | | <div class="add-box-btns"> |
| | | <el-button type="danger" @click="submitForm(1)">发布</el-button> |
| | | <el-button type="danger" @click="submitForm(1)">发起</el-button> |
| | | <el-button type="primary" @click="submitForm(0)">存草稿</el-button> |
| | | </div> |
| | | </el-row> |
| | |
| | | |
| | | this.detailVisible = true |
| | | |
| | | this.initMapLine() |
| | | this.initMapLine(data.device_map_infos) |
| | | }, |
| | | async handleCheckDetail (row) { |
| | | const response = await orderLogDetails(row.id) |
| | |
| | | // 更新机巢列表 |
| | | this.device_sns = data.device_list |
| | | this.detailVisibleCopy = true |
| | | this.initMapLine() |
| | | this.initMapLine(data.device_map_infos) |
| | | }, |
| | | //导出 |
| | | async exportData () { |
| | |
| | | this.initMapLine() |
| | | }, |
| | | |
| | | initMapLine () { |
| | | initMapLine (infos = {}) { |
| | | let currentLine = this.wayLineList.find(item => item.wayline_id == this.form.file_id) |
| | | |
| | | if (!currentLine) return |
| | |
| | | return item.Point.coordinates.split(',') |
| | | }) |
| | | |
| | | if (JSON.stringify(infos) != '{}') positions.unshift([ |
| | | infos[0].longitude, |
| | | infos[0].latitude, |
| | | ]) |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.$refs.MapContainer && this.$refs.MapContainer.initAddEntity) { |
| | | this.$refs.MapContainer.initAddEntity('polyline', positions) |