Commit e5653215 authored by 刘怀志's avatar 刘怀志

feat(已办任务/待办任务--车型): init

parent 9b61e8c1
This diff is collapsed.
...@@ -24,5 +24,30 @@ module.exports = [ ...@@ -24,5 +24,30 @@ module.exports = [
total: 10 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
}
}
} }
] ]
<template> <template>
<page-standard> <page-standard>
<div slot="tab"> <div slot="tab">
<el-radio-group v-model="queryParams.type"> <el-radio-group v-model="pageType">
<el-radio-button <el-radio-button
v-for="dict in dict.type.sys_detailed_classification" v-for="dict in dict.type.task_type"
:key="dict.value" :key="dict.value"
:label="dict.value" :label="dict.value"
> >
...@@ -104,6 +104,12 @@ ...@@ -104,6 +104,12 @@
<el-button type="success">查看审查报告</el-button> <el-button type="success">查看审查报告</el-button>
<el-button type="success">查看企业留档文件</el-button> <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>
</div> </div>
</el-card> </el-card>
...@@ -121,15 +127,22 @@ ...@@ -121,15 +127,22 @@
<script> <script>
import page from '@/mixins/page' import page from '@/mixins/page'
export default { export default {
dicts: ['sys_job_status', 'sys_scene_type', 'sys_detailed_classification'], dicts: ['sys_job_status', 'sys_scene_type', 'task_type'],
mixins: [page], mixins: [page],
data() { data() {
return { return {
pageType: '1',
listUrl: '/tasklist', listUrl: '/tasklist',
showSearch: true, showSearch: true,
tableData: [] tableData: []
} }
}, },
computed: {
isSysReview() {
console.log(this.pageType)
return this.pageType === '1'
}
},
watch: {}, watch: {},
methods: {} methods: {}
} }
......
<template> <template>
<page-standard> <page-standard>
<div slot="tab"> <div slot="tab">
<el-radio-group v-model="queryParams.type"> <el-radio-group v-model="pageType">
<el-radio-button <el-radio-button
v-for="dict in dict.type.sys_detailed_classification" v-for="dict in dict.type.task_type"
:key="dict.value" :key="dict.value"
:label="dict.value" :label="dict.value"
> >
...@@ -92,20 +92,57 @@ ...@@ -92,20 +92,57 @@
{{ item.owener ? item.owener : '---' }} {{ item.owener ? item.owener : '---' }}
</div> </div>
</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 class="cell-lable">任务状态</div>
<div v-if="item.costTime === 0" class="cell-value">● 未开始</div> <div v-if="item.costTime === 0" class="cell-value">● 未开始</div>
<div v-else class="cell-value yellow"> <div v-else class="cell-value yellow">
● 已耗时({{ item.costTime }}小时) ● 已耗时({{ item.costTime }}小时)
</div> </div>
</div> </div>
<div class="card-cell"> <div v-if="isSysReview" class="card-cell">
<div class="cell-lable">审查问卷</div> <div class="cell-lable">审查问卷</div>
<div class="cell-value"> <div class="cell-value">
<el-link type="primary">填写问卷</el-link> <el-link type="primary">填写问卷</el-link>
</div> </div>
</div> </div>
<div class="card-cell"> <div v-if="isSysReview" class="card-cell">
<div class="cell-lable">完成进度</div> <div class="cell-lable">完成进度</div>
<el-progress <el-progress
class="cell-progress" class="cell-progress"
...@@ -169,16 +206,28 @@ ...@@ -169,16 +206,28 @@
<script> <script>
import page from '@/mixins/page' import page from '@/mixins/page'
export default { export default {
dicts: ['sys_job_status', 'sys_scene_type', 'sys_detailed_classification'], dicts: ['sys_job_status', 'sys_scene_type', 'task_type'],
mixins: [page], mixins: [page],
data() { data() {
return { return {
pageType: '1', // 代办任务类型 1-体系审查 其他-车型测评
listUrl: '/tasklist', listUrl: '/tasklist',
showSearch: true, showSearch: true,
tableData: [] tableData: []
} }
}, },
watch: {}, computed: {
isSysReview() {
console.log(this.pageType)
return this.pageType === '1'
}
},
watch: {
pageType(newValue) {
this.listUrl = newValue === '1' ? '/tasklist' : '/taskCarType'
this.loadData()
}
},
methods: {} methods: {}
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment