|
|
@ -97,7 +97,7 @@
|
|
|
|
<a-form :confirmLoading="confirmLoading" :label-col="{ span: 5 }" @submit="handleSubmit" :wrapper-col="{ span: 12 }" :form="form">
|
|
|
|
<a-form :confirmLoading="confirmLoading" :label-col="{ span: 5 }" @submit="handleSubmit" :wrapper-col="{ span: 12 }" :form="form">
|
|
|
|
<a-form-item label="分享人">
|
|
|
|
<a-form-item label="分享人">
|
|
|
|
<a-select
|
|
|
|
<a-select
|
|
|
|
v-decorator="['userIds', { rules: [{ required: true, message: '请选择分享人' }] }]"
|
|
|
|
v-decorator="['userIds']"
|
|
|
|
mode="multiple"
|
|
|
|
mode="multiple"
|
|
|
|
:notFoundContent="'暂无数据'"
|
|
|
|
:notFoundContent="'暂无数据'"
|
|
|
|
:default-active-first-option="false"
|
|
|
|
:default-active-first-option="false"
|
|
|
@ -244,7 +244,17 @@ export default {
|
|
|
|
id: row.id
|
|
|
|
id: row.id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
GetTemplateShareList(data).then(res => {
|
|
|
|
GetTemplateShareList(data).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
if (res.success) {
|
|
|
|
|
|
|
|
const arrId = []
|
|
|
|
|
|
|
|
const arrName = []
|
|
|
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
|
|
|
arrId.push(item.shareToId)
|
|
|
|
|
|
|
|
arrName.push(item.shareToName)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.selectUserId = arrId
|
|
|
|
|
|
|
|
this.selectUserName = arrName
|
|
|
|
|
|
|
|
this.form.setFieldsValue({ 'userIds': arrId, 'remark': res.data[0] ? res.data[0].remark : '' })
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSearch(e) {
|
|
|
|
handleSearch(e) {
|
|
|
|