bibi 3 years ago
parent 1f4f15d0a7
commit 8318c11546

@ -1,23 +0,0 @@
<!--
* @Author: your name
* @Date: 2021-11-23 10:27:56
* @LastEditTime: 2021-11-23 10:30:58
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/views/Billing/_details/index.vue
-->
<template>
<div>
444444
</div>
</template>
<script>
export default {
name: "Billing_details"
}
</script>
<style lang="less" scoped>
</style>

@ -58,9 +58,9 @@
</template>
<script>
import {columns,pagination,searchForm} from './component/config.js'
import {columns,pagination,searchForm} from './depend/config.js'
import { rolelist,listByRole } from "@/api/basic/role";
import rolePermissions from './component/permissions.vue'
import rolePermissions from './depend/permissions.vue'
export default {
components:{
rolePermissions

@ -201,8 +201,8 @@
</div>
</template>
<script>
import { columns, pagination, searchForm } from "./component/config.js";
import vueForm from "./component/form.vue";
import { columns, pagination, searchForm } from "./depend/config.js";
import vueForm from "./depend/form.vue";
import {
departmentList,
departmentInsert,

@ -135,7 +135,7 @@
</template>
<script>
import { columns,pagination,searchForm} from "./component/config"
import { columns,pagination,searchForm} from "./depend/config"
import { buildingList } from "@/api/basic/estate"
export default {
data() {

@ -122,7 +122,7 @@ import {
searchForm,
reset,
handleTableChange,
} from "./component/config";
} from "./depend/config";
import { reviewList, review } from "@/api/basic/resident";
export default {
data() {

@ -39,7 +39,7 @@ export const columns = [
title: "房屋名称",
dataIndex: "manageBuildingName",
scopedSlots: { customRender: "name" },
width: "20%",
width: "25%",
},
{
title: "房屋类型",

@ -11,7 +11,7 @@
<a-select-option value="3">保密</a-select-option>
</a-select>
<a-input style="width: 200px" placeholder="请输入关键字(姓名/手机号)" />
<a-button type="primary"> </a-button>
<a-button type="primary" @click='getData'> </a-button>
<a-button> </a-button>
</a-space>
</a-col>
@ -46,7 +46,7 @@
<!-- 表格 -->
<a-table
:columns="columns"
:data-source="newData"
:data-source="tableData"
:pagination="pagination"
:scroll="{ x: 1300 }"
:row-selection="{
@ -60,8 +60,8 @@
"
>
<span slot="name" slot-scope="text, row">
<a-select style="width :200px" @change='changeHouse' placeholder='请选择房屋'>
<a-select-option v-for="item,index in row.residentListEstateVoList" :key='index' :value="item.id">
<a-select style="width :100%" @change='changeHouse' placeholder='请选择房屋'>
<a-select-option v-for="item,index in row.residentListEstateVoList" :key='index' :value="item.id" @click="chooseHouse(row)">
{{
item.manageBuildingName +
"栋/" +
@ -94,7 +94,7 @@
</template>
<script>
import { columns,pagination,searchForm } from './component/config.js'
import { columns,pagination,searchForm } from './depend/config.js'
import { residentList } from '@/api/basic/resident'
export default {
data() {
@ -109,6 +109,7 @@ export default {
},
detail:{}
},
table_row:{},
changeId:null,
pagination: pagination,
searchForm:searchForm,
@ -147,7 +148,6 @@ export default {
keyword:this.searchForm.keyword,
})
this.tableData = res.data.rows
this.newData = this.tableData
},
addClose(){
this.drawer.add.show = false;
@ -168,19 +168,22 @@ export default {
},
//
changeHouse(value){
//
this.newData.forEach((item,index)=>{
//
item.residentListEstateVoList.forEach(items=>{
// idchangeid
if(items.id === value){
// newData
this.$set(this.newData[index],'identity' ,items.identity )
this.$set(this.newData[index],'manageEstateTypeName' ,items.manageEstateTypeName )
}
})
//
this.tableData.forEach((item,index)=>{
if(item.id === this.table_row.id) {
console.log(item);
item.residentListEstateVoList.forEach((items)=>{
if(items.id === value){
this.$set(this.tableData[index],'identity' ,items.identity )
this.$set(this.tableData[index],'manageEstateTypeName' ,items.manageEstateTypeName )
}
})
}
})
},
chooseHouse(row){
this.table_row = row
},
handleTableChange(pagination) {
console.log(pagination);
const pager = { ...this.pagination };

@ -250,7 +250,7 @@ function getBase64(file) {
reader.onerror = error => reject(error);
});
}
import { columns,pagination,searchForm, del } from "./component/config"
import { columns,pagination,searchForm, del } from "./depend/config"
import { houseList } from '@/api/basic/estate'
export default {
data() {

Loading…
Cancel
Save