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
e5364661
Commit
e5364661
authored
May 06, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product
parents
213df326
229526fb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
60 deletions
+69
-60
zh-CN.js
i18n/locale/zh-CN.js
+1
-1
index.vue
pages/resourceManagement/productionResources/index.vue
+2
-0
add.vue
pages/technology/add.vue
+7
-15
edit.vue
pages/technology/edit.vue
+15
-2
index.vue
pages/technology/index.vue
+40
-32
test.vue
pages/test.vue
+4
-10
No files found.
i18n/locale/zh-CN.js
View file @
e5364661
...
...
@@ -1187,7 +1187,7 @@ export default {
isDeleted
:
'是否删除'
,
platesnum
:
'板数'
,
isEffect
:
'生效'
,
versionnotes
:
'版本'
,
versionnotes
:
'版本
说明
'
,
phase
:
'阶段'
,
versionid
:
'版本ID'
,
isSendPpm
:
'发送PPM'
,
...
...
pages/resourceManagement/productionResources/index.vue
View file @
e5364661
...
...
@@ -274,6 +274,8 @@ export default {
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
footerToolbar
=
false
;
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
...
...
pages/technology/add.vue
View file @
e5364661
...
...
@@ -178,7 +178,8 @@ export default {
versionnotes
:
""
,
phase
:
null
,
versionid
:
null
,
isSendPpm
:
1
isSendPpm
:
1
,
fileId
:
""
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
...
...
@@ -210,20 +211,11 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
// this.entity.qualityTemplateName = ''
// this.entity.qualityTemplate=''
// if (this.$refs.refFile.nameList.length > 0) {
// let nameList=this.$refs.refFile.nameList
// let names=[]
// let url=[]
// nameList.forEach(e => {
// names.push(e.fileName)
// url.push(e.filePath)
// });
// this.entity.qualityTemplateName = JSON.stringify(names).replace('[','').replace(']','').replace(/\"/g,'')//附件本地库暂存文件名称
// this.entity.qualityTemplate=JSON.stringify(url).replace('[','').replace(']','').replace(/\"/g,'')
// }
console
.
log
(
this
.
entity
)
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
this
.
entity
.
fileId
=
this
.
parms
.
eid
;
}
else
{
this
.
entity
.
fileId
=
""
;
}
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
...
...
pages/technology/edit.vue
View file @
e5364661
...
...
@@ -129,7 +129,7 @@
<Col
:span=
"24"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<files
/>
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
</Col>
</Row>
...
...
@@ -154,11 +154,18 @@ export default {
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
parms
:
{
app
:
"technology"
,
eid
:
this
.
uid
,
name
:
""
,
field
:
""
}
};
},
props
:
{
eid
:
Number
eid
:
Number
,
uid
:
String
,
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
...
...
@@ -168,6 +175,8 @@ export default {
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
$refs
.
refFile
.
intFilesClone
();
this
.
parms
.
eid
=
this
.
uid
;
this
.
entity
=
r
.
result
;
});
},
...
...
@@ -175,6 +184,7 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
fileId
=
this
.
uid
;
Api
.
update
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
...
...
@@ -227,6 +237,9 @@ export default {
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
},
uid
(
v
)
{
alert
(
v
);
}
}
};
...
...
pages/technology/index.vue
View file @
e5364661
...
...
@@ -6,11 +6,11 @@
.con {
padding: 5px 5px 0px 10px;
}
.con_bord{
.con_bord
{
// margin: 15px 32px;
box-shadow: #c7c7c7 1px 2px 7px 3px;
}
background: rgba(245,
246,250,
1);
background: rgba(245,
246, 250,
1);
}
.fullWindow {
position: fixed;
...
...
@@ -42,31 +42,31 @@
</a>
</div>
<Content
class=
"con"
:class=
"!showMenu?'con_bord':''"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
class=
"card_box"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入工艺名称/工艺编号"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
class=
"card_box"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入工艺名称/工艺编号"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
:title=
"title"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
:
uid=
"uId"
:
title=
"title"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
<div
class=
"fullWindow flex fd"
v-if=
"viewModal"
>
<div
class=
"top flex"
>
...
...
@@ -76,7 +76,7 @@
</a>
</div>
<div
class=
"fg tc f14 fwBold blueTitle"
>
{{l('code')}}:
{{l('code')}}:
<span
class=
"grayTitle mr10"
>
{{titleObj.code}}
</span>
{{l('name')}}:
<span
class=
"grayTitle mr10"
>
{{titleObj.name}}
</span>
...
...
@@ -85,7 +85,7 @@
{{l('version')}}:
<span
class=
"grayTitle"
>
{{titleObj.version}}
</span>
<!-- {{l('departmentId')}}:
<span class="grayTitle">{{titleObj.departmentId}}</span>
-->
<span class="grayTitle">{{titleObj.departmentId}}</span>-->
</div>
</div>
<div
class=
"fg"
>
...
...
@@ -122,6 +122,7 @@ export default {
src
:
null
,
detail
:
null
,
curId
:
0
,
uId
:
""
,
columns
:
[
{
key
:
"id"
,
title
:
this
.
$t
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
...
...
@@ -222,7 +223,8 @@ export default {
key
:
"versionnotes"
,
title
:
this
.
l
(
"versionnotes"
),
align
:
"left"
,
high
:
true
high
:
true
,
hide
:
true
},
{
key
:
"phase"
,
...
...
@@ -266,7 +268,7 @@ export default {
"op"
,
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
}
},
"编辑"
),
...
...
@@ -364,8 +366,14 @@ export default {
// this.detail = () => import("./detail");
// this.modal = true;
// },
edit
(
id
)
{
this
.
curId
=
id
;
edit
(
row
)
{
this
.
curId
=
row
.
id
;
if
(
row
.
fileId
)
{
this
.
uId
=
row
.
fileId
;
}
else
{
this
.
uId
=
this
.
$u
.
guid
()
//未上传过文件
}
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
...
...
pages/test.vue
View file @
e5364661
<
style
lang=
"less"
>
.test_layout {
height:
5
0%;
height:
10
0%;
.bg1{
background:#fefefe ;
}
.fg {
background-color: rgba(234,45,198, 1);
overflow: auto;
}
}
...
...
@@ -20,20 +19,15 @@
<div>
<Menu
mode=
"horizontal"
active-name=
"1"
>
<div
class=
"layout-assistant"
>
<MenuItem
name=
"1"
>
Option 1
</MenuItem>
<MenuItem
name=
"1"
to=
"/test/user"
>
人员选择
</MenuItem>
<MenuItem
name=
"2"
>
Option 2
</MenuItem>
<MenuItem
name=
"3"
>
Option 3
</MenuItem>
</div>
</Menu>
</div>
<div
class=
"fg"
>
<h4
v-for=
"i in 200"
>
{{
i
}}
内容部分
</h4>
</div>
<div>
这是一个问题
</div>
<nuxt-child></nuxt-child>
</div>
</div>
</
template
>
<
script
>
...
...
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