| | |
| | | |
| | | export const getListhonor = (current, size, params, cardid) => { |
| | | return request({ |
| | | url: '/api//honor/list', |
| | | url: '/api/honor/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const addhonor = (row) => { |
| | | return request({ |
| | | url: '/api//honor/save', |
| | | url: '/api/honor/save', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const getER = (securityNumber) => { |
| | | return request({ |
| | | url: '/api//qrCode/getQrCodeBase64', |
| | | url: '/api/qrCode/getQrCodeBase64', |
| | | method: 'get', |
| | | params: { |
| | | securityNumber |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-07 17:39:25 |
| | | * @Last Modified time: 2021-09-09 09:53:49 |
| | | * menu-name 保安员注册查询 |
| | | */ |
| | | <template> |
| | |
| | | slot="deptName"> |
| | | <el-tag>{{row.deptName}}</el-tag> |
| | | </template> --> |
| | | <template slot-scope="{row}" slot="age"> |
| | | {{row.age==-1?'':row.age}} |
| | | <template slot-scope="{ row }" slot="age"> |
| | | {{ row.age == -1 ? "" : row.age }} |
| | | </template> |
| | | <template slot-scope="{row}" slot="sex"> |
| | | {{row.sex==-1?'':row.sex==1?'男':row.sex==2?'女':''}} |
| | | <template slot-scope="{ row }" slot="sex"> |
| | | {{ |
| | | row.sex == -1 |
| | | ? "" |
| | | : row.sex == 1 |
| | | ? "男" |
| | | : row.sex == 2 |
| | | ? "女" |
| | | : "" |
| | | }} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="deptId"> |
| | | <el-tag |
| | |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleViewCredentials(row)" |
| | | >打印证件</el-button |
| | | > |
| | |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleCredentials(row)" |
| | | >证件吊销</el-button |
| | | > |
| | |
| | | label: "性别", |
| | | prop: "sex", |
| | | width: 55, |
| | | slot:true, |
| | | slot: true, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | |
| | | label: "年龄", |
| | | prop: "age", |
| | | width: 55, |
| | | slot:true, |
| | | slot: true, |
| | | display: false, |
| | | }, |
| | | { |
| | |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // this.$message.success(JSON.stringify(form)); |
| | | addhonor(form).then((res) => { |
| | | console.log(res); |
| | | }); |
| | | addhonor(form).then( |
| | | (res) => { |
| | | // console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }, |
| | | (error) => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "操作失败", |
| | | }); |
| | | } |
| | | ); |
| | | this.objf = {}; |
| | | this.dialogVisible = false; |
| | | done(); |
| | |
| | | // this.$Print("#certificatess"); |
| | | this.objVisiblecertificates = obj; |
| | | console.log(this.objVisiblecertificates); |
| | | getER(this.obj.securitynumber).then((res) => { |
| | | getER(this.objVisiblecertificates.securitynumber).then((res) => { |
| | | this.erweima = res.data; |
| | | // console.log(res.data); |
| | | }); |
| | |
| | | console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!", |
| | | message: "吊销成功!", |
| | | }); |
| | | this.refreshChange(); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "已取消删除", |
| | | }); |
| | | // this.$message({ |
| | | // type: "info", |
| | | // message: "已取消删除", |
| | | // }); |
| | | }); |
| | | } |
| | | }, |