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
35d212d3
Commit
35d212d3
authored
Jun 17, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看联系人
parent
8bb01cf9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
11 deletions
+94
-11
index.js
src/router/index.js
+10
-0
edit.vue
src/views/ecw/customer/edit.vue
+18
-2
view.vue
src/views/ecw/customer/view.vue
+34
-0
index.vue
src/views/ecw/productBrank/index.vue
+32
-9
No files found.
src/router/index.js
View file @
35d212d3
...
@@ -91,6 +91,16 @@ export const constantRoutes = [
...
@@ -91,6 +91,16 @@ export const constantRoutes = [
meta
:
{
title
:
'
字典数据
'
,
icon
:
''
,
activeMenu
:
'
/system/dict
'
}
meta
:
{
title
:
'
字典数据
'
,
icon
:
''
,
activeMenu
:
'
/system/dict
'
}
}
}
]
]
},
{
path
:
'
/c
'
,
component
:
Layout
,
hidden
:
true
,
children
:
[{
path
:
'
ecw/customer/edit/:customerId(
\\
d+)
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/customer/edit
'
],
resolve
),
name
:
'
Data
'
,
meta
:
{
title
:
'
字典数据
'
,
icon
:
''
,
activeMenu
:
'
/system/dict
'
}
}]
},
{
},
{
path
:
'
/job
'
,
path
:
'
/job
'
,
component
:
Layout
,
component
:
Layout
,
...
...
src/views/ecw/customer/edit.vue
View file @
35d212d3
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<el-form-item
label=
"常用提货网点"
prop=
"pickupPoint"
>
<el-form-item
label=
"常用提货网点"
prop=
"pickupPoint"
>
<el-select
v-model=
"form.pickupPoint"
placeholder=
"请输入常用提货网点"
>
<el-select
v-model=
"form.pickupPoint"
placeholder=
"请输入常用提货网点"
>
<el-option
v-for=
"node in nodeList"
<el-option
v-for=
"node in nodeList"
:key=
"node.
value"
:label=
"node.label"
:value=
"node.value
"
/>
:key=
"node.
id"
:label=
"node.titleZh"
:value=
"node.id
"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"主营类别"
prop=
"productType"
>
<el-form-item
label=
"主营类别"
prop=
"productType"
>
<el-cascader
:options=
"productTypeList"
:props=
"
{label: 'titleZh', value: 'id', lazy: true, lazyLoad}">
</el-cascader>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
<el-select
v-model=
"form.productType"
placeholder=
"请选择产品类别"
>
<el-select
v-model=
"form.productType"
placeholder=
"请选择产品类别"
>
...
@@ -355,7 +356,10 @@
...
@@ -355,7 +356,10 @@
<
script
>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
upload
from
'
@/components/ImageUpload
'
import
upload
from
'
@/components/ImageUpload
'
import
{
createCustomer
,
getCustomer
,
updateCustomer
}
from
"
../../../api/ecw/customer
"
import
{
createCustomer
,
getCustomer
,
updateCustomer
}
from
'
@/api/ecw/customer
'
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
export
default
{
export
default
{
name
:
"
edit
"
,
name
:
"
edit
"
,
components
:
{
components
:
{
...
@@ -366,6 +370,14 @@ export default {
...
@@ -366,6 +370,14 @@ export default {
console
.
log
(
this
.
customerId
)
console
.
log
(
this
.
customerId
)
if
(
!!
this
.
customerId
)
if
(
!!
this
.
customerId
)
this
.
getCustomer
(
this
.
customerId
)
this
.
getCustomer
(
this
.
customerId
)
getNodeList
().
then
(
r
=>
{
this
.
nodeList
=
r
.
data
})
getProductTypeList
().
then
(
r
=>
{
this
.
productTypeList
=
r
.
data
})
},
},
data
(){
data
(){
return
{
return
{
...
@@ -389,10 +401,14 @@ export default {
...
@@ -389,10 +401,14 @@ export default {
},
},
// 网点
// 网点
nodeList
:
[],
nodeList
:
[],
productTypeList
:
[],
showLine
:
false
showLine
:
false
}
}
},
},
methods
:
{
methods
:
{
lazyLoad
(
node
,
resolve
)
{
},
/** 取消按钮 */
/** 取消按钮 */
cancel
()
{
cancel
()
{
this
.
open
=
false
;
this
.
open
=
false
;
...
...
src/views/ecw/customer/view.vue
0 → 100644
View file @
35d212d3
<
template
>
<view>
<el-row
type=
"flex"
style=
"margin-top: 15px;margin-bottom: 15px"
justify=
"center"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"20"
:xl=
"16"
>
<h2></h2>
<el-row
:gutter=
"10"
>
<el-col>
<h2>
查看
</h2>
</el-col>
<el-col>
<el-button
type=
"primary"
>
主要按钮
</el-button>
<el-button
type=
"primary"
>
主要按钮
</el-button>
<el-button
type=
"primary"
>
主要按钮
</el-button>
<el-button
type=
"primary"
>
主要按钮
</el-button>
<el-button
type=
"primary"
>
主要按钮
</el-button>
<el-button
type=
"danger"
>
危险按钮
</el-button>
</el-col>
</el-row>
</el-col>
</el-row>
</view>
</
template
>
<
script
>
export
default
{
name
:
'
view
'
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ecw/productBrank/index.vue
View file @
35d212d3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
68
px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
120
px"
>
<el-form-item
label=
"品牌中文标题"
prop=
"titleZh"
>
<el-form-item
label=
"品牌中文标题"
prop=
"titleZh"
>
<el-input
v-model=
"queryParams.titleZh"
placeholder=
"请输入品牌中文标题"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.titleZh"
placeholder=
"请输入品牌中文标题"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<!--
</el-form-item>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"是否备案"
prop=
"filing"
>
<el-form-item
label=
"是否备案"
prop=
"filing"
>
<el-select
v-model=
"queryParams.filing"
placeholder=
"请选择是否备案"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.filing"
placeholder=
"请选择是否备案"
clearable
size=
"small"
>
<el-option
v-for=
"dict in
this.
getDictDatas(DICT_TYPE.BRAND_REG_TYPE)"
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.BRAND_REG_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
@
pagination=
"getList"
/>
@
pagination=
"getList"
/>
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
:close-on-click-modal=
"false"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
12
0px"
>
<el-form-item
label=
"品牌中文标题"
prop=
"titleZh"
>
<el-form-item
label=
"品牌中文标题"
prop=
"titleZh"
>
<el-input
v-model=
"form.titleZh"
placeholder=
"请输入品牌中文标题"
/>
<el-input
v-model=
"form.titleZh"
placeholder=
"请输入品牌中文标题"
/>
</el-form-item>
</el-form-item>
...
@@ -98,12 +98,32 @@
...
@@ -98,12 +98,32 @@
<!-- </el-form-item>-->
<!-- </el-form-item>-->
<el-form-item
label=
"是否备案"
prop=
"filing"
>
<el-form-item
label=
"是否备案"
prop=
"filing"
>
<el-select
v-model=
"form.filing"
placeholder=
"请选择是否备案"
>
<el-select
v-model=
"form.filing"
placeholder=
"请选择是否备案"
>
<el-option
v-for=
"dict in this.
getDictDatas(DICT_TYPE.BRAND_REG_TYPE)"
<el-option
v-for=
"dict in
getDictDatas(DICT_TYPE.BRAND_REG_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<h3>
包含商标列表
</h3>
<el-form
ref=
"form"
:model=
"brand"
label-width=
"80px"
v-for=
"(brand, index) in brands"
:key=
"index"
>
<el-form-item
label=
"商标"
>
<el-input
v-model=
"brand.name"
placeholder=
"商标"
></el-input>
</el-form-item>
<el-form-item
label=
"商标分类"
>
<el-select
v-model=
"brand.type"
placeholder=
"placeholder"
>
<el-option
v-for=
"item in []"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
...
@@ -124,6 +144,8 @@ export default {
...
@@ -124,6 +144,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
getDictDatas
,
DICT_TYPE
,
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 导出遮罩层
// 导出遮罩层
...
@@ -154,6 +176,7 @@ export default {
...
@@ -154,6 +176,7 @@ export default {
rules
:
{
rules
:
{
},
},
recordStatus
:
getDictDatas
(
DICT_TYPE
.
BRAND_REG_TYPE
),
recordStatus
:
getDictDatas
(
DICT_TYPE
.
BRAND_REG_TYPE
),
brands
:
[{
name
:
''
,
type
:
''
}]
};
};
},
},
created
()
{
created
()
{
...
...
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