修改已知问题

This commit is contained in:
qq787203167
2022-05-27 17:29:00 +08:00
parent c498a114bf
commit 9f835fa5ce
3 changed files with 70 additions and 43 deletions
+5
View File
@@ -90,10 +90,15 @@
.jee-hidden { .jee-hidden {
display: none display: none
} }
.box-input .ant-select-selection { .box-input .ant-select-selection {
height: 38px !important; height: 38px !important;
} }
.box-input .ant-select-selection__rendered { .box-input .ant-select-selection__rendered {
line-height: 38px; line-height: 38px;
}
.ant-table-fixed-left table, .ant-table-fixed-right table .ant-table-fixed{
width: min-content;
} }
@@ -2,43 +2,43 @@
<a-card :bordered="false"> <a-card :bordered="false">
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('standard')"> <div class="title-text" :title="$t('standard')">
<span>{{$t('standard')}}</span> <span>{{$t('standard')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
v-model="queryParam.serialNumber"></j-input>
</div> </div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')" </a-col>
v-model="queryParam.serialNumber"></j-input> <a-col :md="6" :sm="8">
</div> <div class="box-title-text">
</a-col> <div class="title-text" :title="$t('title')">
<a-col :md="6" :sm="8"> <span>{{$t('title')}}</span>
<div class="box-title-text"> </div>
<div class="title-text" :title="$t('title')"> <j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
<span>{{$t('title')}}</span> v-model="queryParam.title"></j-input>
</div> </div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')" </a-col>
v-model="queryParam.title"></j-input> <a-col :md="6" :sm="8">
</div> <div class="box-title-text">
</a-col> <div class="title-text" style="width: 64px" :title="$t('areaOfResponsibility')">
<a-col :md="6" :sm="8"> <span>{{$t('areaOfResponsibility')}}</span>
<div class="box-title-text"> </div>
<div class="title-text" style="width: 64px" :title="$t('areaOfResponsibility')"> <j-dict-select-tag class="box-input" v-model="queryParam.dutyTerritory"
<span>{{$t('areaOfResponsibility')}}</span> :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/>
</div> </div>
<j-dict-select-tag class="box-input" v-model="queryParam.dutyTerritory" </a-col>
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
:type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <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-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
</a-col> </a-col>
</span> </span>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<div class="table-operator"> <div class="table-operator">
@@ -54,7 +54,7 @@
:loading="loading" :loading="loading"
rowKey="uuid" rowKey="uuid"
:pagination="false" :pagination="false"
:scroll="{x: true}" :scroll="{x: '100%'}"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:data-source="dataSource" :data-source="dataSource"
:columns="columns" :columns="columns"
@@ -94,38 +94,52 @@
title: this.$t('standard'), title: this.$t('standard'),
align: 'center', align: 'center',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
scopedSlots: { customRender: 'standard' } scopedSlots: { customRender: 'standard' },
ellipsis: true,
width: 180
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true,
width: 180,
scopedSlots: { customRender: 'standard' } scopedSlots: { customRender: 'standard' }
}, },
{ {
title: this.$t('ProcessType'), title: this.$t('ProcessType'),
align: 'center', align: 'center',
dataIndex: 'flowType' dataIndex: 'flowType',
ellipsis: true,
width: 180
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'center', align: 'center',
dataIndex: 'dutyTerritory_dictText' dataIndex: 'dutyTerritory_dictText',
ellipsis: true,
width: 180
}, },
{ {
title: this.$t('problemType'), title: this.$t('problemType'),
align: 'center', align: 'center',
dataIndex: 'problemType' dataIndex: 'problemType',
ellipsis: true,
width: 180
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
align: 'center', align: 'center',
dataIndex: 'initiator' dataIndex: 'initiator',
ellipsis: true,
width: 140
}, },
{ {
title: this.$t('personLiable'), title: this.$t('personLiable'),
align: 'center', align: 'center',
dataIndex: 'duty' dataIndex: 'duty',
ellipsis: true,
width: 140
} }
], ],
total: 0, total: 0,
@@ -213,7 +227,7 @@
serialNumber: val.serialNumber, serialNumber: val.serialNumber,
actiProcInstId: val.prcId, actiProcInstId: val.prcId,
primaryKeyId: val.projectTaskInventoryDetailId, primaryKeyId: val.projectTaskInventoryDetailId,
TaskKey: val.taskDefinitionKey, TaskKey: val.taskDefinitionKey,
isDisplay: val.status == 'NotDone' ? true : false isDisplay: val.status == 'NotDone' ? true : false
} }
switch (num) { switch (num) {
@@ -154,13 +154,13 @@
rowKey="uuid" rowKey="uuid"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: true}" :scroll="{x: '100%'}"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:data-source="dataSource" :data-source="dataSource"
:columns="columns" :columns="columns"
> >
<span slot="standard" slot-scope="text,result"> <span slot="standard" slot-scope="text,result">
<a @click="standardClick(result)">{{text}}</a> <a @click="standardClick(result)" :title="text">{{text}}</a>
</span> </span>
</a-table> </a-table>
</div> </div>
@@ -201,48 +201,56 @@
align: 'center', align: 'center',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'standard' } width:180,
scopedSlots: { customRender: 'standard' },
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true, ellipsis: true,
width:180,
scopedSlots: { customRender: 'standard' } scopedSlots: { customRender: 'standard' }
}, },
{ {
title: this.$t('ProcessType'), title: this.$t('ProcessType'),
align: 'center', align: 'center',
dataIndex: 'flowType', dataIndex: 'flowType',
width:180,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'center', align: 'center',
dataIndex: 'dutyTerritory_dictText', dataIndex: 'dutyTerritory_dictText',
width:180,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('RelatedItems'), title: this.$t('RelatedItems'),
align: 'center', align: 'center',
dataIndex: 'projectName', dataIndex: 'projectName',
width:180,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('problemType'), title: this.$t('problemType'),
align: 'center', align: 'center',
dataIndex: 'problemType', dataIndex: 'problemType',
ellipsis: true width:140,
ellipsis: true,
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
align: 'center', align: 'center',
dataIndex: 'initiator' dataIndex: 'initiator',
width:140,
}, },
{ {
title: this.$t('personLiable'), title: this.$t('personLiable'),
align: 'center', align: 'center',
dataIndex: 'duty' dataIndex: 'duty',
width:140,
} }
], ],
total: 0, total: 0,