[新增功能](hyx_2024-12-11_humanResource):
list.vue - 绑定人资系统人员携带用户idhyx_2024-12-11_humanResource
parent
e31d16eb82
commit
1f221c06eb
|
@ -109,7 +109,7 @@
|
|||
<el-button v-show="edit" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)">编辑</el-button>
|
||||
<el-button v-show="del && row.ISMAIN=='0'" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.USER_ID, row.NAME, row.ISPUSH)">删除</el-button>
|
||||
<!-- <el-button v-if="row.ISPUSH == '0'" type="primary" icon="el-icon-position" size="mini" @click="goPush(row)">推送</el-button>-->
|
||||
<el-button v-if="row.IN_HR_USER == '0' || row.IN_HR_USER == '1'" type="primary" icon="el-icon-position" size="mini" @click="bind()">绑定</el-button>
|
||||
<el-button v-if="row.IN_HR_USER == '0' || row.IN_HR_USER == '1'" type="primary" icon="el-icon-position" size="mini" @click="bind(row.USER_ID)">绑定</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -301,6 +301,7 @@ export default {
|
|||
humanResourceForm: false,
|
||||
userInfoList: [],
|
||||
formModel: {
|
||||
userId: '',
|
||||
userName: '',
|
||||
cardId: ''
|
||||
},
|
||||
|
@ -518,9 +519,10 @@ export default {
|
|||
this.formModel.userName = item.NAME
|
||||
this.formModel.cardId = item.CARD_ID // 根据选择的用户名填充身份证号
|
||||
},
|
||||
bind() {
|
||||
bind(USER_ID) {
|
||||
this.humanResourceForm = true
|
||||
this.getHrUserInfo()
|
||||
this.formModel.userId = USER_ID
|
||||
},
|
||||
getHrUserInfo() {
|
||||
requestFN(
|
||||
|
|
Loading…
Reference in New Issue