基础管理关闭页面功能修改。
This commit is contained in:
parent
99f7f1ede0
commit
93ac98d15c
|
|
@ -180,7 +180,7 @@ aside {
|
||||||
.map-overlay {
|
.map-overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1%;
|
top: 1%;
|
||||||
right: 1%;
|
left: 1%;
|
||||||
width: 20%;
|
width: 20%;
|
||||||
height: 5%;
|
height: 5%;
|
||||||
z-index: 9999;
|
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"/>
|
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -140,12 +140,12 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改岗位对话框 -->
|
<!-- 添加或修改岗位对话框 -->
|
||||||
<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" />
|
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog" />
|
||||||
</el-dialog>
|
</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
|
<UseOrReturnForm
|
||||||
ref="useOrReturnFormComponentRef"
|
ref="useOrReturnFormComponentRef"
|
||||||
@closeUseOrReturnFormDialog="closeUseOrReturnFormDialog"
|
@closeUseOrReturnFormDialog="closeUseOrReturnFormDialog"
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,8 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改层级对话框 -->
|
<!-- 添加或修改层级对话框 -->
|
||||||
<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="handleDialogClose">
|
||||||
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -84,6 +85,7 @@
|
||||||
<script>
|
<script>
|
||||||
import AddOrEditForm from './addOrEditForm.vue'
|
import AddOrEditForm from './addOrEditForm.vue'
|
||||||
import {getLevelListApi, delLevelApi} from '@/api/basic/level-manage'
|
import {getLevelListApi, delLevelApi} from '@/api/basic/level-manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DeviceManage',
|
name: 'DeviceManage',
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -205,6 +207,13 @@ export default {
|
||||||
this.$refs.useOrReturnFormComponentRef.resetForm()
|
this.$refs.useOrReturnFormComponentRef.resetForm()
|
||||||
this.useOrReturnFormVisible = false
|
this.useOrReturnFormVisible = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleDialogClose() {
|
||||||
|
if (this.$refs.addOrEditComponentRef) {
|
||||||
|
this.$refs.addOrEditComponentRef.resetForm()
|
||||||
|
}
|
||||||
|
this.addOrEditFormVisible = false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</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
|
<UseOrReturnForm
|
||||||
ref="useOrReturnFormComponentRef"
|
ref="useOrReturnFormComponentRef"
|
||||||
v-if="useOrReturnFormVisible"
|
v-if="useOrReturnFormVisible"
|
||||||
|
|
@ -164,7 +164,7 @@
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</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"/>
|
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<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"/>
|
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</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"/>
|
<AddOrEditForm ref="addOrEditComponentRef" @closeAddOrEditFormDialog="closeAddOrEditFormDialog"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -463,6 +463,7 @@ export default {
|
||||||
this.form = response.data
|
this.form = response.data
|
||||||
this.open = true
|
this.open = true
|
||||||
this.title = '修改项目'
|
this.title = '修改项目'
|
||||||
|
this.form.unit = response.data.unitId
|
||||||
this.form.level = response.data.proId
|
this.form.level = response.data.proId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="app-container home" id="map-content"></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-select v-model="queryParams.proId" placeholder="请选择工程" style="width: 100%" @change="getProjectList">
|
||||||
<el-option
|
<el-option
|
||||||
:key="item.proId"
|
:key="item.proId"
|
||||||
|
|
@ -11,7 +12,10 @@
|
||||||
v-for="item in proList"
|
v-for="item in proList"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -48,6 +52,10 @@ export default {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
resetQuery(){
|
||||||
|
this.queryParams.proId = undefined
|
||||||
|
this.getProjectList()
|
||||||
|
},
|
||||||
|
|
||||||
// 获取所有项目
|
// 获取所有项目
|
||||||
async getProjectList() {
|
async getProjectList() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue