添加项目库的项目详情

This commit is contained in:
qq787203167
2022-04-07 16:19:35 +08:00
parent 6337b9af63
commit bd4722f37f
5 changed files with 592 additions and 13 deletions
+9 -1
View File
@@ -336,7 +336,7 @@ module.exports = {
Users: 'users',
reduction: 'reduction',
UsersSucceeded: 'users succeeded!',
standard: 'number',
standard: 'serial number',
title: 'title',
TextStatus: 'TextStatus',
PleaseEnter: 'Please enter',
@@ -611,4 +611,12 @@ module.exports = {
task:'task',
TaskCutOffTime:'Task cut-off time',
Transfer:'Transfer',
CertificationDirectory:'Certification directory',
TaskRequirements:'Task requirements',
CertificationProgress:'Certification progress',
CurrentProjectStatusEvaluation:'Current project status evaluation',
NiONumber:'NiO number',
ParameterName:'Parameter name',
ParameterDescription:'Parameter description',
Version:'Version',
}
+8
View File
@@ -615,4 +615,12 @@ module.exports = {
task:'任务',
TaskCutOffTime:'任务截止时间',
Transfer:'调取',
CertificationDirectory:'认证目录',
TaskRequirements:'任务要求',
CertificationProgress:'认证进度',
CurrentProjectStatusEvaluation:'当前项目状态评估',
NiONumber:'NIO编号',
ParameterName:'参数名称',
ParameterDescription:'参数说明',
Version:'版本',
}
@@ -1,15 +1,320 @@
<template>
<div>
任务清单
</div>
<a-card :bordered="false">
<div class="table-page-search-wrapper">
<a-row :gutter="24">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('standard')">
<span>{{$t('standard')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
v-model="queryParam.standard"></a-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('areaOfResponsibility')">
<span>{{$t('areaOfResponsibility')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('areaOfResponsibility')"
v-model="queryParam.title"></a-input>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24">
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
</a-col>
</span>
</a-row>
</div>
<div class="table-operator">
<div @click="CertificationDirectory" class="operator-text">
<a-icon type="bulb"/>
{{$t('CertificationDirectory')}}
</div>
<div @click="handleExport" class="operator-text">
<a-icon type="export" :rotate="-90"/>
{{$t('export')}}
</div>
</div>
<div style="width: 100%">
<a-table
ref="table"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns"
>
</a-table>
</div>
</a-card>
</template>
<script>
export default {
name: 'TaskList'
name: 'TaskList',
data() {
return {
columns: [
{
title: this.$t('serialNumber'),
align: 'center',
width: 100,
fixed: 'left'
},
{
title: this.$t('standard'),
align: 'center',
dataIndex: 'standard',
fixed: 'left'
},
{
title: this.$t('areaOfResponsibility'),
align: 'center',
dataIndex: 'areaOfResponsibility',
fixed: 'left'
},
{
title: this.$t('confirmationOfDesignConformity'),
children: [
{
title: this.$t('TaskRequirements'),
dataIndex: 'TaskRequirements',
align: 'center'
},
{
title: this.$t('Sponsor'),
dataIndex: 'Sponsor',
align: 'center'
},
{
title: this.$t('TaskCutOffTime'),
dataIndex: 'TaskCutOffTime',
align: 'center'
},
{
title: this.$t('status'),
dataIndex: 'status',
align: 'center'
}
]
},
{
title: this.$t('PrehomoConfirmation'),
children: [
{
title: this.$t('TaskRequirements'),
dataIndex: 'TaskRequirements',
align: 'center'
},
{
title: this.$t('Sponsor'),
dataIndex: 'Sponsor',
align: 'center'
},
{
title: this.$t('TaskCutOffTime'),
dataIndex: 'TaskCutOffTime',
align: 'center'
},
{
title: this.$t('status'),
dataIndex: 'status',
align: 'center'
}
]
},
{
title: this.$t('verificationAndConformityconfirmation'),
children: [
{
title: this.$t('TaskRequirements'),
dataIndex: 'TaskRequirements',
align: 'center'
},
{
title: this.$t('Sponsor'),
dataIndex: 'Sponsor',
align: 'center'
},
{
title: this.$t('TaskCutOffTime'),
dataIndex: 'TaskCutOffTime',
align: 'center'
},
{
title: this.$t('status'),
dataIndex: 'status',
align: 'center'
}
]
},
{
title: this.$t('CertificationProgress'),
align: 'center',
dataIndex: 'CertificationProgress',
scopedSlots: { customRender: 'CertificationProgress' }
},
{
title: this.$t('CurrentProjectStatusEvaluation'),
align: 'center',
dataIndex: 'CurrentProjectStatusEvaluation',
scopedSlots: { customRender: 'CurrentProjectStatusEvaluation' }
},
],
selectedRowKeys: [],
queryParam: {},
url: {},
loading: false,
dataSource: []
}
},
mounted() {
},
methods: {
searchQuery() {
},
searchReset() {
},
onSelectChange() {
},
handleExport() {
},
CertificationDirectory(){
},
}
}
</script>
<style scoped>
<style lang="less" scoped>
@import '~@assets/less/common.less';
.doc-detail {
background: #fff;
height: 100%;
.Virtual-detail-header {
width: 100%;
height: 68px;
line-height: 68px;
padding: 0 32px 0 32px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
border-bottom: 2px #eff1f3 solid;
background: #fff;
.Virtual-detail-title {
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
font-size: 20px;
font-weight: 400;
color: #040B29;
line-height: 68px;
}
.doc-detail-right {
width: 800px;
line-height: 68px;
display: flex;
}
}
.Virtual-detail-content {
padding: 0 38px 0 38px;
box-sizing: border-box;
font-size: 16px;
.box-title-text-add {
line-height: 1.4;
}
.title-text-add {
display: inline-block;
font-weight: 500;
margin-right: 16px;
height: 42px;
line-height: 42px;
}
}
}
.header-text {
font-size: 16px;
font-weight: 400;
height: 60px;
color: #000F16;
line-height: 40px;
}
.box-title-text {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.title-text {
width: 20%;
min-width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-button {
height: 38px;
}
.text-operation {
margin-right: 8px;
}
.page {
text-align: right;
margin-top: 20px;
}
.operator-text-left {
font-size: 14px;
margin-right: 20px;
background: #eff1f3;
padding: 8px 8px;
cursor: pointer;
border-radius: 4px;
}
</style>
<style>
.box-input .ant-select-selection {
height: 38px !important;
}
.box-input .ant-select-selection__rendered {
line-height: 38px;
}
</style>
@@ -1,15 +1,275 @@
<template>
<div>
任务参数收集
</div>
<a-card :bordered="false">
<div class="table-page-search-wrapper">
<a-row :gutter="24">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('certificationType')">
<span>{{$t('certificationType')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('certificationType')"
v-model="queryParam.certificationType"></a-input>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24">
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
</a-col>
</span>
</a-row>
</div>
<div class="table-operator">
<div @click="handleAdd" class="operator-text">
<a-icon type="plus"/>
{{$t('add')}}
</div>
<div @click="handleModule" class="operator-text">
<a-icon type="download"/>
{{$t('templateDownload')}}
</div>
<div class="operator-text" v-has="'document:importZip'">
<ImportFile :url="url"/>
</div>
<div @click="handleDel" class="operator-text">
<a-icon type="delete"/>
{{$t('BatchDelete')}}
</div>
<div @click="handleExport" class="operator-text">
<a-icon type="export" :rotate="-90"/>
{{$t('export')}}
</div>
</div>
<div style="width: 100%">
<a-table
ref="table"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns"
>
<span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>
</span>
</a-table>
</div>
</a-card>
</template>
<script>
import ImportFile from '@/components/ImportFile/index'
export default {
name: 'TaskParameterCollection'
name: 'TaskParameterCollection',
components:{
ImportFile
},
data(){
return{
columns:[
{
title: this.$t('NiONumber'),
align: 'center',
dataIndex: 'NiONumber',
},
{
title: this.$t('ParameterName'),
align: 'center',
dataIndex: 'ParameterName',
},
{
title: this.$t('ParameterDescription'),
align: 'center',
dataIndex: 'ParameterDescription',
},
{
title: this.$t('status'),
align: 'center',
dataIndex: 'status',
},
{
title: this.$t('Operator'),
align: 'center',
dataIndex: 'Operator',
},
{
title: this.$t('operationTime'),
align: 'center',
dataIndex: 'operationTime',
},
{
title: this.$t('Version'),
align: 'center',
dataIndex: 'Version',
},
{
title: this.$t('operation'),
align: 'center',
fixed: 'right',
width: 200,
scopedSlots: { customRender: 'operation' }
}
],
selectedRowKeys: [],
queryParam: {},
url: {},
loading: false,
dataSource: []
}
},
mounted() {
},
methods:{
searchQuery() {
},
searchReset() {
},
onSelectChange() {
},
edit(edit){
},
handleExport(){
},
handleAdd(){
},
handleModule(){
},
handleDel(){
},
},
}
</script>
<style scoped>
<style lang="less" scoped>
@import '~@assets/less/common.less';
.doc-detail {
background: #fff;
height: 100%;
.Virtual-detail-header {
width: 100%;
height: 68px;
line-height: 68px;
padding: 0 32px 0 32px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
border-bottom: 2px #eff1f3 solid;
background: #fff;
.Virtual-detail-title {
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
font-size: 20px;
font-weight: 400;
color: #040B29;
line-height: 68px;
}
.doc-detail-right {
width: 800px;
line-height: 68px;
display: flex;
}
}
.Virtual-detail-content {
padding: 0 38px 0 38px;
box-sizing: border-box;
font-size: 16px;
.box-title-text-add {
line-height: 1.4;
}
.title-text-add {
display: inline-block;
font-weight: 500;
margin-right: 16px;
height: 42px;
line-height: 42px;
}
}
}
.header-text {
font-size: 16px;
font-weight: 400;
height: 60px;
color: #000F16;
line-height: 40px;
}
.box-title-text {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.title-text {
width: 20%;
min-width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-button {
height: 38px;
}
.text-operation {
margin-right: 8px;
}
.page {
text-align: right;
margin-top: 20px;
}
.operator-text-left {
font-size: 14px;
margin-right: 20px;
background: #eff1f3;
padding: 8px 8px;
cursor: pointer;
border-radius: 4px;
}
</style>
<style>
.box-input .ant-select-selection {
height: 38px !important;
}
.box-input .ant-select-selection__rendered {
line-height: 38px;
}
</style>
@@ -126,7 +126,6 @@
title: this.$t('standard'),
align: 'center',
dataIndex: 'standard',
width: 100,
fixed: 'left'
},
{
@@ -324,7 +323,6 @@
searchReset() {
}
}
}
</script>