Compare commits

..

2 Commits

  1. 6
      ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/TaskContent.vue
  2. 57
      ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/ContentCard.vue

@ -211,7 +211,11 @@ export default {
this.TotalData[index].data = res.result.records this.TotalData[index].data = res.result.records
this.TotalData[index].total = res.result.total this.TotalData[index].total = res.result.total
this.TotalData[index].data.forEach((element) => { this.TotalData[index].data.forEach((element) => {
element.headpic = getFileAccessHttpUrl(element.headpic) let arr = []
for (let i = 0; i < element.headpic.split(',').length; i++) {
arr = [...arr, getFileAccessHttpUrl(element.headpic.split(',')[i])]
}
element.headpic = arr.join(',')
element.taskPic = getFileAccessHttpUrl(element.taskPic) element.taskPic = getFileAccessHttpUrl(element.taskPic)
element.taskFile = getFileAccessHttpUrl(element.taskFile) element.taskFile = getFileAccessHttpUrl(element.taskFile)
}) })

@ -13,6 +13,7 @@
<div class="card_content" :key="item.id"> <div class="card_content" :key="item.id">
<el-card <el-card
ref="card" ref="card"
m
class="little_card" class="little_card"
:class=" :class="
color == 'black' color == 'black'
@ -239,11 +240,11 @@
> >
<span <span
class="pic" class="pic"
@click="LookPeople(item.managerUsers)" @click="LookPeople(item)"
:style="{ left: index - 1 + 0.1 * index + 'rem' }" :style="{ left: index - 1 + 0.1 * index + 'rem' }"
> >
<img <img
:src="item.headpic" :src="ii"
alt="" alt=""
style=" style="
width: 100%; width: 100%;
@ -280,13 +281,18 @@
> >
<template slot="title"> <template slot="title">
<i class="el-icon-more" style="cursor: pointer"></i> <i class="el-icon-more" style="cursor: pointer"></i>
<el-dropdown trigger="click" style="position: absolute; left: 3rem"> <el-dropdown
trigger="click"
style="position: absolute; left: 3rem"
@command="handleClick"
>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item>黄金糕</el-dropdown-item> <el-dropdown-item v-for="p in people" :key="p.id" :command="p.id">
<el-dropdown-item>狮子头</el-dropdown-item> {{ p.name }}</el-dropdown-item
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
@ -350,7 +356,7 @@
<script> <script>
import { Container, Draggable } from 'vue-smooth-dnd' import { Container, Draggable } from 'vue-smooth-dnd'
import { putAction } from '@/api/manage.js' import { putAction, getAction } from '@/api/manage.js'
import TaskModal from '@/views/task/modules/TaskModal' import TaskModal from '@/views/task/modules/TaskModal'
import { mixinDevice } from '@/utils/mixin' import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
@ -395,6 +401,17 @@ export default {
className: 'drop-preview', className: 'drop-preview',
animationDuration: '150', animationDuration: '150',
showOnTop: true showOnTop: true
},
// id,
people: [
{ id: 1, name: 'xxxs' },
{ id: 2, name: 'aaa' }
],
//
peopleData: {
name: '',
headpic: '',
project: []
} }
} }
}, },
@ -406,11 +423,35 @@ export default {
} }
}, },
methods: { methods: {
LookPeople(userid) { //
console.log(userid) 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] }
// }
this.drawer = true this.drawer = true
this.Check() 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() { Check() {
const s = '大禹项目' const s = '大禹项目'

Loading…
Cancel
Save