style:身份证读卡器
Showing
1 changed file
with
15 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-17 10:41:20 | 4 | * @LastEditTime: 2023-06-13 13:12:25 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div> | 7 | <div> |
| ... | @@ -12,8 +12,9 @@ | ... | @@ -12,8 +12,9 @@ |
| 12 | </div> | 12 | </div> |
| 13 | </template> | 13 | </template> |
| 14 | <script> | 14 | <script> |
| 15 | import addQlr from './dialog/addQlr.vue' | 15 | import axios from 'axios' |
| 16 | import { mapGetters } from 'vuex' | 16 | import { mapGetters } from 'vuex' |
| 17 | import addQlr from './dialog/addQlr.vue' | ||
| 17 | export default { | 18 | export default { |
| 18 | components: { | 19 | components: { |
| 19 | addQlr | 20 | addQlr |
| ... | @@ -66,7 +67,7 @@ | ... | @@ -66,7 +67,7 @@ |
| 66 | label: '身份证读卡器', | 67 | label: '身份证读卡器', |
| 67 | align: 'center', | 68 | align: 'center', |
| 68 | render: (h, scope) => { | 69 | render: (h, scope) => { |
| 69 | return <el-button type="text" icon="el-icon-tickets" onClick={() => { this.readClick(scope) }}>读取</el-button> | 70 | return <el-button type="text" icon="el-icon-tickets" onClick={() => { this.readClick(scope.row) }}>读取</el-button> |
| 70 | } | 71 | } |
| 71 | }, | 72 | }, |
| 72 | { | 73 | { |
| ... | @@ -193,8 +194,18 @@ | ... | @@ -193,8 +194,18 @@ |
| 193 | }, | 194 | }, |
| 194 | 195 | ||
| 195 | // 身份证读取 | 196 | // 身份证读取 |
| 196 | readClick () { }, | 197 | readClick (row) { |
| 198 | console.log(row, 'row'); | ||
| 199 | var httpurl = "http://127.0.0.1:33088/"; | ||
| 200 | var url = httpurl + "function=get_idcard&readnew=0" | ||
| 197 | 201 | ||
| 202 | axios.post(url).then(res => { | ||
| 203 | let data = res.data.IDCardInfo | ||
| 204 | row.sqrmc = data.name | ||
| 205 | row.zjzl = 1 | ||
| 206 | row.zjh = data.cardID | ||
| 207 | }) | ||
| 208 | }, | ||
| 198 | // 修改 | 209 | // 修改 |
| 199 | editClick (index, row) { | 210 | editClick (index, row) { |
| 200 | // popupDialog("申请人信息", "workflow/components/addQlr", { | 211 | // popupDialog("申请人信息", "workflow/components/addQlr", { | ... | ... |
-
Please register or sign in to post a comment