style:分页
Showing
4 changed files
with
54 additions
and
17 deletions
... | @@ -183,6 +183,7 @@ | ... | @@ -183,6 +183,7 @@ |
183 | color: #4A4A4A; | 183 | color: #4A4A4A; |
184 | } | 184 | } |
185 | 185 | ||
186 | |||
186 | .el-table tr:nth-child(even) { | 187 | .el-table tr:nth-child(even) { |
187 | background: #FCFDFD !important; | 188 | background: #FCFDFD !important; |
188 | } | 189 | } |
... | @@ -191,6 +192,7 @@ | ... | @@ -191,6 +192,7 @@ |
191 | font-size: 14px; | 192 | font-size: 14px; |
192 | color: #7A7A7A; | 193 | color: #7A7A7A; |
193 | } | 194 | } |
195 | |||
194 | .lb-table .el-table { | 196 | .lb-table .el-table { |
195 | border: 1px solid #E4EBF4; | 197 | border: 1px solid #E4EBF4; |
196 | border-bottom: none; | 198 | border-bottom: none; | ... | ... |
... | @@ -16,7 +16,7 @@ export default { | ... | @@ -16,7 +16,7 @@ export default { |
16 | }, | 16 | }, |
17 | methods: { | 17 | methods: { |
18 | handleSizeChange (val) { | 18 | handleSizeChange (val) { |
19 | this.pageData.currentPage = val | 19 | this.pageData.currentPage = 1 |
20 | this.pageData.pageSize = val | 20 | this.pageData.pageSize = val |
21 | this.fetchData() | 21 | this.fetchData() |
22 | }, | 22 | }, | ... | ... |
... | @@ -7,14 +7,22 @@ | ... | @@ -7,14 +7,22 @@ |
7 | </lb-table> | 7 | </lb-table> |
8 | </template> | 8 | </template> |
9 | <script> | 9 | <script> |
10 | 10 | import { mapGetters } from 'vuex' | |
11 | export default { | 11 | export default { |
12 | props: { | 12 | props: { |
13 | dataList: { | 13 | dataList: { |
14 | type: Array, | 14 | type: Array, |
15 | default: [] | 15 | default: () => [{ |
16 | name: '', | ||
17 | zjzl: '', | ||
18 | zjh: '', | ||
19 | xldh: '' | ||
20 | }] | ||
16 | } | 21 | } |
17 | }, | 22 | }, |
23 | computed: { | ||
24 | ...mapGetters(['dictData']) | ||
25 | }, | ||
18 | data () { | 26 | data () { |
19 | return { | 27 | return { |
20 | tableData: { | 28 | tableData: { |
... | @@ -58,9 +66,9 @@ export default { | ... | @@ -58,9 +66,9 @@ export default { |
58 | <el-select value={scope.row[scope.column.property]} | 66 | <el-select value={scope.row[scope.column.property]} |
59 | onChange={(val) => { scope.row[scope.column.property] = val }}> | 67 | onChange={(val) => { scope.row[scope.column.property] = val }}> |
60 | { | 68 | { |
61 | this.options.map(option => { | 69 | this.dictData['A30'].map(option => { |
62 | return ( | 70 | return ( |
63 | <el-option label={option.name} value={option.value}></el-option> | 71 | <el-option label={option.dname} value={option.dcode}></el-option> |
64 | ) | 72 | ) |
65 | }) | 73 | }) |
66 | } | 74 | } |
... | @@ -74,7 +82,7 @@ export default { | ... | @@ -74,7 +82,7 @@ export default { |
74 | render: (h, scope) => { | 82 | render: (h, scope) => { |
75 | return ( | 83 | return ( |
76 | <el-input placeholder="证件号" value={scope.row[scope.column.property]} | 84 | <el-input placeholder="证件号" value={scope.row[scope.column.property]} |
77 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 85 | onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='21'></el-input> |
78 | ) | 86 | ) |
79 | } | 87 | } |
80 | }, | 88 | }, |
... | @@ -84,23 +92,32 @@ export default { | ... | @@ -84,23 +92,32 @@ export default { |
84 | render: (h, scope) => { | 92 | render: (h, scope) => { |
85 | return ( | 93 | return ( |
86 | <el-input placeholder="联系电话" value={scope.row[scope.column.property]} | 94 | <el-input placeholder="联系电话" value={scope.row[scope.column.property]} |
87 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 95 | onInput={(val) => { scope.row[scope.column.property] = val }} type='tel' maxlength='11'></el-input> |
88 | ) | 96 | ) |
89 | } | 97 | } |
90 | } | 98 | } |
91 | ], | 99 | ], |
92 | data: [{}], | 100 | data: [] |
93 | }, | 101 | } |
94 | } | 102 | } |
95 | }, | 103 | }, |
96 | watch: { | 104 | watch: { |
105 | 'tableData.data': { | ||
106 | handler (newValue, oldName) { | ||
107 | if (newValue.length != 0) { | ||
108 | this.$emit('getInfoList', newValue) | ||
109 | } | ||
110 | }, | ||
111 | deep: true, | ||
112 | immediate: true | ||
113 | }, | ||
97 | dataList: { | 114 | dataList: { |
98 | handler (newName, oldName) { | 115 | handler (newValue, oldName) { |
99 | this.tableData.data = _.cloneDeep(newName) | 116 | this.tableData.data = newValue |
100 | }, | 117 | }, |
101 | deep: true, | 118 | deep: true, |
102 | immediate: true | 119 | immediate: true |
103 | } | 120 | }, |
104 | }, | 121 | }, |
105 | methods: { | 122 | methods: { |
106 | handleAdd () { | 123 | handleAdd () { | ... | ... |
... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
3 | <div class="jtfccx-edit"> | 3 | <div class="jtfccx-edit"> |
4 | <div class="jtfccx-edit-con"> | 4 | <div class="jtfccx-edit-con"> |
5 | <b class="title">申请信息</b> | 5 | <b class="title">申请信息</b> |
6 | <personInfoTable :dataList="xqdataList" /> | 6 | <personInfoTable @getInfoList="handleGetSqList" /> |
7 | <el-form :model="ruleForm" label-width="100px"> | 7 | <el-form :model="ruleForm" label-width="100px"> |
8 | <el-row> | 8 | <el-row> |
9 | <el-col :span="12"> | 9 | <el-col :span="12"> |
... | @@ -30,8 +30,8 @@ | ... | @@ -30,8 +30,8 @@ |
30 | </div> | 30 | </div> |
31 | <b class="title">查询结果</b> | 31 | <b class="title">查询结果</b> |
32 | <p>查询编号:202200409</p> | 32 | <p>查询编号:202200409</p> |
33 | <lb-table :column="searchData.columns" :data="searchData.data" :maxHeight="200" heightNumSetting | 33 | <lb-table :column="searchData.columns" :dataList="qldataList" :data="searchData.data" :maxHeight="200" |
34 | :pagination="false"> | 34 | heightNumSetting :pagination="false"> |
35 | </lb-table> | 35 | </lb-table> |
36 | </div> | 36 | </div> |
37 | 37 | ||
... | @@ -54,9 +54,13 @@ export default { | ... | @@ -54,9 +54,13 @@ export default { |
54 | }, | 54 | }, |
55 | data () { | 55 | data () { |
56 | return { | 56 | return { |
57 | xqdataList: [], | ||
58 | qldataList: [], | ||
59 | myValue: this.value, | 57 | myValue: this.value, |
58 | qldataList: [{ | ||
59 | name: '', | ||
60 | zjzl: '', | ||
61 | zjh: '', | ||
62 | xldh: '' | ||
63 | }], | ||
60 | options: [{ | 64 | options: [{ |
61 | name: '1', | 65 | name: '1', |
62 | value: 1 | 66 | value: 1 |
... | @@ -138,11 +142,24 @@ export default { | ... | @@ -138,11 +142,24 @@ export default { |
138 | value (val) { | 142 | value (val) { |
139 | this.myValue = val | 143 | this.myValue = val |
140 | }, | 144 | }, |
145 | 'ruleForm.radi' (val) { | ||
146 | if (val != 1) { | ||
147 | this.sqdataList = [{ | ||
148 | name: '', | ||
149 | zjzl: '', | ||
150 | zjh: '', | ||
151 | xldh: '' | ||
152 | }] | ||
153 | } | ||
154 | } | ||
141 | }, | 155 | }, |
142 | methods: { | 156 | methods: { |
143 | closeDialog () { | 157 | closeDialog () { |
144 | this.$emit('input', false) | 158 | this.$emit('input', false) |
145 | }, | 159 | }, |
160 | handleGetSqList (val) { | ||
161 | console.log(val); | ||
162 | }, | ||
146 | handleRead (row) { } | 163 | handleRead (row) { } |
147 | } | 164 | } |
148 | } | 165 | } |
... | @@ -162,6 +179,7 @@ export default { | ... | @@ -162,6 +179,7 @@ export default { |
162 | flex-direction: column; | 179 | flex-direction: column; |
163 | overflow-y: hidden; | 180 | overflow-y: hidden; |
164 | max-height: 87vh; | 181 | max-height: 87vh; |
182 | padding: 0 2px; | ||
165 | 183 | ||
166 | .jtfccx-edit-con { | 184 | .jtfccx-edit-con { |
167 | flex: 1; | 185 | flex: 1; | ... | ... |
-
Please register or sign in to post a comment