style:家庭房产
Showing
3 changed files
with
37 additions
and
106 deletions
| ... | @@ -183,11 +183,6 @@ | ... | @@ -183,11 +183,6 @@ |
| 183 | color: #4A4A4A; | 183 | color: #4A4A4A; |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | .el-table th.is-leaf, | ||
| 187 | .el-table td { | ||
| 188 | border-bottom: 1px solid #E4EBF4; | ||
| 189 | } | ||
| 190 | |||
| 191 | .el-table tr:nth-child(even) { | 186 | .el-table tr:nth-child(even) { |
| 192 | background: #FCFDFD !important; | 187 | background: #FCFDFD !important; |
| 193 | } | 188 | } |
| ... | @@ -196,23 +191,12 @@ | ... | @@ -196,23 +191,12 @@ |
| 196 | font-size: 14px; | 191 | font-size: 14px; |
| 197 | color: #7A7A7A; | 192 | color: #7A7A7A; |
| 198 | } | 193 | } |
| 199 | |||
| 200 | .lb-table .el-table { | 194 | .lb-table .el-table { |
| 201 | border: 1px solid #E4EBF4; | 195 | border: 1px solid #E4EBF4; |
| 202 | border-bottom: none; | 196 | border-bottom: none; |
| 203 | border-radius: 4px 4px 0 0; | 197 | border-radius: 4px 4px 0 0; |
| 204 | } | 198 | } |
| 205 | 199 | ||
| 206 | // 表格暂无数据样式 | ||
| 207 | .el-table__empty-text { | ||
| 208 | height: 200px; | ||
| 209 | line-height: 300px; | ||
| 210 | background: url('/images/table-bg.png') 50% 50% no-repeat; | ||
| 211 | background-size: 100px; | ||
| 212 | letter-spacing: 2px; | ||
| 213 | color: #aaa; | ||
| 214 | } | ||
| 215 | |||
| 216 | .el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip { | 200 | .el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip { |
| 217 | display: none !important | 201 | display: none !important |
| 218 | } | 202 | } |
| ... | @@ -226,7 +210,6 @@ | ... | @@ -226,7 +210,6 @@ |
| 226 | margin-right: 10px; | 210 | margin-right: 10px; |
| 227 | } | 211 | } |
| 228 | 212 | ||
| 229 | // // 全局修改button颜色 | ||
| 230 | .el-form-item__content { | 213 | .el-form-item__content { |
| 231 | flex: 1; | 214 | flex: 1; |
| 232 | } | 215 | } | ... | ... |
| ... | @@ -9,7 +9,12 @@ | ... | @@ -9,7 +9,12 @@ |
| 9 | <script> | 9 | <script> |
| 10 | 10 | ||
| 11 | export default { | 11 | export default { |
| 12 | components: {}, | 12 | props: { |
| 13 | dataList: { | ||
| 14 | type: Array, | ||
| 15 | default: [] | ||
| 16 | } | ||
| 17 | }, | ||
| 13 | data () { | 18 | data () { |
| 14 | return { | 19 | return { |
| 15 | tableData: { | 20 | tableData: { |
| ... | @@ -87,7 +92,24 @@ export default { | ... | @@ -87,7 +92,24 @@ export default { |
| 87 | data: [{}], | 92 | data: [{}], |
| 88 | }, | 93 | }, |
| 89 | } | 94 | } |
| 95 | }, | ||
| 96 | watch: { | ||
| 97 | dataList: { | ||
| 98 | handler (newName, oldName) { | ||
| 99 | this.tableData.data = _.cloneDeep(newName) | ||
| 100 | }, | ||
| 101 | deep: true, | ||
| 102 | immediate: true | ||
| 90 | } | 103 | } |
| 104 | }, | ||
| 105 | methods: { | ||
| 106 | handleAdd () { | ||
| 107 | this.tableData.data.push({}) | ||
| 108 | }, | ||
| 109 | handleMinus (index, row) { | ||
| 110 | this.tableData.data.splice(index, 1) | ||
| 111 | }, | ||
| 112 | }, | ||
| 91 | } | 113 | } |
| 92 | </script> | 114 | </script> |
| 93 | <style scoped lang='scss'> | 115 | <style scoped lang='scss'> | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="家庭房产查询" @closeDialog="closeDialog" width="80%" :isButton="false" v-model="value"> | 2 | <dialogBox title="家庭房产查询" @closeDialog="closeDialog" width="80%" :isButton="false" v-model="myValue"> |
| 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 | <lb-table :column="tableData.columns" :data="tableData.data" :maxHeight="200" heightNumSetting | 6 | <personInfoTable :dataList="xqdataList" /> |
| 7 | :pagination="false"> | ||
| 8 | </lb-table> | ||
| 9 | <el-form :model="ruleForm" label-width="100px"> | 7 | <el-form :model="ruleForm" label-width="100px"> |
| 10 | <el-row> | 8 | <el-row> |
| 11 | <el-col :span="12"> | 9 | <el-col :span="12"> |
| ... | @@ -25,9 +23,7 @@ | ... | @@ -25,9 +23,7 @@ |
| 25 | </el-row> | 23 | </el-row> |
| 26 | </el-form> | 24 | </el-form> |
| 27 | <b class="title">权利人</b> | 25 | <b class="title">权利人</b> |
| 28 | <lb-table :column="tableData.columns" :data="tableData.data" :maxHeight="200" heightNumSetting | 26 | <personInfoTable :dataList="qldataList" /> |
| 29 | :pagination="false"> | ||
| 30 | </lb-table> | ||
| 31 | <div class="submit-button"> | 27 | <div class="submit-button"> |
| 32 | <el-button type="primary" icon="el-icon-search">查询</el-button> | 28 | <el-button type="primary" icon="el-icon-search">查询</el-button> |
| 33 | <el-button icon="el-icon-refresh-left">重置</el-button> | 29 | <el-button icon="el-icon-refresh-left">重置</el-button> |
| ... | @@ -48,92 +44,23 @@ | ... | @@ -48,92 +44,23 @@ |
| 48 | </template> | 44 | </template> |
| 49 | 45 | ||
| 50 | <script> | 46 | <script> |
| 47 | import personInfoTable from '@/views/components/personInfoTable' | ||
| 51 | export default { | 48 | export default { |
| 52 | components: { | 49 | components: { |
| 50 | personInfoTable | ||
| 53 | }, | 51 | }, |
| 54 | props: { | 52 | props: { |
| 55 | value: { type: Boolean, default: false }, | 53 | value: { type: Boolean, default: false }, |
| 56 | }, | 54 | }, |
| 57 | data () { | 55 | data () { |
| 58 | return { | 56 | return { |
| 57 | xqdataList: [], | ||
| 58 | qldataList: [], | ||
| 59 | myValue: this.value, | ||
| 59 | options: [{ | 60 | options: [{ |
| 60 | name: '1', | 61 | name: '1', |
| 61 | value: 1 | 62 | value: 1 |
| 62 | }], | 63 | }], |
| 63 | tableData: { | ||
| 64 | columns: [ | ||
| 65 | { | ||
| 66 | width: '60', | ||
| 67 | renderHeader: (h, scope) => { | ||
| 68 | return <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }} style="color:#409EFF"></i> | ||
| 69 | }, | ||
| 70 | render: (h, scope) => { | ||
| 71 | return ( | ||
| 72 | <i class="el-icon-minus pointer" onClick={() => { this.handleMinus(scope.$index, scope.row) }}></i> | ||
| 73 | ) | ||
| 74 | } | ||
| 75 | }, | ||
| 76 | { | ||
| 77 | label: '身份证读卡器', | ||
| 78 | render: (h, scope) => { | ||
| 79 | return ( | ||
| 80 | <div> | ||
| 81 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { this.handleRead(scope) }}>读取</el-button> | ||
| 82 | </div> | ||
| 83 | ) | ||
| 84 | } | ||
| 85 | }, | ||
| 86 | { | ||
| 87 | prop: 'name', | ||
| 88 | label: '姓名/名称', | ||
| 89 | render: (h, scope) => { | ||
| 90 | return ( | ||
| 91 | <el-input placeholder="姓名/名称" value={scope.row[scope.column.property]} | ||
| 92 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | ||
| 93 | ) | ||
| 94 | } | ||
| 95 | }, | ||
| 96 | { | ||
| 97 | prop: 'zjzl', | ||
| 98 | label: '证件种类', | ||
| 99 | render: (h, scope) => { | ||
| 100 | return ( | ||
| 101 | <el-select value={scope.row[scope.column.property]} | ||
| 102 | onChange={(val) => { scope.row[scope.column.property] = val }}> | ||
| 103 | { | ||
| 104 | this.options.map(option => { | ||
| 105 | return ( | ||
| 106 | <el-option label={option.name} value={option.value}></el-option> | ||
| 107 | ) | ||
| 108 | }) | ||
| 109 | } | ||
| 110 | </el-select> | ||
| 111 | ) | ||
| 112 | } | ||
| 113 | }, | ||
| 114 | { | ||
| 115 | prop: 'zjh', | ||
| 116 | label: '证件号', | ||
| 117 | render: (h, scope) => { | ||
| 118 | return ( | ||
| 119 | <el-input placeholder="证件号" value={scope.row[scope.column.property]} | ||
| 120 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | ||
| 121 | ) | ||
| 122 | } | ||
| 123 | }, | ||
| 124 | { | ||
| 125 | prop: 'xldh', | ||
| 126 | label: '联系电话', | ||
| 127 | render: (h, scope) => { | ||
| 128 | return ( | ||
| 129 | <el-input placeholder="联系电话" value={scope.row[scope.column.property]} | ||
| 130 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | ||
| 131 | ) | ||
| 132 | } | ||
| 133 | } | ||
| 134 | ], | ||
| 135 | data: [{}], | ||
| 136 | }, | ||
| 137 | searchData: { | 64 | searchData: { |
| 138 | columns: [ | 65 | columns: [ |
| 139 | { | 66 | { |
| ... | @@ -199,7 +126,7 @@ export default { | ... | @@ -199,7 +126,7 @@ export default { |
| 199 | } | 126 | } |
| 200 | } | 127 | } |
| 201 | ], | 128 | ], |
| 202 | data: [{}] | 129 | data: [] |
| 203 | }, | 130 | }, |
| 204 | ruleForm: { | 131 | ruleForm: { |
| 205 | name: '', | 132 | name: '', |
| ... | @@ -207,16 +134,15 @@ export default { | ... | @@ -207,16 +134,15 @@ export default { |
| 207 | } | 134 | } |
| 208 | } | 135 | } |
| 209 | }, | 136 | }, |
| 137 | watch: { | ||
| 138 | value (val) { | ||
| 139 | this.myValue = val | ||
| 140 | }, | ||
| 141 | }, | ||
| 210 | methods: { | 142 | methods: { |
| 211 | closeDialog () { | 143 | closeDialog () { |
| 212 | this.$emit('input', false) | 144 | this.$emit('input', false) |
| 213 | }, | 145 | }, |
| 214 | handleAdd () { | ||
| 215 | this.tableData.data.push({}) | ||
| 216 | }, | ||
| 217 | handleMinus (index, row) { | ||
| 218 | this.tableData.data.splice(index, 1) | ||
| 219 | }, | ||
| 220 | handleRead (row) { } | 146 | handleRead (row) { } |
| 221 | } | 147 | } |
| 222 | } | 148 | } | ... | ... |
-
Please register or sign in to post a comment