|
@@ -3,11 +3,11 @@
|
|
|
<building-tree
|
|
|
@buildingInformation="buildingInformation"
|
|
|
:buildingType="1"
|
|
|
- v-if="!showaddDialog"
|
|
|
+ v-show="!showaddDialog"
|
|
|
></building-tree>
|
|
|
<div
|
|
|
class="content-right"
|
|
|
- v-if="!showaddDialog"
|
|
|
+ v-show="!showaddDialog"
|
|
|
>
|
|
|
<div class="search">
|
|
|
<el-input
|
|
@@ -160,16 +160,24 @@
|
|
|
:isAdd="isAdd"
|
|
|
>
|
|
|
</save-edits> -->
|
|
|
+
|
|
|
+ <save-details
|
|
|
+ v-if="!!showaddDialog"
|
|
|
+ :params="activeDataId"
|
|
|
+ @clerOwnerStatus="clerOwnerStatus"
|
|
|
+ >
|
|
|
+ </save-details>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import list from '@utils/list.js';
|
|
|
import saveEdits from './saveEdits.vue';
|
|
|
+import saveDetails from './details.vue'
|
|
|
|
|
|
export default {
|
|
|
mixins: [list],
|
|
|
- name: 'assetManagement/housingManagement/index',
|
|
|
+ components: { saveDetails },
|
|
|
data () {
|
|
|
return {
|
|
|
statusOptions: [
|
|
@@ -235,24 +243,28 @@ export default {
|
|
|
mixins_post: 'post',
|
|
|
isAdd: true,
|
|
|
activeData: {},
|
|
|
- detailsType: 1
|
|
|
+ detailsType: 1,
|
|
|
+ activeDataId: ''
|
|
|
};
|
|
|
},
|
|
|
- components: {
|
|
|
- saveEdits
|
|
|
- },
|
|
|
methods: {
|
|
|
+ clerOwnerStatus () {
|
|
|
+ this.showaddDialog = '';
|
|
|
+ this.mixins_search();
|
|
|
+ },
|
|
|
lookPage (row) {
|
|
|
- this.$router.push({
|
|
|
- path: '/housingManagement/details',
|
|
|
- query: {
|
|
|
- id: row.id,
|
|
|
- communityId: this.mixins_query.communityId,
|
|
|
- buildingId: this.mixins_query.buildingId,
|
|
|
- unitId: this.mixins_query.unitName,
|
|
|
- roomId: this.mixins_query.id
|
|
|
- }
|
|
|
- });
|
|
|
+ this.showaddDialog = row.id;
|
|
|
+ this.activeDataId = row.id;
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/housingManagement/details',
|
|
|
+ // query: {
|
|
|
+ // id: row.id,
|
|
|
+ // communityId: this.mixins_query.communityId,
|
|
|
+ // buildingId: this.mixins_query.buildingId,
|
|
|
+ // unitId: this.mixins_query.unitName,
|
|
|
+ // roomId: this.mixins_query.id
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
addCommand (command) {
|
|
|
if (command === 'add') {
|