000e2cd7 by zhaoqian

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/App.vue
#	src/components/formMenu/qlr.vue
2 parents debb055d 960a2a53
...@@ -5,31 +5,14 @@ ...@@ -5,31 +5,14 @@
5 </template> 5 </template>
6 6
7 <script> 7 <script>
8 import { getDdicByMC } from "../src/api/common";
9 export default { 8 export default {
10 mounted() { 9 mounted() {
11 window.addEventListener("unload", this.saveState); 10 window.addEventListener("unload", this.saveState);
12 this.getDic();
13 }, 11 },
14 methods: { 12 methods: {
15 saveState() { 13 saveState() {
16 sessionStorage.setItem("state", JSON.stringify(this.$store.state)); 14 sessionStorage.setItem("state", JSON.stringify(this.$store.state));
17 }, 15 },
18 //请求字典数据
19 getDic() {
20 let s = this.$store.state;
21 s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList;
22 s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList;
23 s.ssList = s.ssList.length == 0 ? this.getDicData("省市") : s.ssList;
24 s.qlrlxList = s.qlrlxList.length == 0 ? this.getDicData("权利人类型") : s.qlrlxList;
25 s.xbList = s.xbList.length == 0 ? this.getDicData("性别") : s.xbList;
26 s.sshyList = s.sshyList.length == 0 ? this.getDicData("国民经济行业分类代码") : s.sshyList;
27 },
28 getDicData(name) {
29 getDdicByMC(name).then((res) => {
30 return res.result;
31 });
32 },
33 }, 16 },
34 }; 17 };
35 </script> 18 </script>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
61 <td colspan="3"> 61 <td colspan="3">
62 <el-select class="formSelect" v-model="formData.qlrlxbsm"> 62 <el-select class="formSelect" v-model="formData.qlrlxbsm">
63 <el-option 63 <el-option
64 v-for="item in qllxList" 64 v-for="item in $store.state.qlrlxList"
65 :key="item.bsm" 65 :key="item.bsm"
66 :label="item.mc" 66 :label="item.mc"
67 :value="item.bsm" 67 :value="item.bsm"
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 <td colspan="3"> 75 <td colspan="3">
76 <el-select class="formSelect" v-model="formData.zjzlbsm"> 76 <el-select class="formSelect" v-model="formData.zjzlbsm">
77 <el-option 77 <el-option
78 v-for="item in zjlxList" 78 v-for="item in $store.state.zjzlList"
79 :key="item.bsm" 79 :key="item.bsm"
80 :label="item.mc" 80 :label="item.mc"
81 :value="item.bsm" 81 :value="item.bsm"
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
103 <td colspan="3"> 103 <td colspan="3">
104 <el-select class="formSelect" v-model="formData.gjbsm"> 104 <el-select class="formSelect" v-model="formData.gjbsm">
105 <el-option 105 <el-option
106 v-for="item in gjList" 106 v-for="item in $store.state.gjList"
107 :key="item.bsm" 107 :key="item.bsm"
108 :label="item.mc" 108 :label="item.mc"
109 :value="item.bsm" 109 :value="item.bsm"
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
115 <td colspan="3"> 115 <td colspan="3">
116 <el-select class="formSelect" v-model="formData.hjszssbsm"> 116 <el-select class="formSelect" v-model="formData.hjszssbsm">
117 <el-option 117 <el-option
118 v-for="item in ssList" 118 v-for="item in $store.state.ssList"
119 :key="item.bsm" 119 :key="item.bsm"
120 :label="item.mc" 120 :label="item.mc"
121 :value="item.bsm" 121 :value="item.bsm"
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
129 <td colspan="3"> 129 <td colspan="3">
130 <el-select class="formSelect" v-model="formData.xbbsm"> 130 <el-select class="formSelect" v-model="formData.xbbsm">
131 <el-option 131 <el-option
132 v-for="item in xbList" 132 v-for="item in $store.state.xbList"
133 :key="item.bsm" 133 :key="item.bsm"
134 :label="item.mc" 134 :label="item.mc"
135 :value="item.bsm" 135 :value="item.bsm"
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
147 <td colspan="3"> 147 <td colspan="3">
148 <el-select class="formSelect" v-model="formData.sshy"> 148 <el-select class="formSelect" v-model="formData.sshy">
149 <el-option 149 <el-option
150 v-for="item in sshyList" 150 v-for="item in $store.state.sshyList"
151 :key="item.bsm" 151 :key="item.bsm"
152 :label="item.mc" 152 :label="item.mc"
153 :value="item.bsm" 153 :value="item.bsm"
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
176 <td colspan="3"> 176 <td colspan="3">
177 <el-select class="formSelect" v-model="formData.fr.zjzlbsm"> 177 <el-select class="formSelect" v-model="formData.fr.zjzlbsm">
178 <el-option 178 <el-option
179 v-for="item in zjlxList" 179 v-for="item in $store.state.zjzlList"
180 :key="item.bsm" 180 :key="item.bsm"
181 :label="item.mc" 181 :label="item.mc"
182 :value="item.bsm" 182 :value="item.bsm"
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
222 <td colspan="3"> 222 <td colspan="3">
223 <el-select class="formSelect" v-model="item.zjzlbsm"> 223 <el-select class="formSelect" v-model="item.zjzlbsm">
224 <el-option 224 <el-option
225 v-for="item in zjlxList" 225 v-for="item in $store.state.zjlxList"
226 :key="item.bsm" 226 :key="item.bsm"
227 :label="item.mc" 227 :label="item.mc"
228 :value="item.bsm" 228 :value="item.bsm"
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
252 <td colspan="3"> 252 <td colspan="3">
253 <el-select class="formSelect" v-model="formData.gyfsbsm"> 253 <el-select class="formSelect" v-model="formData.gyfsbsm">
254 <el-option 254 <el-option
255 v-for="item in gyfsList" 255 v-for="item in $store.state.gyfsList"
256 :key="item.bsm" 256 :key="item.bsm"
257 :label="item.mc" 257 :label="item.mc"
258 :value="item.bsm" 258 :value="item.bsm"
......
...@@ -211,14 +211,12 @@ export default { ...@@ -211,14 +211,12 @@ export default {
211 getDicData(){ 211 getDicData(){
212 getDdicByMC("土地用途") 212 getDdicByMC("土地用途")
213 .then((res) => { 213 .then((res) => {
214 console.log(res.result);
215 this.pzytList = res.result; 214 this.pzytList = res.result;
216 this.sjytList = res.result; 215 this.sjytList = res.result;
217 }) 216 })
218 .catch((error) => {}); 217 .catch((error) => {});
219 getDdicByMC("土地等级") 218 getDdicByMC("土地等级")
220 .then((res) => { 219 .then((res) => {
221 console.log(res.result);
222 this.djList = res.result; 220 this.djList = res.result;
223 }) 221 })
224 .catch((error) => {}); 222 .catch((error) => {});
......
1 <template> 1 <template>
2 <el-form :inline="true" :model="formData" class="demo-form-inline"> 2 <el-row>
3 <el-form-item label="宗地编码"> 3 <el-col :span="18">
4 <el-input v-model="formData.zdbm" placeholder="输入宗地编码"></el-input> 4 <el-row>
5 </el-form-item> 5 <el-col :span="22">
6 <el-form-item label="坐落"> 6 <el-form :inline="true" class="demo-form-inline">
7 <el-input v-model="formData.zl" placeholder="输入坐落地址"></el-input> 7 <el-form-item label="宗地编码:">
8 </el-form-item> 8 <el-input v-model="queryData.zddm" placeholder="输入宗地编码" @change="query"></el-input>
9 <el-form-item label="不动产单元号"> 9 </el-form-item>
10 <el-input 10 <el-form-item label="坐落:">
11 v-model="formData.bdcdyh" 11 <el-input v-model="queryData.zl" placeholder="输入坐落地址" @change="query"></el-input>
12 placeholder="输入不动产单元号" 12 </el-form-item>
13 ></el-input> 13 </el-form>
14 </el-form-item> 14 </el-col>
15 <el-form-item> 15 <el-col :span="2">
16 <el-button type="primary" @click="onSubmit">查询</el-button> 16 <el-button type="primary" @click="query">查询</el-button>
17 <el-button type="warning" @click="onSubmit">重置</el-button> 17 </el-col>
18 <el-button type="primary" class="moreSearchBtn" @click="onSubmit" 18 </el-row>
19 >更多查询</el-button 19 <el-row>
20 > 20 <el-col :span="22">
21 </el-form-item> 21 <el-form :inline="true" :model="queryData" class="demo-form-inline">
22 <el-form-item class="db" label="查询范围"> 22 <el-form-item label="不动产单元号:">
23 <el-checkbox-group v-model="formData.type"> 23 <el-input
24 <el-checkbox label="宗地" name="type"></el-checkbox> 24 v-model="queryData.bdcdyh"
25 <el-checkbox label="自然幢" name="type"></el-checkbox> 25 placeholder="输入不动产单元号"
26 <el-checkbox label="户" name="type"></el-checkbox> 26 @change="query"
27 <el-checkbox label="构筑物" name="type"></el-checkbox> 27 ></el-input>
28 <el-checkbox label="林权" name="type"></el-checkbox> 28 </el-form-item>
29 <el-checkbox label="宗海" name="type"></el-checkbox> 29 <el-form-item class="demo-form-inline" label="单元类型:">
30 </el-checkbox-group> 30 <el-checkbox-group v-model="queryData.dylxs" @change="query">
31 </el-form-item> 31 <el-checkbox label="zd" name="type">宗地</el-checkbox>
32 </el-form> 32 <el-checkbox label="zrz" name="type">自然幢</el-checkbox>
33 <el-checkbox label="h" name="type"></el-checkbox>
34 <el-checkbox label="gzw" name="type">构筑物</el-checkbox>
35 <el-checkbox label="lq" name="type">林权</el-checkbox>
36 <el-checkbox label="zh" name="type">宗海</el-checkbox>
37 </el-checkbox-group>
38 </el-form-item>
39 </el-form>
40 </el-col>
41 <el-col :span="2">
42 <el-button type="warning" @click="reset">重置</el-button>
43 </el-col>
44 </el-row>
45 <el-row class="row3">
46 <el-col :span="22" v-show="ismore">
47 <el-form :inline="true" class="demo-form-inline">
48 <el-form-item label="权利人名称:">
49 <el-input placeholder="输入权利人名称" v-model="queryData.qlrmc" @change="query"></el-input>
50 </el-form-item>
51 <el-form-item label="项目名称:">
52 <el-input placeholder="输入项目名称" v-model="queryData.xmmc" @change="query"></el-input>
53 </el-form-item>
54 <el-form-item label="不动产权证号:">
55 <el-input placeholder="输入不动产权证号" v-model="queryData.bdcqzh" @change="query"></el-input>
56 </el-form-item>
57 </el-form>
58 </el-col>
59 <el-col :span="2" :offset="offset">
60 <el-button type="primary" class="moreSearchBtn" @click="ismore=!ismore">更多查询
61 </el-button>
62 </el-col>
63 </el-row>
64 </el-col>
65 </el-row>
66
33 </template> 67 </template>
34 68
35 <script> 69 <script>
36 export default { 70 export default {
37 name: "", 71 name: "",
38 components: {}, 72 components: {},
39 props: {}, 73 props: {},
40 data() { 74 data() {
41 return { 75 return {
42 formData: { 76 offset: 22,
43 zdbm: "", 77 ismore: false,
44 zl: "", 78 queryData: {
45 bdcdyh: "", 79 bdcdyh: "",
46 type: [], 80 bdcqzh: "",
47 }, 81 dylxs: [],
48 }; 82 qlrmc: "",
49 }, 83 qszt: "",
50 created() { 84 xmmc: "",
51 let self = this; 85 zddm: "",
52 document.onkeydown = function(e) { 86 zl: ""
53 //按下回车提交 87 }
54 let key = window.event.keyCode; 88 };
55 //事件中keycode=13为回车事件 89 },
56 if (key == 13) { 90 created() {
57 self.onSubmit(); 91 let self = this;
58 } 92 document.onkeydown = function (e) {
59 }; 93 //按下回车提交
60 }, 94 let key = window.event.keyCode;
61 mounted() {}, 95 //事件中keycode=13为回车事件
62 methods: { 96 if (key == 13) {
63 onSubmit() { 97 self.onSubmit();
64 //子组件点击查询时将表单数据发送给父组件 98 }
65 this.$emit("getSearchCondition", this.formData); 99 };
66 }, 100 },
67 }, 101 mounted() {
68 computed: {}, 102 },
69 watch: {}, 103 methods: {
70 }; 104 reset() {
105 this.queryData = {
106 bdcdyh: "",
107 bdcqzh: "",
108 dylxs: [],
109 qlrmc: "",
110 qszt: "",
111 xmmc: "",
112 zddm: "",
113 zl: ""
114 };
115 this.query()
116 },
117 query() {
118 //子组件点击查询时将表单数据发送给父组件
119 this.$emit("getSearchCondition", this.queryData);
120 },
121 },
122 computed: {},
123 watch: {
124 "ismore": function (val) {
125 if (val) {
126 this.offset = 0
127 } else {
128 this.offset = 22
129 this.queryData.qlrmc = "";
130 this.queryData.xmmc = "";
131 this.queryData.bdcqzh = "";
132 }
133 }
134 },
135 };
71 </script> 136 </script>
72 <style scoped lang="less"></style> 137 <style scoped lang="less">
138 .el-button {
139 width: 100px;
140 }
141 .row3{
142 height: 55px;
143 }
144 </style>
......
...@@ -10,15 +10,15 @@ Vue.use(Vuex) ...@@ -10,15 +10,15 @@ Vue.use(Vuex)
10 const store = new Vuex.Store({ 10 const store = new Vuex.Store({
11 state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : { 11 state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : {
12 zdbsm: '', 12 zdbsm: '',
13 xzqList: [],
14 djqList: [],
15 djzqList: [],
16 zjzlList:[], 13 zjzlList:[],
17 gjList:[], 14 gjList:[],
18 ssList:[], 15 ssList:[],
19 qlrlxList:[], 16 qlrlxList:[],
20 xbList:[], 17 xbList:[],
21 sshyList:[], 18 sshyList:[],
19 xzqList: [],
20 djqList: [],
21 djzqList: [],
22 //创建自然幢时需要用到的临时存储信息 22 //创建自然幢时需要用到的临时存储信息
23 zrzbsm: '', 23 zrzbsm: '',
24 xmmc: '', 24 xmmc: '',
......
...@@ -83,8 +83,9 @@ ...@@ -83,8 +83,9 @@
83 </el-form-item> 83 </el-form-item>
84 <el-form-item label="特征码"> 84 <el-form-item label="特征码">
85 <el-select 85 <el-select
86 v-model="tzmCode" 86 v-model="zdtzm.value"
87 placeholder="地籍子区" 87 placeholder="宗地特征码"
88 @change="changeZdtzm(zdtzm.value)"
88 style="width:200px;" 89 style="width:200px;"
89 > 90 >
90 <el-option 91 <el-option
...@@ -203,8 +204,8 @@ export default { ...@@ -203,8 +204,8 @@ export default {
203 djzqbsm: this.djzqValue, 204 djzqbsm: this.djzqValue,
204 syqlxbsm: this.syqlxCode, 205 syqlxbsm: this.syqlxCode,
205 xmmc: this.zdProjectName, 206 xmmc: this.zdProjectName,
206 // zdtzmbsm: this.tzmCode, 207 zdtzmbsm: this.tzmCode,
207 zdtzmbsm: "PSHGSBDCQJDC000000000000DC440010", 208 //zdtzmbsm: "PSHGSBDCQJDC000000000000DC440010",
208 }; 209 };
209 insertQjZdjbxx(data) 210 insertQjZdjbxx(data)
210 .then((res) => { 211 .then((res) => {
...@@ -310,6 +311,12 @@ export default { ...@@ -310,6 +311,12 @@ export default {
310 this.syqlxCode = id; 311 this.syqlxCode = id;
311 console.log(this.syqlxCode); 312 console.log(this.syqlxCode);
312 }, 313 },
314 changeZdtzm(id){
315
316 this.tzmCode=id;
317 console.log(this.tzmCode);
318
319 },
313 close() { 320 close() {
314 this.$emit("closeDialog"); 321 this.$emit("closeDialog");
315 }, 322 },
......
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <SearchHead @getSearchCondition="getData"></SearchHead> 3 <SearchHead @getSearchCondition="getData"></SearchHead>
4 <div class="dataGrid" ref="dataGrid"> 4 <div class="dataGrid" ref="dataGrid">
5 <el-table 5 <el-table
6 :data="tableData" 6 :data="tableData"
7 :height="tableHeight" 7 :height="tableHeight"
8 :row-class-name="tableRowClassName" 8 :row-class-name="tableRowClassName"
9 > 9 >
10 <el-table-column type="index" width="80" align="center" label="序号"> 10 <el-table-column type="index" width="80" align="center" label="序号">
11 </el-table-column> 11 </el-table-column>
12 <el-table-column label="操作" width="100"> 12 <el-table-column label="操作" width="100">
13 <template slot-scope="scope"> 13 <template slot-scope="scope">
14 <el-button @click="handleClick(scope.row)" type="text" size="small" 14 <el-button @click="handleClick(scope.row)" type="text" size="small"
15 >办理</el-button 15 >办理
16 > 16 </el-button
17 <el-button type="text" size="small">定位</el-button> 17 >
18 </template> 18 <el-button type="text" size="small">定位</el-button>
19 </el-table-column> 19 </template>
20 <el-table-column prop="bdcdyh" align="left" label="不动产单元号"> 20 </el-table-column>
21 </el-table-column> 21 <el-table-column prop="bdcdyh" align="left" label="不动产单元号">
22 <el-table-column prop="xmmc" align="left" width="150" label="项目名称"> 22 </el-table-column>
23 </el-table-column> 23 <el-table-column prop="xmmc" align="left" width="150" label="项目名称">
24 <el-table-column prop="bdcqzh" align="left" label="不动产权证号"> 24 </el-table-column>
25 </el-table-column> 25 <el-table-column prop="bdcqzh" align="left" label="不动产权证号">
26 <el-table-column prop="lx" align="left" width="120" label="类型"> 26 </el-table-column>
27 </el-table-column> 27 <el-table-column prop="lx" align="left" width="120" label="类型">
28 <el-table-column prop="qlr" align="left" width="120" label="权利人"> 28 </el-table-column>
29 </el-table-column> 29 <el-table-column prop="qlr" align="left" width="120" label="权利人">
30 <el-table-column prop="zl" align="left" label="坐落"> </el-table-column> 30 </el-table-column>
31 <el-table-column prop="zrsj" align="left" width="120" label="转入时间"> 31 <el-table-column prop="zl" align="left" label="坐落"></el-table-column>
32 </el-table-column> 32 <el-table-column prop="zrsj" align="left" width="120" label="转入时间">
33 <el-table-column prop="cjr" align="left" width="120" label="创建人"> 33 </el-table-column>
34 </el-table-column> 34 <el-table-column prop="cjr" align="left" width="120" label="创建人">
35 </el-table> 35 </el-table-column>
36 <div class="pagination"> 36 </el-table>
37 <el-pagination background layout="prev, pager, next" :total="1000"> 37 <div class="pagination">
38 </el-pagination> 38 <el-pagination background layout="prev, pager, next" :total="1000">
39 </div> 39 </el-pagination>
40 </div> 40 </div>
41 </div> 41 </div>
42 </div>
42 </template> 43 </template>
43 44
44 <script> 45 <script>
45 import SearchHead from "../../../components/searchHead/searchHead"; 46 import SearchHead from "../../../components/searchHead/searchHead";
46 export default {
47 name: "",
48 components: { SearchHead },
49 props: {},
50 data() {
51 return {
52 formData: {
53 user: "",
54 region: "",
55 type: [],
56 },
57 tableData: [
58 {
59 bdcdyh: "610101001001GB00001W",
60 xmmc: "万科集团万科城",
61 bdcqzh: "陕(2017)西安市不动产权第00000",
62 lx: "宗地",
63 qlr: "李子新",
64 zl: "灞桥-田家湾-咸宁东路,近浐河西路",
65 zrsj: "2020.09.07 ",
66 cjr: "李子新",
67 },
68 ],
69 tableHeight: "",
70 };
71 },
72 created() {},
73 mounted() {
74 for (let i = 0; i < 11; i++) {
75 let obj = {
76 bdcdyh: "610101001001GB00001W",
77 xmmc: "万科集团万科城",
78 bdcqzh: "陕(2017)西安市不动产权第00000",
79 lx: "自然幢",
80 qlr: "李子新",
81 zl: "灞桥-田家湾-咸宁东路,近浐河西路",
82 zrsj: "2020.09.07 ",
83 cjr: "李子新",
84 };
85 this.tableData.push(obj);
86 }
87 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
88 },
89 methods: {
90 onSubmit() {},
91 tableRowClassName({ row, rowIndex }) {
92 if (rowIndex % 2 !== 0) {
93 return "even-row";
94 } else {
95 return "";
96 }
97 },
98 47
99 //获取子组件点击查询触发的事件 48 export default {
100 getData(obj) { 49 name: "",
101 console.log(obj); 50 components: {SearchHead},
102 //将obj作为参数调用接口查询表格数据 51 props: {},
103 }, 52 data() {
104 //点击办理 53 return {
105 handleClick(row) { 54 formData: {
106 let path = ""; 55 user: "",
107 switch (row.lx) { 56 region: "",
108 case "自然幢": 57 type: [],
109 path = "/zrz"; 58 },
110 break; 59 tableData: [
111 case "宗地": 60 {
112 path = "/zd"; 61 bdcdyh: "610101001001GB00001W",
113 break; 62 xmmc: "万科集团万科城",
114 default: 63 bdcqzh: "陕(2017)西安市不动产权第00000",
115 break; 64 lx: "宗地",
116 } 65 qlr: "李子新",
117 this.$router.push(path); 66 zl: "灞桥-田家湾-咸宁东路,近浐河西路",
118 }, 67 zrsj: "2020.09.07 ",
119 }, 68 cjr: "李子新",
120 computed: {}, 69 },
121 watch: {}, 70 ],
122 }; 71 tableHeight: "",
72 };
73 },
74 created() {
75 },
76 mounted() {
77 for (let i = 0; i < 11; i++) {
78 let obj = {
79 bdcdyh: "610101001001GB00001W",
80 xmmc: "万科集团万科城",
81 bdcqzh: "陕(2017)西安市不动产权第00000",
82 lx: "自然幢",
83 qlr: "李子新",
84 zl: "灞桥-田家湾-咸宁东路,近浐河西路",
85 zrsj: "2020.09.07 ",
86 cjr: "李子新",
87 };
88 this.tableData.push(obj);
89 }
90 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
91 },
92 methods: {
93 onSubmit() {
94 },
95 tableRowClassName({row, rowIndex}) {
96 if (rowIndex % 2 !== 0) {
97 return "even-row";
98 } else {
99 return "";
100 }
101 },
102
103 //获取子组件点击查询触发的事件
104 getData(obj) {
105 console.log(obj);
106 },
107 //点击办理
108 handleClick(row) {
109 let path = "";
110 switch (row.lx) {
111 case "自然幢":
112 path = "/zrz";
113 break;
114 case "宗地":
115 path = "/zd";
116 break;
117 default:
118 break;
119 }
120 this.$router.push(path);
121 },
122 },
123 computed: {},
124 watch: {},
125 };
123 </script> 126 </script>
124 <style scoped lang="less"> 127 <style scoped lang="less">
125 .main { 128 .main {
126 width: 100%; 129 width: 100%;
127 height: 100%; 130 height: 100%;
128 box-sizing: border-box; 131 box-sizing: border-box;
129 padding: 0 18px; 132 padding: 0 18px;
130 display: flex; 133 display: flex;
131 flex-direction: column; 134 flex-direction: column;
132 background-color: #fcfdff; 135 background-color: #fcfdff;
133 .demo-form-inline { 136 .demo-form-inline {
134 margin-top: 18px; 137 margin-top: 18px;
135 .moreSearchBtn { 138 .moreSearchBtn {
136 background-color: #1ad6e1; 139 background-color: #1ad6e1;
137 border-color: #1ad6e1; 140 border-color: #1ad6e1;
138 } 141 }
139 .moreSearchBtn:focus, 142 .moreSearchBtn:focus,
140 .moreSearchBtn:hover { 143 .moreSearchBtn:hover {
141 background-color: rgba(28, 200, 229, 0.6); 144 background-color: rgba(28, 200, 229, 0.6);
142 } 145 }
143 } 146 }
144 .dataGrid { 147 .dataGrid {
145 flex: 1; 148 flex: 1;
146 .pagination { 149 margin-top: 20px;
147 padding: 18px 0; 150 .pagination {
148 } 151 padding: 18px 0;
149 } 152 }
150 } 153 }
154 }
151 </style> 155 </style>
......
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <SearchHead @getSearchCondition="getData"></SearchHead> 3 <SearchHead @getSearchCondition="getData"></SearchHead>
4 <div class="dataGrid" ref="dataGrid"> 4 <div class="dataGrid" ref="dataGrid">
5 <el-table 5 <el-table
6 :data="tableData" 6 :data="tableData"
7 :height="tableHeight" 7 :height="tableHeight"
8 :row-class-name="tableRowClassName" 8 :row-class-name="tableRowClassName"
9 > 9 >
10 <el-table-column type="index" width="80" align="center" label="序号"> 10 <el-table-column type="index" width="80" align="center" label="序号">
11 </el-table-column> 11 </el-table-column>
12 <el-table-column label="操作" width="100"> 12 <el-table-column label="操作" width="100">
13 <template slot-scope="scope"> 13 <template slot-scope="scope">
14 <el-button @click="handleClick(scope.row)" type="text" size="small" 14 <el-button @click="handleClick(scope.row)" type="text" size="small"
15 >办理</el-button 15 >办理
16 > 16 </el-button
17 <el-button type="text" size="small">定位</el-button> 17 >
18 </template> 18 <el-button type="text" size="small">定位</el-button>
19 </el-table-column> 19 </template>
20 <el-table-column prop="bdcdyh" align="left" label="不动产单元号"> 20 </el-table-column>
21 </el-table-column> 21 <el-table-column prop="bdcdyh" align="left" label="不动产单元号">
22 <el-table-column prop="xmmc" align="left" width="150" label="项目名称"> 22 </el-table-column>
23 </el-table-column> 23 <el-table-column prop="xmmc" align="left" width="150" label="项目名称">
24 <el-table-column prop="bdcqzh" align="left" label="不动产权证号"> 24 </el-table-column>
25 </el-table-column> 25 <el-table-column prop="bdcqzh" align="left" label="不动产权证号">
26 <el-table-column prop="lx" align="left" width="120" label="类型"> 26 </el-table-column>
27 </el-table-column> 27 <el-table-column prop="lx" align="left" width="120" label="类型">
28 <el-table-column prop="qlr" align="left" width="120" label="权利人"> 28 </el-table-column>
29 </el-table-column> 29 <el-table-column prop="qlr" align="left" width="120" label="权利人">
30 <el-table-column prop="zl" align="left" label="坐落"> </el-table-column> 30 </el-table-column>
31 <el-table-column prop="zrsj" align="left" width="120" label="转入时间"> 31 <el-table-column prop="zl" align="left" label="坐落"></el-table-column>
32 </el-table-column> 32 <el-table-column prop="zrsj" align="left" width="120" label="转入时间">
33 <el-table-column prop="cjr" align="left" width="120" label="创建人"> 33 </el-table-column>
34 </el-table-column> 34 <el-table-column prop="cjr" align="left" width="120" label="创建人">
35 </el-table> 35 </el-table-column>
36 <div class="pagination"> 36 </el-table>
37 <el-pagination background layout="prev, pager, next" :total="1000" 37 <div class="pagination">
38 @current-change="handleCurrentChange" 38 <el-pagination background layout="prev, pager, next" :total="total"
39 :current-page.sync="currentPage"> 39 @current-change="handleCurrentChange"
40 </el-pagination> 40 :current-page.sync="currentPage">
41 </div> 41 </el-pagination>
42 </div> 42 </div>
43 </div> 43 </div>
44 </div>
44 </template> 45 </template>
45 46
46 <script> 47 <script>
47 import SearchHead from "../../../components/searchHead/searchHead"; 48 import SearchHead from "../../../components/searchHead/searchHead";
48 import {getSearchList} from "../../../api/search"; 49 import {getSearchList} from "../../../api/search";
49 export default { 50
50 name: "", 51 export default {
51 components: { SearchHead }, 52 name: "",
52 props: {}, 53 components: {SearchHead},
53 data() { 54 props: {},
54 return { 55 data() {
55 pageNo:1, 56 return {
56 pageSize:10, 57 total:0,
57 zddm:'', 58 pageNo: 1,
58 zl:'', 59 pageSize: 10,
59 bdcdyh:'', 60 tableData: [],
60 dylx:'', 61 tableHeight: "",
61 qlrmc:'', 62 };
62 xmmc:'', 63 },
63 bdcqzh:'', 64 created() {
64 formData: { 65 },
65 user: "", 66 mounted() {
66 region: "", 67 this.getData({})
67 type: [], 68 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
68 }, 69 },
69 tableData: [], 70 methods: {
70 tableHeight: "", 71 onSubmit() {
71 }; 72 },
72 }, 73 tableRowClassName({row, rowIndex}) {
73 created() {}, 74 if (rowIndex % 2 !== 0) {
74 mounted() { 75 return "even-row";
75 this.loadList(); 76 } else {
76 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68; 77 return "";
77 }, 78 }
78 methods: { 79 },
79 onSubmit() {}, 80 handleCurrentChange(val) {
80 tableRowClassName({ row, rowIndex }) { 81 console.log(`当前页: ${val}`);
81 if (rowIndex % 2 !== 0) { 82 this.pageNo = val;
82 return "even-row"; 83 this.getData({});
83 } else { 84 },
84 return ""; 85 //获取子组件点击查询触发的事件
85 } 86 getData(obj) {
86 }, 87 console.log(obj);
87 handleCurrentChange(val){ 88 //将obj作为参数调用接口查询表格数据
88 console.log(`当前页: ${val}`); 89 obj['pageNo'] = this.pageNo
89 this.pageNo=val; 90 obj['pageSize'] = this.pageSize
90 this.loadList(); 91 getSearchList(obj).then(res => {
91 }, 92 this.tableData = res.result.records
92 //获取子组件点击查询触发的事件 93 this.total=res.result.total
93 getData(obj) { 94 })
94 console.log(obj); 95 },
95 //将obj作为参数调用接口查询表格数据 96 //点击办理
96 }, 97 handleClick(row) {
97 //点击办理 98 let path = "";
98 handleClick(row) { 99 switch (row.dylx) {
99 let path = ""; 100 case "zrz":
100 switch (row.dylx) { 101 path = "/zrz";
101 case "zrz": 102 break;
102 path = "/zrz"; 103 case "zd":
103 break; 104 path = "/zd";
104 case "zd": 105 break;
105 path = "/zd"; 106 default:
106 break; 107 break;
107 default: 108 }
108 break; 109 this.$router.push({
109 } 110 path: path,
110 this.$router.push({ 111 query: {
111 path:path, 112 bsm: row.glbsm,
112 query:{ 113 source: 2
113 bsm:row.glbsm, 114 }
114 source:2 115 });
115 } 116 },
116 }); 117 },
117 }, 118 computed: {},
118 loadList(){ 119 watch: {},
119 let params={ 120 };
120 zddm:this.zddm,
121 zl:this.zl,
122 bdcdyh:this.bdcdyh,
123 dylx:this.dylx,
124 qlrmc:this.qlrmc,
125 xmmc:this.xmmc,
126 bdcqzh:this.bdcqzh,
127 pageNo:this.pageNo,
128 pageSize:this.pageSize,
129 }
130 getSearchList(params).then((res)=>{
131 console.log(res)
132 if(res.code===200){
133 this.tableData=res.result.records;
134 console.log(this.tableData)
135 }
136 })
137 }
138 },
139 computed: {},
140 watch: {},
141 };
142 </script> 121 </script>
143 <style scoped lang="less"> 122 <style scoped lang="less">
144 .main { 123 .main {
145 width: 100%; 124 width: 100%;
146 height: 100%; 125 height: 100%;
147 box-sizing: border-box; 126 box-sizing: border-box;
148 padding: 0 18px; 127 padding: 0 18px;
149 display: flex; 128 display: flex;
150 flex-direction: column; 129 flex-direction: column;
151 background-color: #fcfdff; 130 background-color: #fcfdff;
152 .demo-form-inline { 131 .demo-form-inline {
153 margin-top: 18px; 132 margin-top: 18px;
154 .moreSearchBtn { 133 .moreSearchBtn {
155 background-color: #1ad6e1; 134 background-color: #1ad6e1;
156 border-color: #1ad6e1; 135 border-color: #1ad6e1;
157 } 136 }
158 .moreSearchBtn:focus, 137 .moreSearchBtn:focus,
159 .moreSearchBtn:hover { 138 .moreSearchBtn:hover {
160 background-color: rgba(28, 200, 229, 0.6); 139 background-color: rgba(28, 200, 229, 0.6);
161 } 140 }
162 } 141 }
163 .dataGrid { 142 .dataGrid {
164 flex: 1; 143 flex: 1;
165 .pagination { 144 .pagination {
166 padding: 18px 0; 145 padding: 18px 0;
167 } 146 }
168 } 147 }
169 } 148 }
170 </style> 149 </style>
......