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
f26f51b2
Commit
f26f51b2
authored
Feb 28, 2024
by
mzx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.91isoft.com:90/car-test/web
into mengzixuan
parents
ae3cf41e
2711cef7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
13 deletions
+48
-13
index.vue
src/views/setting/materialLibrary/index.vue
+37
-1
index.vue
src/views/setting/sample/index.vue
+11
-12
No files found.
src/views/setting/materialLibrary/index.vue
View file @
f26f51b2
...
...
@@ -6,6 +6,18 @@
:wrapper-closable=
"false"
@
close=
"closeMaterial"
>
<div
style=
"
color: rgb(26, 111, 215);
position: absolute;
top: 22px;
left: 90px;
cursor: pointer;
"
@
click=
"refresh"
>
<i
class=
"el-icon-refresh"
></i>
刷新
</div>
<div
v-for=
"(item, index) in materialList"
:key=
"index"
...
...
@@ -15,7 +27,7 @@
<div
class=
"tips"
></div>
<div>
<span
style=
"color: #1a6fd7"
>
{{
i
tem
.
createTime
}}
{{
i
sTodayOrYesterday
(
item
.
createTime
)
}}
</span>
</div>
</div>
...
...
@@ -67,6 +79,30 @@ export default {
this
.
getMaterialList
()
},
methods
:
{
refresh
()
{
this
.
selectList
=
[]
this
.
getMaterialList
()
},
// 根据日期判断是今天还是昨天啊
isTodayOrYesterday
(
dateString
)
{
const
inputDate
=
new
Date
(
dateString
)
const
today
=
new
Date
()
const
yesterday
=
new
Date
(
today
)
yesterday
.
setDate
(
today
.
getDate
()
-
1
)
const
inputDateStr
=
inputDate
.
toDateString
()
const
todayStr
=
today
.
toDateString
()
const
yesterdayStr
=
yesterday
.
toDateString
()
if
(
inputDateStr
===
todayStr
)
{
return
'今天'
}
else
if
(
inputDateStr
===
yesterdayStr
)
{
return
'昨天'
}
else
{
return
dateString
}
},
selectImage
(
a
,
b
,
path
,
id
)
{
if
(
this
.
selectList
.
length
>=
this
.
limit
)
{
this
.
$message
({
...
...
src/views/setting/sample/index.vue
View file @
f26f51b2
...
...
@@ -444,10 +444,9 @@ export default {
data
.
forEach
(
item
=>
{
item
.
path
=
item
.
path
.
replace
(
'http://49.232.167.247:22038'
,
''
)
})
}
if
(
this
.
materialFlag
===
'trademark'
)
{
this
.
editParamsForm
.
trademark
=
data
[
0
].
path
}
else
{
}
else
if
(
this
.
materialFlag
===
'sample'
)
{
var
arr
=
[]
if
(
this
.
editParamsForm
.
samplePhotos
)
{
arr
=
this
.
editParamsForm
.
samplePhotos
.
split
(
','
)
...
...
@@ -457,6 +456,7 @@ export default {
})
this
.
editParamsForm
.
samplePhotos
=
arr
.
join
(
','
)
}
}
this
.
materialShow
=
false
},
selectTrademarkMaterial
()
{
...
...
@@ -508,7 +508,6 @@ export default {
console
.
log
(
this
.
editParamsForm
)
this
.
$refs
[
'editForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
addLoading
=
true
if
(
this
.
editParamsForm
.
id
===
null
||
this
.
editParamsForm
.
id
===
''
...
...
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