添加查封解封批量加载列表优化
Showing
2 changed files
with
151 additions
and
3 deletions
src/views/workflow/components/cfdjTable.vue
0 → 100644
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-07-17 13:51:29 | ||
5 | --> | ||
6 | <template> | ||
7 | <lb-table :column="column" :maxHeight="200" :heightNumSetting="true" :pagination="false" :key="key" :data="tableData"> | ||
8 | </lb-table> | ||
9 | </template> | ||
10 | <script> | ||
11 | import addQlr from './dialog/addQlr.vue' | ||
12 | import { mapGetters } from 'vuex' | ||
13 | export default { | ||
14 | components: { | ||
15 | addQlr | ||
16 | }, | ||
17 | computed: { | ||
18 | ...mapGetters(["dictData"]), | ||
19 | }, | ||
20 | props: { | ||
21 | tableData: { | ||
22 | type: Array, | ||
23 | default: function () { | ||
24 | return [] | ||
25 | } | ||
26 | }, | ||
27 | gyfs: { | ||
28 | type: String, | ||
29 | default: '1' | ||
30 | } | ||
31 | }, | ||
32 | data () { | ||
33 | return { | ||
34 | key: 0, | ||
35 | dataIndex: 0, | ||
36 | dialog: false, | ||
37 | details: {}, | ||
38 | tableDataList: [], | ||
39 | qlrCommonTable: [ | ||
40 | { | ||
41 | label: '序号', | ||
42 | type: 'index', | ||
43 | width: '50', | ||
44 | render: (h, scope) => { | ||
45 | return ( | ||
46 | <div> | ||
47 | {scope.$index + 1} | ||
48 | </div> | ||
49 | ) | ||
50 | } | ||
51 | }, | ||
52 | { | ||
53 | prop: "yg", | ||
54 | label: "原告" | ||
55 | }, | ||
56 | { | ||
57 | prop: "cfwh", | ||
58 | label: "查封文号" | ||
59 | }, | ||
60 | { | ||
61 | prop: "cfqssj", | ||
62 | label: "查封开始时间" | ||
63 | }, | ||
64 | { | ||
65 | prop: "cfjssj", | ||
66 | label: "查封结束时间" | ||
67 | }, | ||
68 | { | ||
69 | prop: "cflxmc", | ||
70 | label: "查封类型" | ||
71 | }, | ||
72 | { | ||
73 | prop: "ywrmc", | ||
74 | label: "被执行人" | ||
75 | }, | ||
76 | { | ||
77 | prop: "bcfzh", | ||
78 | label: "被查封证号" | ||
79 | }, | ||
80 | { | ||
81 | prop: "bdcdyh", | ||
82 | label: "不动产单元号" | ||
83 | }, | ||
84 | { | ||
85 | prop: "zl", | ||
86 | label: "坐落" | ||
87 | }, | ||
88 | |||
89 | |||
90 | ], | ||
91 | column: this.qlrCommonTable | ||
92 | } | ||
93 | }, | ||
94 | watch: { | ||
95 | tableData: { | ||
96 | handler: function (val, oldVal) { | ||
97 | let that = this | ||
98 | if (val.length == 0 || !val) { | ||
99 | that.tableDataList = _.cloneDeep([{ | ||
100 | sqrmc: '', | ||
101 | dlrzjlx: '', | ||
102 | dlrzjh: '', | ||
103 | fr: '' | ||
104 | }]) | ||
105 | } else { | ||
106 | that.tableDataList = _.cloneDeep(val) | ||
107 | } | ||
108 | }, | ||
109 | immediate: true, | ||
110 | deep: true | ||
111 | }, | ||
112 | gyfs: { | ||
113 | handler (newVal, oldValue) { | ||
114 | let dataList = _.cloneDeep(this.qlrCommonTable) | ||
115 | if (newVal == '1') { | ||
116 | this.column = _.cloneDeep(dataList).slice(1, dataList.length) | ||
117 | } else if ((newVal == '2')) { | ||
118 | this.column = dataList | ||
119 | } else { | ||
120 | this.column = _.cloneDeep(dataList) | ||
121 | this.column.splice( | ||
122 | 2, 0, { | ||
123 | prop: "qlbl", | ||
124 | label: "份数" | ||
125 | }) | ||
126 | } | ||
127 | }, | ||
128 | immediate: true | ||
129 | } | ||
130 | }, | ||
131 | methods: { | ||
132 | } | ||
133 | } | ||
134 | </script> | ||
135 | <style scoped lang='scss'> | ||
136 | /deep/.el-table th { | ||
137 | height: 30px !important; | ||
138 | } | ||
139 | /deep/.el-table--small .el-table__cell { | ||
140 | padding: 5px; | ||
141 | } | ||
142 | </style> |
... | @@ -52,11 +52,16 @@ | ... | @@ -52,11 +52,16 @@ |
52 | </el-form-item> | 52 | </el-form-item> |
53 | </el-col> | 53 | </el-col> |
54 | </el-row> | 54 | </el-row> |
55 | <div class="slxx_title title-block"> | 55 | <div class="slxx_title title-block" v-if="ruleForm.slsq.djywbm.includes('400')"> |
56 | 解封信息列表({{ ruleForm.cfdjDetailList.length }} 个) | ||
57 | <div class="triangle"></div> | ||
58 | <cfdjTable :tableData="ruleForm.cfdjDetailList" /> | ||
59 | </div> | ||
60 | <div class="slxx_title title-block" v-else> | ||
56 | 查封不动产列表({{ ruleForm.ztQlxxList.length }} 个) | 61 | 查封不动产列表({{ ruleForm.ztQlxxList.length }} 个) |
57 | <div class="triangle"></div> | 62 | <div class="triangle"></div> |
63 | <cfBdcdyTable :tableData="ruleForm.ztQlxxList" /> | ||
58 | </div> | 64 | </div> |
59 | <cfBdcdyTable :tableData="ruleForm.ztQlxxList" /> | ||
60 | <div class="slxx_title title-block"> | 65 | <div class="slxx_title title-block"> |
61 | 批量查封信息 | 66 | 批量查封信息 |
62 | <div class="triangle"></div> | 67 | <div class="triangle"></div> |
... | @@ -158,6 +163,7 @@ | ... | @@ -158,6 +163,7 @@ |
158 | </template> | 163 | </template> |
159 | <script> | 164 | <script> |
160 | import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable"; | 165 | import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable"; |
166 | import cfdjTable from "@/views/workflow/components/cfdjTable"; | ||
161 | import { BatchInit, batchSaveData } from "@/api/workflow/cfdjFlow.js"; | 167 | import { BatchInit, batchSaveData } from "@/api/workflow/cfdjFlow.js"; |
162 | import { mapGetters } from "vuex"; | 168 | import { mapGetters } from "vuex"; |
163 | export default { | 169 | export default { |
... | @@ -199,7 +205,7 @@ | ... | @@ -199,7 +205,7 @@ |
199 | } | 205 | } |
200 | }) | 206 | }) |
201 | }, | 207 | }, |
202 | components: { cfBdcdyTable }, | 208 | components: { cfBdcdyTable,cfdjTable }, |
203 | props: { | 209 | props: { |
204 | flag: { | 210 | flag: { |
205 | type: Boolean, | 211 | type: Boolean, | ... | ... |
-
Please register or sign in to post a comment