style:查封登记信息
Showing
2 changed files
with
36 additions
and
23 deletions
... | @@ -5,30 +5,44 @@ | ... | @@ -5,30 +5,44 @@ |
5 | {{ title }} | 5 | {{ title }} |
6 | <div class="checkbox"> | 6 | <div class="checkbox"> |
7 | <el-checkbox-group v-model="checkList" @change="checkChange"> | 7 | <el-checkbox-group v-model="checkList" @change="checkChange"> |
8 | <el-checkbox | 8 | <el-checkbox v-for="item in qsztList" :key="item.value" :label="item.value">{{ item.label }}</el-checkbox> |
9 | v-for="item in qsztList" | ||
10 | :key="item.value" | ||
11 | :label="item.value" | ||
12 | >{{ item.label }}</el-checkbox | ||
13 | > | ||
14 | </el-checkbox-group> | 9 | </el-checkbox-group> |
15 | </div> | 10 | </div> |
16 | </div> | 11 | </div> |
17 | <div class="xxTableBox"> | 12 | <div class="xxTableBox"> |
18 | <table class="xxTable"> | 13 | <table class="xxTable"> |
19 | <tr v-for="(item, colindex) in columns" :key="colindex"> | 14 | <tr v-for="(item, colindex) in columns.slice(0, 3)" :key="colindex"> |
20 | <td> | 15 | <td> |
21 | {{ item.label }} | 16 | {{ item.label }} |
22 | </td> | 17 | </td> |
23 | <td | 18 | <td v-for="(row, index) in tableData" :key="index" :class="[ |
24 | v-for="(row, index) in tableData" | 19 | row.qszt == '2' ? 'lishi' : '', |
25 | :key="index" | 20 | row.qszt == '0' ? 'linshi' : '', |
26 | :class="[ | 21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
27 | row.qszt == '2' ? 'lishi' : '', | 22 | ]"> |
28 | row.qszt == '0' ? 'linshi' : '', | 23 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 24 | 正在办理 |
30 | ]" | 25 | </div> |
31 | > | 26 | <span v-if="item.prop == 'qszt'"> |
27 | {{ getQsztName(row[item.prop]) }} | ||
28 | </span> | ||
29 | |||
30 | <span v-else> {{ row[item.prop] }}</span> | ||
31 | </td> | ||
32 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
33 | </tr> | ||
34 | </table> | ||
35 | |||
36 | <table class="xxTable rollTable" style="margin-left: 2px"> | ||
37 | <tr v-for="(item, colindex) in columns.slice(3)" :key="colindex"> | ||
38 | <td> | ||
39 | {{ item.label }} | ||
40 | </td> | ||
41 | <td v-for="(row, index) in tableData" :key="index" :class="[ | ||
42 | row.qszt == '2' ? 'lishi' : '', | ||
43 | row.qszt == '0' ? 'linshi' : '', | ||
44 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | ||
45 | ]"> | ||
32 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 46 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
33 | 正在办理 | 47 | 正在办理 |
34 | </div> | 48 | </div> |
... | @@ -50,7 +64,7 @@ | ... | @@ -50,7 +64,7 @@ |
50 | import { getCfdjList } from "@/api/registerBook.js"; | 64 | import { getCfdjList } from "@/api/registerBook.js"; |
51 | import { datas } from "./qlxxFormData.js"; | 65 | import { datas } from "./qlxxFormData.js"; |
52 | export default { | 66 | export default { |
53 | data() { | 67 | data () { |
54 | return { | 68 | return { |
55 | title: "查封登记信息", | 69 | title: "查封登记信息", |
56 | qsztList: datas.columns().qsztList, | 70 | qsztList: datas.columns().qsztList, |
... | @@ -65,11 +79,11 @@ export default { | ... | @@ -65,11 +79,11 @@ export default { |
65 | columns: datas.columns().CFDJ, | 79 | columns: datas.columns().CFDJ, |
66 | }; | 80 | }; |
67 | }, | 81 | }, |
68 | created() { | 82 | created () { |
69 | this.loadData(); | 83 | this.loadData(); |
70 | }, | 84 | }, |
71 | methods: { | 85 | methods: { |
72 | loadData() { | 86 | loadData () { |
73 | getCfdjList({ | 87 | getCfdjList({ |
74 | bdcdyid: this.propsParam.bdcdyid, | 88 | bdcdyid: this.propsParam.bdcdyid, |
75 | bsmSldy: this.propsParam.bsmSldy, | 89 | bsmSldy: this.propsParam.bsmSldy, |
... | @@ -78,7 +92,7 @@ export default { | ... | @@ -78,7 +92,7 @@ export default { |
78 | }).then((res) => { | 92 | }).then((res) => { |
79 | if (res.code === 200) { | 93 | if (res.code === 200) { |
80 | this.tableData = res.result; | 94 | this.tableData = res.result; |
81 | if (this.tableData.length < datas.columns().emptycolNum) { | 95 | if (this.tableData.length < datas.columns().emptycolNum) { |
82 | this.emptycolNum = | 96 | this.emptycolNum = |
83 | datas.columns().emptycolNum - this.tableData.length; | 97 | datas.columns().emptycolNum - this.tableData.length; |
84 | } else { | 98 | } else { |
... | @@ -87,7 +101,7 @@ export default { | ... | @@ -87,7 +101,7 @@ export default { |
87 | } | 101 | } |
88 | }); | 102 | }); |
89 | }, | 103 | }, |
90 | checkChange() { | 104 | checkChange () { |
91 | if (this.checkList.length === 0) { | 105 | if (this.checkList.length === 0) { |
92 | this.tableData = []; | 106 | this.tableData = []; |
93 | this.emptycolNum = datas.columns().emptycolNum; | 107 | this.emptycolNum = datas.columns().emptycolNum; |
... | @@ -95,7 +109,7 @@ export default { | ... | @@ -95,7 +109,7 @@ export default { |
95 | this.loadData(); | 109 | this.loadData(); |
96 | } | 110 | } |
97 | }, | 111 | }, |
98 | getQsztName(code) { | 112 | getQsztName (code) { |
99 | let name = ""; | 113 | let name = ""; |
100 | for (let item of this.qsztList) { | 114 | for (let item of this.qsztList) { |
101 | if (item.value == code) { | 115 | if (item.value == code) { | ... | ... |
-
Please register or sign in to post a comment