lilu 2 years ago
commit e2c8db7d93

@ -12,7 +12,18 @@ export function CommondbCarrierList(parameter) {
params: 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 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 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 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 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 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 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 params: parameter
}) })
} }
export function CommondbPageMappingcarrierlist(parameter) {
return axios({
url: '/commondbpage/mappingcarrierlist',
method: 'get',
params: parameter
})
}
/** /**
* 新增编辑船公司映射信息 * 新增编辑船公司映射信息

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

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

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

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

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

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

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

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

Loading…
Cancel
Save