修改评估结果的页面布局

This commit is contained in:
sunFlower
2023-01-13 14:09:23 +08:00
parent 421aa6778b
commit b5b214099f
3 changed files with 44 additions and 24 deletions
@@ -56,14 +56,14 @@
<div style="margin-top: 20px"> <div style="margin-top: 20px">
<span class="text">{{$t('filingExternalOpinions')}}:</span> <span class="text">{{$t('filingExternalOpinions')}}:</span>
<div @click="clickButtonToUpload('opinionArchiveId')" style="color: #21c9cc" <div @click="clickButtonToUpload('opinionArchiveId')" style="color: #21c9cc"
v-if="formInline.createBy == this.userInfoQuery.username" class="operator-text"> v-if="formInline.createBy == this.userInfoQuery.username" class="operator-text-index">
<a-button type="primary"style="margin-right: 8px;height: 32px"> <a-button type="primary" style="margin-right: 8px;height: 32px">
{{$t('clickUpload')}} {{$t('clickUpload')}}
</a-button> </a-button>
</div> </div>
<div @click="seeFileClick(formInline.opinionArchiveId)" style="color: #21c9cc" class="operator-text"> <div @click="seeFileClick(formInline.opinionArchiveId)" style="color: #21c9cc" class="operator-text-index">
<a-button type="primary"style="margin-right: 8px;height: 32px"> <a-button type="primary" style="margin-right: 8px;height: 32px">
{{$t('viewFile')}} {{$t('viewFile')}}
</a-button> </a-button>
</div> </div>
</div> </div>
@@ -94,10 +94,10 @@
total: 0, total: 0,
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
flag:false, flag: false,
dataSource: [], dataSource: [],
formInline: {}, formInline: {},
administrators:false, administrators: false,
userInfoQuery: {}, userInfoQuery: {},
columns: [ columns: [
{ {
@@ -164,8 +164,11 @@
} }
}) })
} }
getAction('/project/projectUserPermission/hasProcessControlButton', {type: 'LawsOpinionGather',id : this.$route.query.id}).then((res) => { getAction('/project/projectUserPermission/hasProcessControlButton', {
this.flag = res type: 'LawsOpinionGather',
id: this.$route.query.id
}).then((res) => {
this.flag = res
}) })
}, },
methods: { methods: {
@@ -215,7 +218,7 @@
actiProcInstId: this.actiProcInstId actiProcInstId: this.actiProcInstId
} }
downloadFile('/lawsOpinionGather/lawsOpinionAssessmentResultEO/exportXls', downloadFile('/lawsOpinionGather/lawsOpinionAssessmentResultEO/exportXls',
this.$route.query.serialNumber+ ' ' +this.$t('evaluationResults') + '.zip', query) this.$route.query.serialNumber + ' ' + this.$t('evaluationResults') + '.zip', query)
}, },
getData() { getData() {
this.formInline = JSON.parse(JSON.stringify(this.$route.query)) this.formInline = JSON.parse(JSON.stringify(this.$route.query))
@@ -381,4 +384,10 @@
overflow: hidden; overflow: hidden;
text-align: right; text-align: right;
} }
.operator-text-index {
display: inline-block;
/*margin-right: 16px;*/
margin-left: 16px;
}
</style> </style>
@@ -102,15 +102,16 @@
<script> <script>
import { getAction, postAction, deleteAction, putAction } from '@/api/manage' import { getAction, postAction, deleteAction, putAction } from '@/api/manage'
import problemKnowledgeBaseList from './components/problemKnowledgeBaseList' import problemKnowledgeBaseList from './components/problemKnowledgeBaseList'
export default { export default {
name: 'collection', name: 'collection',
components:{ components: {
problemKnowledgeBaseList problemKnowledgeBaseList
}, },
data() { data() {
return { return {
selectedRowKeys: [], selectedRowKeys: [],
activeTab:this.$t('DocumentLibrary'), activeTab: this.$t('DocumentLibrary'),
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10 pageSize: 10
@@ -126,7 +127,7 @@
key: 'serialNumber', key: 'serialNumber',
scopedSlots: { customRender: 'serialNumber' }, scopedSlots: { customRender: 'serialNumber' },
align: 'left', align: 'left',
sorter:true, sorter: true,
ellipsis: true, ellipsis: true,
width: 180 width: 180
}, },
@@ -143,7 +144,7 @@
align: 'left', align: 'left',
width: 180, width: 180,
ellipsis: true, ellipsis: true,
sorter:true, sorter: true,
dataIndex: 'state' dataIndex: 'state'
}, },
{ {
@@ -151,7 +152,7 @@
align: 'left', align: 'left',
width: 180, width: 180,
ellipsis: true, ellipsis: true,
sorter:true, sorter: true,
dataIndex: 'createTime' dataIndex: 'createTime'
}, },
{ {
@@ -175,11 +176,11 @@
methods: { methods: {
tableOnChange(pagination, filters, sorter) { tableOnChange(pagination, filters, sorter) {
this.orderBy = sorter.order == 'ascend' ? '1' : '2' this.orderBy = sorter.order == 'ascend' ? '1' : '2'
if(sorter.columnKey == 'serialNumber'){ if (sorter.columnKey == 'serialNumber') {
this.orderByField = 'serial_number' this.orderByField = 'serial_number'
} else if(sorter.columnKey == 'createTime') { } else if (sorter.columnKey == 'createTime') {
this.orderByField = 'create_time' this.orderByField = 'create_time'
} else{ } else {
this.orderByField = sorter.columnKey this.orderByField = sorter.columnKey
} }
this.loadData() this.loadData()
@@ -205,7 +206,7 @@
} }
}) })
},//搜索 },//搜索
callback(event){ callback(event) {
}, },
searchQuery() { searchQuery() {
@@ -326,7 +327,7 @@
.collection { .collection {
.collection-search-wrapper { .collection-search-wrapper {
margin-bottom: 20px; /*margin-bottom: 20px;*/
} }
.colloction-table { .colloction-table {
@@ -367,6 +368,10 @@
.box-button { .box-button {
height: 38px; height: 38px;
} }
::v-deep .ant-card-body {
padding: 0 24px!important;
}
</style> </style>
<style lang="less"> <style lang="less">
/*.collection{*/ /*.collection{*/
@@ -10,7 +10,7 @@
:wrapper-col='wrapperCol' :wrapper-col='wrapperCol'
> >
<a-row :gutter='24'> <a-row :gutter='24'>
<a-col :span='9'> <a-col :span='8'>
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('areaOfResponsibility')"> <div class="title-text" :title="$t('areaOfResponsibility')">
<span>{{$t('areaOfResponsibility')}}</span> <span>{{$t('areaOfResponsibility')}}</span>
@@ -32,7 +32,7 @@
</div> </div>
</a-col> </a-col>
<a-col :span='9'> <a-col :span='8'>
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('RelatedItems')"> <div class="title-text" :title="$t('RelatedItems')">
<span>{{$t('RelatedItems')}}</span> <span>{{$t('RelatedItems')}}</span>
@@ -50,9 +50,11 @@
</div> </div>
</a-col> </a-col>
<a-col :span='6' style='margin-top: 4px;'> <a-col :span='8' style='margin-top: 2px;'>
<span style="float: right;margin-right: 8px">
<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>
</span>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
@@ -524,6 +526,10 @@
color: red; color: red;
margin-right: 4px; margin-right: 4px;
} }
.box-button{
height:38px;
}
</style> </style>
<style lang='less'> <style lang='less'>
.area-module { .area-module {