Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
周远喜
mes-ui
Commits
0ad3cee5
Commit
0ad3cee5
authored
Sep 15, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
supporting
parent
6f7b2dfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
373 additions
and
354 deletions
+373
-354
index.vue
pages/technology/productMix/product/index.vue
+373
-354
No files found.
pages/technology/productMix/product/index.vue
View file @
0ad3cee5
<
template
>
<
template
>
<div
class=
"product-m"
>
<div
class=
"product-m"
>
<DataGrid
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:type=
"typeInfo"
:high=
"false"
:span=
"6"
:lazy=
"true"
exportTitle=
"产品管理"
>
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:type=
"typeInfo"
:high=
"false"
:span=
"6"
:lazy=
"true"
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
...
@@ -68,18 +59,12 @@
...
@@ -68,18 +59,12 @@
</div>
</div>
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
:fullscreen=
"fullscreen"
:mask-closable=
"false"
>
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
:fullscreen=
"fullscreen"
:mask-closable=
"false"
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
:parents=
"parent"
/>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
:parents=
"parent"
/>
</Modal>
</Modal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
Search
from
"./search"
;
import
Search
from
"./search"
;
...
@@ -106,17 +91,25 @@ export default {
...
@@ -106,17 +91,25 @@ export default {
action
:
Api
.
index
,
action
:
Api
.
index
,
fullscreen
:
false
,
fullscreen
:
false
,
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
"mmcode,name"
,
value
:
null
},
keys
:
{
levelId
:
{
op
:
"In"
,
value
:
this
.
id
},
op
:
"mmcode,name"
,
upId
:
{
op
:
"In"
,
value
:
0
},
value
:
null
},
levelId
:
{
op
:
"In"
,
value
:
this
.
id
},
upId
:
{
op
:
"In"
,
value
:
0
},
},
},
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
detail
:
null
,
detail
:
null
,
downUrl
:
fileUrlDown
,
downUrl
:
fileUrlDown
,
curId
:
0
,
curId
:
0
,
columns
:
[
columns
:
[{
{
key
:
"id"
,
key
:
"id"
,
title
:
this
.
$t
(
"id"
),
title
:
this
.
$t
(
"id"
),
hide
:
true
,
hide
:
true
,
...
@@ -141,10 +134,11 @@ export default {
...
@@ -141,10 +134,11 @@ export default {
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
h
(
"a"
,
"a"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
,
oprate
:
"detail"
,
// href: this.fileUrlPath,
// href: this.fileUrlPath,
...
@@ -186,11 +180,14 @@ export default {
...
@@ -186,11 +180,14 @@ export default {
width
:
200
,
width
:
200
,
align
:
"center"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"edit"
},
oprate
:
"edit"
},
on
:
{
on
:
{
click
:
()
=>
this
.
bom
(
params
.
row
),
click
:
()
=>
this
.
bom
(
params
.
row
),
},
},
...
@@ -198,9 +195,10 @@ export default {
...
@@ -198,9 +195,10 @@ export default {
"BOM"
"BOM"
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"edit"
},
oprate
:
"edit"
},
on
:
{
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
),
click
:
()
=>
this
.
edit
(
params
.
row
),
},
},
...
@@ -208,17 +206,21 @@ export default {
...
@@ -208,17 +206,21 @@ export default {
"编辑"
"编辑"
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"delete"
},
oprate
:
"delete"
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
},
},
"删除"
"删除"
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"view"
},
oprate
:
"view"
},
on
:
{
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
),
click
:
()
=>
this
.
view
(
params
.
row
),
},
},
...
@@ -237,7 +239,10 @@ export default {
...
@@ -237,7 +239,10 @@ export default {
mounted
()
{
mounted
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
methods
:
{
methods
:
{
...
@@ -336,8 +341,14 @@ export default {
...
@@ -336,8 +341,14 @@ export default {
"parent.id"
(
v
)
{
"parent.id"
(
v
)
{
if
(
v
)
{
if
(
v
)
{
let
data
=
{
let
data
=
{
levelId
:
{
op
:
"In"
,
value
:
this
.
parent
.
ids
},
levelId
:
{
upId
:
{
op
:
"In"
,
value
:
0
},
op
:
"In"
,
value
:
this
.
parent
.
ids
},
upId
:
{
op
:
"In"
,
value
:
0
},
};
};
this
.
$refs
.
grid
.
reload
(
data
);
this
.
$refs
.
grid
.
reload
(
data
);
}
}
...
@@ -345,12 +356,14 @@ export default {
...
@@ -345,12 +356,14 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.product-m {
.product-m {
.body-card {
.body-card {
border: 1px solid rgba(38, 128, 235, 1);
border: 1px solid rgba(38, 128, 235, 1);
margin: 10px;
margin: 10px;
border-radius: 4px;
border-radius: 4px;
.title-i {
.title-i {
border-bottom: 1px solid #2680eb;
border-bottom: 1px solid #2680eb;
padding: 0 10px;
padding: 0 10px;
...
@@ -358,26 +371,32 @@ export default {
...
@@ -358,26 +371,32 @@ export default {
line-height: 35px;
line-height: 35px;
background: rgba(38, 128, 235, 0.2);
background: rgba(38, 128, 235, 0.2);
color: #2680eb;
color: #2680eb;
.btn-click {
.btn-click {
text-align: right;
text-align: right;
}
}
}
}
.row-down {
.row-down {
padding: 10px;
padding: 10px;
.img-i {
.img-i {
width: 90px;
width: 90px;
background: #eee;
background: #eee;
height: 90px;
height: 90px;
margin-right: 15px;
margin-right: 15px;
// overflow: hidden;
// overflow: hidden;
img {
img {
width: 90px;
width: 90px;
height: 90px;
height: 90px;
}
}
}
}
.c div {
.c div {
margin-bottom: 8px;
margin-bottom: 8px;
}
}
.a-icon {
.a-icon {
text-align: right;
text-align: right;
margin-bottom: -5px;
margin-bottom: -5px;
...
...
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