Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
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
中汽测评-信息安全测评系统
web
Commits
c98a7cad
Commit
c98a7cad
authored
Mar 13, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into developer/yanjiaxu
parents
aac8907b
5afaabfc
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
213 additions
and
80 deletions
+213
-80
sample.js
src/api/system/sample.js
+8
-0
index.vue
src/views/setting/sample/index.vue
+30
-10
index.vue
src/views/setting/sample/taskDetails/index.vue
+157
-70
index.vue
src/views/task/edit/index.vue
+18
-0
No files found.
src/api/system/sample.js
View file @
c98a7cad
...
...
@@ -66,3 +66,11 @@ export function selectDataStatistics(data){
data
:
data
})
}
export
function
componentSelect
(
data
){
return
request
({
url
:
'/system/enterprise/list'
,
method
:
'post'
,
data
:
data
})
}
src/views/setting/sample/index.vue
View file @
c98a7cad
...
...
@@ -274,14 +274,20 @@
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"生产企业"
prop=
"manufacturingEnterprise"
>
<el-input
v-model=
"editParamsForm.manufacturingEnterprise"
placeholder=
"请输入生产企业"
clearable
maxlength=
"50"
<el-form-item
label=
"生产企业"
prop=
"manufacturingEnterpriseId"
>
<el-select
v-model=
"editParamsForm.manufacturingEnterpriseId"
placeholder=
"请选择"
style=
"width: 90%"
/>
>
<el-option
v-for=
"item in componentSelect"
:key=
"item.id"
:label=
"item.enterpriseName"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商标"
prop=
"trademark"
>
<image-upload
...
...
@@ -390,6 +396,7 @@ import {
import
MaterialLibrary
from
'@/views/setting/materialLibrary/index.vue'
import
materialLibrary
from
'@/views/setting/materialLibrary/index.vue'
import
{
isExternal
}
from
'@/utils/validate'
import
{
componentSelect
}
from
'../../../api/system/sample'
export
default
{
components
:
{
MaterialLibrary
},
...
...
@@ -425,8 +432,8 @@ export default {
manufactureDate
:
[
{
required
:
true
,
message
:
'请选择生产日期'
,
trigger
:
'change'
}
],
manufacturingEnterprise
:
[
{
required
:
true
,
message
:
'请
输入生产企业'
,
trigger
:
'blur
'
}
manufacturingEnterprise
Id
:
[
{
required
:
true
,
message
:
'请
选择生产企业'
,
trigger
:
'change
'
}
]
},
editParamsForm
:
{
...
...
@@ -454,7 +461,8 @@ export default {
dialogVisible
:
false
,
trademarkDisplay
:
true
,
dialogTitle
:
'新建'
,
samplePhotosDisplay
:
true
samplePhotosDisplay
:
true
,
componentSelect
:
[]
}
},
computed
:
{
...
...
@@ -484,8 +492,20 @@ export default {
},
created
()
{
this
.
getList
()
this
.
getComponentSelect
()
},
methods
:
{
getComponentSelect
()
{
componentSelect
({
pageNum
:
1
,
pageSize
:
9999
,
isAsc
:
'desc'
,
orderByColumn
:
'createTime'
}).
then
(
res
=>
{
this
.
componentSelect
=
res
.
rows
console
.
log
(
'res'
,
res
)
})
},
closeMaterial
(
data
)
{
this
.
materialShow
=
data
},
...
...
src/views/setting/sample/taskDetails/index.vue
View file @
c98a7cad
This diff is collapsed.
Click to expand it.
src/views/task/edit/index.vue
View file @
c98a7cad
...
...
@@ -4,6 +4,10 @@
<div
class=
"tip-navigation"
>
<div
class=
"tip"
></div>
<div
class=
"tip-title"
>
任务信息
</div>
<div
class=
"left-back"
@
click=
"backPage"
>
<icon-park
type=
"left"
size=
"14"
fill=
"#1a6fd7"
/>
<span
class=
"return-button"
>
取消
</span>
</div>
</div>
<div
class=
"global-left-margin"
>
<el-row
:gutter=
"20"
>
...
...
@@ -998,6 +1002,9 @@ export default {
// 去掉一个数组最后一个对象
this
.
tableData
.
pop
()
},
backPage
()
{
this
.
$router
.
go
(
-
1
)
},
/**
* 添加小组成员点击按钮
*/
...
...
@@ -1232,6 +1239,17 @@ export default {
font-weight
:
700
;
color
:
#1a6fd7
;
}
.left-back
{
position
:
absolute
;
right
:
2%
;
display
:
flex
;
color
:
#1a6fd7
;
cursor
:
pointer
;
.return-button
{
padding-left
:
7px
;
}
}
}
.sortable-handle
{
...
...
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