|
@@ -57,7 +57,7 @@
|
|
|
<a-modal title="查看项目成员" v-model="visible" @ok="handleOk" width="800px">
|
|
|
<div style="display:flex;line-height:50px;flex-wrap: wrap;">
|
|
|
<div style="width:25%;text-align:center;" v-for="(item, index) of memberList" :key="index">
|
|
|
- <a-tag color="#2db7f5"
|
|
|
+ <a-tag color="#2db7f5" @close="log(item.id)" closable
|
|
|
>{{ item.userName }}
|
|
|
<a-divider type="vertical" />
|
|
|
{{ item.roleCode | roleCode }}</a-tag
|
|
@@ -125,7 +125,7 @@
|
|
|
|
|
|
<script>
|
|
|
import ProjectMemberModal from './modules/ProjectMemberModal'
|
|
|
-import { httpAction, getAction } from '@/api/manage'
|
|
|
+import { httpAction, getAction, deleteAction } from '@/api/manage'
|
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
@@ -154,6 +154,7 @@ export default {
|
|
|
projectId: '',
|
|
|
userId: ''
|
|
|
},
|
|
|
+ projectId: '',
|
|
|
user: '',
|
|
|
tabListNoTitle: [
|
|
|
{
|
|
@@ -238,6 +239,14 @@ export default {
|
|
|
}
|
|
|
this.member = jsonArr
|
|
|
},
|
|
|
+ log(id) {
|
|
|
+ deleteAction('/ctop/projectMember/delete', { id: id }).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ if (res.success) {
|
|
|
+ this.getMemberList(this.projectId)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onTabChange(key, type) {
|
|
|
console.log(key, type)
|
|
|
this[type] = key
|
|
@@ -363,6 +372,7 @@ export default {
|
|
|
handleAdd() {},
|
|
|
handleEdit(item) {
|
|
|
if (this.noTitleKey == 'myProject') {
|
|
|
+ this.projectId = item.id
|
|
|
this.getMemberList(item.id)
|
|
|
} else {
|
|
|
console.log(item)
|
|
@@ -380,7 +390,7 @@ export default {
|
|
|
params.advertiserId = this.record.advertiserId
|
|
|
params.advertiser_name = this.record.advertiserName
|
|
|
params.userId = this.userInfo().id
|
|
|
- params.userName = this.userInfo().username
|
|
|
+ params.userName = this.userInfo().realname
|
|
|
params.projectId = this.record.projectId
|
|
|
params.projectName = this.record.projectName
|
|
|
|