Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-web
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
中汽研标准应用数据库
car-database-web
Commits
c6bb5d3a
Commit
c6bb5d3a
authored
Oct 17, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增关联问题内容点击,上传文件类型限制
parent
b922e068
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
57 deletions
+65
-57
checkInput.vue
src/components/CheckCoiumns/checkInput.vue
+1
-0
checkInputUpload.vue
src/components/CheckCoiumns/checkInputUpload.vue
+2
-0
checkbox.vue
src/components/CheckCoiumns/checkbox.vue
+58
-54
checkboxUpload.vue
src/components/CheckCoiumns/checkboxUpload.vue
+2
-1
inputUpload.vue
src/components/CheckCoiumns/inputUpload.vue
+1
-1
radioUpload.vue
src/components/CheckCoiumns/radioUpload.vue
+1
-1
No files found.
src/components/CheckCoiumns/checkInput.vue
View file @
c6bb5d3a
...
...
@@ -101,6 +101,7 @@ export default {
}
})
this
.
model
.
value
=
old
this
.
input
()
},
removeItem
(
array
,
item
)
{
let
arr
=
[]
...
...
src/components/CheckCoiumns/checkInputUpload.vue
View file @
c6bb5d3a
...
...
@@ -152,6 +152,8 @@ export default {
}
})
this
.
model
.
value
=
old
this
.
input
()
},
removeItem
(
array
,
item
)
{
let
arr
=
[]
...
...
src/components/CheckCoiumns/checkbox.vue
View file @
c6bb5d3a
<
template
>
<div>
<div
v-if=
"prop =='chcek9'"
style=
"display: inline flex;"
>
<span>
关键配置参数:
</span>
<el-checkbox-group
v-model=
"value"
:disabled=
"status"
@
change=
"input"
>
<el-checkbox
v-for=
"(i, k) in items.options"
v-if=
"k
<4
"
:label=
"i.id"
@
change=
"
e =>
{
checkOne(i, e)
}
"
:key="k"
>
{{
i
.
object
}}
</el-checkbox>
</el-checkbox-group>
<span></span>
</div>
<div
v-if=
"prop =='chcek9'"
style=
"display: inline flex;"
>
<div
v-if=
"prop == 'chcek9'"
style=
"display: inline flex"
>
<span>
关键配置参数:
</span>
<el-checkbox-group
v-model=
"value"
:disabled=
"status"
@
change=
"input"
>
<el-checkbox
v-for=
"(i, k) in items.options"
v-if=
"k
<
4
"
:label=
"i.id"
@
change=
"
e =>
{
checkOne(i, e)
}
"
:key="k"
>
{{
i
.
object
}}
</el-checkbox>
</el-checkbox-group>
<span></span>
</div>
<div
v-if=
"prop == 'chcek9'"
style=
"display: inline flex"
>
<span>
标定参数:
</span>
<el-checkbox-group
v-model=
"value"
:disabled=
"status"
@
change=
"input"
>
<el-checkbox
v-for=
"(i, k) in items.options"
v-if=
"k>=4"
:label=
"i.id"
@
change=
"
e =>
{
checkOne(i, e)
}
"
:key="k"
<el-checkbox-group
v-model=
"value"
:disabled=
"status"
@
change=
"input"
>
<el-checkbox
v-for=
"(i, k) in items.options"
v-if=
"k >= 4"
:label=
"i.id"
@
change=
"
e =>
{
checkOne(i, e)
}
"
:key="k"
>
{{
i
.
object
}}
</el-checkbox>
</el-checkbox-group>
</div>
<el-checkbox-group
v-if=
"prop != 'chcek9'"
v-model=
"value"
:disabled=
"status"
@
change=
"input"
>
{{
i
.
object
}}
</el-checkbox>
</el-checkbox-group>
</div>
<el-checkbox-group
v-if=
"prop!='chcek9'"
v-model=
"value"
:disabled=
"status"
@
change=
"input"
>
<el-checkbox
v-for=
"(i, k) in items.options"
:label=
"i.id"
@
change=
"
e =>
{
checkOne(i, e)
}
"
:key="k"
>
{{
i
.
object
}}
</el-checkbox>
</el-checkbox-group>
</div>
<el-checkbox
v-for=
"(i, k) in items.options"
:label=
"i.id"
@
change=
"
e =>
{
checkOne(i, e)
}
"
:key="k"
>
{{
i
.
object
}}
</el-checkbox>
</el-checkbox-group>
</div>
</
template
>
<
script
>
export
default
{
...
...
@@ -125,6 +129,7 @@ export default {
})
this
.
value
=
old
this
.
input
()
},
removeItem
(
array
,
item
)
{
...
...
@@ -145,9 +150,8 @@ export default {
})
}
},
input
(
val
)
{
input
()
{
let
arr
=
[]
let
datas
=
[]
this
.
items
.
options
.
map
(
i
=>
{
if
(
this
.
value
.
includes
(
i
.
id
))
{
arr
.
push
(
i
.
useCaseNo
)
...
...
src/components/CheckCoiumns/checkboxUpload.vue
View file @
c6bb5d3a
...
...
@@ -25,7 +25,7 @@
:limit=
"1"
ref=
"fileUpload"
:on-success=
"handleSuccess"
accept=
".pdf"
accept=
".pdf
,.doc ,.docx ,.xls, .xlsx
"
:on-exceed=
"handleExceed"
:headers=
"headers"
>
...
...
@@ -114,6 +114,7 @@ export default {
}
})
this
.
model
.
value
=
old
this
.
input
()
},
removeItem
(
array
,
item
)
{
...
...
src/components/CheckCoiumns/inputUpload.vue
View file @
c6bb5d3a
...
...
@@ -19,7 +19,7 @@
:before-remove=
"beforeRemove"
:show-file-list=
"false"
:limit=
"1"
accept=
".pdf"
accept=
".pdf
,.doc ,.docx ,.xls, .xlsx
"
:on-success=
"handleSuccess"
:on-exceed=
"handleExceed"
:headers=
"headers"
...
...
src/components/CheckCoiumns/radioUpload.vue
View file @
c6bb5d3a
...
...
@@ -15,7 +15,7 @@
:before-remove=
"beforeRemove"
:show-file-list=
"false"
:limit=
"1"
accept=
".pdf"
accept=
".pdf
,.doc ,.docx ,.xls, .xlsx
"
:on-success=
"handleSuccess"
:on-exceed=
"handleExceed"
:headers=
"headers"
...
...
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