|
|
@ -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"
|
|
|
@ -71,13 +71,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 { CommondbMappingctnlist, commondbCtn } from '@/api/modular/main/CommondbCtnlist'
|
|
|
|
import { CommondbPageMappingctnlist, commondbCtn } from '@/api/modular/main/CommondbCtnlist'
|
|
|
|
import { commondbModules, commondbCarrierlist } from '@/api/modular/main/ShippingCompanyMapping'
|
|
|
|
import { commondbModules, commondbCarrierlist } 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'
|
|
|
@ -95,9 +103,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: [
|
|
|
@ -138,7 +148,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: [],
|
|
|
@ -152,6 +162,11 @@ export default {
|
|
|
|
this.init()
|
|
|
|
this.init()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
handlePageChange1({ currentPage, pageSize }) {
|
|
|
|
|
|
|
|
this.queryParam.PageNo = currentPage
|
|
|
|
|
|
|
|
this.queryParam.PageSize = pageSize
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
},
|
|
|
|
filterOption(input, option) {
|
|
|
|
filterOption(input, option) {
|
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -211,9 +226,10 @@ export default {
|
|
|
|
FnGetData() {
|
|
|
|
FnGetData() {
|
|
|
|
if (this.queryParam.module) {
|
|
|
|
if (this.queryParam.module) {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
CommondbMappingctnlist(this.queryParam).then(res => {
|
|
|
|
CommondbPageMappingctnlist(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)
|
|
|
|