main
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> </template>
<script> <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 { rolelist,listByRole } from "@/api/basic/role";
import rolePermissions from './component/permissions.vue' import rolePermissions from './depend/permissions.vue'
export default { export default {
components:{ components:{
rolePermissions rolePermissions

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

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

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

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

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

@ -250,7 +250,7 @@ function getBase64(file) {
reader.onerror = error => reject(error); 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' import { houseList } from '@/api/basic/estate'
export default { export default {
data() { data() {

Loading…
Cancel
Save