[update 分组管理] 对接接口
This commit is contained in:
@@ -8,18 +8,18 @@
|
|||||||
<!--分组名称-->
|
<!--分组名称-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('system.groupMange.groupName')">
|
<a-form-item :label="$t('system.groupMange.groupName')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('system.groupMange.groupName')"
|
:placeholder="$t('pleaseEnter') + $t('system.groupMange.groupName')"
|
||||||
v-model="queryParam.name"></j-input>
|
v-model="queryParam.groupName"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<!--用户名称/工号-->
|
<!--用户名称/工号-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="`${$t('system.groupMange.userName')}/${$t('user.workNo')}`">
|
<a-form-item :label="`${$t('system.groupMange.userName')}/${$t('user.workNo')}`">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + `${$t('system.groupMange.userName')}/${$t('user.workNo')}`"
|
:placeholder="$t('pleaseEnter') + `${$t('system.groupMange.userName')}/${$t('user.workNo')}`"
|
||||||
v-model="queryParam.name"></j-input>
|
v-model="queryParam.userNameOrWorkId"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@@ -57,6 +57,8 @@
|
|||||||
|
|
||||||
<template v-slot:action="{text, record}">
|
<template v-slot:action="{text, record}">
|
||||||
<a @click="handleEdit(record)" v-has="'sys:groupManage:edit'">{{ $t('edit') }}</a>
|
<a @click="handleEdit(record)" v-has="'sys:groupManage:edit'">{{ $t('edit') }}</a>
|
||||||
|
<a-divider type="vertical" v-has="'sys:groupManage:delete'" />
|
||||||
|
<a @click="handleDelete(record.id)" class="table-ope-btn" v-has="'sys:groupManage:delete'">{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
@@ -95,21 +97,21 @@ export default {
|
|||||||
title: this.$t('system.groupMange.groupName'),
|
title: this.$t('system.groupMange.groupName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'name',
|
dataIndex: 'groupName',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('system.groupMange.peopleNumber'),
|
title: this.$t('system.groupMange.peopleNumber'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'link',
|
dataIndex: 'count',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('system.groupMange.groupMembers'),
|
title: this.$t('system.groupMange.groupMembers'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'user',
|
dataIndex: 'userNames',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -120,7 +122,8 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: ''
|
list: '/sys/group/page',
|
||||||
|
delete: '/sys/group/delete'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,10 +23,9 @@
|
|||||||
<!--组内人员-->
|
<!--组内人员-->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.groupMange.groupMembers')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.groupMange.groupMembers')">
|
||||||
<user-selection :placeholder="$t('pleaseSelect')+$t('system.groupMange.groupMembers')"
|
<user-selection :placeholder="$t('pleaseSelect')+$t('system.groupMange.groupMembers')"
|
||||||
v-decorator="['users', validatorRules.peopleNumber]"
|
v-decorator="['ids', validatorRules.peopleNumber]"
|
||||||
filedName="users"
|
|
||||||
@nameChange="userSelectNameChange"
|
@nameChange="userSelectNameChange"
|
||||||
:nameStr="model.users_dictText"
|
:nameStr="model.userNames"
|
||||||
input-type="textarea"
|
input-type="textarea"
|
||||||
type="checkbox" />
|
type="checkbox" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -75,14 +74,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
add: '',
|
add: '/sys/group/add',
|
||||||
edit: ''
|
edit: '/sys/group/edit'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
userSelectNameChange (value, fieldName) {
|
userSelectNameChange (value) {
|
||||||
this.model[fieldName + '_dictText'] = value
|
this.model.userNames = value
|
||||||
},
|
},
|
||||||
add () {
|
add () {
|
||||||
this.edit({})
|
this.edit({})
|
||||||
|
|||||||
Reference in New Issue
Block a user