修改已知问题

This commit is contained in:
qq787203167
2022-06-01 14:05:24 +08:00
parent d4a8855af3
commit 3adff7c3eb
6 changed files with 80 additions and 41 deletions
-1
View File
@@ -18,7 +18,6 @@ require('@/components/onlineForm/onlineForm')
require('@/components/onlineForm/OnlineForm.css')
import Antd, { version } from 'ant-design-vue'
console.log('ant-design-vue version:', version)
import Viser from 'viser-vue'
@@ -290,7 +290,6 @@
},
//处理列表中的点击事件
detailClick(item) {
console.log('item.',item)
let newUrl = this.$router.resolve({
path: '/docManage/library/detail',
query: item
@@ -38,9 +38,9 @@
</div>
</div>
<a-card :bordered="false" class="card">
<div class="header-text">
{{$t('listSubclauses')}}
</div>
<!-- <div class="header-text">-->
<!-- {{$t('listSubclauses')}}-->
<!-- </div>-->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
@@ -85,10 +85,10 @@
</div>
<div class="table-operator">
<!-- 导入-->
<div class="operator-text"
style="float: left;font-size: 16px;font-weight: 400;color: #040B29;">
{{$t('DocumentStandard')}}
</div>
<!-- <div class="operator-text"-->
<!-- style="float: left;font-size: 16px;font-weight: 400;color: #040B29;">-->
<!-- {{$t('DocumentStandard')}}-->
<!-- </div>-->
<div class="operator-text" v-has="'document:importZip'" v-if="isTrue">
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" @getList="getPersonnelList"
:accept="'.zip'"/>
@@ -130,7 +130,7 @@
class="ant-table"
:loading="loading"
:pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 445px)'}"
:scroll="{x: '100%',y:'calc(100vh - 200px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -141,7 +141,9 @@
<a class="text-operation" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
</span>
<span slot="titleName" slot-scope="text,record" :title="text">
{{text && text.length > 10 ? text.slice(0,9)+'...':text}}
<span class="textName">
{{text}}
</span>
</span>
<span slot="designDeliverableTemplateName" slot-scope="text,record">
<span>{{record.designDeliverableTypeName}}</span><br v-if="record.designDeliverableTypeName">
@@ -243,6 +245,7 @@
return {
title: '维护虚拟清单',
queryParam: {},
components: {},
visibleFile: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
dataSourceFile: [],
@@ -285,7 +288,6 @@
dataIndex: 'serialNumber',
width: 180,
fixed: 'left',
ellipsis: true,
scopedSlots: { customRender: 'titleName' }
},
{
@@ -294,7 +296,6 @@
dataIndex: 'title',
width: 180,
fixed: 'left',
ellipsis: true,
scopedSlots: { customRender: 'titleName' }
},
{
@@ -303,7 +304,6 @@
dataIndex: 'subtitle',
width: 180,
fixed: 'left',
ellipsis: true,
scopedSlots: { customRender: 'titleName' }
},
{
@@ -311,42 +311,42 @@
align: 'center',
width: 150,
ellipsis: true,
dataIndex: 'region_dictText',
dataIndex: 'region_dictText'
},
{
title: this.$t('scopeOfApplication'),
align: 'center',
width: 180,
ellipsis: true,
dataIndex: 'shi4Yong4Fan4Wei2_dictText',
dataIndex: 'shi4Yong4Fan4Wei2_dictText'
},
{
title: this.$t('status'),
align: 'center',
width: 100,
ellipsis: true,
dataIndex: 'state_dictText',
dataIndex: 'state_dictText'
},
{
title: this.$t('correspondingStandard'),
align: 'center',
width: 140,
ellipsis: true,
dataIndex: 'correspondingStandard',
dataIndex: 'correspondingStandard'
},
{
title: this.$t('implementationCategory'),
align: 'center',
width: 140,
ellipsis: true,
dataIndex: 'implementType_dictText',
dataIndex: 'implementType_dictText'
},
{
title: this.$t('ImplementationDate'),
align: 'center',
width: 200,
ellipsis: true,
dataIndex: 'xin1Che1Xing2Shi2Shi1Ri4Qi1',
dataIndex: 'xin1Che1Xing2Shi2Shi1Ri4Qi1'
},
{
title: this.$t('vehicleInProductionDate'),
@@ -820,6 +820,7 @@
justify-content: space-between;
border-bottom: 2px #eff1f3 solid;
background: #fff;
z-index: 1000;
.Virtual-detail-title {
display: inline-block;
@@ -933,6 +934,19 @@
text-align: right;
margin-top: 20px;
}
.textName {
width: 100%;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
/*! autoprefixer: off */
text-justify: inter-ideograph;
-webkit-line-clamp: 2;
/*! autoprefixer: on;*/
-webkit-box-orient: vertical;
word-break: break-all
}
</style>
<style>
.box-input .ant-select-selection {
@@ -951,4 +965,5 @@
padding: 0;
border-top: none;
}
</style>
@@ -134,7 +134,7 @@
ref="table"
:loading="loading"
:pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 400px)'}"
:scroll="{x: '100%',y:'calc(100vh - 200px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -157,7 +157,9 @@
</a>
</span>
<span slot="titleName" slot-scope="text,record" :title="text">
{{ text && text.length > 10 ? text.slice(0, 9) + '...' : text }}
<span class="textName">
{{text}}
</span>
</span>
<span slot="designDeliverableTemplateName" slot-scope="text,record">
<span>{{ record.designDeliverableTypeName }}</span><br v-if="record.designDeliverableTypeName">
@@ -1559,6 +1561,19 @@
height: 42px;
line-height: 48px;
}
.textName {
width: 100%;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
/*! autoprefixer: off */
text-justify: inter-ideograph;
-webkit-line-clamp: 2;
/*! autoprefixer: on;*/
-webkit-box-orient: vertical;
word-break: break-all
}
</style>
<style>
.box-input .ant-select-selection {
@@ -130,12 +130,12 @@
<div class="box-title-text">
<div class="title-text">
<span class="Required">*</span>
<span class="title-text-text" :title="$t('verificationConfirmationDeadline')">
{{$t('verificationConfirmationDeadline')}}</span>
<span class="title-text-text" :title="$t('verificationAndConformityconfirmation')">
{{$t('verificationAndConformityconfirmation')}}</span>
</div>
<a-form-model-item class="itemModel" prop="verifyDeadline">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('verificationConfirmationDeadline')"
:placeholder="$t('PleaseSelect')+$t('verificationAndConformityconfirmation')"
@change="dateChange({db_field_name:'verifyDeadline'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
@@ -219,19 +219,19 @@
mounted() {
},
methods: {
disabledRegistrationEndDate(endDate){
const { attestationStartTime,attestationEndTime } = this.formInline;
if(attestationEndTime && endDate.valueOf() > attestationEndTime.valueOf()){
return true;
disabledRegistrationEndDate(endDate) {
const { attestationStartTime, attestationEndTime } = this.formInline
if (attestationEndTime && endDate.valueOf() > attestationEndTime.valueOf()) {
return true
}
return endDate < moment(attestationStartTime).add( 'days');
return endDate < moment(attestationStartTime).add('days')
},
disabledRegistrationStartDate(StartDate){
const { attestationStartTime,attestationEndTime } = this.formInline;
if(attestationEndTime && StartDate.valueOf() > attestationEndTime.valueOf()){
return true;
disabledRegistrationStartDate(StartDate) {
const { attestationStartTime, attestationEndTime } = this.formInline
if (attestationEndTime && StartDate.valueOf() > attestationEndTime.valueOf()) {
return true
}
return StartDate > moment(attestationEndTime).add( 'days');
return StartDate > moment(attestationEndTime).add('days')
},
edit() {
this.visible = true
@@ -347,7 +347,7 @@
}
.title-text {
width: 194px;
width: 144px;
text-align: right;
display: inline-block;
font-weight: 500;
@@ -160,7 +160,9 @@
:columns="columns"
>
<span slot="standard" slot-scope="text,result">
<a @click="standardClick(result)" :title="text">{{text}}</a>
<a @click="standardClick(result)" class="textName" :title="text">
{{text}}
</a>
</span>
</a-table>
</div>
@@ -201,16 +203,14 @@
title: this.$t('standard'),
align: 'center',
dataIndex: 'serialNumber',
ellipsis: true,
width: 180,
width: 170,
scopedSlots: { customRender: 'standard' }
},
{
title: this.$t('title'),
align: 'center',
dataIndex: 'title',
ellipsis: true,
width: 180,
width: 170,
scopedSlots: { customRender: 'standard' }
},
{
@@ -456,4 +456,15 @@
text-align: right;
margin-top: 20px;
}
.textName {
width: 100%;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/*! autoprefixer: on;*/
}
</style>