| | |
| | | <div v-loading="loading" class="main"> |
| | | <div> |
| | | <searchBar v-if="searchType" :search-type="'reform'" @handleSearch="handleSearchBut" @handleAdd="handleOpenDialog(null, 'add')" /> |
| | | <newWorkOrder v-if="centerDialogVisible" ref="newWorkOrder" :parent-form-data="parentFormData" :title="title" :page-state="pageState" :visible.sync="centerDialogVisible" @handleSubmit="newHandleSubmit" /> |
| | | <newWorkOrder v-if="centerDialogVisible" ref="newWorkOrder" :isToMap.sync='isToMap' :parent-form-data="parentFormData" :title="title" :page-state="pageState" :visible.sync="centerDialogVisible" @handleSubmit="newHandleSubmit" /> |
| | | <!-- <el-divider></el-divider> --> |
| | | <div class="tab"> |
| | | <div class="exportBox"> |
| | |
| | | <el-button type="primary" @click="handleEditChange">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <mapContainer :visible.sync="isToMap" v-if="isToMap"></mapContainer> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import _ from 'lodash' |
| | | import qs from 'qs' |
| | | import searchBar from '@/views/toCarryOutLegislativeReforms/components/queryForm' |
| | | import mapContainer from '@/views/toCarryOutLegislativeReforms/components/locationMap' |
| | | import newWorkOrder from '@/views/toCarryOutLegislativeReforms/components/newWorkOrder' |
| | | import workOrderInformation from '@/views/toCarryOutLegislativeReforms/components/workOrderInformation' |
| | | export default { |
| | | components: { |
| | | searchBar, |
| | | newWorkOrder, |
| | | mapContainer, |
| | | workOrderInformation |
| | | }, |
| | | // mixins: [mixins], |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | isToMap: false, |
| | | selectionRows: [], |
| | | errorClass: 'errorClass', |
| | | searchType: 'reform', |
| | |
| | | sealList: [] |
| | | } |
| | | }, |
| | | watch: { |
| | | isToMap(newVal, oldVal) { |
| | | this.isToMap = newVal |
| | | } |
| | | }, |
| | | computed: { |
| | | updataEscalationUnitIdFormatter: function () { |
| | | const data = this.unitList.find( |
| | |
| | | this.handleSearch({ isInvalid: 0, state: [9, 20, 30] }) |
| | | this.getUnitList() |
| | | this.getContaminateList() |
| | | if (navigator.geolocation) { |
| | | navigator.geolocation.getCurrentPosition( |
| | | this.successCallback, |
| | | this.errorCallback |
| | | ) |
| | | } else { |
| | | alert('该浏览器不支持获取当前位置信息') |
| | | } |
| | | }, |
| | | methods: { |
| | | successCallback(position) { |
| | | const latitude = position.coords.latitude // 纬度 |
| | | const longitude = position.coords.longitude // 经度 |
| | | console.log('经度:' + longitude) |
| | | console.log('纬度:' + latitude) |
| | | }, |
| | | errorCallback() {}, |
| | | handleSelectionChange(rows) { |
| | | console.log(rows) |
| | | this.selectionRows = rows |