|
|
|
@ -13,7 +13,6 @@ |
|
|
|
|
<div class="card_content" :key="item.id"> |
|
|
|
|
<el-card |
|
|
|
|
ref="card" |
|
|
|
|
m |
|
|
|
|
class="little_card" |
|
|
|
|
:class=" |
|
|
|
|
color == 'black' |
|
|
|
@ -240,11 +239,11 @@ |
|
|
|
|
> |
|
|
|
|
<span |
|
|
|
|
class="pic" |
|
|
|
|
@click="LookPeople(item)" |
|
|
|
|
@click="LookPeople(item.managerUsers)" |
|
|
|
|
:style="{ left: index - 1 + 0.1 * index + 'rem' }" |
|
|
|
|
> |
|
|
|
|
<img |
|
|
|
|
:src="ii" |
|
|
|
|
:src="item.headpic" |
|
|
|
|
alt="" |
|
|
|
|
style=" |
|
|
|
|
width: 100%; |
|
|
|
@ -281,18 +280,13 @@ |
|
|
|
|
> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<i class="el-icon-more" style="cursor: pointer"></i> |
|
|
|
|
<el-dropdown |
|
|
|
|
trigger="click" |
|
|
|
|
style="position: absolute; left: 3rem" |
|
|
|
|
@command="handleClick" |
|
|
|
|
> |
|
|
|
|
<el-dropdown trigger="click" style="position: absolute; left: 3rem"> |
|
|
|
|
<span class="el-dropdown-link"> |
|
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
|
</span> |
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
|
<el-dropdown-item v-for="p in people" :key="p.id" :command="p.id"> |
|
|
|
|
{{ p.name }}</el-dropdown-item |
|
|
|
|
> |
|
|
|
|
<el-dropdown-item>黄金糕</el-dropdown-item> |
|
|
|
|
<el-dropdown-item>狮子头</el-dropdown-item> |
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
</el-dropdown> |
|
|
|
|
</template> |
|
|
|
@ -356,7 +350,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { Container, Draggable } from 'vue-smooth-dnd' |
|
|
|
|
import { putAction, getAction } from '@/api/manage.js' |
|
|
|
|
import { putAction } from '@/api/manage.js' |
|
|
|
|
import TaskModal from '@/views/task/modules/TaskModal' |
|
|
|
|
import { mixinDevice } from '@/utils/mixin' |
|
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
@ -401,17 +395,6 @@ export default { |
|
|
|
|
className: 'drop-preview', |
|
|
|
|
animationDuration: '150', |
|
|
|
|
showOnTop: true |
|
|
|
|
}, |
|
|
|
|
// 任务负责人id,名字 |
|
|
|
|
people: [ |
|
|
|
|
{ id: 1, name: 'xxxs' }, |
|
|
|
|
{ id: 2, name: 'aaa' } |
|
|
|
|
], |
|
|
|
|
// 员工的信息 |
|
|
|
|
peopleData: { |
|
|
|
|
name: '', |
|
|
|
|
headpic: '', |
|
|
|
|
project: [] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -423,35 +406,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 点击负责人头像 |
|
|
|
|
async LookPeople(user) { |
|
|
|
|
user = user.headpic.split(',').map((i) => { |
|
|
|
|
// getFileAccessHttpUrl(i) |
|
|
|
|
console.log('sss', i) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
console.log('eeee', user) |
|
|
|
|
// let userid = user.managerUsers.split(',') |
|
|
|
|
// let username = user.managerUsers_dictText.split(',') |
|
|
|
|
// for (let i = 0; i < userid.length; i++) { |
|
|
|
|
// this.people[i] = { id: userid[i], name: username[i] } |
|
|
|
|
// } |
|
|
|
|
LookPeople(userid) { |
|
|
|
|
console.log(userid) |
|
|
|
|
this.drawer = true |
|
|
|
|
this.Check() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 获取负责人个人数据和历史任务 |
|
|
|
|
async getPeopleData(userId) { |
|
|
|
|
const res = await getAction(this.url.list, { userId }) |
|
|
|
|
console.log('llll', res) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 点击切换任务负责人 |
|
|
|
|
handleClick(command) { |
|
|
|
|
console.log('dddeeee', command) |
|
|
|
|
this.getPeopleData(command) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 让任务内容的特定字段变成链接可跳转 |
|
|
|
|
Check() { |
|
|
|
|
const s = '大禹项目' |
|
|
|
|