feat: There is no way the,Laws
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
<!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>-->
|
||||
<template v-for="(child, childIndex) in item.child1">
|
||||
<p class="half files-title"
|
||||
v-for="(file, fileIndex) in child.value"
|
||||
v-for="(file, fileIndex) in child1Func(child.value)"
|
||||
>
|
||||
<label style=" margin-right: 102px;">{{ child.attrName }}</label>
|
||||
<span>
|
||||
@@ -82,9 +82,12 @@
|
||||
:key="index"
|
||||
@click="showItemsModel(child.attrField)"
|
||||
class="decomposition-btn"
|
||||
style="right:62px"
|
||||
icon="icon-separate"
|
||||
>标准分解单
|
||||
</el-button>
|
||||
<el-button v-if="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>
|
||||
</p>
|
||||
</template>
|
||||
<p><label style=" margin-right: 150px;">中文名称</label><span>{{
|
||||
@@ -134,7 +137,7 @@
|
||||
<!-- modular-item half 代替标准编号-->
|
||||
<div
|
||||
:key="child.id"
|
||||
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'"
|
||||
: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' "
|
||||
>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
@@ -180,7 +183,7 @@
|
||||
<div
|
||||
v-else
|
||||
:key="child.id"
|
||||
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
|
||||
>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<span
|
||||
@@ -268,7 +271,7 @@
|
||||
>
|
||||
<div
|
||||
:key="child.id"
|
||||
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
|
||||
>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<!--相关流程-->
|
||||
@@ -362,7 +365,7 @@
|
||||
</template>
|
||||
<template
|
||||
v-for="(child, childIndex) in item.one"
|
||||
v-if="child.isShowImp === '0' && item.label == '文本信息'"
|
||||
v-if="child.isShowImp === '0' && item.label == '过程稿件'"
|
||||
>
|
||||
<div
|
||||
:key="child.id"
|
||||
@@ -439,11 +442,11 @@
|
||||
</template>
|
||||
<template
|
||||
v-for="(child, childIndex) in item.one"
|
||||
v-if="child.isShowImp === '0' && item.label !== '关联信息' && item.label !== '文本信息' && (item.label !== '实施日期' || (childIndex < 6 || item.showAll))"
|
||||
v-if="child.isShowImp === '0' && item.label !== '关联信息' && item.label !== '过程稿件' && (item.label !== '实施日期' || (childIndex < 6 || item.showAll))"
|
||||
>
|
||||
<div
|
||||
:key="child.id"
|
||||
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'"
|
||||
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
|
||||
>
|
||||
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
|
||||
<!--相关流程-->
|
||||
@@ -1045,6 +1048,40 @@
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</el-drawer>
|
||||
<el-dialog
|
||||
title="更多发布稿"
|
||||
:visible.sync="relateDialog1"
|
||||
class="relateClass"
|
||||
width="40%"
|
||||
:before-close="relateDialogClose1">
|
||||
<div
|
||||
v-for="(file, index) in relateNowList1"
|
||||
:key="index"
|
||||
v-if="relateNowList1"
|
||||
style="margin-bottom: 10px;line-height: 20px;max-height: 300px"
|
||||
>
|
||||
{{ index + 1 }}.
|
||||
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName }}</a>
|
||||
<i
|
||||
title="下载"
|
||||
@click="downloadFile(file.id)"
|
||||
class="icon-download"
|
||||
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : 'a772afab2a6708883335500f3f86e771'"
|
||||
/>
|
||||
<i
|
||||
title="下载带水印"
|
||||
@click="downloadFileByWater(file.id, file.fileSuffix)"
|
||||
class="icon-download2"
|
||||
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '824f3bf9edef83fc7488917136167232'"
|
||||
/>
|
||||
<div v-if="relateNowList.length >1">
|
||||
<el-divider></el-divider>
|
||||
</div>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="relateDialogClose1">关 闭</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 更新LOG -->
|
||||
<el-dialog
|
||||
title="更新LOG"
|
||||
@@ -1369,8 +1406,8 @@
|
||||
filters: {
|
||||
ellipsis (value) {
|
||||
if (!value) return ''
|
||||
if (value.length > 18) {
|
||||
return value.slice(0,18) + '...'
|
||||
if (value.length > 12) {
|
||||
return value.slice(0,12) + '...'
|
||||
}
|
||||
return value
|
||||
}
|
||||
@@ -1433,8 +1470,10 @@
|
||||
AddKnowledgDialog: false,
|
||||
knowledgeSharingDialog: false,
|
||||
relateDialog: false,
|
||||
relateDialog1: false,
|
||||
relateList: [],
|
||||
relateNowList: [],
|
||||
relateNowList1: [],
|
||||
loading: false,
|
||||
showItemInfoModal: false,
|
||||
standShowItemEO: {},
|
||||
@@ -1672,6 +1711,14 @@
|
||||
props: {},
|
||||
watch: {},
|
||||
methods: {
|
||||
child1Func(child1){
|
||||
const list = []
|
||||
if(child1 && child1.length > 1){
|
||||
list.push(child1[0])
|
||||
return list
|
||||
}
|
||||
return child1
|
||||
},
|
||||
handleChange(val) {
|
||||
console.log(val);
|
||||
},
|
||||
@@ -2878,6 +2925,10 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
relateEvent1(list){
|
||||
this.relateDialog1 = true
|
||||
this.relateNowList1 = list
|
||||
},
|
||||
// 更新LOG
|
||||
relateEvent() {
|
||||
this.$http.get('lawss/sarUpdLog/getLogList', {
|
||||
@@ -2911,6 +2962,10 @@
|
||||
this.relateDialog = false
|
||||
this.relateNowList = []
|
||||
},
|
||||
relateDialogClose1() {
|
||||
this.relateDialog1 = false
|
||||
this.relateNowList = []
|
||||
},
|
||||
halfClass(data, nextData, index) {
|
||||
const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM']
|
||||
let flag = false
|
||||
@@ -3045,7 +3100,7 @@
|
||||
// }
|
||||
}
|
||||
}
|
||||
if (location.label === '文本信息') {
|
||||
if (location.label === '过程稿件') {
|
||||
location.isShowImp = '0'
|
||||
}
|
||||
})
|
||||
@@ -3053,7 +3108,7 @@
|
||||
|
||||
for (let i = 0; i < displayLocation.length; i++) {
|
||||
// sss
|
||||
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '文本信息'){
|
||||
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
|
||||
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
|
||||
if(childList.length === 0){
|
||||
displayLocation.splice(i,1)
|
||||
@@ -3062,19 +3117,20 @@
|
||||
}
|
||||
displayLocation.forEach(location => {
|
||||
// 动态属性字段-FBGBJBD 单独添加至基础信息
|
||||
const list = displayLocation.filter ( item => item.label === '文本信息');
|
||||
const list = displayLocation.filter ( item => item.label === '过程稿件');
|
||||
if(location.label === '基础信息' && list && list.length > 0){
|
||||
if (!list[0].child) {
|
||||
location['child1'] = []
|
||||
}else {
|
||||
const childList = list[0].child.filter ( item => item.attrField === 'FBGBJBD');
|
||||
location['child1'] = childList
|
||||
|
||||
}
|
||||
}
|
||||
// 动态属性字段-SYRZ 单独添加至基础信息
|
||||
const list2 = displayLocation.filter ( item => item.label === '适用范围');
|
||||
if(location.label === '基础信息' && list2 && list2.length > 0){
|
||||
if (!list[0].child) {
|
||||
if (!list2[0].child) {
|
||||
location['child2'] = []
|
||||
}else {
|
||||
const childList = list2[0].child.filter ( item => item.attrField === 'SYRZ');
|
||||
|
||||
Reference in New Issue
Block a user