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
ae4db68d
Commit
ae4db68d
authored
Mar 06, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 70384
parent
96b3deb6
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
113 additions
and
36 deletions
+113
-36
main.js
src/main.js
+2
-0
ruoyi.js
src/utils/ruoyi.js
+15
-2
index.vue
src/views/processing/carReview/review-form/index.vue
+12
-0
index.vue
src/views/processing/carReview/source-record/index.vue
+12
-0
index.vue
src/views/processing/carReview/vehicle-type/index.vue
+12
-0
index.vue
src/views/processing/carReview/write-check-form/index.vue
+12
-0
index.vue
src/views/processing/fileLibrary/index.vue
+0
-13
index.vue
src/views/processing/systemReview/confirm-result/index.vue
+12
-0
index.vue
src/views/processing/systemReview/review-form/index.vue
+12
-0
index.vue
src/views/processing/systemReview/source-record/index.vue
+12
-0
index.vue
src/views/processing/systemReview/write-check-form/index.vue
+12
-0
index.vue
src/views/processing/unprocessed-review/index.vue
+0
-13
index.vue
src/views/task/on/index.vue
+0
-8
No files found.
src/main.js
View file @
ae4db68d
...
...
@@ -18,6 +18,7 @@ import './permission' // permission control
import
{
getDicts
}
from
'@/api/system/dict/data'
import
{
getConfigKey
}
from
'@/api/system/config'
import
{
getDictData
,
parseTime
,
resetForm
,
addDateRange
,
...
...
@@ -73,6 +74,7 @@ import { IconPark } from '@icon-park/vue/es/all';
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getConfigKey
=
getConfigKey
Vue
.
prototype
.
parseTime
=
parseTime
Vue
.
prototype
.
getDictData
=
getDictData
Vue
.
prototype
.
resetForm
=
resetForm
Vue
.
prototype
.
addDateRange
=
addDateRange
Vue
.
prototype
.
selectDictLabel
=
selectDictLabel
...
...
src/utils/ruoyi.js
View file @
ae4db68d
...
...
@@ -3,6 +3,19 @@
* Copyright (c) 2019 ruoyi
*/
/**
* 获取字典
* @param {*} options
* @param {*} value
*/
export
function
getDictData
(
options
,
value
)
{
const
item
=
options
.
filter
(
v
=>
v
.
value
===
value
)
if
(
item
.
length
>
0
)
{
return
item
[
0
].
label
}
else
{
return
null
}
}
// 日期格式化
export
function
parseTime
(
time
,
pattern
)
{
if
(
arguments
.
length
===
0
||
!
time
)
{
...
...
@@ -61,8 +74,8 @@ export function addDateRange(params, dateRange, propName) {
let
search
=
params
search
.
params
=
typeof
search
.
params
===
'object'
&&
search
.
params
!==
null
&&
!
Array
.
isArray
(
search
.
params
)
search
.
params
!==
null
&&
!
Array
.
isArray
(
search
.
params
)
?
search
.
params
:
{}
dateRange
=
Array
.
isArray
(
dateRange
)
?
dateRange
:
[]
...
...
src/views/processing/carReview/review-form/index.vue
View file @
ae4db68d
...
...
@@ -24,6 +24,17 @@
{{
model
.
carReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务状态:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
test_cartype_type
,
model
.
carReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<!--审查问卷概要-->
...
...
@@ -147,6 +158,7 @@ export default {
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'test_cartype_type'
],
data
()
{
return
{
model
:
{
...
...
src/views/processing/carReview/source-record/index.vue
View file @
ae4db68d
...
...
@@ -25,6 +25,17 @@
{{
model
.
carReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务状态:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
test_cartype_type
,
model
.
carReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<div
class=
"task-body"
>
<!--card统计值-->
...
...
@@ -281,6 +292,7 @@ export default {
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'test_cartype_type'
],
data
()
{
return
{
isShow
:
true
,
...
...
src/views/processing/carReview/vehicle-type/index.vue
View file @
ae4db68d
...
...
@@ -25,6 +25,17 @@
{{
model
.
carReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务状态:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
test_cartype_type
,
model
.
carReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<div
class=
"task-body"
>
<!--card统计值-->
...
...
@@ -298,6 +309,7 @@ export default {
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'test_cartype_type'
],
data
()
{
return
{
isShow
:
true
,
...
...
src/views/processing/carReview/write-check-form/index.vue
View file @
ae4db68d
...
...
@@ -34,6 +34,17 @@
{{
model
.
carReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务状态:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
test_cartype_type
,
model
.
carReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<div
class=
"prompt-message"
>
<i
class=
"icon el-icon-info"
></i>
...
...
@@ -278,6 +289,7 @@ export default {
'scene-view'
:
sceneView
,
'company-file'
:
companyFile
},
dicts
:
[
'test_cartype_type'
],
data
()
{
return
{
sceneManger
:
{
...
...
src/views/processing/fileLibrary/index.vue
View file @
ae4db68d
...
...
@@ -215,19 +215,6 @@ export default {
this
.
queryParams
.
taskId
=
this
.
$route
.
query
.
id
}
,
methods
:
{
/**
* 获取字典
* @param {*
}
options
* @param {*
}
value
*/
getDictData
(
options
,
value
)
{
const
item
=
options
.
filter
(
v
=>
v
.
value
===
value
)
if
(
item
.
length
>
0
)
{
return
item
[
0
].
label
}
else
{
return
null
}
}
,
handleUpdate
(
id
)
{
this
.
dialogManger
.
dialogVisible
=
true
this
.
dialogManger
.
dialogEditId
=
id
...
...
src/views/processing/systemReview/confirm-result/index.vue
View file @
ae4db68d
...
...
@@ -25,6 +25,17 @@
{{
model
.
systemReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
委托单位:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
system_review_test
,
model
.
systemReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<div
class=
"task-body"
>
<!--card统计值-->
...
...
@@ -269,6 +280,7 @@ export default {
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'system_review_test'
],
data
()
{
return
{
isShow
:
1
,
...
...
src/views/processing/systemReview/review-form/index.vue
View file @
ae4db68d
...
...
@@ -24,6 +24,17 @@
{{
model
.
systemReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
委托单位:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
system_review_test
,
model
.
systemReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<!--审查问卷概要-->
...
...
@@ -146,6 +157,7 @@ export default {
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'system_review_test'
],
data
()
{
return
{
isShow
:
1
,
...
...
src/views/processing/systemReview/source-record/index.vue
View file @
ae4db68d
...
...
@@ -25,6 +25,17 @@
{{
model
.
systemReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
委托单位:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
system_review_test
,
model
.
systemReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<div
class=
"task-body"
>
<!--card统计值-->
...
...
@@ -313,6 +324,7 @@ export default {
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'system_review_test'
],
data
()
{
return
{
isShow
:
1
,
...
...
src/views/processing/systemReview/write-check-form/index.vue
View file @
ae4db68d
...
...
@@ -34,6 +34,17 @@
{{
model
.
systemReviewTask
.
taskInitiatorDept
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
委托单位:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
system_review_test
,
model
.
systemReviewTask
.
taskStatus
)
}}
</span>
</div>
</div>
<div
class=
"prompt-message"
>
<i
class=
"icon el-icon-info"
></i>
...
...
@@ -284,6 +295,7 @@ export default {
'scene-view'
:
sceneView
,
'company-file'
:
companyFile
},
dicts
:
[
'system_review_test'
],
data
()
{
return
{
sceneManger
:
{
...
...
src/views/processing/unprocessed-review/index.vue
View file @
ae4db68d
...
...
@@ -623,19 +623,6 @@ export default {
break
}
},
/**
* 获取字典
* @param {*} options
* @param {*} value
*/
getDictData
(
options
,
value
)
{
const
item
=
options
.
filter
(
v
=>
v
.
value
===
value
)
if
(
item
.
length
>
0
)
{
return
item
[
0
].
label
}
else
{
return
null
}
},
/* 跳转到问卷详情*/
goNext
(
url
)
{
this
.
$router
.
push
({
path
:
url
})
...
...
src/views/task/on/index.vue
View file @
ae4db68d
...
...
@@ -774,14 +774,6 @@ export default {
})
break
}
},
getDictData
(
options
,
value
)
{
const
item
=
options
.
filter
(
v
=>
v
.
value
===
value
)
if
(
item
.
length
>
0
)
{
return
item
[
0
].
label
}
else
{
return
null
}
}
}
}
...
...
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