| | |
| | | </el-tabs> |
| | | |
| | | <!-- 新建工单对话框 --> |
| | | <el-dialog v-model="dialogVisible" title="新建工单" width="70%" :close-on-click-modal="false" @close="resetForm"> |
| | | <el-dialog v-model="dialogVisible" v-if="dialogVisible" title="新建工单" width="70%" :close-on-click-modal="false" @close="resetForm"> |
| | | <el-form :model="form" :rules="rules" ref="form" label-width="90px" class="create-ticket-form"> |
| | | <div class="form-section"> |
| | | <el-row :gutter="16"> |
| | |
| | | |
| | | handleLocationChange (val) { |
| | | let locationValue = val.value |
| | | console.log('handleLocationChange', locationValue) |
| | | if (locationValue && locationValue.length >= 2) { |
| | | // 兼容第三项为地址 |
| | | this.form.location = [ |
| | | Number(locationValue[0]), |
| | | Number(locationValue[1]), |
| | | locationValue[2] || '', |
| | | ] |
| | | const [lng, lat] = gcj02ToWgs84(locationValue[0], locationValue[1]) |
| | | this.form.location = [Number(lng), Number(lat), locationValue[2] || '',] |
| | | this.form.address = locationValue[2] || '' |
| | | } else { |
| | | this.form.location = [] |
| | |
| | | |
| | | handleAdd () { |
| | | this.dialogVisible = true |
| | | this.mapParams.center = null |
| | | this.form.location = [] |
| | | }, |
| | | |
| | | resetForm () { |