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
e5653215
Commit
e5653215
authored
Dec 20, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(已办任务/待办任务--车型): init
parent
9b61e8c1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
298 additions
and
211 deletions
+298
-211
.eslintrc.js
.eslintrc.js
+201
-201
task.js
mock/task.js
+25
-0
index.vue
src/views/processing/processed-review/index.vue
+16
-3
index.vue
src/views/processing/unprocessed-review/index.vue
+56
-7
No files found.
.eslintrc.js
View file @
e5653215
This diff is collapsed.
Click to expand it.
mock/task.js
View file @
e5653215
...
...
@@ -24,5 +24,30 @@ module.exports = [
total
:
10
}
}
},
// get taskCarType
{
url
:
'/taskCarType'
,
type
:
'get'
,
response
:
config
=>
{
const
temp
=
[]
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
temp
.
push
({
startTime
:
'@date'
,
missionNo
:
'@word'
,
tit
:
'一汽丰田体系审查'
,
owener
:
'@cname'
,
'costTimeOne|0-12'
:
1
,
'costTimeTwo|0-12'
:
1
,
'progressOne|0-100'
:
1
,
'progressTwo|0-100'
:
1
})
}
return
{
rows
:
temp
,
code
:
200
,
total
:
10
}
}
}
]
src/views/processing/processed-review/index.vue
View file @
e5653215
<
template
>
<page-standard>
<div
slot=
"tab"
>
<el-radio-group
v-model=
"
queryParams.t
ype"
>
<el-radio-group
v-model=
"
pageT
ype"
>
<el-radio-button
v-for=
"dict in dict.type.
sys_detailed_classification
"
v-for=
"dict in dict.type.
task_type
"
:key=
"dict.value"
:label=
"dict.value"
>
...
...
@@ -104,6 +104,12 @@
<el-button
type=
"success"
>
查看审查报告
</el-button>
<el-button
type=
"success"
>
查看企业留档文件
</el-button>
<el-button
type=
"success"
>
查看车企文件库
</el-button>
<el-button
v-if=
"!isSysReview"
type=
"success"
>
查看车型检验记录
</el-button
>
<el-button
v-if=
"!isSysReview"
type=
"success"
>
查看车型评测报告
</el-button
>
</div>
</div>
</el-card>
...
...
@@ -121,15 +127,22 @@
<
script
>
import
page
from
'@/mixins/page'
export
default
{
dicts
:
[
'sys_job_status'
,
'sys_scene_type'
,
'
sys_detailed_classification
'
],
dicts
:
[
'sys_job_status'
,
'sys_scene_type'
,
'
task_type
'
],
mixins
:
[
page
],
data
()
{
return
{
pageType
:
'1'
,
listUrl
:
'/tasklist'
,
showSearch
:
true
,
tableData
:
[]
}
},
computed
:
{
isSysReview
()
{
console
.
log
(
this
.
pageType
)
return
this
.
pageType
===
'1'
}
},
watch
:
{},
methods
:
{}
}
...
...
src/views/processing/unprocessed-review/index.vue
View file @
e5653215
<
template
>
<page-standard>
<div
slot=
"tab"
>
<el-radio-group
v-model=
"
queryParams.t
ype"
>
<el-radio-group
v-model=
"
pageT
ype"
>
<el-radio-button
v-for=
"dict in dict.type.
sys_detailed_classification
"
v-for=
"dict in dict.type.
task_type
"
:key=
"dict.value"
:label=
"dict.value"
>
...
...
@@ -92,20 +92,57 @@
{{
item
.
owener
?
item
.
owener
:
'---'
}}
</div>
</div>
<div
class=
"card-cell"
>
<div
v-if=
"!isSysReview"
class=
"card-cell"
>
<div
class=
"cell-lable"
>
子任务内容
</div>
<div
class=
"cell-value"
>
<div>
<el-link
type=
"primary"
>
查看车型审查问卷
</el-link>
</div>
<div>
<el-link
type=
"primary"
>
查看车型检验方案
</el-link>
</div>
</div>
</div>
<div
v-if=
"!isSysReview"
class=
"card-cell"
>
<div
class=
"cell-lable"
>
子任务状态
</div>
<div
class=
"cell-value"
>
<div
v-if=
"item.costTimeOne === 0"
class=
"cell-value"
>
● 未开始
</div>
<div
v-else
class=
"cell-value yellow"
>
● 已耗时(
{{
item
.
costTimeOne
}}
小时)
</div>
<div
v-if=
"item.costTimeTwo === 0"
class=
"cell-value"
>
● 未开始
</div>
<div
v-else
class=
"cell-value yellow"
>
● 已耗时(
{{
item
.
costTimeTwo
}}
小时)
</div>
</div>
</div>
<div
v-if=
"!isSysReview"
class=
"card-cell"
>
<div
class=
"cell-lable"
>
子任务完成进度
</div>
<el-progress
class=
"cell-progress"
:stroke-width=
"12"
:percentage=
"item.progressOne"
></el-progress>
<el-progress
class=
"cell-progress"
:stroke-width=
"12"
:percentage=
"item.progressTwo"
></el-progress>
</div>
<div
v-if=
"isSysReview"
class=
"card-cell"
>
<div
class=
"cell-lable"
>
任务状态
</div>
<div
v-if=
"item.costTime === 0"
class=
"cell-value"
>
● 未开始
</div>
<div
v-else
class=
"cell-value yellow"
>
● 已耗时(
{{
item
.
costTime
}}
小时)
</div>
</div>
<div
class=
"card-cell"
>
<div
v-if=
"isSysReview"
class=
"card-cell"
>
<div
class=
"cell-lable"
>
审查问卷
</div>
<div
class=
"cell-value"
>
<el-link
type=
"primary"
>
填写问卷
</el-link>
</div>
</div>
<div
class=
"card-cell"
>
<div
v-if=
"isSysReview"
class=
"card-cell"
>
<div
class=
"cell-lable"
>
完成进度
</div>
<el-progress
class=
"cell-progress"
...
...
@@ -169,16 +206,28 @@
<
script
>
import
page
from
'@/mixins/page'
export
default
{
dicts
:
[
'sys_job_status'
,
'sys_scene_type'
,
'
sys_detailed_classification
'
],
dicts
:
[
'sys_job_status'
,
'sys_scene_type'
,
'
task_type
'
],
mixins
:
[
page
],
data
()
{
return
{
pageType
:
'1'
,
// 代办任务类型 1-体系审查 其他-车型测评
listUrl
:
'/tasklist'
,
showSearch
:
true
,
tableData
:
[]
}
},
watch
:
{},
computed
:
{
isSysReview
()
{
console
.
log
(
this
.
pageType
)
return
this
.
pageType
===
'1'
}
},
watch
:
{
pageType
(
newValue
)
{
this
.
listUrl
=
newValue
===
'1'
?
'/tasklist'
:
'/taskCarType'
this
.
loadData
()
}
},
methods
:
{}
}
</
script
>
...
...
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