350 lines
11 KiB
Java
350 lines
11 KiB
Java
<template>
|
|
<a-card :bordered="false">
|
|
<div class="table-page-search-wrapper">
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
<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>
|
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
|
v-model="queryParam.serialNumber"></j-input>
|
|
</div>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<div class="box-title-text">
|
|
<div class="title-text" :title="$t('title')">
|
|
<span>{{$t('title')}}</span>
|
|
</div>
|
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
|
v-model="queryParam.title"></j-input>
|
|
</div>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<div class="box-title-text tree-select">
|
|
<div class="title-text" :title="$t('technicalField')">
|
|
<span>{{$t('technicalField')}}</span>
|
|
</div>
|
|
<a-tree-select
|
|
tree-node-filter-prop="title"
|
|
v-model="queryParam.technologyTerritory"
|
|
:maxTagCount="1"
|
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
|
class="box-input"
|
|
:tree-data="CategoryTreeList"
|
|
tree-checkable
|
|
:placeholder="$t('PleaseSelect')+$t('technicalField')"
|
|
/>
|
|
</div>
|
|
</a-col>
|
|
<template v-if="toggleSearchStatus">
|
|
<a-col :md="6" :sm="8">
|
|
<div class="box-title-text">
|
|
<div class="title-text" :title="$t('collectResults')">
|
|
<span>{{$t('collectResults')}}</span>
|
|
</div>
|
|
<a-select :placeholder="$t('PleaseSelect')+$t('collectResults')"
|
|
class="box-input"
|
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
|
allowClear
|
|
v-model="queryParam.gatherResult">
|
|
<a-select-option v-for="(item, key) in gatherResultList"
|
|
:key="key"
|
|
:value="item.value">
|
|
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
{{ item.name }}
|
|
</span>
|
|
</a-select-option>
|
|
</a-select>
|
|
</div>
|
|
</a-col>
|
|
</template>
|
|
<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 @click="handleToggleSearch" style="margin-left: 8px">
|
|
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
|
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
|
</a>
|
|
</a-col>
|
|
</span>
|
|
</a-row>
|
|
</a-form>
|
|
</div>
|
|
<div class="table-operator">
|
|
<div @click="initiatingProcessClick" v-has="'regulatoryComments:initiationProcess'" class="operator-text">
|
|
<a-icon type="apartment"/>
|
|
{{$t('initiatingProcess')}}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<a-table
|
|
ref="table"
|
|
size="middle"
|
|
:loading="loading"
|
|
:pagination="false"
|
|
:scroll="{x: '100%',y:'calc(100vh - 160px)'}"
|
|
rowKey="id"
|
|
:data-source="dataSource"
|
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
:columns="columns"
|
|
>
|
|
<span slot="serialNumber" :title="text" slot-scope="text,result">
|
|
<span>{{text}}</span>
|
|
</span>
|
|
<span slot="operation" slot-scope="text,record">
|
|
<a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>
|
|
<a class="text-operation" v-if="record.gatherResult == 'Completed'"
|
|
@click="evaluationResultsClick(record)">{{$t('evaluationResults')}}</a>
|
|
</span>
|
|
</a-table>
|
|
<div class="page" v-if="dataSource && dataSource.length > 0">
|
|
<a-pagination
|
|
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
|
show-quick-jumper
|
|
show-size-changer
|
|
:page-size.sync="pageSize"
|
|
:total="total"
|
|
:current="pageNo"
|
|
@change="pageOnChange"
|
|
@showSizeChange="SizeChange"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<evaluationResultsList ref="evaluationResultsListRef"/>
|
|
</a-card>
|
|
</template>
|
|
|
|
<script>
|
|
import evaluationResultsList from './components/evaluationResultsList'
|
|
import { getAction, postAction } from '@/api/manage'
|
|
|
|
export default {
|
|
name: 'index',
|
|
components: {
|
|
evaluationResultsList
|
|
},
|
|
data() {
|
|
return {
|
|
//url传参严格按照当前命名
|
|
url: {
|
|
list: '/lawsOpinionGather/lawsOpinionGatherEO/page',
|
|
getSysCategoryTree: '/sys/category/getSysCategoryTree'
|
|
},
|
|
loading: false,
|
|
toggleSearchStatus: false,
|
|
dataSource: [],
|
|
selectedRowKeys: [],
|
|
total: 0,
|
|
pageSize: 10,
|
|
pageNo: 1,
|
|
CategoryTreeList: [],
|
|
serialNumber: '',
|
|
queryParam: {},
|
|
gatherResultList: [
|
|
{
|
|
value: 'Underway',
|
|
name: this.$t('Underway')
|
|
},
|
|
{
|
|
value: 'Completed',
|
|
name: this.$t('Finished')
|
|
}
|
|
],
|
|
columns: [
|
|
{
|
|
title: this.$t('standard'),
|
|
align: 'center',
|
|
dataIndex: 'serialNumber',
|
|
ellipsis: true,
|
|
width: 170,
|
|
scopedSlots: { customRender: 'serialNumber' }
|
|
},
|
|
{
|
|
title: this.$t('title'),
|
|
align: 'center',
|
|
dataIndex: 'title',
|
|
ellipsis: true,
|
|
width: 170
|
|
},
|
|
{
|
|
title: this.$t('technicalField'),
|
|
align: 'center',
|
|
width: 170,
|
|
ellipsis: true,
|
|
dataIndex: 'technologyTerritoryName'
|
|
},
|
|
{
|
|
title: this.$t('collectResults'),
|
|
align: 'center',
|
|
width: 170,
|
|
ellipsis: true,
|
|
dataIndex: 'gatherResultShow'
|
|
},
|
|
{
|
|
title: this.$t('dateOfInitiation'),
|
|
align: 'center',
|
|
ellipsis: true,
|
|
width: 170,
|
|
dataIndex: 'startTime'
|
|
},
|
|
{
|
|
title: this.$t('closingDate'),
|
|
align: 'center',
|
|
ellipsis: true,
|
|
width: 170,
|
|
dataIndex: 'endTime'
|
|
},
|
|
{
|
|
title: this.$t('operation'),
|
|
align: 'center',
|
|
fixed: 'right',
|
|
width: 260,
|
|
scopedSlots: { customRender: 'operation' }
|
|
}
|
|
]
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getList()
|
|
this.getSysCategoryTree()
|
|
},
|
|
methods: {
|
|
getSysCategoryTree() {
|
|
getAction(this.url.getSysCategoryTree, {}).then((res) => {
|
|
if (res.success) {
|
|
this.CategoryTreeList = res.result
|
|
} else {
|
|
this.CategoryTreeList = []
|
|
}
|
|
})
|
|
},
|
|
handleToggleSearch() {
|
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
|
},
|
|
searchQuery() {
|
|
this.pageNo = 1
|
|
this.getList()
|
|
},
|
|
searchReset() {
|
|
this.queryParam = {}
|
|
this.$route.query.serialNumber = ''
|
|
this.$route.query.gatherResult = ''
|
|
this.pageNo = 1
|
|
this.getList()
|
|
},
|
|
pageOnChange(page) {
|
|
this.pageNo = page
|
|
this.getList()
|
|
},
|
|
SizeChange(page, pageSize) {
|
|
this.pageNo = 1
|
|
this.pageSize = pageSize
|
|
this.getList()
|
|
},
|
|
getList() {
|
|
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
|
Object.keys(queryParam).forEach(val => {
|
|
if (queryParam[val] instanceof Array) {
|
|
queryParam[val] = queryParam[val].join(',')
|
|
}
|
|
})
|
|
let query = {
|
|
pageNo: this.pageNo,
|
|
pageSize: this.pageSize,
|
|
serialNumber: this.$route.query.serialNumber ? this.$route.query.serialNumber : '',
|
|
gatherResult: this.$route.query.gatherResult ? this.$route.query.gatherResult : '',
|
|
...queryParam
|
|
}
|
|
this.loading = true
|
|
getAction(this.url.list, query).then((res) => {
|
|
if (res.success) {
|
|
this.dataSource = res.result.records || []
|
|
this.total = res.result.total
|
|
this.loading = false
|
|
} else {
|
|
this.loading = false
|
|
}
|
|
})
|
|
},
|
|
onSelectChange(value) {
|
|
this.selectedRowKeys = value
|
|
},
|
|
initiatingProcessClick() {
|
|
let newUrl = this.$router.resolve({
|
|
path: '/regulatoryInitiatingProcess'
|
|
})
|
|
// let newUrl = this.$router.resolve({
|
|
// path: '/regulatoryProcessReview'
|
|
// })
|
|
window.open(newUrl.href, '_blank')
|
|
},
|
|
viewProcessClick(row) {
|
|
let newUrl = this.$router.resolve({
|
|
path: '/processDetails',
|
|
query: {
|
|
prcNum: row.prcNum,
|
|
prcType: 5,
|
|
prcId: row.actiProcInstId
|
|
}
|
|
})
|
|
window.open(newUrl.href, '_blank')
|
|
},
|
|
evaluationResultsClick(row) {
|
|
this.$refs.evaluationResultsListRef.getData(JSON.parse(JSON.stringify(row)))
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
.tree-select .ant-select-tree-dropdown {
|
|
height: 298px !important;
|
|
}
|
|
</style>
|
|
<style scoped>
|
|
@import '~@assets/less/common.less';
|
|
|
|
.page {
|
|
text-align: right;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.box-title-text {
|
|
line-height: 1.4;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.title-text {
|
|
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: calc(100% - 126px);
|
|
height: 38px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.box-button {
|
|
height: 38px;
|
|
/*margin-top: 2px;*/
|
|
}
|
|
|
|
.text-operation {
|
|
margin-right: 8px;
|
|
}
|
|
</style> |