update 征求意见
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<template v-if="fileList && fileList.length > 0">
|
<template v-if="fileList && fileList.length > 0">
|
||||||
<div class="file" :class="{'operate-right': operateFixedRight}" v-for="file in fileList" :key="file.id">
|
<div class="file" :class="{'operate-right': operateFixedRight}" v-for="file in fileList" :key="file.id">
|
||||||
<div class="file-info">
|
<div class="file-info" :class="{'can-download-file-info': canDownload}">
|
||||||
<a-icon type="link" />
|
<a-icon type="link" />
|
||||||
<div class="file-name" @click="handlePreview(file)">{{ file.fileName }}</div>
|
<div class="file-name" @click="handlePreview(file)">{{ file.fileName }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="file-operate">
|
<div class="file-operate">
|
||||||
<!-- 下载-->
|
<!-- 下载-->
|
||||||
<a-button type="link" icon="download" @click="handleDownload(file)">{{ $t('download') }}</a-button>
|
<a-button type="link" icon="download" @click="handleDownload(file)" v-if="canDownload">{{ $t('download') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -50,6 +50,12 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
// 是否可以下载
|
||||||
|
canDownload: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -147,6 +153,7 @@ export default {
|
|||||||
.file {
|
.file {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file:last-child {
|
.file:last-child {
|
||||||
@@ -158,13 +165,17 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
color: @primary-color;
|
color: @primary-color;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
max-width: calc(100% - 97px);
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-info > .anticon {
|
.file-info > .anticon {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.can-download-file-info {
|
||||||
|
max-width: calc(100% - 97px);
|
||||||
|
}
|
||||||
|
|
||||||
.file-name {
|
.file-name {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -11,27 +11,22 @@
|
|||||||
<!--标准名称-->
|
<!--标准名称-->
|
||||||
<div class="detail-page-part-form-item">
|
<div class="detail-page-part-form-item">
|
||||||
<label>{{ $t('standardName') }}</label>
|
<label>{{ $t('standardName') }}</label>
|
||||||
<span></span>
|
<span class="can-click-table-text" @click="toDetailPage">{{ detailFormData.standardNameNumber }}</span>
|
||||||
</div>
|
</div>
|
||||||
<!--附件-->
|
<!--附件-->
|
||||||
<div class="detail-page-part-form-item">
|
<div class="detail-page-part-form-item">
|
||||||
<label>{{ $t('businessSupport.questionAnswer.attach') }}</label>
|
<label>{{ $t('businessSupport.questionAnswer.attach') }}</label>
|
||||||
<file-echo :operate-fixed-right="false" />
|
<file-echo :operate-fixed-right="false" :file-ids="detailFormData.standardTextFileId" :can-download="false" />
|
||||||
</div>
|
</div>
|
||||||
<!--流程稿件-->
|
<!--流程稿件-->
|
||||||
<div class="detail-page-part-form-item">
|
<div class="detail-page-part-form-item">
|
||||||
<label>{{ $t('businessSupport.askForAdvice.processManuscript') }}</label>
|
<label>{{ $t('businessSupport.askForAdvice.processManuscript') }}</label>
|
||||||
<file-echo :operate-fixed-right="false" />
|
<file-echo :operate-fixed-right="false" :file-ids="detailFormData.relatedFile" :can-download="false" />
|
||||||
</div>
|
|
||||||
<!--上传日期-->
|
|
||||||
<div class="detail-page-part-form-item">
|
|
||||||
<label>{{ $t('businessSupport.askForAdvice.uploadDate') }}</label>
|
|
||||||
<span></span>
|
|
||||||
</div>
|
</div>
|
||||||
<!--征求意见周期-->
|
<!--征求意见周期-->
|
||||||
<div class="detail-page-part-form-item">
|
<div class="detail-page-part-form-item">
|
||||||
<label>{{ $t('businessSupport.askForAdvice.consultationCycle') }}</label>
|
<label>{{ $t('businessSupport.askForAdvice.consultationCycle') }}</label>
|
||||||
<span></span>
|
<span>{{ detailFormData.consultationPeriod }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -58,8 +53,13 @@
|
|||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
|
<!--修改前的跳转标准详情-->
|
||||||
<template v-slot:standardDetail="{text, record}">
|
<template v-slot:standardDetail="{text, record}">
|
||||||
<a-button type="primary">{{ $t('docTool.split.clickToView') }}</a-button>
|
<a-button type="primary" @click="toDetailPage">{{ $t('docTool.split.clickToView') }}</a-button>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-slot:file="{text}">
|
||||||
|
<file-echo :file-ids="text" :operate-fixed-right="false" :can-download="false" />
|
||||||
</template>
|
</template>
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -73,6 +73,7 @@ import { downFile } from '../../../api/manage'
|
|||||||
import JTable from '../../../components/jero/JTable'
|
import JTable from '../../../components/jero/JTable'
|
||||||
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||||
import { queryAskForAdviceDetail } from '../../../api/businessSupport'
|
import { queryAskForAdviceDetail } from '../../../api/businessSupport'
|
||||||
|
import { StandardSource } from '../../../enums/commonEnums'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AskForAdviceDetail',
|
name: 'AskForAdviceDetail',
|
||||||
@@ -81,7 +82,6 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
toggleStatus: true,
|
toggleStatus: true,
|
||||||
detailData: {},
|
|
||||||
disableMixinCreated: true,
|
disableMixinCreated: true,
|
||||||
loading: false,
|
loading: false,
|
||||||
columns: [
|
columns: [
|
||||||
@@ -165,7 +165,8 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'basisFile',
|
dataIndex: 'basisFile',
|
||||||
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
|
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
|
||||||
width: 120
|
width: 180,
|
||||||
|
scopedSlots: { customRender: 'file' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
/* 分页参数 */
|
/* 分页参数 */
|
||||||
@@ -179,7 +180,8 @@ export default {
|
|||||||
showQuickJumper: true,
|
showQuickJumper: true,
|
||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
total: 0
|
total: 0
|
||||||
}
|
},
|
||||||
|
detailFormData: {} // 上方表单的数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -195,8 +197,16 @@ export default {
|
|||||||
}
|
}
|
||||||
queryAskForAdviceDetail(params).then(res => {
|
queryAskForAdviceDetail(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
console.log(res.result)
|
// 处理表格数据
|
||||||
this.dataSource = res.result || []
|
const tableResult = res.result.processFbConsultationList
|
||||||
|
this.dataSource = tableResult.records || []
|
||||||
|
if (tableResult.total) {
|
||||||
|
this.ipagination.total = tableResult.total
|
||||||
|
} else {
|
||||||
|
this.ipagination.total = 0
|
||||||
|
}
|
||||||
|
// 处理表单数据
|
||||||
|
this.detailFormData = res.result.processFbStandardConsultation || {}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
@@ -260,6 +270,40 @@ export default {
|
|||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
this.initDetailData()
|
this.initDetailData()
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 跳转标准详情
|
||||||
|
*/
|
||||||
|
toDetailPage () {
|
||||||
|
const source = this.detailFormData.source
|
||||||
|
const standardId = this.detailFormData.standardId
|
||||||
|
let path
|
||||||
|
// 根据来源跳转不同的详情页
|
||||||
|
switch (source) {
|
||||||
|
// 国内
|
||||||
|
case StandardSource.DOMESTIC.value:
|
||||||
|
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||||
|
break
|
||||||
|
// 海外
|
||||||
|
case StandardSource.OVERSEAS.value:
|
||||||
|
path = '/standardRegulationLibrary/OverseasStandardDetail'
|
||||||
|
break
|
||||||
|
// 企标
|
||||||
|
case StandardSource.ENTERPRISE.value:
|
||||||
|
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if (!path) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const query = {
|
||||||
|
id: standardId
|
||||||
|
}
|
||||||
|
this.$openPageNewSheet({
|
||||||
|
path, query
|
||||||
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -277,5 +321,13 @@ export default {
|
|||||||
label {
|
label {
|
||||||
width: 6.5rem;
|
width: 6.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ .file-info {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.can-click-table-text {
|
||||||
|
color: @primary-color !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user