修改ios的pdf预览
This commit is contained in:
@@ -14,21 +14,26 @@
|
||||
<div class="details-content" style="position: relative">
|
||||
<div class="details-content-modular basic-information">
|
||||
</div>
|
||||
<div class="details-content-modular clearfix" v-for="(item, index) in dynamicFormField" :key="index" v-if="item.isShowImp === '0'">
|
||||
<div class="details-content-modular clearfix" v-for="(item, index) in dynamicFormField" :key="index"
|
||||
v-if="item.isShowImp === '0'">
|
||||
<el-collapse v-model="activeNames" @change="handleChange">
|
||||
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information" style="border-top:none;position: absolute;right: 36px;"> </div>
|
||||
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
|
||||
style="border-top:none;position: absolute;right: 36px;"></div>
|
||||
<el-collapse-item :name="item.label" @click.native="handleChange1(item.label)">
|
||||
<template slot="title">
|
||||
<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 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>
|
||||
</template>
|
||||
<div class="modular-content">
|
||||
<template v-if="item.label === '基础信息'">
|
||||
<div class="details-content-modular basic-information" style="border-top:none; border-bottom: none;">
|
||||
<div class="details-content-modular basic-information"
|
||||
style="border-top:none; border-bottom: none;">
|
||||
<div class="basic-information-content">
|
||||
<!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>-->
|
||||
<el-row :gutter="5" class="">
|
||||
@@ -64,8 +69,10 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<!--发布稿(必读)-->
|
||||
<template v-for="(child, childIndex) in item.child1" v-if="child.value && child.value.length > 0">
|
||||
<el-row :gutter="5" class="files-titles" style="border-bottom: 1px solid #E5E5E5">
|
||||
<template v-for="(child, childIndex) in item.child1"
|
||||
v-if="child.value && child.value.length > 0">
|
||||
<el-row :gutter="5" class="files-titles"
|
||||
style="border-bottom: 1px solid #E5E5E5">
|
||||
<el-col :span="8">
|
||||
<label style="float: left">{{ child.attrName }}</label>
|
||||
</el-col>
|
||||
@@ -73,7 +80,8 @@
|
||||
<template v-if="child.value && child.value.length > 0">
|
||||
<!-- 单个文件时-->
|
||||
<div style=" line-height: 32px">
|
||||
<div v-for="(file, fileIndex) in child1Func(child.value)" style="display: flex;">
|
||||
<div v-for="(file, fileIndex) in child1Func(child.value)"
|
||||
style="display: flex;">
|
||||
<span v-if="child.value && child.value.length > 0 && child.value.length === 1"
|
||||
style="display: flex; align-items: center;">
|
||||
<a style="font-size:0.2rem;color: #409EFF;cursor: pointer;display: inline-block;"
|
||||
@@ -98,16 +106,20 @@
|
||||
</template>
|
||||
<template v-else-if="child.value === null">-</template>
|
||||
<!--发布稿(必读)-->
|
||||
<template v-for="(child, childIndex) in item.child6" v-if="child.value && child.value.length > 0">
|
||||
<el-row :gutter="5" class="files-titles" style="border-bottom: 1px solid #E5E5E5">
|
||||
<template v-for="(child, childIndex) in item.child6"
|
||||
v-if="child.value && child.value.length > 0">
|
||||
<el-row :gutter="5" class="files-titles"
|
||||
style="border-bottom: 1px solid #E5E5E5">
|
||||
<el-col :span="8">
|
||||
<label style="float: left">{{ child.attrName }}</label>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<template v-if="child.value && child.value.length > 0" >
|
||||
<template v-if="child.value && child.value.length > 0">
|
||||
<div style="line-height: 32px">
|
||||
<div v-for="(file, fileIndex) in child6Func(child.value)" style="display: flex;">
|
||||
<span v-if="child.value && child.value.length > 0 && child.value.length === 1" style="display: flex; align-items: center;">
|
||||
<div v-for="(file, fileIndex) in child6Func(child.value)"
|
||||
style="display: flex;">
|
||||
<span v-if="child.value && child.value.length > 0 && child.value.length === 1"
|
||||
style="display: flex; align-items: center;">
|
||||
<a style="font-size: 0.2rem;color: #409EFF;cursor: pointer;display: inline-block"
|
||||
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
|
||||
@@ -115,13 +127,14 @@
|
||||
<!--多个文件时-->
|
||||
<div v-else-if="child.value && child.value.length > 0">
|
||||
<span style="display: flex; align-items: center;">
|
||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer"
|
||||
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <el-button v-if="child.attrField === 'FBGYWBD'" @click="showItemsModel(child.attrField)" class="decomposition-btn">标准分解单-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button v-if="child.attrField === 'FBGYWBD'" @click="showItemsModel(child.attrField)" class="decomposition-btn">标准分解单-->
|
||||
<!-- </el-button>-->
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="child.value === null">-</template>
|
||||
@@ -144,11 +157,11 @@
|
||||
:title="file.oldFileName">{{ file.oldFileName }}</a>
|
||||
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
|
||||
</span>
|
||||
<!-- <el-button v-if="child.value && child.value.length > 1"-->
|
||||
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
|
||||
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
|
||||
<!-- 更多-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button v-if="child.value && child.value.length > 1"-->
|
||||
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
|
||||
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
|
||||
<!-- 更多-->
|
||||
<!-- </el-button>-->
|
||||
</template>
|
||||
<template v-if="child.value === null">-</template>
|
||||
</el-col>
|
||||
@@ -161,18 +174,19 @@
|
||||
<label>{{ child.attrName }}</label>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<template v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child4Func(child.value)">
|
||||
<template v-if="child.value && child.value.length > 0"
|
||||
v-for="(file, fileIndex) in child4Func(child.value)">
|
||||
<span>
|
||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer"
|
||||
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{ file.oldFileName }}</a>
|
||||
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
|
||||
</span>
|
||||
<!-- <el-button v-if="child.value && child.value.length > 1"-->
|
||||
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
|
||||
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
|
||||
<!-- 更多-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button v-if="child.value && child.value.length > 1"-->
|
||||
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
|
||||
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
|
||||
<!-- 更多-->
|
||||
<!-- </el-button>-->
|
||||
</template>
|
||||
<template v-if="child.value === null">-</template>
|
||||
</el-col>
|
||||
@@ -193,11 +207,11 @@
|
||||
:title="file.oldFileName">{{ file.oldFileName }}</a>
|
||||
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
|
||||
</span>
|
||||
<!-- <el-button v-if="child.value && child.value.length > 1"-->
|
||||
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
|
||||
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
|
||||
<!-- 更多-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button v-if="child.value && child.value.length > 1"-->
|
||||
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
|
||||
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
|
||||
<!-- 更多-->
|
||||
<!-- </el-button>-->
|
||||
</template>
|
||||
<template v-if="child.value === null">-</template>
|
||||
</el-col>
|
||||
@@ -255,14 +269,19 @@
|
||||
<div class="modular-item-more" v-if="item.label === '实施日期' && item.one.length > 6">
|
||||
<div class="wrap" @click="handleToggleShowAll(item)">
|
||||
<span>{{ item.showAll ? '收起' : '更多' }}</span>
|
||||
<img :class="{'is-show-all': item.showAll}" src="@/assets/images/shangqi/img/more.png">
|
||||
<img :class="{'is-show-all': item.showAll}"
|
||||
src="@/assets/images/shangqi/img/more.png">
|
||||
</div>
|
||||
</div>
|
||||
<template v-for="(child, childIndex) in item.half" v-if="child.isShowImp === '0' && child.attrField !== 'CBCD'">
|
||||
<template v-for="(child, childIndex) in item.half"
|
||||
v-if="child.isShowImp === '0' && child.attrField !== 'CBCD'">
|
||||
<!-- modular-item half 代替标准编号-->
|
||||
<el-row :gutter="5" :key="child.id" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'" v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' ">
|
||||
<el-row :gutter="5" :key="child.id"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
|
||||
v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' ">
|
||||
<el-col :span="8">
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
|
||||
}}</label>
|
||||
</el-col>
|
||||
<el-col :span="16"></el-col>
|
||||
<span class="modular-content-p-val" :title="child.value || '-'">
|
||||
@@ -271,7 +290,8 @@
|
||||
<template v-if="child.attrField === 'XGLC' && child.value">
|
||||
<p class="modular-content-p-val">
|
||||
<span v-for="(item, index) in child.value.split(',')" :key="index">
|
||||
<a @click="processCenterClick(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
|
||||
<a @click="processCenterClick(item)"
|
||||
style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
|
||||
class="span-line" :title="item">{{ item }}</a>
|
||||
</span>
|
||||
</p>
|
||||
@@ -301,9 +321,12 @@
|
||||
</span>
|
||||
</el-row>
|
||||
<!-- 其他项-->
|
||||
<div v-else :key="child.id" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'">
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<span v-if="child.attrField === 'FGWHR'" class="modular-content-p-val clearfix" :title="child.value || '-'">
|
||||
<div v-else :key="child.id"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'">
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
|
||||
}}</label>
|
||||
<span v-if="child.attrField === 'FGWHR'" class="modular-content-p-val clearfix"
|
||||
:title="child.value || '-'">
|
||||
<template v-if="child.value">
|
||||
{{ child.value }}
|
||||
<put-question-button
|
||||
@@ -319,19 +342,24 @@
|
||||
<span v-else-if="child.attrType === 'DATE_PICKER'" class="modular-content-p-val">
|
||||
{{ child.value ? child.value : '-' }}
|
||||
</span>
|
||||
<span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val" :title="child.value || '-'">
|
||||
<span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val"
|
||||
:title="child.value || '-'">
|
||||
{{ child.value || '-' }}
|
||||
</span>
|
||||
<div v-else class="modular-content-p-flies">
|
||||
<p class="files-title" v-for="(file, fileIndex) in child.value" :key="fileIndex">
|
||||
<p class="files-title" v-for="(file, fileIndex) in child.value"
|
||||
:key="fileIndex">
|
||||
<!--发布稿、增补件单独设置下载权限-->
|
||||
<template v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'">
|
||||
<a :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">
|
||||
<template
|
||||
v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'">
|
||||
<a :title="file.oldFileName"
|
||||
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank">
|
||||
{{ file.oldFileName }}
|
||||
</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">
|
||||
{{file.oldFileName}}
|
||||
</a>
|
||||
</template>
|
||||
@@ -339,9 +367,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-for="(child, childIndex) in item.child" v-if="child.isShowImp === '0' && item.label === '关联信息'">
|
||||
<div :key="child.id" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'">
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<template v-for="(child, childIndex) in item.child"
|
||||
v-if="child.isShowImp === '0' && item.label === '关联信息'">
|
||||
<div :key="child.id"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'">
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
|
||||
}}</label>
|
||||
<!--相关流程-->
|
||||
<template v-if="child.attrField === 'XGLC' && child.value">
|
||||
<p class="modular-content-p-val">
|
||||
@@ -351,7 +382,8 @@
|
||||
</span>
|
||||
</p>
|
||||
</template>
|
||||
<template v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZH' || child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ'">
|
||||
<template
|
||||
v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZH' || child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ'">
|
||||
<p class="modular-content-p-val" v-if="child.value">
|
||||
<span v-for="(item, index) in child.value.split(',')" :key="index">
|
||||
<a @click="showReplaceStandInfo(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
|
||||
@@ -360,26 +392,31 @@
|
||||
</p>
|
||||
<span class="modular-content-p-val" v-else>-</span>
|
||||
</template>
|
||||
<span v-else-if="child.attrField === 'SVPPS'" class="modular-content-p-val" :title="child.tips || '-'">
|
||||
<span v-else-if="child.attrField === 'SVPPS'" class="modular-content-p-val"
|
||||
:title="child.tips || '-'">
|
||||
{{ !child.value || child.value === 'null' ? '-' : child.value }}
|
||||
</span>
|
||||
<span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val" :title="child.value || '-'">
|
||||
<span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val"
|
||||
:title="child.value || '-'">
|
||||
{{ child.value || '-' }}
|
||||
<!-- 被代替标准号-->
|
||||
</span>
|
||||
<div v-else class="modular-content-p-flies">
|
||||
<p class="files-title" v-for="(file, fileIndex) in child.value" :key="fileIndex">
|
||||
<p class="files-title" v-for="(file, fileIndex) in child.value"
|
||||
:key="fileIndex">
|
||||
<!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>-->
|
||||
<!--发布稿、增补件单独设置下载权限-->
|
||||
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|
||||
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|
||||
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">
|
||||
{{file.oldFileName}}
|
||||
</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">
|
||||
{{file.oldFileName}}
|
||||
</a>
|
||||
</template>
|
||||
@@ -387,7 +424,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-for="(child, childIndex) in item.one" v-if="child.isShowImp === '0' && item.label == '过程稿件'">
|
||||
<template v-for="(child, childIndex) in item.one"
|
||||
v-if="child.isShowImp === '0' && item.label == '过程稿件'">
|
||||
<!-- 增补件(必读)和勘误件不放在过程稿件里了-->
|
||||
<el-row :gutter="5"
|
||||
v-show="child.attrField !== 'ZBJBD' && child.attrField !== 'KWJ' && child.attrField !== 'FBGYWBD' "
|
||||
@@ -395,7 +433,8 @@
|
||||
:class="'modular-item half'"
|
||||
>
|
||||
<el-col :span="8">
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
|
||||
}}</label>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<span
|
||||
@@ -416,12 +455,14 @@
|
||||
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|
||||
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|
||||
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{
|
||||
file.oldFileName
|
||||
}}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{
|
||||
file.oldFileName
|
||||
}}</a>
|
||||
</template>
|
||||
@@ -438,7 +479,8 @@
|
||||
:key="child.id"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
|
||||
>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
|
||||
}}</label>
|
||||
<!--相关流程-->
|
||||
<template v-if="child.attrField === 'XGLC' && child.value">
|
||||
<p class="modular-content-p-val">
|
||||
@@ -482,12 +524,14 @@
|
||||
<!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>-->
|
||||
<!--发布稿、增补件单独设置下载权限-->
|
||||
<template v-if="child.attrField === 'GLWJ'">
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{
|
||||
file.oldFileName
|
||||
}}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{
|
||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
|
||||
:title="file.oldFileName">{{
|
||||
file.oldFileName
|
||||
}}</a>
|
||||
</template>
|
||||
@@ -502,6 +546,7 @@
|
||||
</el-collapse>
|
||||
</div>
|
||||
</div>
|
||||
<loading :loading="loadingText">加载中请稍后</loading>
|
||||
</div>
|
||||
</template>
|
||||
<!--查看分解单-->
|
||||
@@ -518,7 +563,8 @@
|
||||
<el-form inline :model="standardForm" ref="ruleForm" class="label-input-form">
|
||||
<el-form-item class="search-item">
|
||||
<el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/>
|
||||
<el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false" style="height: 32px"/>
|
||||
<el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false"
|
||||
style="height: 32px"/>
|
||||
<el-popover
|
||||
placement="bottom"
|
||||
popper-class="user-dept-popper"
|
||||
@@ -643,8 +689,10 @@
|
||||
<!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}-->
|
||||
<!-- </div>-->
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content" v-html="scope.row.termsConditions" :disabled="scope.row.termsConditions"></div>
|
||||
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
|
||||
<div slot="content" v-html="scope.row.termsConditions"
|
||||
:disabled="scope.row.termsConditions"></div>
|
||||
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
|
||||
@click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
|
||||
{{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}
|
||||
</div>
|
||||
</el-tooltip>
|
||||
@@ -953,7 +1001,8 @@
|
||||
<el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="条款名称" prop="itemsName" class="add-form-item">
|
||||
<el-input v-model="standItemEO.itemsName" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input>
|
||||
<el-input v-model="standItemEO.itemsName" :disabled="itemFormdisableflag"
|
||||
placeholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="内容简介" prop="termsConditions" class="add-form-item">
|
||||
<el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/>
|
||||
@@ -1460,7 +1509,6 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
|
||||
<!-- 关联条款抽屉-->
|
||||
<el-drawer
|
||||
ref="relatedTermsDrawer"
|
||||
@@ -1482,9 +1530,11 @@
|
||||
</div>
|
||||
<div class="demo-drawer-footer">
|
||||
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" :loading="btnLoading"
|
||||
@click="handleRelatedTermsDrawerSubmit">提交</el-button>
|
||||
@click="handleRelatedTermsDrawerSubmit">提交
|
||||
</el-button>
|
||||
<el-button class="common-button-default" size="mini" icon="el-icon-close"
|
||||
@click="handleRelatedTermsDrawerCancel">取消</el-button>
|
||||
@click="handleRelatedTermsDrawerCancel">取消
|
||||
</el-button>
|
||||
</div>
|
||||
</el-drawer>
|
||||
<!--内容简介-->
|
||||
@@ -1504,7 +1554,8 @@
|
||||
import RelatedTermsSelect from "@/pages/details/otherStandardDetails/components/RelatedTermsSelect";
|
||||
import {getBusStandFileByAttId} from 'api/process'
|
||||
import {dicTypeData} from "api/unqualProcess";
|
||||
import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig'
|
||||
import {onlyOfficeUrl, kkFileViewUrl} from '@/sysConfig'
|
||||
import Axios from "axios";
|
||||
|
||||
|
||||
export default {
|
||||
@@ -1524,10 +1575,10 @@
|
||||
}
|
||||
return value
|
||||
},
|
||||
ellipsis50 (value) {
|
||||
ellipsis50(value) {
|
||||
if (!value) return ''
|
||||
if (value.length > 50) {
|
||||
return value.slice(0,50) + '...'
|
||||
return value.slice(0, 50) + '...'
|
||||
}
|
||||
return value
|
||||
}
|
||||
@@ -1536,7 +1587,8 @@
|
||||
return {
|
||||
screenWidth: document.body.offsetWidth - 141,
|
||||
screenHeight: document.documentElement.clientHeight,
|
||||
externalStatus:'',
|
||||
externalStatus: '',
|
||||
loadingText: false,
|
||||
handleList: [],
|
||||
CycxOptions: [],
|
||||
activeNames: ['基础信息', '过程稿件', '实施日期'],
|
||||
@@ -1863,7 +1915,7 @@
|
||||
props: {},
|
||||
watch: {},
|
||||
methods: {
|
||||
handleChangeList(data){
|
||||
handleChangeList(data) {
|
||||
this.handleList = data
|
||||
},
|
||||
child1Func(child1) {
|
||||
@@ -2518,7 +2570,7 @@
|
||||
let idList = []
|
||||
ids.forEach(item => {
|
||||
let a, b
|
||||
a = item.substring(item.indexOf('(') +1)
|
||||
a = item.substring(item.indexOf('(') + 1)
|
||||
b = a.substring(0, a.lastIndexOf(')'))
|
||||
idList.push(b)
|
||||
})
|
||||
@@ -2743,28 +2795,63 @@
|
||||
if (fileSuffix !== undefined && fileSuffix !== null) {
|
||||
fileSuffix = fileSuffix.toUpperCase()
|
||||
}
|
||||
if(fileSuffix !== 'pdg' && fileSuffix !== 'PDG'){
|
||||
if (fileSuffix !== 'pdg' && fileSuffix !== 'PDG') {
|
||||
this.getBusStandFileByAttId(attId)
|
||||
.then(res => {
|
||||
if (res) {
|
||||
const editFileInfo = res
|
||||
const nowTime = new Date().getTime()
|
||||
if(editFileInfo.fileSuffix.toLowerCase() === 'pdf'){
|
||||
this.loadingText = true
|
||||
if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') {
|
||||
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||
//alert(navigator.userAgent);
|
||||
this.getFileInfo(editFileInfo.id)
|
||||
} else if (/(Android)/i.test(navigator.userAgent)) {
|
||||
//alert(navigator.userAgent);
|
||||
this.loadingText = false
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}else {
|
||||
} else {
|
||||
this.loadingText = false
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
|
||||
}
|
||||
// window.open('/#/phonePDF?fileId='+editFileInfo.id)
|
||||
} else {
|
||||
const nowTime = new Date().getTime()
|
||||
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||
window.open(kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
window.open(kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
this.$message.warning('文件不存在,预览失败')
|
||||
this.loadingText = false
|
||||
})
|
||||
}else {
|
||||
} else {
|
||||
this.$message.warning('PDG文件,不支持手机端预览')
|
||||
}
|
||||
},
|
||||
getFileInfo(fileId) {
|
||||
Axios({
|
||||
url: "/api/att/attFile/getFileInfo",
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
params: {
|
||||
fileId: fileId
|
||||
},
|
||||
headers: {'Content-Type': 'multipart/form-data'}
|
||||
}).then(res => {
|
||||
let blob = new Blob([res.data], {
|
||||
type: 'application/pdf'
|
||||
});
|
||||
if (blob.size > 0) {
|
||||
let fileURL = window.URL.createObjectURL(blob)
|
||||
this.loadingText = false
|
||||
window.open(fileURL, '_self')
|
||||
} else {
|
||||
this.getFileInfo()
|
||||
}
|
||||
})
|
||||
},
|
||||
showItemsModel(attField) {
|
||||
if (attField) {
|
||||
this.fileType = attField
|
||||
@@ -2819,18 +2906,18 @@
|
||||
} else {
|
||||
this.$message.error('请选择要下载的文件')
|
||||
}
|
||||
if(this.$route.query.pageType === 'INLAND_STAND'){
|
||||
if (this.$route.query.pageType === 'INLAND_STAND') {
|
||||
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload1',{
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload1', {
|
||||
standNumber: standNumber,
|
||||
standName: this.sarStandardsInfoEO.standName
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload1',{
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload1', {
|
||||
standNumber: standNumber,
|
||||
standName: this.sarStandardsInfoEO.standEnName
|
||||
}, {
|
||||
@@ -3270,7 +3357,7 @@
|
||||
//关联成功的提示
|
||||
handleRelatedTermsDrawerSubmit() {
|
||||
this.btnLoading = true
|
||||
if(this.handleList.length){
|
||||
if (this.handleList.length) {
|
||||
this.$refs['relatedTermsSelect'].handleSubmit(() => {
|
||||
this.selectSarStandItems()
|
||||
this.btnLoading = false
|
||||
@@ -3279,7 +3366,7 @@
|
||||
type: 'success'
|
||||
});
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
this.$message.warning('请至少勾选一条条款进行关联')
|
||||
this.btnLoading = false
|
||||
}
|
||||
@@ -3338,7 +3425,7 @@
|
||||
})()
|
||||
}
|
||||
let external = localStorage.getItem("external");
|
||||
if(external !== undefined && external !== null){
|
||||
if (external !== undefined && external !== null) {
|
||||
this.externalStatus = external
|
||||
}
|
||||
this.sarStandardsInfoEO.id = this.$route.query.id
|
||||
@@ -3444,9 +3531,9 @@
|
||||
location['child2'] = []
|
||||
} else {
|
||||
const childList = list2[0].child.filter(item => item.attrField === 'SYRZ');
|
||||
if(childList.length){
|
||||
if (childList.length) {
|
||||
childList.forEach(item => {
|
||||
if(item.value === "[]"){
|
||||
if (item.value === "[]") {
|
||||
item.value = ''
|
||||
}
|
||||
})
|
||||
@@ -3531,9 +3618,11 @@
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/mixins';
|
||||
@import '~@/assets/styles/style';
|
||||
|
||||
.files-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -3542,6 +3631,7 @@
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.files-titles {
|
||||
a {
|
||||
overflow: hidden;
|
||||
@@ -3550,6 +3640,7 @@
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/ .el-icon-circle-close:before {
|
||||
margin-left: 250px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user