Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
cdeb8f0a
Commit
cdeb8f0a
authored
Jun 20, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
港口码头新增港口类型
parent
1c95a56a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
dict.js
src/utils/dict.js
+2
-1
index.vue
src/views/ecw/dock/index.vue
+30
-1
No files found.
src/utils/dict.js
View file @
cdeb8f0a
...
@@ -105,7 +105,8 @@ export const DICT_TYPE = {
...
@@ -105,7 +105,8 @@ export const DICT_TYPE = {
COMMISSION_TYPE
:
'
commission_type
'
,
//佣金类型
COMMISSION_TYPE
:
'
commission_type
'
,
//佣金类型
COMMISSION_DARK_TYPE
:
'
commission_dark_type
'
,
//暗涌类型
COMMISSION_DARK_TYPE
:
'
commission_dark_type
'
,
//暗涌类型
COMMISSION_CURRENCY_TYPE
:
'
commission_currency_type
'
,
//佣金货币类型
COMMISSION_CURRENCY_TYPE
:
'
commission_currency_type
'
,
//佣金货币类型
COMMISSION_UNIT
:
'
commission_unit
'
//佣金货物单位
COMMISSION_UNIT
:
'
commission_unit
'
,
//佣金货物单位
ECW_PORT_TYPE
:
'
port_type
'
,
//港口类型
}
}
...
...
src/views/ecw/dock/index.vue
View file @
cdeb8f0a
...
@@ -20,6 +20,15 @@
...
@@ -20,6 +20,15 @@
<el-table-column
label=
"中文名称"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"中文名称"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"英文名称"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
label=
"英文名称"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
prop=
"portType"
label=
"港口类型"
align=
"center"
>
<template
slot-scope=
"scope"
>
<div>
{{
portTypeName
(
scope
.
row
.
portType
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"国家"
align=
"center"
prop=
"countryZh"
/>
<el-table-column
label=
"国家"
align=
"center"
prop=
"countryZh"
/>
<el-table-column
label=
"省"
align=
"center"
prop=
"provinceZh"
/>
<el-table-column
label=
"省"
align=
"center"
prop=
"provinceZh"
/>
<el-table-column
label=
"城市"
align=
"center"
prop=
"cityZh"
/>
<el-table-column
label=
"城市"
align=
"center"
prop=
"cityZh"
/>
...
@@ -88,6 +97,11 @@
...
@@ -88,6 +97,11 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"港口类型"
prop=
"portType"
>
<el-select
v-model=
"form.portType"
placeholder=
"请选择"
>
<el-option
v-for=
"dict in portTypeDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"码头编号"
prop=
"number"
>
<el-form-item
label=
"码头编号"
prop=
"number"
>
<el-input
v-model=
"form.number"
placeholder=
"请输入码头编号"
/>
<el-input
v-model=
"form.number"
placeholder=
"请输入码头编号"
/>
...
@@ -107,6 +121,7 @@
...
@@ -107,6 +121,7 @@
<
script
>
<
script
>
import
{
createDock
,
updateDock
,
deleteDock
,
getDock
,
getDockPage
,
exportDockExcel
}
from
"
@/api/ecw/dock
"
;
import
{
createDock
,
updateDock
,
deleteDock
,
getDock
,
getDockPage
,
exportDockExcel
}
from
"
@/api/ecw/dock
"
;
import
{
getListTree
}
from
"
@/api/ecw/region
"
;
import
{
getListTree
}
from
"
@/api/ecw/region
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
export
default
{
export
default
{
name
:
"
Dock
"
,
name
:
"
Dock
"
,
...
@@ -163,10 +178,24 @@ export default {
...
@@ -163,10 +178,24 @@ export default {
titleZh
:
[{
required
:
true
,
message
:
"
中文名称不能为空
"
,
trigger
:
"
blur
"
}],
titleZh
:
[{
required
:
true
,
message
:
"
中文名称不能为空
"
,
trigger
:
"
blur
"
}],
titleEn
:
[{
required
:
true
,
message
:
"
英文名称不能为空
"
,
trigger
:
"
blur
"
}],
titleEn
:
[{
required
:
true
,
message
:
"
英文名称不能为空
"
,
trigger
:
"
blur
"
}],
sort
:
[{
required
:
true
,
message
:
"
排序不能为空
"
,
trigger
:
"
blur
"
}]
sort
:
[{
required
:
true
,
message
:
"
排序不能为空
"
,
trigger
:
"
blur
"
}]
}
},
portTypeDatas
:
getDictDatas
(
DICT_TYPE
.
ECW_PORT_TYPE
)
};
};
},
},
computed
:
{
portTypeName
()
{
return
portType
=>
{
for
(
let
index
in
this
.
portTypeDatas
)
{
let
portTypeItem
=
this
.
portTypeDatas
[
index
];
if
(
portTypeItem
.
value
==
portType
)
{
return
portTypeItem
.
label
;
}
}
}
},
},
watch
:
{
watch
:
{
'
form.countryId
'
(
newV
,
oldV
)
{
'
form.countryId
'
(
newV
,
oldV
)
{
if
(
oldV
&&
oldV
!=
newV
)
{
if
(
oldV
&&
oldV
!=
newV
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment