| | |
| | | <el-select |
| | | :disabled="isDisabled" |
| | | class="ztzf-layer-search" |
| | | |
| | | clearable |
| | | v-model="formData.folder_id" |
| | | placeholder="请选择" |
| | |
| | | <!-- popper-class="ztzf-layer-date-picker-popper " --> |
| | | <el-date-picker |
| | | :disabled="isDisabled" |
| | | |
| | | class="ztzf-layer-date-picker " |
| | | v-model="timeValue" |
| | | type="datetimerange" |
| | |
| | | watch( |
| | | () => layerParams.value.editDetailData, |
| | | newVal => { |
| | | console.log('newVal', newVal); |
| | | |
| | | if (newVal && layerParams.value.editingIsProhibited) { |
| | | // 当editDetailData有值时,填充表单 |
| | | formData.value = { |
| | |
| | | is_enabled: true, |
| | | area: formData.value.area, |
| | | altitude: formData.value.altitude, |
| | | geo_data: layerParams.value.polygonPosition || formData.value.geo_data, |
| | | geo_data: layerParams.value.polygonPosition |
| | | ? layerParams.value.polygonPosition |
| | | : formData.value.geo_data, |
| | | control_start_time: formData.value.control_start_time, |
| | | control_end_time: formData.value.control_end_time, |
| | | }; |
| | | |
| | | // 如果是编辑模式,才添加 id |
| | | if (layerParams.value.decideWhetherToAddOrEdit === 2) { |
| | | params.id = detailData.value.id; |
| | |
| | | deitFenceApi(params).then(res => { |
| | | ElMessage.success('编辑成功'); |
| | | EventBus.emit('gettreeDataApi'); |
| | | |
| | | clearAllData(); |
| | | emit('callParentMethod'); |
| | | }); |