szh_zidingyibiaoti
张同海 2 years ago
parent 30fe7960c8
commit 2f2b796d7c

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

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