详情页标签闭合

This commit is contained in:
shenyanpei
2022-01-05 15:26:16 +08:00
parent dae5bb6228
commit 0ccb9862a7
+155 -125
View File
@@ -65,11 +65,11 @@
}}</span></p> }}</span></p>
<!--发布稿(必读)--> <!--发布稿(必读)-->
<template v-for="(child, childIndex) in item.child1"> <template v-for="(child, childIndex) in item.child1">
<p class="files-title"> <div class="files-title" style="border-bottom: 1px solid #E5E5E5">
<label style=" margin-right: 164px;">{{ child.attrName }}</label> <label style="margin-right: 164px;">{{ child.attrName }}</label>
<template v-if="child.value && child.value.length > 0" <template v-if="child.value && child.value.length > 0"
v-for="(file, fileIndex) in child1Func(child.value)"> v-for="(file, fileIndex) in child1Func(child.value)">
<!-- 单个文件时--> <!-- 单个文件时-->
<span v-if="child.value && child.value.length > 0 && child.value.length === 1"> <span v-if="child.value && child.value.length > 0 && child.value.length === 1">
<a style="font-size: 16px;color: #409EFF;cursor: pointer" <a style="font-size: 16px;color: #409EFF;cursor: pointer"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
@@ -88,7 +88,7 @@
/> />
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</span> </span>
<!-- 多个文件时--> <!-- 多个文件时-->
<span v-else-if="child.value && child.value.length > 0"> <span v-else-if="child.value && child.value.length > 0">
<div style="margin-left: 19%;margin-top: -60px;line-height: 90px"> <div style="margin-left: 19%;margin-top: -60px;line-height: 90px">
<a style="font-size: 16px;color: #409EFF;cursor: pointer" <a style="font-size: 16px;color: #409EFF;cursor: pointer"
@@ -119,15 +119,14 @@
icon="icon-separate" icon="icon-separate"
>标准分解单 >标准分解单
</el-button> </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);"--> <!-- <el-button v-if="child.value && child.value.length > 1"-->
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">--> <!-- 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>-->
</template> </template>
<template v-else-if="child.value === null">-</template> <template v-else-if="child.value === null">-</template>
</p>
</template>
<!--修订本--> <!--修订本-->
<template v-for="(child, childIndex) in item.child5"> <template v-for="(child, childIndex) in item.child5">
<p class="files-title"> <p class="files-title">
@@ -257,6 +256,7 @@
<template v-if="child.value === null">-</template> <template v-if="child.value === null">-</template>
</p> </p>
</template> </template>
</div>
<p class="half"> <p class="half">
<label style=" margin-right: 150px;" <label style=" margin-right: 150px;"
title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。"
@@ -287,6 +287,13 @@
<!-- <p><label>文本说明:</label><span style="color: #999999">{{ sarStandardsInfoEO.synopsis || '-' }}</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.isRelateAccess === '1' ? 'A' : 'B'}}</span></p>-->
<!-- <p><label>纳入标准法规清单的国家/地区:</label><span>{{ sarStandardsInfoEO.accessCountry || '-' }}</span></p>--> <!-- <p><label>纳入标准法规清单的国家/地区:</label><span>{{ sarStandardsInfoEO.accessCountry || '-' }}</span></p>-->
</template>
<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">
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
@@ -384,7 +391,9 @@
> >
<!--发布稿、增补件单独设置下载权限--> <!--发布稿、增补件单独设置下载权限-->
<template v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'"> <template v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'">
<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)"
@@ -400,7 +409,9 @@
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</template> </template>
<template v-else> <template v-else>
<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)"
@@ -479,7 +490,9 @@
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG' <template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA' || child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'"> || child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
<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)"
@@ -497,7 +510,9 @@
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</template> </template>
<template v-else> <template v-else>
<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)"
@@ -527,7 +542,7 @@
v-for="(child, childIndex) in item.one" v-for="(child, childIndex) in item.one"
v-if="child.isShowImp === '0' && item.label == '过程稿件'" v-if="child.isShowImp === '0' && item.label == '过程稿件'"
> >
<!-- 增补件(必读)和勘误件不放在过程稿件里了--> <!-- 增补件(必读)和勘误件不放在过程稿件里了-->
<div <div
v-show="child.attrField !== 'ZBJBD' && child.attrField !== 'KWJ'" v-show="child.attrField !== 'ZBJBD' && child.attrField !== 'KWJ'"
:key="child.id" :key="child.id"
@@ -658,7 +673,9 @@
<!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>--> <!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>-->
<!--发布稿、增补件单独设置下载权限--> <!--发布稿、增补件单独设置下载权限-->
<template v-if="child.attrField === 'GLWJ'"> <template v-if="child.attrField === 'GLWJ'">
<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)"
@@ -679,7 +696,9 @@
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</template> </template>
<template v-else> <template v-else>
<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)"
@@ -709,12 +728,6 @@
</div> </div>
</template> </template>
<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">
</div>
</div>
</div> </div>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
@@ -814,7 +827,8 @@
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
@click="editResolveList" @click="editResolveList"
>编辑</el-button> >编辑
</el-button>
</div> </div>
<div class="content"> <div class="content">
<el-table <el-table
@@ -893,10 +907,10 @@
width="90" width="90"
> >
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="responsibleUnit"--> <!-- prop="responsibleUnit"-->
<!-- label="责任部门">--> <!-- label="责任部门">-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column <el-table-column
prop="dutyEngineer" prop="dutyEngineer"
label="责任工程师" label="责任工程师"
@@ -956,7 +970,7 @@
<!-- @pageSizeChange="pageSizeChange"></pagination>--> <!-- @pageSizeChange="pageSizeChange"></pagination>-->
</el-drawer> </el-drawer>
<!-- 编辑分解单的条款--> <!-- 编辑分解单的条款-->
<el-drawer <el-drawer
title="编辑" title="编辑"
:visible.sync="editResolveListShowflag" :visible.sync="editResolveListShowflag"
@@ -1032,11 +1046,11 @@
v-model="resolveListForm.xccssrq" v-model="resolveListForm.xccssrq"
placeholder="请选择新车型实施日期"> placeholder="请选择新车型实施日期">
</el-date-picker> </el-date-picker>
<!-- <el-input--> <!-- <el-input-->
<!-- style="width: 45%"--> <!-- style="width: 45%"-->
<!-- v-model.trim="resolveListForm.xccssrq"--> <!-- v-model.trim="resolveListForm.xccssrq"-->
<!-- clearable--> <!-- clearable-->
<!-- />--> <!-- />-->
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="在产车实施日期(文本)" label="在产车实施日期(文本)"
@@ -1050,11 +1064,11 @@
v-model="resolveListForm.zccssrq" v-model="resolveListForm.zccssrq"
placeholder="请选择在产车实施日期"> placeholder="请选择在产车实施日期">
</el-date-picker> </el-date-picker>
<!-- <el-input--> <!-- <el-input-->
<!-- style="width: 45%"--> <!-- style="width: 45%"-->
<!-- v-model.trim="resolveListForm.zccssrq"--> <!-- v-model.trim="resolveListForm.zccssrq"-->
<!-- clearable--> <!-- clearable-->
<!-- />--> <!-- />-->
</el-form-item> </el-form-item>
<!--适用车型--> <!--适用车型-->
<template> <template>
@@ -1077,16 +1091,16 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</template> </template>
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- label="责任工程师"--> <!-- label="责任工程师"-->
<!-- class="add-form-item"--> <!-- class="add-form-item"-->
<!-- >--> <!-- >-->
<!-- <el-input--> <!-- <el-input-->
<!-- style="width: 45%"--> <!-- style="width: 45%"-->
<!-- v-model="resolveListForm.dutyEngineer"--> <!-- v-model="resolveListForm.dutyEngineer"-->
<!-- clearable--> <!-- clearable-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item <el-form-item
label="符合性状态" label="符合性状态"
class="add-form-item" class="add-form-item"
@@ -1095,11 +1109,11 @@
<el-radio v-model="resolveListForm.complianceRequire" label="1">符合</el-radio> <el-radio v-model="resolveListForm.complianceRequire" label="1">符合</el-radio>
<el-radio v-model="resolveListForm.complianceRequire" label="2">不符合</el-radio> <el-radio v-model="resolveListForm.complianceRequire" label="2">不符合</el-radio>
</template> </template>
<!-- <el-input--> <!-- <el-input-->
<!-- style="width: 45%"--> <!-- style="width: 45%"-->
<!-- v-model="resolveListForm.complianceRequire"--> <!-- v-model="resolveListForm.complianceRequire"-->
<!-- clearable--> <!-- clearable-->
<!-- />--> <!-- />-->
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="合规性分析" label="合规性分析"
@@ -1120,14 +1134,16 @@
:loading="editLoading" :loading="editLoading"
icon="el-icon-check" icon="el-icon-check"
@click="saveEditInfo" @click="saveEditInfo"
>提交</el-button >提交
</el-button
> >
<el-button <el-button
size="mini" size="mini"
icon="el-icon-close" icon="el-icon-close"
class="common-button-default" class="common-button-default"
@click="resetEditResolveListForm" @click="resetEditResolveListForm"
>取消</el-button >取消
</el-button
> >
</div> </div>
</el-drawer> </el-drawer>
@@ -1300,11 +1316,15 @@
<div class="see-drawer-content"> <div class="see-drawer-content">
<div class="see-drawer-div"> <div class="see-drawer-div">
<label class="see-drawer-name" style="font-size: 14px" title="条款号">条款号</label> <label class="see-drawer-name" style="font-size: 14px" title="条款号">条款号</label>
<span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.itemsNum">{{ standShowItemEO.itemsNum }}</span> <span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.itemsNum">{{
standShowItemEO.itemsNum
}}</span>
</div> </div>
<div class="see-drawer-div"> <div class="see-drawer-div">
<label class="see-drawer-name" style="font-size: 14px" title="条款名称">条款名称</label> <label class="see-drawer-name" style="font-size: 14px" title="条款名称">条款名称</label>
<span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.itemsName">{{ standShowItemEO.itemsName }}</span> <span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.itemsName">{{
standShowItemEO.itemsName
}}</span>
</div> </div>
<div class="see-drawer-div"> <div class="see-drawer-div">
<label class="see-drawer-name" style="font-size: 14px" title="内容简介">条款内容</label> <label class="see-drawer-name" style="font-size: 14px" title="内容简介">条款内容</label>
@@ -1338,7 +1358,9 @@
</div> </div>
<div class="see-drawer-div"> <div class="see-drawer-div">
<label class="see-drawer-name" style="font-size: 14px" title="适用车型">适用车型</label> <label class="see-drawer-name" style="font-size: 14px" title="适用车型">适用车型</label>
<span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.applyArctic">{{ standShowItemEO.applyArctic }}</span> <span class="see-drawer-val" style="font-size: 12px" :title="standShowItemEO.applyArctic">{{
standShowItemEO.applyArctic
}}</span>
</div> </div>
<div class="see-drawer-div"> <div class="see-drawer-div">
<label class="see-drawer-name" style="font-size: 14px" title="责任部门">责任部门</label> <label class="see-drawer-name" style="font-size: 14px" title="责任部门">责任部门</label>
@@ -1744,7 +1766,7 @@ import CustomSelectArray from '@/components/CustomFormComponents/SelectArray'
import CustomOrg from '@/components/CustomFormComponents/OrgTree' import CustomOrg from '@/components/CustomFormComponents/OrgTree'
import {dateFormat} from '@/common/date' import {dateFormat} from '@/common/date'
import RelatedTermsSelect from './components/RelatedTermsSelect' import RelatedTermsSelect from './components/RelatedTermsSelect'
import { getBusStandFileByAttId } from 'api/process' import {getBusStandFileByAttId} from 'api/process'
import {dicTypeData} from "api/unqualProcess"; import {dicTypeData} from "api/unqualProcess";
@@ -1769,7 +1791,7 @@ export default {
data() { data() {
return { return {
CycxOptions: [], CycxOptions: [],
activeNames: ['基础信息','过程稿件','实施日期'], activeNames: ['基础信息', '过程稿件', '实施日期'],
activeState: true, activeState: true,
itemExistList: [], itemExistList: [],
interpretationContent: '', interpretationContent: '',
@@ -1940,36 +1962,36 @@ export default {
}, },
applyArcticOptions: { applyArcticOptions: {
attrName: '适用车型', attrName: '适用车型',
options:[] options: []
}, // 适用车辆类型下拉框 }, // 适用车辆类型下拉框
modalshowflagZRBM: false, modalshowflagZRBM: false,
nodeListZRBM: [], nodeListZRBM: [],
nodeList2:[], nodeList2: [],
nodeList:[], nodeList: [],
userType:'', userType: '',
drawerTitle:'', drawerTitle: '',
modalShowRoleFlag:false, modalShowRoleFlag: false,
emergyKindOptions: [], // 能源种类下拉框 emergyKindOptions: [], // 能源种类下拉框
requestOptions: [], requestOptions: [],
BZFGGXOUIUJ: [], // 企标覆盖关系 BZFGGXOUIUJ: [], // 企标覆盖关系
itemModalTitle: '', itemModalTitle: '',
modalItemaddShowflag: false, modalItemaddShowflag: false,
editResolveListShowflag: false, editResolveListShowflag: false,
resolveListForm:{ resolveListForm: {
id:'', id: '',
itemsNum:'', itemsNum: '',
itemsName:'', itemsName: '',
termsConditions:'', termsConditions: '',
readContent:'', readContent: '',
comparedWithPrevious:'', comparedWithPrevious: '',
xccssrq:'', xccssrq: '',
zccssrq:'', zccssrq: '',
applyArctic:'', applyArctic: '',
dutyEngineer:'', dutyEngineer: '',
complianceRequire:'', complianceRequire: '',
complianceState:'', complianceState: '',
}, },
editLoading:false, editLoading: false,
itemAddOrUPdateFlag: '', itemAddOrUPdateFlag: '',
itemFormdisableflag: false, // 查看标准条款不可编辑 itemFormdisableflag: false, // 查看标准条款不可编辑
recommendList: [], recommendList: [],
@@ -2094,7 +2116,7 @@ export default {
watch: {}, watch: {},
methods: { methods: {
child1Func(child1) { child1Func(child1) {
console.log('1943',child1) console.log('1943', child1)
const list = [] const list = []
if (child1 && child1.length > 1) { if (child1 && child1.length > 1) {
for (let i = 0; i < child1.length; i++) { for (let i = 0; i < child1.length; i++) {
@@ -2105,7 +2127,7 @@ export default {
return child1 return child1
}, },
child3Func(child3) { child3Func(child3) {
console.log('1943',child3) console.log('1943', child3)
const list = [] const list = []
if (child3 && child3.length > 1) { if (child3 && child3.length > 1) {
list.push(child3[0]) list.push(child3[0])
@@ -2114,7 +2136,7 @@ export default {
return child3 return child3
}, },
child4Func(child4) { child4Func(child4) {
console.log('1943',child4) console.log('1943', child4)
const list = [] const list = []
if (child4 && child4.length > 1) { if (child4 && child4.length > 1) {
list.push(child4[0]) list.push(child4[0])
@@ -2123,7 +2145,7 @@ export default {
return child4 return child4
}, },
child5Func(child5) { child5Func(child5) {
console.log('1943',child5) console.log('1943', child5)
const list = [] const list = []
if (child5 && child5.length > 1) { if (child5 && child5.length > 1) {
list.push(child5[0]) list.push(child5[0])
@@ -2728,26 +2750,26 @@ export default {
nameList += item.name nameList += item.name
// } // }
}) })
if (this.drawerTitle === '责任部门'){ if (this.drawerTitle === '责任部门') {
this.sarStandardsInfoEO.ZRBMId = idList; this.sarStandardsInfoEO.ZRBMId = idList;
this.sarStandardsInfoEO['ZRBM'] = nameList; this.sarStandardsInfoEO['ZRBM'] = nameList;
}else if (this.drawerTitle === '查询责任部门'){ } else if (this.drawerTitle === '查询责任部门') {
this.advanceSearchMapping['ZRBM'] = nameList this.advanceSearchMapping['ZRBM'] = nameList
} }
}, },
choiceZRRS (type, title, id) { choiceZRRS(type, title, id) {
console.log('2077',type, title, id) console.log('2077', type, title, id)
this.nodeList = [] this.nodeList = []
this.nodeList.push(id) this.nodeList.push(id)
this.userType = type this.userType = type
this.drawerTitle = title this.drawerTitle = title
this.modalShowRoleFlag = true this.modalShowRoleFlag = true
}, },
checkedRole2 (data) { checkedRole2(data) {
console.log('1712',this.drawerTitle) console.log('1712', this.drawerTitle)
let idList = '' let idList = ''
let nameList = '' let nameList = ''
data.forEach( item => { data.forEach(item => {
if (nameList.length > 0) { if (nameList.length > 0) {
nameList += ',' nameList += ','
idList += ',' idList += ','
@@ -2755,7 +2777,7 @@ export default {
idList += item.id idList += item.id
nameList += item.name nameList += item.name
}) })
if (this.drawerTitle === '查询责任工程师'){ if (this.drawerTitle === '查询责任工程师') {
this.resolveListForm.dutyEngineer = nameList this.resolveListForm.dutyEngineer = nameList
} }
@@ -2765,38 +2787,38 @@ export default {
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
// 当表格数据都没有被勾选的时候 就返回 // 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除 // 主要用于将当前勾选的表格状态清除
if(selection.length === 0) return if (selection.length === 0) return
this.$refs.multipleTable.toggleRowSelection(row, true) this.$refs.multipleTable.toggleRowSelection(row, true)
}, },
selectAllStand(alldata) { selectAllStand(alldata) {
this.selectedItemList = [] this.selectedItemList = []
this.selectedItemList.push(alldata[alldata.length - 1]) this.selectedItemList.push(alldata[alldata.length - 1])
console.log('2333',this.selectedItemList) console.log('2333', this.selectedItemList)
}, },
editResolveList(){ editResolveList() {
console.log('2337',this.selectedItemList) console.log('2337', this.selectedItemList)
if (this.selectedItemList.length>0){ if (this.selectedItemList.length > 0) {
this.editResolveListShowflag = true this.editResolveListShowflag = true
let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0])) let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0]))
console.log('2518',editItem) console.log('2518', editItem)
this.resolveListForm = editItem this.resolveListForm = editItem
this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' this.resolveListForm.termsConditions = this.resolveListForm.termsConditions ? this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' ') : ''
// this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):''
this.resolveListForm.xccssrq = this.resolveListForm.xccssrq?this.resolveListForm.xccssrq.split(','):'' this.resolveListForm.xccssrq = this.resolveListForm.xccssrq ? this.resolveListForm.xccssrq.split(',') : ''
this.resolveListForm.zccssrq = this.resolveListForm.zccssrq?this.resolveListForm.zccssrq.split(','):'' this.resolveListForm.zccssrq = this.resolveListForm.zccssrq ? this.resolveListForm.zccssrq.split(',') : ''
}else { } else {
this.$message.warning('请选择一条数据') this.$message.warning('请选择一条数据')
} }
}, },
saveEditInfo(){ saveEditInfo() {
console.log('2530',typeof this.resolveListForm.xccssrq) console.log('2530', typeof this.resolveListForm.xccssrq)
if (typeof this.resolveListForm.xccssrq !== 'string'){ if (typeof this.resolveListForm.xccssrq !== 'string') {
this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',')
} }
if (typeof this.resolveListForm.zccssrq !== 'string'){ if (typeof this.resolveListForm.zccssrq !== 'string') {
this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',') this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',')
} }
if (typeof this.resolveListForm.applyArctic !== 'string'){ if (typeof this.resolveListForm.applyArctic !== 'string') {
this.resolveListForm.applyArctic = this.resolveListForm.applyArctic.join(',') this.resolveListForm.applyArctic = this.resolveListForm.applyArctic.join(',')
} }
this.$http.putData( this.$http.putData(
@@ -2807,7 +2829,7 @@ export default {
}, },
(res) => { (res) => {
console.log(res) console.log(res)
if (res.ok){ if (res.ok) {
this.$message.success('修改成功') this.$message.success('修改成功')
this.resetEditResolveListForm() this.resetEditResolveListForm()
this.showItemsModel() this.showItemsModel()
@@ -2815,7 +2837,7 @@ export default {
} }
) )
}, },
resetEditResolveListForm(){ resetEditResolveListForm() {
this.editResolveListShowflag = false this.editResolveListShowflag = false
}, },
// 分页点击后方法 // 分页点击后方法
@@ -2975,21 +2997,21 @@ export default {
if (fileSuffix === '.PDG' || fileSuffix === '.pdg') { if (fileSuffix === '.PDG' || fileSuffix === '.pdg') {
this.getBusStandFileByAttId(attId) this.getBusStandFileByAttId(attId)
.then(res => { .then(res => {
if(res){ if (res) {
const editFileInfo = res const editFileInfo = res
console.log(editFileInfo) console.log(editFileInfo)
if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ if (editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG') {
window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) window.open('book://ssreader/e0?url=' + editFileInfo.downLoadUrl)
}else { } else {
const nowTime = new Date().getTime() 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(onlyOfficeUrl + '/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime + '&filePath=' + editFileInfo.filePath + '&fileName=' + editFileInfo.fileName)
} }
} }
}).catch(e => { }).catch(e => {
console.log(e) console.log(e)
this.$message.warning('文件不存在,预览失败') this.$message.warning('文件不存在,预览失败')
}) })
}else { } else {
this.$http.get('lawss/sarStandFile/queryConvertAtt', { this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId: attId attId: attId
}, { }, {
@@ -3110,7 +3132,7 @@ export default {
}, {}, res => { }, {}, res => {
this.selectedItemList = [] this.selectedItemList = []
if (res.ok) { if (res.ok) {
console.log('3092',res.data.list) console.log('3092', res.data.list)
res.data.list.forEach(item => { res.data.list.forEach(item => {
let k = (item.applyArctic || "").split(',') let k = (item.applyArctic || "").split(',')
for (let i in this.applyArcticOptions.options) { for (let i in this.applyArcticOptions.options) {
@@ -3682,7 +3704,7 @@ export default {
displayLocation.forEach(location => { displayLocation.forEach(location => {
// 动态属性字段-FBGBJBD 单独添加至基础信息 // 动态属性字段-FBGBJBD 单独添加至基础信息
const list = displayLocation.filter(item => item.label === '过程稿件'); const list = displayLocation.filter(item => item.label === '过程稿件');
console.log('3535',list) console.log('3535', list)
if (location.label === '基础信息' && list && list.length > 0) { if (location.label === '基础信息' && list && list.length > 0) {
//发布稿必读 //发布稿必读
if (!list[0].child) { if (!list[0].child) {
@@ -3805,25 +3827,32 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/mixins'; @import '~@/assets/styles/mixins';
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
/deep/.el-icon-circle-close:before{
/deep/ .el-icon-circle-close:before {
margin-left: 250px; margin-left: 250px;
} }
/deep/.el-tag.el-tag--info {
/deep/ .el-tag.el-tag--info {
margin-left: 30px; margin-left: 30px;
} }
/deep/.el-radio {
/deep/ .el-radio {
margin-left: 30px; margin-left: 30px;
} }
/deep/.label-input-form .add-form-item .el-form-item__content .el-input .el-input__inner{
/deep/ .label-input-form .add-form-item .el-form-item__content .el-input .el-input__inner {
width: 600px; width: 600px;
margin-left: 20px; margin-left: 20px;
} }
/deep/.label-input-form .add-form-item .el-form-item__label{
/deep/ .label-input-form .add-form-item .el-form-item__label {
width: 150px; width: 150px;
} }
/deep/.el-collapse-item__header {
/deep/ .el-collapse-item__header {
border-bottom: none !important; border-bottom: none !important;
} }
/deep/ .decomposition-btn { /deep/ .decomposition-btn {
position: absolute; position: absolute;
top: 6px; top: 6px;
@@ -3835,6 +3864,7 @@ export default {
color: #07C160; color: #07C160;
border: 1px solid #07C160; border: 1px solid #07C160;
background: rgba(1, 193, 96, 0.1); background: rgba(1, 193, 96, 0.1);
/deep/ .icon-separate { /deep/ .icon-separate {
display: inline-block; display: inline-block;
margin-right: 3px; margin-right: 3px;