同步现场数据
This commit is contained in:
@@ -17,9 +17,11 @@
|
||||
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item>
|
||||
<el-button icon="el-icon-Refresh" @click="reset"></el-button>
|
||||
</el-form-item> -->
|
||||
<el-form-item>
|
||||
<div class="Icon">
|
||||
<Icon name="fa fa-refresh" @click="reset" />
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
@@ -115,8 +117,8 @@ const infoShow = (e: boolean) => {
|
||||
cityMapRRef.value.show = e
|
||||
}
|
||||
// 地图控制图层
|
||||
const LookMap = (row: any) => {
|
||||
// mapRef.value.addMarkers({ ...row, type: 1 })
|
||||
const LookMap = (row: any, key?: any) => {
|
||||
// mapRef.value.addMarkers({ ...row, type: 1 }, key)
|
||||
}
|
||||
const info = () => {
|
||||
form.value.startTime = datePickerRef.value.timeValue[0]
|
||||
@@ -137,6 +139,15 @@ const info = () => {
|
||||
cityMapLRef.value.info(form.value)
|
||||
}
|
||||
}
|
||||
// 重置
|
||||
const reset = () => {
|
||||
form.value = {
|
||||
name: '',
|
||||
orgNo: dictData.state.area[0].id,
|
||||
isUpToGrid: 0
|
||||
}
|
||||
changeValue({ data: dictData.state.area[0] })
|
||||
}
|
||||
onMounted(() => {
|
||||
// info()
|
||||
changeValue({ data: dictData.state.area[0] })
|
||||
@@ -148,7 +159,7 @@ onMounted(() => {
|
||||
:deep(.mapBox) {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: calc(50% + 95px);
|
||||
left: calc(50% + 45px);
|
||||
|
||||
z-index: 1;
|
||||
.el-select {
|
||||
@@ -159,6 +170,18 @@ onMounted(() => {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
.Icon {
|
||||
height: 46px;
|
||||
width: 46px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
cursor: pointer;
|
||||
.fa-refresh {
|
||||
color: var(--el-color-primary) !important;
|
||||
}
|
||||
}
|
||||
.el-input__wrapper {
|
||||
height: 46px;
|
||||
border-radius: 8px;
|
||||
|
||||
Reference in New Issue
Block a user