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