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
2c993c5f
Commit
2c993c5f
authored
Jun 28, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品
parent
0ce9adff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
144 additions
and
20 deletions
+144
-20
zh-CN.js
i18n/locale/zh-CN.js
+2
-0
index.vue
pages/technology/productMix/index.vue
+2
-2
index.vue
pages/technology/productMix/product/index.vue
+140
-18
No files found.
i18n/locale/zh-CN.js
View file @
2c993c5f
...
...
@@ -1434,6 +1434,8 @@ export default {
drawingNo
:
'图号'
,
name
:
'名称'
,
productCode
:
'产品编号'
,
levelTitle
:
'产品分类'
,
madeCompanyTitle
:
'主承制单位'
,
status
:
''
,
remark
:
'备注'
,
madeCompany
:
'主承制单位'
,
...
...
pages/technology/productMix/index.vue
View file @
2c993c5f
...
...
@@ -41,7 +41,7 @@ export default {
this
.
showMenu
=
true
;
},
productSearch
(
id
,
item
,
ids
)
{
console
.
log
(
item
)
console
.
log
(
item
)
;
this
.
parent
.
parentName
=
item
.
title
;
this
.
parent
.
id
=
id
;
this
.
parent
.
ids
=
ids
;
...
...
@@ -64,6 +64,7 @@ export default {
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
height: 87vh;
overflow: auto;
h4 {
height: 30px;
...
...
@@ -103,7 +104,6 @@ export default {
overflow: auto;
padding: 10px;
height: 87vh;
overflow-y: hidden;
}
}
</
style
>
\ No newline at end of file
pages/technology/productMix/product/index.vue
View file @
2c993c5f
...
...
@@ -5,7 +5,7 @@
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
type=
"card
"
:type=
"typeInfo
"
:high=
"false"
:span=
"6"
:lazy=
"true"
...
...
@@ -24,7 +24,10 @@
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
<
template
slot=
"buttons"
>
<Button
:icon=
"iconInfo"
shape=
"circle"
:title=
"titleInfo"
@
click=
"changeShwo"
></Button>
</
template
>
<
template
slot=
"card"
slot-scope=
"{row}"
>
<div
class=
"body-card"
>
...
...
@@ -49,7 +52,7 @@
<a
@
click=
"edit(row.id)"
>
<Icon
type=
"md-create"
/>
编辑
</a>
<a
@
click=
"remove(row)"
>
<a
@
click=
"remove(row
.id
)"
>
<Icon
type=
"ios-trash"
/>
删除
</a>
<a
@
click=
"view(row.id)"
>
...
...
@@ -107,8 +110,116 @@ export default {
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
title
:
this
.
l
(
"name"
),
key
:
"name"
,
align
:
"left"
},
{
key
:
"mmcode"
,
title
:
this
.
l
(
"mmcode"
),
align
:
"center"
,
high
:
true
},
{
key
:
"productUrl"
,
title
:
this
.
l
(
"productUrl"
),
align
:
"left"
,
high
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"a"
,
{
attrs
:
{
oprate
:
"detail"
// href: this.fileUrlPath,
// target: "_blank"
},
on
:
{
click
:
()
=>
{
this
.
downFile
(
params
.
row
.
productUrl
);
}
}
},
"查看图片"
)
]);
}
},
{
key
:
"levelTitle"
,
title
:
this
.
l
(
"levelTitle"
),
align
:
"left"
,
high
:
true
},
{
key
:
"drawingNo"
,
title
:
this
.
l
(
"drawingNo"
),
align
:
"right"
,
high
:
true
},
{
key
:
"madeCompanyTitle"
,
title
:
this
.
l
(
"madeCompanyTitle"
),
align
:
"center"
,
width
:
260
,
high
:
true
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
200
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
bom
(
params
.
row
.
id
)
}
},
"BOM"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
"编辑"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"删除"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"view"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
"详情"
)
]);
}
}
]
],
typeInfo
:
"card"
,
iconInfo
:
"md-apps"
,
titleInfo
:
"卡片模式"
};
},
mounted
()
{
...
...
@@ -119,6 +230,26 @@ export default {
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
changeShwo
()
{
//显示模式切换
if
(
this
.
typeInfo
==
"card"
)
{
this
.
typeInfo
=
"table"
;
this
.
iconInfo
=
"md-list"
;
this
.
titleInfo
=
"列表模式"
;
}
else
{
this
.
typeInfo
=
"card"
;
this
.
iconInfo
=
"md-apps"
;
this
.
titleInfo
=
"卡片模式"
;
}
},
downFile
(
url
)
{
let
url1
=
this
.
downUrl
+
url
;
if
(
url
)
{
window
.
open
(
url1
,
"_blank"
);
}
else
{
this
.
$Message
.
error
(
"暂无图片"
);
}
},
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
modal
=
false
;
...
...
@@ -166,20 +297,11 @@ export default {
this
.
modal
=
true
;
this
.
fullscreen
=
true
;
},
remove
(
row
)
{
this
.
$Modal
.
confirm
({
title
:
"删除"
,
content
:
"<p>您确定要删除此产品吗?</p>"
,
onOk
:
()
=>
{
Api
.
delete
(
row
.
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
"删除成功"
);
}
});
},
onCancel
:
()
=>
{
this
.
$Message
.
success
(
"取消删除"
);
remove
(
id
)
{
Api
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
"删除成功"
);
}
});
},
...
...
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