8d05034a by 任超

style:权利信息

1 parent d9ee3a4a
1 import filter from '@/utils/filter.js' 1 import filter from '@/utils/filter.js'
2
2 class data extends filter { 3 class data extends filter {
3 constructor() { 4 constructor() {
4 super() 5 super()
5 } 6 }
6 columns () { 7 columns () {
7 return { 8 return [
8 title: "建设用地使用权、宅基地使用权登记信息",
9 columns: [
10 { 9 {
11 prop: "ssywh", 10 prop: "ssywh",
12 label: "上手业务号" 11 label: "上手业务号",
12 width: "120"
13 }, 13 },
14 { 14 {
15 prop: "dah", 15 prop: "dah",
...@@ -92,8 +92,6 @@ class data extends filter { ...@@ -92,8 +92,6 @@ class data extends filter {
92 label: "附记", 92 label: "附记",
93 }, 93 },
94 ] 94 ]
95
96 }
97 } 95 }
98 } 96 }
99 97
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
12 </div> 12 </div>
13 </div> 13 </div>
14 <div class="xxTableBox"> 14 <div class="xxTableBox">
15 <table class="xxTable" :width="tableWidth"> 15 <table class="xxTable">
16 <tr> 16 <tr>
17 <th rowspan="3">业务类型</th> 17 <th rowspan="3">业务类型</th>
18 </tr> 18 </tr>
19 <!-- 第一行表头 --> 19 <!-- 第一行表头 -->
20 <tr class="one" id=""> 20 <tr class="one">
21 <th v-for="(item, index) in ths" :key="index" :class="[item.class, item.type == '临时' ? 'linshiIcon' : '']"> 21 <th v-for="(item, index) in ths" :key="index" :class="[item.class, item.type == '临时' ? 'linshiIcon' : '']">
22 <div class="icon" v-if="item.type == '临时'">{{ item.type }}</div> 22 <div class="icon" v-if="item.type == '临时'">{{ item.type }}</div>
23 {{ item.type }} 23 {{ item.type }}
...@@ -49,55 +49,112 @@ ...@@ -49,55 +49,112 @@
49 </template> 49 </template>
50 50
51 <script> 51 <script>
52 import { mapGetters } from "vuex";
53 import { datas } from "./jsydsyq"; 52 import { datas } from "./jsydsyq";
54 import { getJsydsyqList } from "@/api/zhcx.js"; 53 import { getJsydsyqList } from "@/api/zhcx.js";
55 export default { 54 export default {
56 name: "djxxTable", 55 name: "jsydsyq",
57 props: {
58 showType: "",
59 },
60 data () { 56 data () {
61 return { 57 return {
62 checkList: ["临时", "现势", "历史"], 58 checkList: ["临时", "现势", "历史"],
63 tableWidth: 810,
64 type: datas.columns(),
65 tableData: [], 59 tableData: [],
66 showTableData: [], 60 showTableData: [],
67 ths: [], 61 ths: [],
68 showThs: [],
69 columns: [], 62 columns: [],
70 title: "", 63 title: "建设用地使用权、宅基地使用权登记信息",
71 }; 64 list: [
65 {
66 ssywh: '',
67 dah: '',
68 ywh: '',
69 bdcdyh: "",
70 zl: "",
71 qlrlx: '',
72 qlrmc: "",
73 qlrzjzl: "",
74 qlrzjhm: "",
75 gyfs: "",
76 mj: null,
77 qlxz: '',
78 ytmc: "",
79 syqqzsj: null,
80 tdsyqx: null,
81 qdjg: null,
82 djyy: '',
83 bdcqzh: null,
84 djsj: '',
85 dbr: '',
86 fj: "",
87 qllxmc: "国有建设用地使用权",
88 djlxmc: '转移登记',
89 qszt: "0",
72 }, 90 },
73 computed: { 91 {
74 ...mapGetters(["djbxx"]), 92 ssywh: '',
93 dah: '',
94 ywh: '',
95 bdcdyh: "",
96 zl: "",
97 qlrlx: '',
98 qlrmc: "",
99 qlrzjzl: "",
100 qlrzjhm: "",
101 gyfs: "",
102 mj: null,
103 qlxz: '',
104 ytmc: "",
105 syqqzsj: null,
106 tdsyqx: null,
107 qdjg: null,
108 djyy: '',
109 bdcqzh: null,
110 djsj: '',
111 dbr: '',
112 fj: "",
113 qllxmc: "国有建设用地使用权",
114 djlxmc: '转移登记',
115 qszt: "1"
75 }, 116 },
76 watch: { 117 {
77 showType: { 118 ssywh: '',
78 handler (newVlue) { 119 dah: '',
120 ywh: '',
121 bdcdyh: "",
122 zl: "",
123 qlrlx: '',
124 qlrmc: "",
125 qlrzjzl: "",
126 qlrzjhm: "",
127 gyfs: "",
128 mj: null,
129 qlxz: '',
130 ytmc: "",
131 syqqzsj: null,
132 tdsyqx: null,
133 qdjg: null,
134 djyy: '',
135 bdcqzh: null,
136 djsj: '',
137 dbr: '',
138 fj: "",
139 qllxmc: "国有建设用地使用权",
140 djlxmc: '转移登记',
141 qszt: "2"
142 }
143 ]
144 };
145 },
146 async created () {
79 // 清空值 147 // 清空值
80 this.tableData = []; 148 this.tableData = [];
81 this.ths = []; 149 this.ths = [];
82 this.columns = this.type[newVlue].columns; 150 this.columns = datas.columns();
83 this.title = this.type[newVlue].title; 151 // let res = await getJsydsyqList({
84 this.checkList = ["临时", "现势", "历史"]; 152 // bdcdyid: "2b33851f4edfd468ceef4d68c370bd41",
85 this.tableWidth = 810; 153 // qllx: "A03",
86 let detail; 154 // qszt: ["1"]
87 if (newVlue === "JSYDSYQ") { 155 // })
88 getJsydsyqList({ 156 let detail = this.list
89 bdcdyid: "2b33851f4edfd468ceef4d68c370bd41", 157 detail.length > 0 && detail.forEach((item) => {
90 qllx: "A03",
91 qszt: ["1"]
92 }).then((res) => {
93 if (res.code === 200) {
94 detail = res.result;
95 }
96 });
97 } else {
98 detail = this.djbxx.detail.qlxxs[newVlue];
99 }
100 detail.forEach((item) => {
101 this.tableData.push(item); 158 this.tableData.push(item);
102 if (item.qszt == "0") { 159 if (item.qszt == "0") {
103 this.ths.push({ 160 this.ths.push({
...@@ -126,18 +183,11 @@ export default { ...@@ -126,18 +183,11 @@ export default {
126 } 183 }
127 }); 184 });
128 this.showTableData = this.tableData; 185 this.showTableData = this.tableData;
129 this.showThs = this.ths;
130 let width = (this.tableData.length - 3) * 223 + this.tableWidth;
131 this.tableWidth = this.tableData.length > 3 ? width : 810;
132 },
133 immediate: true,
134 },
135 }, 186 },
136 methods: { 187 methods: {
137 checkChange () { 188 checkChange () {
138 var checkKey = []; 189 var checkKey = [];
139 this.ths = []; 190 this.ths = [];
140 this.tableWidth = 810;
141 this.checkList.forEach((item) => { 191 this.checkList.forEach((item) => {
142 if (item == "临时") { 192 if (item == "临时") {
143 checkKey.push("0"); 193 checkKey.push("0");
...@@ -179,8 +229,6 @@ export default { ...@@ -179,8 +229,6 @@ export default {
179 }); 229 });
180 } 230 }
181 }); 231 });
182 let width = (this.showTableData.length - 3) * 223 + this.tableWidth;
183 this.tableWidth = this.showTableData.length > 3 ? width : 810;
184 }, 232 },
185 }, 233 },
186 }; 234 };
...@@ -195,7 +243,6 @@ export default { ...@@ -195,7 +243,6 @@ export default {
195 color: #333; 243 color: #333;
196 244
197 .tableBox { 245 .tableBox {
198 width: 810px;
199 margin: 0 auto; 246 margin: 0 auto;
200 display: flex; 247 display: flex;
201 flex-wrap: wrap; 248 flex-wrap: wrap;
...@@ -221,8 +268,8 @@ export default { ...@@ -221,8 +268,8 @@ export default {
221 } 268 }
222 269
223 .xxTableBox { 270 .xxTableBox {
224 width: 810px;
225 overflow-x: scroll; 271 overflow-x: scroll;
272 width: 100%;
226 } 273 }
227 274
228 .xxTable>tr:first-child th { 275 .xxTable>tr:first-child th {
...@@ -231,11 +278,13 @@ export default { ...@@ -231,11 +278,13 @@ export default {
231 278
232 .xxTable { 279 .xxTable {
233 border-spacing: 1px; 280 border-spacing: 1px;
281 width: 100%;
234 282
235 tr>th { 283 tr>th {
236 background: #464c5b; 284 background: #464c5b;
237 color: #fff; 285 color: #fff;
238 font-size: 16px; 286 font-size: 16px;
287 height: 60px;
239 } 288 }
240 289
241 th.linshi, 290 th.linshi,
...@@ -297,6 +346,7 @@ export default { ...@@ -297,6 +346,7 @@ export default {
297 height: 40px; 346 height: 40px;
298 padding: 4px; 347 padding: 4px;
299 font-size: 13px; 348 font-size: 13px;
349 width: 140px;
300 } 350 }
301 351
302 >tr:nth-child(odd) td { 352 >tr:nth-child(odd) td {
......
...@@ -40,15 +40,16 @@ ...@@ -40,15 +40,16 @@
40 <p class="splitScreen tabsList-title">材料信息</p> 40 <p class="splitScreen tabsList-title">材料信息</p>
41 <div class="splitScreen"></div> 41 <div class="splitScreen"></div>
42 </div> 42 </div>
43 <div style="width:100%">
43 <el-tabs v-model="activeName" @tab-click='activeClick'> 44 <el-tabs v-model="activeName" @tab-click='activeClick'>
44 <el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index"> 45 <el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index">
45 <div class="splitScreen-con">
46 <component ref='slxx' v-if='index == 0' :is="editItem" :flag="flag" :key="key" />
47 <component ref='clxx' :is="editItem" v-else-if="index == 1" :key="key" />
48 <component :is="editItem" v-else :key="key" />
49 </div>
50 </el-tab-pane> 46 </el-tab-pane>
51 </el-tabs> 47 </el-tabs>
48 <div class="splitScreen-con">
49 <component ref='slxx' v-if="activeName == 'slsq'" :is="editItem" :flag="flag" :key="key" />
50 <component :is="editItem" :key="key" />
51 </div>
52 </div>
52 </div> 53 </div>
53 </div> 54 </div>
54 <zc ref="zcDialogRef" v-model="zcDialog" :queryForm='queryForm' /> 55 <zc ref="zcDialogRef" v-model="zcDialog" :queryForm='queryForm' />
...@@ -92,7 +93,11 @@ export default { ...@@ -92,7 +93,11 @@ export default {
92 watch: { 93 watch: {
93 activeName: { 94 activeName: {
94 handler (newName, oldName) { 95 handler (newName, oldName) {
96 if (newName === 'qlxx') {
97 this.editItem = this.loadViewSlsq()
98 } else {
95 this.editItem = this.loadView(newName) 99 this.editItem = this.loadView(newName)
100 }
96 }, 101 },
97 immediate: true 102 immediate: true
98 } 103 }
...@@ -116,9 +121,9 @@ export default { ...@@ -116,9 +121,9 @@ export default {
116 if (res.code === 200) { 121 if (res.code === 200) {
117 this.unitData = res.result ? res.result : [] 122 this.unitData = res.result ? res.result : []
118 setTimeout(() => { 123 setTimeout(() => {
119 that.$refs?.slxx[0].list(that.unitData && that.unitData[0].bsmSldy) 124 that.$refs.slxx?.[0].list(that.unitData?.[0]?.bsmSldy)
120 this.taskId = that.unitData[0].taskId 125 this.taskId = that.unitData?.[0]?.taskId
121 this.bsmBusiness = that.unitData[0].bsmBusiness 126 this.bsmBusiness = that.unitData?.[0]?.bsmBusiness
122 }, 300); 127 }, 300);
123 } 128 }
124 }) 129 })
...@@ -180,6 +185,9 @@ export default { ...@@ -180,6 +185,9 @@ export default {
180 loadView (view) { 185 loadView (view) {
181 return r => require.ensure([], () => r(require(`./components/${view}.vue`))) 186 return r => require.ensure([], () => r(require(`./components/${view}.vue`)))
182 }, 187 },
188 loadViewSlsq () {
189 return r => require.ensure([], () => r(require('../../components/jsydsyq/jsydsyq.vue')))
190 },
183 }, 191 },
184 } 192 }
185 </script> 193 </script>
...@@ -204,13 +212,10 @@ export default { ...@@ -204,13 +212,10 @@ export default {
204 font-size: 12px; 212 font-size: 12px;
205 } 213 }
206 214
207 /deep/.el-tabs__content {
208 height: calc(100vh - 135px) !important;
209 }
210
211 .splitScreen-con { 215 .splitScreen-con {
212 padding: 0 15px; 216 padding: 0 15px;
213 box-sizing: border-box; 217 box-sizing: border-box;
218 height: calc(100% - 350px);
214 } 219 }
215 220
216 .fqsq { 221 .fqsq {
...@@ -303,7 +308,6 @@ export default { ...@@ -303,7 +308,6 @@ export default {
303 .tabsList-left { 308 .tabsList-left {
304 border-right: 1px solid #EBEEF5; 309 border-right: 1px solid #EBEEF5;
305 position: relative; 310 position: relative;
306 width: 250px;
307 box-sizing: border-box; 311 box-sizing: border-box;
308 312
309 ul { 313 ul {
...@@ -354,6 +358,7 @@ export default { ...@@ -354,6 +358,7 @@ export default {
354 358
355 /deep/.el-tabs { 359 /deep/.el-tabs {
356 width: 100%; 360 width: 100%;
361 height: 60px;
357 } 362 }
358 } 363 }
359 </style> 364 </style>
...\ No newline at end of file ...\ No newline at end of file
......