修改问题

szh_change
sunzehua 1 year ago
parent e8f61cd26c
commit 3010829768

@ -57,6 +57,7 @@ import {
getVesselInfoService, getVesselInfoService,
GetForwarderlist, GetForwarderlist,
BookingTemplate, BookingTemplate,
GetTemplateShare,
CodeCountryList, CodeCountryList,
GetPortloadlist, GetPortloadlist,
GetPortlist GetPortlist
@ -151,7 +152,7 @@ export default {
case 'GetForwarderlist': case 'GetForwarderlist':
return GetForwarderlist return GetForwarderlist
case 'BookingTemplate': case 'BookingTemplate':
return BookingTemplate return GetTemplateShare
case 'CodeCountryList': case 'CodeCountryList':
return CodeCountryList return CodeCountryList
case 'GetPortloadlist': case 'GetPortloadlist':

@ -60,6 +60,7 @@ import {
GetPortloadlist, GetPortloadlist,
GetPortlist, GetPortlist,
BookingTemplate, BookingTemplate,
GetTemplateShare,
DjyCustomerpage, DjyCustomerpage,
DjyCustomerSuggest, DjyCustomerSuggest,
getContractno, getContractno,
@ -201,7 +202,7 @@ export default {
case 'GetPortlist': case 'GetPortlist':
return GetPortlist return GetPortlist
case 'BookingTemplate': case 'BookingTemplate':
return BookingTemplate return GetTemplateShare
case 'DjyCustomerpage': case 'DjyCustomerpage':
return DjyCustomerpage return DjyCustomerpage
case 'DjyCustomerSuggest': case 'DjyCustomerSuggest':

@ -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) {

@ -60,6 +60,7 @@ import {
GetPortloadlist, GetPortloadlist,
GetPortlist, GetPortlist,
BookingTemplate, BookingTemplate,
GetTemplateShare,
DjyCustomerpage, DjyCustomerpage,
DjyCustomerSuggest, DjyCustomerSuggest,
getContractno, getContractno,
@ -201,7 +202,7 @@ export default {
case 'GetPortlist': case 'GetPortlist':
return GetPortlist return GetPortlist
case 'BookingTemplate': case 'BookingTemplate':
return BookingTemplate return GetTemplateShare
case 'DjyCustomerpage': case 'DjyCustomerpage':
return DjyCustomerpage return DjyCustomerpage
case 'DjyCustomerSuggest': case 'DjyCustomerSuggest':

Loading…
Cancel
Save