修改问题

szh_change
sunzehua 1 year ago
parent e8f61cd26c
commit 3010829768

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

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

@ -97,7 +97,7 @@
<a-form :confirmLoading="confirmLoading" :label-col="{ span: 5 }" @submit="handleSubmit" :wrapper-col="{ span: 12 }" :form="form">
<a-form-item label="分享人">
<a-select
v-decorator="['userIds', { rules: [{ required: true, message: '请选择分享人' }] }]"
v-decorator="['userIds']"
mode="multiple"
:notFoundContent="'暂无数据'"
:default-active-first-option="false"
@ -244,7 +244,17 @@ export default {
id: row.id
}
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) {

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

Loading…
Cancel
Save