[新增功能](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="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-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.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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -301,6 +301,7 @@ export default {
|
||||||
humanResourceForm: false,
|
humanResourceForm: false,
|
||||||
userInfoList: [],
|
userInfoList: [],
|
||||||
formModel: {
|
formModel: {
|
||||||
|
userId: '',
|
||||||
userName: '',
|
userName: '',
|
||||||
cardId: ''
|
cardId: ''
|
||||||
},
|
},
|
||||||
|
@ -518,9 +519,10 @@ export default {
|
||||||
this.formModel.userName = item.NAME
|
this.formModel.userName = item.NAME
|
||||||
this.formModel.cardId = item.CARD_ID // 根据选择的用户名填充身份证号
|
this.formModel.cardId = item.CARD_ID // 根据选择的用户名填充身份证号
|
||||||
},
|
},
|
||||||
bind() {
|
bind(USER_ID) {
|
||||||
this.humanResourceForm = true
|
this.humanResourceForm = true
|
||||||
this.getHrUserInfo()
|
this.getHrUserInfo()
|
||||||
|
this.formModel.userId = USER_ID
|
||||||
},
|
},
|
||||||
getHrUserInfo() {
|
getHrUserInfo() {
|
||||||
requestFN(
|
requestFN(
|
||||||
|
|
Loading…
Reference in New Issue