|
@@ -40,6 +40,14 @@
|
|
|
</el-form-item>
|
|
|
<p class="page-inquire-common-style-button" @click="handleQuery">查询</p>
|
|
|
<p class="page-reset-common-style-button" @click="resetQuery">重置</p>
|
|
|
+ <el-form-item style="float: right;" v-if="outButtonData.type">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <p class="reset-button-one"
|
|
|
+ style="width:100px;"
|
|
|
+ @click="outButton"
|
|
|
+ >返回</p>
|
|
|
+ </el-col>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div class="page-content-box">
|
|
@@ -117,10 +125,21 @@
|
|
|
dialogType:false,
|
|
|
dialogTitle:"",
|
|
|
dialogForm:null,
|
|
|
+ //返回按钮
|
|
|
+ outButtonData:{
|
|
|
+ type:false,
|
|
|
+ buildId:"",
|
|
|
+ floorId:"",
|
|
|
+ subId:"",
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
-
|
|
|
+ created(){
|
|
|
+ if(this.$route.query.type == 'big'){
|
|
|
+ this.$set(this,'outButtonData',{
|
|
|
+ type:true,
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
mounted () {
|
|
|
this.listDepartments();
|
|
@@ -133,6 +152,11 @@
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ outButton(){
|
|
|
+ if(this.$route.query.type == 'big'){
|
|
|
+ window.location.href = (localStorage.getItem('screenUrl') + '?identity=' + localStorage.getItem('identity'));
|
|
|
+ }
|
|
|
+ },
|
|
|
listDepartments(){
|
|
|
listDepartments().then(response => {
|
|
|
this.$set(this,'optionList',response.data);
|