a869ad39 by jiaozeping@pashanhoo.com

命名修改

1 parent 9b988b2b
1 <template> 1 <template>
2 <div> 2 <div>
3 <lb-table :column="column" :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList"> 3 <lb-table :column="column" border :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList">
4 </lb-table> 4 </lb-table>
5 <addQlr v-model="dialog" :details="details" @updateDetail="updateDetail" /> 5 <addQlr v-model="dialog" :details="details" @updateDetail="updateDetail" />
6 </div> 6 </div>
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
39 width: '50', 39 width: '50',
40 renderHeader: (h, scope) => { 40 renderHeader: (h, scope) => {
41 return <div> { 41 return <div> {
42 this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i> 42 this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.addClick() }}></i>
43 } 43 }
44 </div> 44 </div>
45 }, 45 },
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
48 <div> 48 <div>
49 { 49 {
50 this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> : 50 this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> :
51 <i class="el-icon-minus pointer" onClick={() => { this.handleMinus(scope.$index, scope.row) }}></i> 51 <i class="el-icon-minus pointer" onClick={() => { this.deleClick(scope.$index, scope.row) }}></i>
52 } 52 }
53 </div> 53 </div>
54 ) 54 )
...@@ -86,10 +86,10 @@ export default { ...@@ -86,10 +86,10 @@ export default {
86 this.$route.query.viewtype == 1 ? <el-button 86 this.$route.query.viewtype == 1 ? <el-button
87 icon="el-icon-view" 87 icon="el-icon-view"
88 type="text" 88 type="text"
89 onClick={() => { this.handleView(scope.$index, scope.row) }}>查看</el-button> : <el-button 89 onClick={() => { this.queryViewClick(scope.$index, scope.row) }}>查看</el-button> : <el-button
90 icon="el-icon-edit-outline" 90 icon="el-icon-edit-outline"
91 type="text" 91 type="text"
92 onClick={() => { this.handleEdit(scope.$index, scope.row) }}>编辑</el-button> 92 onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button>
93 } 93 }
94 </div> 94 </div>
95 ) 95 )
...@@ -142,24 +142,29 @@ export default { ...@@ -142,24 +142,29 @@ export default {
142 this.key++ 142 this.key++
143 this.$emit('upDateQlrxxList', this.tableDataList) 143 this.$emit('upDateQlrxxList', this.tableDataList)
144 }, 144 },
145 // 添加 145
146 handleAdd () { 146 // 新增
147 addClick () {
147 this.dialog = true 148 this.dialog = true
148 }, 149 },
149 // 减 150
150 handleMinus (index, row) { 151 // 删除
152 deleClick (index, row) {
151 this.tableData.splice(index, 1) 153 this.tableData.splice(index, 1)
152 }, 154 },
155
153 // 身份证读取 156 // 身份证读取
154 readClick () { }, 157 readClick () { },
158
155 // 修改 159 // 修改
156 handleEdit (index, row) { 160 editClick (index, row) {
157 console.log(row, 'rowrowrowrowrow'); 161 console.log(row, 'rowrowrowrowrow');
158 this.dataIndex = index 162 this.dataIndex = index
159 this.dialog = true 163 this.dialog = true
160 this.details = row 164 this.details = row
161 }, 165 },
162 handleView () { 166
167 queryViewClick () {
163 this.dialog = true 168 this.dialog = true
164 } 169 }
165 } 170 }
......