lilu 2 years ago
commit e2c8db7d93

@ -12,7 +12,18 @@ export function CommondbCarrierList(parameter) {
params: parameter
})
}
/**
* 获取船公司列表信息(分页)
*
* @author Myshipping
*/
export function CommondbPageCarrierList(parameter) {
return axios({
url: '/commondbpage/carrierlist',
method: 'get',
params: parameter
})
}
/**
* 新增船公司信息
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/forwarderlist',
method: 'get',
params: parameter
})
}
/**
* 新增船代信息
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/portloadlist',
method: 'get',
params: parameter
})
}
/**
* 新增起始港信息
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/vessellist',
method: 'get',
params: parameter
})
}
/**
* 新增船名信息
*

@ -12,7 +12,13 @@ export function CommondbMappingvessellist(parameter) {
params: parameter
})
}
export function CommondbPageMappingvessellist(parameter) {
return axios({
url: '/commondbpage/mappingvessellist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑船名映射信息
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/yardlist',
method: 'get',
params: parameter
})
}
/**
* 新增场站信息
*

@ -12,7 +12,13 @@ export function CommondbMappingyardlist(parameter) {
params: parameter
})
}
export function CommondbPageMappingyardlist(parameter) {
return axios({
url: '/commondbpage/mappingyardlist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑场站映射信息
*

@ -12,6 +12,13 @@ export function CommondbMappingcarrierlist(parameter) {
params: parameter
})
}
export function CommondbPageMappingcarrierlist(parameter) {
return axios({
url: '/commondbpage/mappingcarrierlist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑船公司映射信息

@ -39,7 +39,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="50" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -57,13 +57,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbCarrierList } from '@/api/modular/main/CommondbCarrierList'
import { CommondbPageCarrierList } from '@/api/modular/main/CommondbCarrierList'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
export default {
@ -80,9 +88,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -123,7 +133,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -137,6 +147,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -147,9 +162,10 @@ export default {
},
FnGetData() {
this.loading = true
CommondbCarrierList(this.queryParam).then(res => {
CommondbPageCarrierList(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)

@ -39,7 +39,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="50" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -57,13 +57,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbList } from '@/api/modular/main/CommondbForwarder'
import { CommondbPageList } from '@/api/modular/main/CommondbForwarder'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
export default {
@ -80,9 +88,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -117,7 +127,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -131,6 +141,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -141,9 +156,10 @@ export default {
},
FnGetData() {
this.loading = true
CommondbList(this.queryParam).then(res => {
CommondbPageList(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)

@ -39,7 +39,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="50" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -57,13 +57,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbList } from '@/api/modular/main/CommondbPortload'
import { CommondbPageList } from '@/api/modular/main/CommondbPortload'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
export default {
@ -80,9 +88,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -123,7 +133,7 @@ export default {
dataIndex: 'description'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -137,6 +147,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -147,9 +162,10 @@ export default {
},
FnGetData() {
this.loading = true
CommondbList(this.queryParam).then(res => {
CommondbPageList(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)

@ -39,7 +39,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="50" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -57,13 +57,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbList } from '@/api/modular/main/CommondbVessel'
import { CommondbPageList } from '@/api/modular/main/CommondbVessel'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
export default {
@ -80,9 +88,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -111,7 +121,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -125,6 +135,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -135,9 +150,10 @@ export default {
},
FnGetData() {
this.loading = true
CommondbList(this.queryParam).then(res => {
CommondbPageList(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)

@ -66,7 +66,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="40" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -88,13 +88,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbMappingvessellist, commondbVessellist } from '@/api/modular/main/CommondbVessellist'
import { CommondbPageMappingvessellist, commondbVessellist } from '@/api/modular/main/CommondbVessellist'
import { commondbModules } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -112,9 +120,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -143,7 +153,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -156,6 +166,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbVessellist({ Name: data }).then(res => {
this.WCodeData = res.data
@ -197,9 +212,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingvessellist(this.queryParam).then(res => {
CommondbPageMappingvessellist(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)

@ -39,7 +39,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="50" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -57,13 +57,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbList } from '@/api/modular/main/CommondbYard'
import { CommondbPageList } from '@/api/modular/main/CommondbYard'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
export default {
@ -80,9 +88,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -117,7 +127,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -131,6 +141,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -141,9 +156,10 @@ export default {
},
FnGetData() {
this.loading = true
CommondbList(this.queryParam).then(res => {
CommondbPageList(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)

@ -48,7 +48,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="40" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -70,13 +70,21 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
</div>
</template>
<script>
import { CommondbMappingyardlist, commondbYardlist } from '@/api/modular/main/CommondbYardlist'
import { CommondbPageMappingyardlist, commondbYardlist } from '@/api/modular/main/CommondbYardlist'
import { commondbModules } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -94,9 +102,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -131,7 +141,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -144,6 +154,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbYardlist({ Name: data }).then(res => {
this.WCodeData = res.data
@ -186,9 +201,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingyardlist(this.queryParam).then(res => {
CommondbPageMappingyardlist(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)

@ -48,7 +48,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="loadData" border :loading="loading" height="546" empty-text="">
<vxe-column type="seq" width="40" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -70,6 +70,14 @@
</template>
</vxe-column>
</vxe-table>
<vxe-pager
:current-page="queryParam.PageNo"
:page-size="queryParam.PageSize"
:total="queryParam.totalCount"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange1"
>
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
@ -77,7 +85,7 @@
</template>
<script>
import {
CommondbMappingcarrierlist,
CommondbPageMappingcarrierlist,
commondbCarrierlist,
commondbModules
} from '@/api/modular/main/ShippingCompanyMapping'
@ -99,9 +107,11 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
// currentPage: 1,
// pageSize: 10,
// totalResult: 1
PageNo: 1,
PageSize: 10,
totalCount: 0,
SortField: 'sort',
descSort: true
},
ColumnsQuery: [],
columns: [
@ -136,7 +146,7 @@ export default {
dataIndex: 'remark'
}
],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
tstyle: { 'padding-top': '12px', 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
@ -149,6 +159,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbCarrierlist({ cnName: data }).then(res => {
this.WCodeData = res.data
@ -191,9 +206,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingcarrierlist(this.queryParam).then(res => {
CommondbPageMappingcarrierlist(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