|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: cyy szjbdcyy@126.com
|
|
|
* @Date: 2024-11-07 16:00:14
|
|
|
* @LastEditors: cyy szjbdcyy@126.com
|
|
|
- * @LastEditTime: 2025-02-13 14:32:36
|
|
|
+ * @LastEditTime: 2025-05-17 11:51:35
|
|
|
* @FilePath: \zdqy_firm_former\src\views\component\personnelFile\components\personnelInfo.vue
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
-->
|
|
|
@@ -70,10 +70,10 @@
|
|
|
<el-col :span="8" class="contentFooterC">
|
|
|
<p>岗位:</p>
|
|
|
|
|
|
- <div v-if="typeof userList.find(t => t.userId === submitperInfoData.id) != 'undefined'" ref="posBox" class="posSty">
|
|
|
- <el-tag v-for="(item,i) in userList.find(t => t.userId === submitperInfoData.id).roleName.split(',')" :key="i" class="interspaceTag" size="mini">{{ item }}</el-tag>
|
|
|
+ <div v-if="Object.keys(posArr).length>0" ref="posBox" class="posSty">
|
|
|
+ <el-tag v-for="(item,i) in posArr.posName.split(',')" :key="i" class="interspaceTag" size="mini">{{ item }}</el-tag>
|
|
|
</div>
|
|
|
- <el-tooltip v-if="moreShow&&typeof userList.find(t => t.userId === submitperInfoData.id) != 'undefined'" class="item" effect="dark" :content="getContent(userList.find(t => t.userId === submitperInfoData.id).roleName.split(','))" placement="bottom-end">
|
|
|
+ <el-tooltip v-if="moreShow&&Object.keys(posArr).length>0" class="item" effect="dark" :content="getContent(posArr.posName.split(','))" placement="bottom-end">
|
|
|
<el-button id="resetFormButton" type="primary" icon="el-icon-more" size="mini" circle plain @click="clickHandler" />
|
|
|
</el-tooltip>
|
|
|
</el-col>
|
|
|
@@ -146,7 +146,8 @@ export default {
|
|
|
buttonShow: true,
|
|
|
flowDiagramVisible: false,
|
|
|
approvalHistoryVisible: false,
|
|
|
- moreShow: false
|
|
|
+ moreShow: false,
|
|
|
+ posArr: {}
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -155,6 +156,14 @@ export default {
|
|
|
if (Object.keys(val).length > 0) {
|
|
|
// eslint-disable-next-line no-undef
|
|
|
this.submitperInfoData = structuredClone(val)
|
|
|
+ const sql = `select * from (select ee.id_,ee.NAME_,GROUP_CONCAT(en.id_ SEPARATOR ',') AS posId,GROUP_CONCAT(en.name_ SEPARATOR ',') AS posName from ibps_party_employee ee join ibps_party_entity en on FIND_IN_SET(en.id_,ee.POSITIONS_) GROUP BY ee.id_) e where e.id_ = '${this.submitperInfoData.id}' `
|
|
|
+
|
|
|
+ this.$common.request('sql', sql).then(res => {
|
|
|
+ const datas = res.variables.data
|
|
|
+ this.posArr = datas[0]
|
|
|
+ console.log(datas,'ssssssssssssss')
|
|
|
+ })
|
|
|
+
|
|
|
// this.submitperInfoData.jianDingZiGeZ = '23456'
|
|
|
// console.log(this.submitperInfoData, '222')
|
|
|
// console.log(this.userList, '333')
|
|
|
@@ -172,6 +181,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
+ console.log(this.userList,'sdasdsdsa')
|
|
|
setTimeout(() => {
|
|
|
this.handleResize()
|
|
|
}, 1000)
|