7b22bc55 by jiaozeping@pashanhoo.com

12

1 parent 6fab4126
...@@ -13,3 +13,14 @@ export function getLpZrz(data) { ...@@ -13,3 +13,14 @@ export function getLpZrz(data) {
13 }) 13 })
14 } 14 }
15 15
16
17 // 获取楼盘表
18 export function getLpb(params) {
19 return request({
20 url: '/zhcx/lpcx/getLpb/',
21 method: 'get',
22 params
23 })
24 }
25
26
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
50 <script> 50 <script>
51 import table from "@/utils/mixin/table"; 51 import table from "@/utils/mixin/table";
52 import { datas, sendThis } from "./lpcxdata"; 52 import { datas, sendThis } from "./lpcxdata";
53 import { getLpZrz } from "@/api/lpb.js" 53 import { getLpZrz,getLpb } from "@/api/lpb.js"
54 export default { 54 export default {
55 name: "lpcx", 55 name: "lpcx",
56 components: {}, 56 components: {},
...@@ -78,8 +78,7 @@ export default { ...@@ -78,8 +78,7 @@ export default {
78 }; 78 };
79 }, 79 },
80 methods: { 80 methods: {
81 81 //查询
82
83 queryClick(){ 82 queryClick(){
84 this.fetchData(); 83 this.fetchData();
85 }, 84 },
...@@ -93,11 +92,24 @@ export default { ...@@ -93,11 +92,24 @@ export default {
93 } 92 }
94 }) 93 })
95 }, 94 },
95
96 handleSort (name, sort) { 96 handleSort (name, sort) {
97 console.log(name, sort); 97 console.log(name, sort);
98 }, 98 },
99 openDialog () { 99
100 console.log(999999999999999); 100 //打开楼盘表
101 openlpbDialog (scope) {
102 debugger;
103 var zrzbsm=scope.row.bsm;
104
105 getLpb({zrzbsm:zrzbsm}).then(res => {
106 if(res.code == 200){
107 var lpbdata = res.result;
108 }
109 })
110 .catch((error) => {
111 console.log(error);
112 });
101 }, 113 },
102 }, 114 },
103 }; 115 };
......
...@@ -57,7 +57,7 @@ class data extends filter { ...@@ -57,7 +57,7 @@ class data extends filter {
57 align: 'center', 57 align: 'center',
58 fixed: 'right', 58 fixed: 'right',
59 render: (h, scope) => { 59 render: (h, scope) => {
60 return <el-button type="text" icon="el-icon-film" onClick={() => { vm.openDialog(scope) }}>楼盘表</el-button> 60 return <el-button type="text" icon="el-icon-film" onClick={() => { vm.openlpbDialog(scope) }}>楼盘表</el-button>
61 } 61 }
62 } 62 }
63 ] 63 ]
......