|
|
@ -11,6 +11,9 @@ |
|
|
<el-form-item label="港口名称:"> |
|
|
<el-form-item label="港口名称:"> |
|
|
<el-input v-model="searchData.portName" style="width: 150px" clearable placeholder="请输入港口名称"></el-input> |
|
|
<el-input v-model="searchData.portName" style="width: 150px" clearable placeholder="请输入港口名称"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="国家:"> |
|
|
|
|
|
<el-input v-model="searchData.country" style="width: 150px" clearable placeholder="请输入国家"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-button class="customer-bun-min" type="primary" @click="getMainData">查询</el-button> |
|
|
<el-button class="customer-bun-min" type="primary" @click="getMainData">查询</el-button> |
|
|
<el-button @click="resetSearch" style="margin-left: 2px">重置</el-button> |
|
|
<el-button @click="resetSearch" style="margin-left: 2px">重置</el-button> |
|
|
@ -97,16 +100,21 @@ |
|
|
label-position="top" |
|
|
label-position="top" |
|
|
class="part-form"> |
|
|
class="part-form"> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="12"> |
|
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
<el-form-item label="港口编码" prop="portCode"> |
|
|
<el-form-item label="港口编码" prop="portCode"> |
|
|
<el-input v-model="portForm.portCode" :disabled="dialogType === 'edit'" placeholder="请输入港口编码"></el-input> |
|
|
<el-input v-model="portForm.portCode" :disabled="dialogType === 'edit'" placeholder="请输入港口编码"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
<el-form-item label="港口名称" prop="portName"> |
|
|
<el-form-item label="港口名称" prop="portName"> |
|
|
<el-input v-model="portForm.portName" placeholder="请输入港口名称"></el-input> |
|
|
<el-input v-model="portForm.portName" placeholder="请输入港口名称"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8"> |
|
|
|
|
|
<el-form-item label="国家" prop="country"> |
|
|
|
|
|
<el-input v-model="portForm.country" placeholder="请输入国家名称"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
@ -195,6 +203,7 @@ export default { |
|
|
searchData: { |
|
|
searchData: { |
|
|
portCode: '', |
|
|
portCode: '', |
|
|
portName: '', |
|
|
portName: '', |
|
|
|
|
|
country: '', |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 20 |
|
|
limit: 20 |
|
|
}, |
|
|
}, |
|
|
@ -203,6 +212,7 @@ export default { |
|
|
columnArray1: [ |
|
|
columnArray1: [ |
|
|
{ columnProp: 'portCode', columnLabel: '港口编码', columnWidth: '120', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'portCode', columnLabel: '港口编码', columnWidth: '120', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'portName', columnLabel: '港口名称', columnWidth: '180', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'portName', columnLabel: '港口名称', columnWidth: '180', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
|
|
|
{ columnProp: 'country', columnLabel: '国家', columnWidth: '180', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'isDeparturePort', columnLabel: '是否起始港', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'isDeparturePort', columnLabel: '是否起始港', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'isDestinationPort', columnLabel: '是否目的港', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'isDestinationPort', columnLabel: '是否目的港', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'active', columnLabel: '是否在用', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'active', columnLabel: '是否在用', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
@ -219,6 +229,7 @@ export default { |
|
|
portForm: { |
|
|
portForm: { |
|
|
portCode: '', |
|
|
portCode: '', |
|
|
portName: '', |
|
|
portName: '', |
|
|
|
|
|
country:'', |
|
|
active: 'Y', |
|
|
active: 'Y', |
|
|
isDeparturePort: 'Y', |
|
|
isDeparturePort: 'Y', |
|
|
isDestinationPort: 'N', |
|
|
isDestinationPort: 'N', |
|
|
@ -368,6 +379,7 @@ export default { |
|
|
this.portForm = { |
|
|
this.portForm = { |
|
|
portCode: row.portCode, |
|
|
portCode: row.portCode, |
|
|
portName: row.portName, |
|
|
portName: row.portName, |
|
|
|
|
|
country: row.country || '', |
|
|
active: row.active || 'Y', |
|
|
active: row.active || 'Y', |
|
|
isDeparturePort: row.isDeparturePort || 'Y', |
|
|
isDeparturePort: row.isDeparturePort || 'Y', |
|
|
isDestinationPort: row.isDestinationPort || 'N', |
|
|
isDestinationPort: row.isDestinationPort || 'N', |
|
|
|