pull/1/head
张同海 2 years ago
parent ae4cb7c6d2
commit 4978954c87

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/codeissuetypelist',
method: 'get',
params: parameter
})
}
/**
* 新增签单方式
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/ctn',
method: 'get',
params: parameter
})
}
/**
* 新增箱型
*

@ -12,7 +12,13 @@ export function CommondbMappingctnlist(parameter) {
params: parameter
})
}
export function CommondbPageMappingctnlist(parameter) {
return axios({
url: '/commondbpage/mappingctnlist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑箱型映射信息
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/frt',
method: 'get',
params: parameter
})
}
/**
* 新增付费方式
*

@ -12,7 +12,13 @@ export function CommondbMappingfrtlist(parameter) {
params: parameter
})
}
export function CommondbPageMappingfrtlist(parameter) {
return axios({
url: '/commondbpage/mappingfrtlist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑付费映射信息
*

@ -12,7 +12,13 @@ export function CommondbMappingpackage(parameter) {
params: parameter
})
}
export function CommondbPageMappingpackage(parameter) {
return axios({
url: '/commondbpage/mappingpackage',
method: 'get',
params: parameter
})
}
/**
* 新增编辑包装映射信息
*

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

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

@ -12,7 +12,13 @@ export function CommondbMappingportlist(parameter) {
params: parameter
})
}
export function CommondbPageMappingportlist(parameter) {
return axios({
url: '/commondbpage/mappingportlist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑目的港映射信息
*

@ -12,7 +12,13 @@ export function CommondbMappingportloadlist(parameter) {
params: parameter
})
}
export function CommondbPageMappingportloadlist(parameter) {
return axios({
url: '/commondbpage/mappingportloadlist',
method: 'get',
params: parameter
})
}
/**
* 新增编辑起始港映射信息
*

@ -12,7 +12,13 @@ export function CommondbMappingservice(parameter) {
params: parameter
})
}
export function CommondbPageMappingservice(parameter) {
return axios({
url: '/commondbpage/mappingservice',
method: 'get',
params: parameter
})
}
/**
* 新增编辑运输条款映射信息
*

@ -12,7 +12,13 @@ export function CommondbList(parameter) {
params: parameter
})
}
export function CommondbPageList(parameter) {
return axios({
url: '/commondbpage/service',
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 { CommondbList } from '@/api/modular/main/CommondbCodeIssueType'
import { CommondbPageList } from '@/api/modular/main/CommondbCodeIssueType'
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: 'sort'
// }
],
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/CommondbCtn'
import { CommondbPageList } from '@/api/modular/main/CommondbCtn'
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: [
@ -130,7 +140,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: [],
@ -144,6 +154,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -154,9 +169,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"
@ -71,13 +71,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 { CommondbMappingctnlist, commondbCtn } from '@/api/modular/main/CommondbCtnlist'
import { CommondbPageMappingctnlist, commondbCtn } from '@/api/modular/main/CommondbCtnlist'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -95,9 +103,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: [
@ -138,7 +148,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: [],
@ -152,6 +162,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
@ -211,9 +226,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingctnlist(this.queryParam).then(res => {
CommondbPageMappingctnlist(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/CommondbFrt'
import { CommondbPageList } from '@/api/modular/main/CommondbFrt'
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: 'description'
}
],
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"
@ -71,13 +71,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 { CommondbMappingfrtlist, commondbFrt } from '@/api/modular/main/CommondbFrtlist'
import { CommondbPageMappingfrtlist, commondbFrt } from '@/api/modular/main/CommondbFrtlist'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -95,9 +103,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: [
@ -138,7 +148,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: [],
@ -152,6 +162,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbFrt({ Name: data }).then(res => {
this.WCodeData = res.data
@ -208,9 +223,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingfrtlist(this.queryParam).then(res => {
CommondbPageMappingfrtlist(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"
@ -71,13 +71,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 { CommondbMappingpackage, commondbPackage } from '@/api/modular/main/CommondbPackage'
import { CommondbPageMappingpackage, commondbPackage } from '@/api/modular/main/CommondbPackage'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -95,9 +103,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: [
@ -138,7 +148,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: [],
@ -152,6 +162,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbPackage({ Name: data }).then(res => {
this.WCodeData = res.data
@ -211,9 +226,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingpackage(this.queryParam).then(res => {
CommondbPageMappingpackage(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/CommondbPackageList'
import { CommondbPageList } from '@/api/modular/main/CommondbPackageList'
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: 'description'
}
],
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/CommondbPort'
import { CommondbPageList } from '@/api/modular/main/CommondbPort'
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: [
@ -147,7 +157,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: [],
@ -161,6 +171,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
toggleAdvanced() {
this.advanced = !this.advanced
},
@ -171,9 +186,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"
@ -71,13 +71,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 { CommondbMappingportlist, commondbPortlist } from '@/api/modular/main/CommondbPortlist'
import { CommondbPageMappingportlist, commondbPortlist } from '@/api/modular/main/CommondbPortlist'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -95,9 +103,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: [
@ -138,7 +148,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: [],
@ -152,6 +162,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbPortlist({ Name: data }).then(res => {
this.WCodeData = res.data
@ -207,7 +222,7 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingportlist(this.queryParam).then(res => {
CommondbPageMappingportlist(this.queryParam).then(res => {
if (res.code == 200) {
this.loadData = res.data
} else {

@ -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"
@ -71,13 +71,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 { CommondbMappingportloadlist, commondbPortloadlist } from '@/api/modular/main/CommondbPortloadlist'
import { CommondbPageMappingportloadlist, commondbPortloadlist } from '@/api/modular/main/CommondbPortloadlist'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -95,9 +103,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: [
@ -138,7 +148,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: [],
@ -152,6 +162,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbPortloadlist({ Name: data }).then(res => {
this.WCodeData = res.data
@ -208,7 +223,7 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingportloadlist(this.queryParam).then(res => {
CommondbPageMappingportloadlist(this.queryParam).then(res => {
if (res.code == 200) {
this.loadData = res.data
} else {

@ -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"
@ -71,13 +71,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 { CommondbMappingservice, commondbService } from '@/api/modular/main/CommondbService'
import { CommondbPageMappingservice, commondbService } from '@/api/modular/main/CommondbService'
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@ -95,9 +103,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: [
@ -152,6 +162,11 @@ export default {
this.init()
},
methods: {
handlePageChange1({ currentPage, pageSize }) {
this.queryParam.PageNo = currentPage
this.queryParam.PageSize = pageSize
this.FnGetData()
},
handleSearch(data) {
commondbService({ Name: data }).then(res => {
this.WCodeData = res.data
@ -208,9 +223,10 @@ export default {
FnGetData() {
if (this.queryParam.module) {
this.loading = true
CommondbMappingservice(this.queryParam).then(res => {
CommondbPageMappingservice(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/CommondbServiceList'
import { CommondbPageList } from '@/api/modular/main/CommondbServiceList'
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: 'description'
}
],
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)

Loading…
Cancel
Save