szh_zidingyibiaoti
lilu 2 years ago
commit 8ccf94d73a

@ -33,7 +33,7 @@
<a-select
show-search
placeholder="请选择船公司"
v-decorator="['carrierCode', { rules: [{ required: true, message: '请选择船公司!' }] }]"
v-decorator="['carrierCode']"
@search="CarrierHandleSearch"
:default-active-first-option="false"
:show-arrow="false"

@ -33,7 +33,7 @@
<a-select
show-search
placeholder="请选择船公司"
v-decorator="['carrierCode', { rules: [{ required: true, message: '请选择船公司!' }] }]"
v-decorator="['carrierCode']"
@search="CarrierHandleSearch"
:default-active-first-option="false"
:show-arrow="false"

@ -88,6 +88,7 @@
</template>
<script>
import { CommondbPageMappingportlist, commondbPortlist } from '@/api/modular/main/CommondbPortlist'
import { CommondbPageList } from '@/api/modular/main/CommondbPort'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -169,14 +170,10 @@ export default {
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbPortlist({ Name: data }).then(res => {
this.WCodeData = res.data
console.log(this.CodeData)
})
},
FnCode(data) {
console.log(data)
let RData = ''
console.log(this.CodeData)
this.CodeData.forEach(item => {
if (data == item.code) {
RData = item.cnName
@ -185,7 +182,6 @@ export default {
return RData
},
FncarrierCode(data) {
console.log(data)
let RData = ''
this.carrierCodeData.forEach(item => {
if (data == item.code) {
@ -211,8 +207,8 @@ export default {
Object.assign(this.$data, this.$options.data())
this.ColumnsQuery = this.columns
this.FnGetData()
commondbPortlist().then(res => {
this.CodeData = res.data
CommondbPageList({ PageNo: 1, PageSize: 99999, SortField: 'sort', descSort: 'true' }).then(res => {
this.CodeData = res.data.items
})
commondbModules().then(res => {
this.ModulesData = res.data
@ -226,7 +222,8 @@ export default {
this.loading = true
CommondbPageMappingportlist(this.queryParam).then(res => {
if (res.code == 200) {
this.loadData = res.data
this.loadData = res.data.items
this.queryParam.totalCount = res.data.totalCount
} else {
this.loadData = []
this.$message.warning(res.message)

@ -227,7 +227,8 @@ export default {
this.loading = true
CommondbPageMappingportloadlist(this.queryParam).then(res => {
if (res.code == 200) {
this.loadData = res.data
this.loadData = res.data.items
this.queryParam.totalCount = res.data.totalCount
} else {
this.loadData = []
this.$message.warning(res.message)

Loading…
Cancel
Save