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
f3c5e072
Commit
f3c5e072
authored
Apr 28, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files
parent
4af18f0b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
19 deletions
+65
-19
files.vue
components/page/files.vue
+32
-1
add.vue
pages/technology/details/routingqccard/add.vue
+0
-1
detail.vue
pages/technology/details/routingqccard/detail.vue
+3
-6
edit.vue
pages/technology/details/routingqccard/edit.vue
+9
-1
index.vue
pages/technology/details/routingqccard/index.vue
+21
-10
No files found.
components/page/files.vue
View file @
f3c5e072
...
...
@@ -62,7 +62,7 @@ export default {
type
:
Boolean
,
default
:
false
},
singleFile
:
{
singleFile
:
{
//上传单文件
type
:
Boolean
,
default
:
false
},
...
...
@@ -97,6 +97,9 @@ export default {
this
.
vshowPro
=
true
;
const
hbaseFileList
=
[];
const
filesList
=
[];
if
(
this
.
singleFile
)
{
this
.
nameList
=
[];
}
if
(
file
.
response
.
status
==
0
)
{
let
objImag
=
{};
objImag
.
fileName
=
file
.
response
.
data
.
fileName
;
...
...
@@ -200,6 +203,34 @@ export default {
}
});
},
//克隆后修改时使用
intFilesClone
()
{
this
.
postUrl
=
fileUrl
+
"/upload/?token=Bearer "
+
window
.
sessionStorage
.
getItem
(
"token"
)
+
"&"
+
this
.
convertObj
(
this
.
parms
);
//是否显示上传按钮
if
(
this
.
unClosable
)
{
this
.
style
=
"display:none;"
;
}
else
{
this
.
style
=
""
;
}
this
.
nameList
=
[];
//查询上传到文件服务器上的文件
this
.
$http
.
sysUser
.
getFile
(
this
.
parms
).
then
(
res
=>
{
if
(
res
.
data
!=
[]
&&
res
.
data
.
length
>
0
)
{
res
.
data
.
forEach
(
data
=>
{
let
objImag
=
{};
objImag
.
fileName
=
data
.
fileName
;
objImag
.
filePath
=
data
.
downloadPath
;
objImag
.
id
=
data
.
id
;
this
.
nameList
.
push
(
objImag
);
});
}
});
},
//新增时重新定义posturl使用
intFiles1
()
{
this
.
postUrl
=
...
...
pages/technology/details/routingqccard/add.vue
View file @
f3c5e072
...
...
@@ -93,7 +93,6 @@
<Col
:span=
"24"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<files
ref=
"refFile"
:parms=
"parms"
files
singleFile
/>
<!--
<Input
v-model=
"entity.qualityTemplateName"
></Input>
-->
</FormItem>
</Col>
<Col
:span=
"12"
>
...
...
pages/technology/details/routingqccard/detail.vue
View file @
f3c5e072
...
...
@@ -9,7 +9,7 @@
</Filed>
<Filed
:span=
"12"
:name=
"l('productionRequirement')"
>
{{
entity
.
productionRequirement
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkContent')"
>
{{
entity
.
checkContent
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('qualityTemplateName')"
><
files
ref=
"refFile"
:parms=
"parms"
unClosable
style=
"display:inline"
/
></Filed>
<Filed
:span=
"12"
:name=
"l('qualityTemplateName')"
><
a
:href=
"downUrl+entity.qualityTemplate"
target=
"_blank"
>
{{
entity
.
qualityTemplateName
}}
</a
></Filed>
<Filed
:span=
"12"
:name=
"l('isImportant')"
>
<state
code=
"Process.state"
:value=
"entity.isImportant+''"
type=
"text"
></state>
</Filed>
...
...
@@ -25,9 +25,6 @@
</Filed>
<Filed
:span=
"12"
:name=
"l('samplingBatch')"
>
{{
entity
.
samplingBatch
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkType')"
>
<state
code=
"QC.checktype"
v-modev=
"entity.checkType+''"
></state>
</Filed>
...
...
@@ -35,8 +32,6 @@
<Filed
:span=
"12"
:name=
"l('checkParams')"
>
{{
entity
.
checkParams
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('measurementUnit')"
>
{{
entity
.
measurementUnit
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('qualityTemplate')"
>
{{
entity
.
qualityTemplate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isphotograph')"
>
{{
entity
.
isphotograph
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
<state
code=
"Process.state"
:value=
"entity.status+''"
type=
"text"
></state>
...
...
@@ -76,6 +71,8 @@ export default {
name
:
''
,
field
:
''
},
downUrl
:
fileUrlDown
,
fileUrlPath
:
""
,
};
},
props
:
{
...
...
pages/technology/details/routingqccard/edit.vue
View file @
f3c5e072
...
...
@@ -82,6 +82,7 @@
<Col
:span=
"24"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<Input
v-model=
"entity.qualityTemplateName"
></Input>
<files
ref=
"refFile"
:parms=
"parms"
files
singleFile
/>
</FormItem>
</Col>
<Col
:span=
"12"
>
...
...
@@ -164,7 +165,13 @@ export default {
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
routingDetailList
:
[]
routingDetailList
:
[],
parms
:
{
app
:
'qccard'
,
eid
:
null
,
name
:
''
,
field
:
''
}
};
},
props
:
{
...
...
@@ -179,6 +186,7 @@ export default {
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
$refs
.
refFile
.
intFilesClone
()
this
.
entity
=
r
.
result
;
});
},
...
...
pages/technology/details/routingqccard/index.vue
View file @
f3c5e072
<
template
>
<div>
{{
info
}}
{{
info
}}
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
...
...
@@ -129,13 +129,6 @@ export default {
high
:
true
,
code
:
"QC.fillintype"
},
{
key
:
"qualityTemplate"
,
title
:
this
.
l
(
"qualityTemplate"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"isphotograph"
,
title
:
this
.
l
(
"isphotograph"
),
...
...
@@ -169,7 +162,19 @@ export default {
title
:
this
.
l
(
"qualityTemplateName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
high
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
params
.
row
.
qualityTemplateName
)
]);
}
},
{
key
:
"isImportant"
,
...
...
@@ -247,7 +252,9 @@ export default {
]);
}
}
]
],
downUrl
:
fileUrlDown
,
fileUrlPath
:
""
};
},
mounted
()
{
...
...
@@ -301,6 +308,10 @@ export default {
this
.
curId
=
0
;
this
.
modal
=
false
;
},
openTemplate
(
url
)
{
this
.
fileUrlPath
=
this
.
downUrl
+
path
;
alert
(
this
.
fileUrlPath
)
},
l
(
key
)
{
let
vkey
=
"routing_qc_card"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
...
...
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