基础管理关闭页面功能修改。
This commit is contained in:
parent
99f7f1ede0
commit
93ac98d15c
|
|
@ -180,7 +180,7 @@ aside {
|
|||
.map-overlay {
|
||||
position: absolute;
|
||||
top: 1%;
|
||||
right: 1%;
|
||||
left: 1%;
|
||||
width: 20%;
|
||||
height: 5%;
|
||||
z-index: 9999;
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改设备类型对话框 -->
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible">
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible" @close="closeAddOrEditFormDialog">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -140,12 +140,12 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改岗位对话框 -->
|
||||
<el-dialog width="40%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||
<el-dialog width="40%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible" @close="closeAddOrEditFormDialog">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog" />
|
||||
</el-dialog>
|
||||
|
||||
<!-- 领用或归还对话框 -->
|
||||
<el-dialog width="40%" append-to-body :title="useOrReturnFormTitle" :visible.sync="useOrReturnFormVisible">
|
||||
<el-dialog width="40%" append-to-body :title="useOrReturnFormTitle" :visible.sync="useOrReturnFormVisible" @close="closeUseOrReturnFormDialog">
|
||||
<UseOrReturnForm
|
||||
ref="useOrReturnFormComponentRef"
|
||||
@closeUseOrReturnFormDialog="closeUseOrReturnFormDialog"
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="deviceList" border>
|
||||
<el-table-column label="序号" align="center" type="index" />
|
||||
<el-table-column label="序号" align="center" type="index"/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
:key="item.prop"
|
||||
|
|
@ -75,15 +75,17 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改层级对话框 -->
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog" />
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible"
|
||||
@close="handleDialogClose">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AddOrEditForm from './addOrEditForm.vue'
|
||||
import { getLevelListApi, delLevelApi } from '@/api/basic/level-manage'
|
||||
import {getLevelListApi, delLevelApi} from '@/api/basic/level-manage'
|
||||
|
||||
export default {
|
||||
name: 'DeviceManage',
|
||||
components: {
|
||||
|
|
@ -167,8 +169,8 @@ export default {
|
|||
handleEdit(row) {
|
||||
this.addOrEditFormTitle = '编辑'
|
||||
this.addOrEditFormVisible = true
|
||||
const { configName, nodes, configId } = row
|
||||
const editForm = { configName, nodes, configId }
|
||||
const {configName, nodes, configId} = row
|
||||
const editForm = {configName, nodes, configId}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addOrEditComponentRef.setFormData(editForm)
|
||||
})
|
||||
|
|
@ -205,6 +207,13 @@ export default {
|
|||
this.$refs.useOrReturnFormComponentRef.resetForm()
|
||||
this.useOrReturnFormVisible = false
|
||||
},
|
||||
|
||||
handleDialogClose() {
|
||||
if (this.$refs.addOrEditComponentRef) {
|
||||
this.$refs.addOrEditComponentRef.resetForm()
|
||||
}
|
||||
this.addOrEditFormVisible = false
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@
|
|||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog width="80%" append-to-body :title="useOrReturnFormTitle" :visible.sync="useOrReturnFormVisible">
|
||||
<el-dialog width="80%" append-to-body :title="useOrReturnFormTitle" :visible.sync="useOrReturnFormVisible" @close="useOrReturnFormVisible = false">
|
||||
<UseOrReturnForm
|
||||
ref="useOrReturnFormComponentRef"
|
||||
v-if="useOrReturnFormVisible"
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
/>
|
||||
</el-dialog>
|
||||
<!-- 添加或修改岗位对话框 -->
|
||||
<el-dialog width="40%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible">
|
||||
<el-dialog width="40%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible" @close="closeAddOrEditFormDialog">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改业主单位对话框 -->
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible">
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible" @close="closeAddOrEditFormDialog">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改项目类型对话框 -->
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible">
|
||||
<el-dialog width="50%" append-to-body :title="addOrEditFormTitle" :visible.sync="addOrEditFormVisible" @close="closeAddOrEditFormDialog">
|
||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -463,6 +463,7 @@ export default {
|
|||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改项目'
|
||||
this.form.unit = response.data.unitId
|
||||
this.form.level = response.data.proId
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
<div>
|
||||
<div class="app-container home" id="map-content"></div>
|
||||
|
||||
<div class="map-overlay">
|
||||
<div class="map-overlay" style="display: flex">
|
||||
<el-row >
|
||||
<el-select v-model="queryParams.proId" placeholder="请选择工程" style="width: 100%" @change="getProjectList">
|
||||
<el-option
|
||||
:key="item.proId"
|
||||
|
|
@ -11,7 +12,10 @@
|
|||
v-for="item in proList"
|
||||
/>
|
||||
</el-select>
|
||||
|
||||
</el-row>
|
||||
<el-row style="margin-left: 2%;margin-top:0.5%;">
|
||||
<el-button type="primary" size="small" @click="resetQuery">重置</el-button>
|
||||
</el-row>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -48,6 +52,10 @@ export default {
|
|||
)
|
||||
},
|
||||
|
||||
resetQuery(){
|
||||
this.queryParams.proId = undefined
|
||||
this.getProjectList()
|
||||
},
|
||||
|
||||
// 获取所有项目
|
||||
async getProjectList() {
|
||||
|
|
@ -60,7 +68,7 @@ export default {
|
|||
this.$nextTick(() => {
|
||||
if (!this.map) {
|
||||
this.initMap()
|
||||
}else{
|
||||
} else {
|
||||
this.map.clearOverlays(); // 清除所有覆盖物
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue