Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
6e20bb44
Commit
6e20bb44
authored
Jul 18, 2022
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
94f1fb26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
index.vue
src/components/bpmn/index.vue
+1
-1
MaterialFile.vue
src/views/productionInfo/MaterialFile.vue
+5
-5
ModelDetails.vue
src/views/productionInfo/ModelDetails.vue
+7
-2
No files found.
src/components/bpmn/index.vue
View file @
6e20bb44
...
...
@@ -315,7 +315,7 @@
>
<el-form
:inline=
"true"
:model=
"searchForm"
class=
"demo-form-inline"
>
<el-form-item
label=
"角色名称"
>
<el-input
v-model
.
trim=
"searchForm.roleName"
clearable
placeholder=
"请输入角色名称"
:maxlength=
"
3
0"
/>
<el-input
v-model
.
trim=
"searchForm.roleName"
clearable
placeholder=
"请输入角色名称"
:maxlength=
"
1
0"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"getPeopleByuserName"
>
查询
</el-button>
...
...
src/views/productionInfo/MaterialFile.vue
View file @
6e20bb44
...
...
@@ -927,19 +927,19 @@ export default {
},
beforeUpdate
(
file
)
{
const
fileType
=
'.'
+
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
const
accept
=
[
'.
txt'
,
'.TXT
'
]
const
is
JPG
=
accept
.
includes
(
fileType
)
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
const
accept
=
[
'.
hex'
,
'.HEX
'
]
const
is
Hex
=
accept
.
includes
(
fileType
.
toLowerCase
()
)
const
isLt2M
=
file
.
size
/
1024
/
1024
<
1
const
fileNameList
=
this
.
fileList
.
map
(
item
=>
{
return
item
.
name
.
substring
(
0
,
item
.
name
.
lastIndexOf
(
'.'
))
})
if
(
fileNameList
.
indexOf
(
file
.
name
.
substring
(
0
,
file
.
name
.
lastIndexOf
(
'.'
)))
!==
-
1
)
{
this
.
$message
.
error
(
`不能上传相同名称文件`
)
return
false
}
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'仅支持上传:
2
MB以内的文件'
)
this
.
$message
.
error
(
'仅支持上传:
1
MB以内的文件'
)
return
false
}
return
isLt2M
&&
fileNameList
.
indexOf
(
file
.
name
)
===
-
1
return
isLt2M
&&
fileNameList
.
indexOf
(
file
.
name
)
&&
isHex
===
-
1
},
/* 上传文件所需求 */
handlePreview
(
file
)
{
...
...
src/views/productionInfo/ModelDetails.vue
View file @
6e20bb44
...
...
@@ -647,8 +647,13 @@ export default {
}
else
if
(
this
.
htmlType
===
'2'
)
{
nltordermodelDetail
(
params
).
then
(
res
=>
{
this
.
form
.
modelType
=
res
.
data
.
modelType
this
.
form
.
modelCode
=
res
.
data
.
materCode
this
.
form
.
materId
=
res
.
data
.
materId
this
.
form
.
modelCode
=
[]
this
.
form
.
materId
=
[]
res
.
data
.
materList
.
forEach
(
item
=>
{
this
.
form
.
modelCode
.
push
(
item
.
materCode
)
this
.
form
.
materId
.
push
(
item
.
businessId
)
})
this
.
form
.
modelCodeList
=
this
.
form
.
modelCode
.
join
(
','
)
this
.
positionList
=
this
.
initTableData
(
res
.
data
.
stationList
)
})
}
...
...
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