Browse Source

组织架构点击跳转人员画像修改

feature
SongZhen 2 years ago
parent
commit
2666fc40e5
  1. 2
      src/assets/css/workflow.scss
  2. 4
      src/components/NameSplit/index.vue
  3. 4
      src/components/PopHomeTip/index.vue
  4. 11
      src/components/PopTips/index.vue

2
src/assets/css/workflow.scss

@ -534,7 +534,7 @@ html {
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 100%
// height: 100%
}
@font-face {

4
src/components/NameSplit/index.vue

@ -3,8 +3,8 @@
<div v-if="!flag" :title="getAllName(item[areaName])">{{ spliceNameFun(item[areaName], 8) }}</div>
<div class="name_more" v-if="item[peopleName] && !item[peopleName].includes(',')" @click="gotoPersonnel(item.resiId)" :title="getAllName(item[peopleName])">{{ spliceNameFun(item[peopleName], 12) }}</div>
<div class="name_more" v-if="item[peopleName] && item[peopleName].includes(',')">
<span v-for="(i, k) in getItemNameArr(item[peopleName])" :key="i" @click="gotoPersonnel(item.resiId[k])" :title="getAllName(i)">{{ spliceNameFun(i, 12) }}{{ k === getItemNameArr(item[peopleName]).length - 1 ? "" : "," }}</span>
<popTips :item="item" />
<span v-for="(i, k) in getItemNameArr(item[peopleName])" :key="i" @click="gotoPersonnel(item.resiId.split(',')[k])" :title="getAllName(i)">{{ spliceNameFun(i, 12) }}{{ k === getItemNameArr(item[peopleName]).length - 1 ? "" : "," }}</span>
<popTips :item="item" :pageName="pageName" />
</div>
</div>
</template>

4
src/components/PopHomeTip/index.vue

@ -83,8 +83,8 @@ export default {
},
gotoPersonnel(id) {
if (id) {
this.$router.push({ path: "/organizational/orgPersonnel", query: { user_id: id } });
if (id && id !== "") {
this.$router.push({ path: `/organizational/orgPersonnel/${this.pageName}`, query: { user_id: id } });
} else {
this.$message.error("无法跳转!");
}

11
src/components/PopTips/index.vue

@ -3,7 +3,7 @@
<div class="popperList">
<div style="margin-bottom: 13px">所有人员</div>
<div v-for="(itm, idx) in getItemNameArr(item.name)" :key="itm">
<span style="cursor: pointer" @click="gotoPersonnel(item.resiId[idx])">{{ itm }}</span>
<span style="cursor: pointer" @click="gotoPersonnel(item.resiId.split(',')[idx])">{{ itm }}</span>
</div>
</div>
<i slot="reference" style="margin-left: 2px" class="el-icon-more"></i>
@ -18,14 +18,19 @@ export default {
type: Object,
default: () => {},
},
pageName: {
type: String,
default: "",
},
},
data() {
return {};
},
methods: {
gotoPersonnel(id) {
if (id) {
this.$router.push("/organizational/orgPersonnel");
console.log(id);
if (id && id !== "") {
this.$router.push({ path: `/organizational/orgPersonnel/${this.pageName}`, query: { user_id: id } });
} else {
this.$message({
message: "无法跳转",

Loading…
Cancel
Save