[新增功能](hyx_2024-12-11_humanResource):

list.vue
 - 绑定人资系统人员携带用户id
hyx_2024-12-11_humanResource
huangyuxuan 2024-12-12 13:51:36 +08:00
parent e31d16eb82
commit 1f221c06eb
1 changed files with 4 additions and 2 deletions

View File

@ -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(