feat: 迁移代码标准库分页url替换 标准详情对应字段修改

This commit is contained in:
super_liu
2021-07-12 18:08:23 +08:00
parent d478c6bc53
commit f5d20984db
10 changed files with 66 additions and 51 deletions
@@ -226,7 +226,7 @@ export default {
this.quoteIdList1 = [] this.quoteIdList1 = []
this.replaceLawsNumForm.quoteIdList = '' this.replaceLawsNumForm.quoteIdList = ''
} }
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -238,7 +238,7 @@ export default {
} }
this.replaceLawsNumForm.page = 1 this.replaceLawsNumForm.page = 1
this.replacePage = 1 this.replacePage = 1
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -265,7 +265,7 @@ export default {
this.replaceLawsNumForm.quoteIdList = '' this.replaceLawsNumForm.quoteIdList = ''
} }
this.replaceLawsNumForm.standType = this.config.attrField === 'CBBH' ? 'FOREIGN' : 'INLAND' this.replaceLawsNumForm.standType = this.config.attrField === 'CBBH' ? 'FOREIGN' : 'INLAND'
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -226,7 +226,7 @@ export default {
} }
this.replaceLawsNumForm.page = 1 this.replaceLawsNumForm.page = 1
this.replacePage = 1 this.replacePage = 1
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -253,7 +253,7 @@ export default {
this.replaceLawsNumForm.quoteIdList = '' this.replaceLawsNumForm.quoteIdList = ''
} }
// this.replaceLawsNumForm.standType = this.config.attrField === 'CBBH' ? 'FOREIGN' : 'INLAND' // this.replaceLawsNumForm.standType = this.config.attrField === 'CBBH' ? 'FOREIGN' : 'INLAND'
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -256,7 +256,7 @@ export default {
formData.standType = this.replaceLawsNumForm.dataSource === 'INLAND_STAND' ? 'INLAND' formData.standType = this.replaceLawsNumForm.dataSource === 'INLAND_STAND' ? 'INLAND'
: this.replaceLawsNumForm.dataSource === 'FOREIGN_STAND' ? 'FOREIGN' : '' : this.replaceLawsNumForm.dataSource === 'FOREIGN_STAND' ? 'FOREIGN' : ''
formData.standNumber = formData.numberName formData.standNumber = formData.numberName
let url = this.replaceLawsNumForm.dataSource === 'BUSINESS' ? 'lawss/sarBussionessStand/getSarBussionStandPage' : 'lawss/sarStandardsInfo/getSarStandardsInfoPage' let url = this.replaceLawsNumForm.dataSource === 'BUSINESS' ? 'lawss/sarBussionessStand/getSarBussionStandPage' : 'sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage'
this.$http.get(url, formData, { this.$http.get(url, formData, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
@@ -234,7 +234,7 @@ export default {
this.quoteIdList1 = [] this.quoteIdList1 = []
this.replaceLawsNumForm.quoteIdList = '' this.replaceLawsNumForm.quoteIdList = ''
} }
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -8,36 +8,6 @@
<!--主体内容--> <!--主体内容-->
<div class="details-content"> <div class="details-content">
<div class="details-content-modular basic-information"> <div class="details-content-modular basic-information">
<div class="modular-header">
<div class="modular-header-title"><i class="icon-modular-title" /><span>标准信息</span>
</div>
<div class="modular-header-btn">
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
<!-- <el-button class="relation-btn" @click="knowledgeSharing">标准问答</el-button>-->
<!-- <el-button class="relation-btn" @click="showItemsModel()">标准分解单</el-button>-->
</div>
</div>
<div class="basic-information-content">
<p><label>中文名称</label><span>{{ sarStandardsInfoEO.standName || '-' }}</span></p>
<p><label>英文名称</label><span>{{ sarStandardsInfoEO.standEnName || '-' }}</span></p>
<p style="color: #C42626;">
<label>标准号</label>
<span v-if="sarStandardsInfoEO.standYear">{{ sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear }}</span>
<span v-else>{{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}</span>
</p>
<p>
<label
title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。"
>标准状态<i class="el-icon-warning-outline"></i></label>
<span style="color: #409EFF;">{{ sarStandardsInfoEO.textStatus || '-' }}</span>
</p>
<p><label>标准发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p>
<!-- <p><label>文本说明</label><span style="color: #999999">{{ sarStandardsInfoEO.synopsis || '-' }}</span></p>-->
<!-- <p><label>重要度</label><span>{{ sarStandardsInfoEO.isRelateAccess === '1' ? 'A' : 'B'}}</span></p>-->
<!-- <p><label>纳入标准法规清单的国家/地区</label><span>{{ sarStandardsInfoEO.accessCountry || '-' }}</span></p>-->
</div>
</div> </div>
<div <div
class="details-content-modular clearfix" class="details-content-modular clearfix"
@@ -45,10 +15,54 @@
:key="index" :key="index"
v-if="item.isShowImp === '0'" v-if="item.isShowImp === '0'"
> >
<div class="modular-header"> <div class="modular-header" v-if="item.label !== '基础信息'">
<div class="modular-header-title"><i class="icon-modular-title" /><span>{{ item.label }}</span></div> <div class="modular-header-title"><i class="icon-modular-title" /><span>{{ item.label }}</span></div>
</div> </div>
<div class="modular-header" v-if="item.label === '基础信息'">
<div class="modular-header-title"><i class="icon-modular-title" /><span>{{ item.label }}</span></div>
<div class="details-content-modular basic-information" style="border-top:none">
<div class="modular-header">
<!-- <div class="modular-header-title"><i class="icon-modular-title" /><span>基础信息</span>-->
<!-- </div>-->
<div class="modular-header-btn">
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
<!-- <el-button class="relation-btn" @click="knowledgeSharing">标准问答</el-button>-->
<!-- <el-button class="relation-btn" @click="showItemsModel()">标准分解单</el-button>-->
</div>
</div>
</div>
</div>
<div class="modular-content"> <div class="modular-content">
<template v-if="item.label === '基础信息'" >
<div class="details-content-modular basic-information" style="border-top:none">
<div class="basic-information-content">
<p><label>标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>
<p style="color: #C42626;">
<label>标准编号</label>
<span v-if="sarStandardsInfoEO.standYear">{{ sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear }}</span>
<span v-else>{{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}</span>
</p>
<p><label>标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>
<p><label>中文名称</label><span>{{ sarStandardsInfoEO.standName || '-' }}</span></p>
<p><label>英文名称</label><span>{{ sarStandardsInfoEO.standEnName || '-' }}</span></p>
<p><label>标准性质</label><span>{{ sarStandardsInfoEO.standNature || '-' }}</span></p>
<p>
<label
title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。"
>文本状态<i class="el-icon-warning-outline"></i></label>
<span style="color: #409EFF;">{{ sarStandardsInfoEO.textStatus || '-' }}</span>
</p>
<p><label>发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p>
<p><label>是否纳入认证清单</label><span>{{sarStandardsInfoEO.isRelateAccess ? (sarStandardsInfoEO.isRelateAccess === '1' ? '是' : '否') : '-'}}</span></p>
<p><label>标准体系</label><span>{{ sarStandardsInfoEO.standSystemName || '-' }}</span></p>
<!-- <p><label>文本说明</label><span style="color: #999999">{{ sarStandardsInfoEO.synopsis || '-' }}</span></p>-->
<!-- <p><label>重要度</label><span>{{ sarStandardsInfoEO.isRelateAccess === '1' ? 'A' : 'B'}}</span></p>-->
<!-- <p><label>纳入标准法规清单的国家/地区</label><span>{{ sarStandardsInfoEO.accessCountry || '-' }}</span></p>-->
</div>
</div>
</template>
<template <template
v-for="(child, childIndex) in item.half" v-for="(child, childIndex) in item.half"
v-if="child.isShowImp === '0'" v-if="child.isShowImp === '0'"
@@ -225,20 +239,21 @@
v-for="(file, fileIndex) in child.value" v-for="(file, fileIndex) in child.value"
:key="fileIndex" :key="fileIndex"
> >
|{{file.id}}|
<!--发布稿增补件单独设置下载权限--> <!--发布稿增补件单独设置下载权限-->
<template v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'"> <template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|| child.attrField === 'JDWJ'">
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a>
<i <i
title="下载" title="下载"
@click="downloadFile(file.id)" @click="downloadFile(file.id)"
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'WGJP2VRZSJ77EGH2447M' : '44KKMQHU3CNRRPNNF8VN'"
/> />
<i <i
title="下载带水印" title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)" @click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2" class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'EZVNMCLGSB5LWG6XRRL3' : 'VSUKQX3NZW4N8CT5VQE3'"
/> />
<span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
@@ -259,12 +274,12 @@
<span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
</p> </p>
<el-button <!-- <el-button-->
v-if="child.attrField === 'FBGBJBD' || child.attrField === 'SSG' || child.attrField === 'ZQYJG' || child.attrField === 'BPG' || child.attrField === 'ZBJBD' || child.attrField === 'CA'" <!-- v-if="child.attrField === 'FBGBJBD' || child.attrField === 'SSG' || child.attrField === 'ZQYJG' || child.attrField === 'BPG' || child.attrField === 'ZBJBD' || child.attrField === 'CA'"-->
@click="showItemsModel(child.attrField)" <!-- @click="showItemsModel(child.attrField)"-->
class="decomposition-btn" <!-- class="decomposition-btn"-->
icon="icon-separate" <!-- icon="icon-separate"-->
>标准分解单</el-button> <!-- >标准分解单2</el-button>-->
</div> </div>
</div> </div>
@@ -609,7 +609,7 @@ export default {
getDomesticStandardTable (item) { getDomesticStandardTable (item) {
this.sarStandardsSearch.page = this.configPage this.sarStandardsSearch.page = this.configPage
this.sarStandardsSearch.validFlag = 0 this.sarStandardsSearch.validFlag = 0
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.sarStandardsSearch, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.sarStandardsSearch, {
_this: this, loading: 'loading' _this: this, loading: 'loading'
}, res => { }, res => {
if (res.ok) { if (res.ok) {
@@ -317,7 +317,7 @@ export default {
this.replaceLawsNumForm.quoteIdList = '' this.replaceLawsNumForm.quoteIdList = ''
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.replaceLawsNumForm, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
}, res => { }, res => {
@@ -2983,7 +2983,7 @@ export default {
} }
formData['attrSearchStr'] = JSON.stringify(attrSearchMap) formData['attrSearchStr'] = JSON.stringify(attrSearchMap)
this.SarExportSearchEo = item || this.sarBussionessSearch this.SarExportSearchEo = item || this.sarBussionessSearch
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', formData, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
_this: this, loading: 'loading' _this: this, loading: 'loading'
}, res => { }, res => {
for (let i = 0; i < res.data.list.length; i++) { for (let i = 0; i < res.data.list.length; i++) {
@@ -146,7 +146,7 @@ export default {
menuId: 'nomenu', menuId: 'nomenu',
standType: 'ALL' standType: 'ALL'
} }
this.$http.get('lawss/sarStandardsInfo/getSarStandardsInfoPage', this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',
formData, formData,
{ {
_this: this, _this: this,