Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yanyizhou
2021-11-09 17:13:12 +08:00
15 changed files with 321 additions and 157 deletions
@@ -538,6 +538,7 @@ export default {
}) })
}, },
closeDialog() { closeDialog() {
this.treeData2 = []
this.modalshowflag = false this.modalshowflag = false
}, },
confirmDialog() { confirmDialog() {
@@ -548,6 +549,7 @@ export default {
if (res.ok) { if (res.ok) {
this.$message.success('设置权限成功') this.$message.success('设置权限成功')
this.modalshowflag = false this.modalshowflag = false
this.treeData2 = []
} }
}) })
}, },
@@ -6,8 +6,8 @@
<span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span> <span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>
</div> </div>
<!--主体内容--> <!--主体内容-->
<div class="details-content"> <div class="details-content" style="position: relative">
<div class="details-content-modular basic-information"> <div class="details-content-modular basic-information" style="border-top: 2px dashed #D1D1D1;">
</div> </div>
<div <div
class="details-content-modular clearfix" class="details-content-modular clearfix"
@@ -16,6 +16,16 @@
v-if="item.isShowImp === '0'" v-if="item.isShowImp === '0'"
> >
<el-collapse v-model="activeNames" @change="handleChange"> <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 class="modular-header" style="height: 50px;">
<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>
</div>
</div>
</div>
<el-collapse-item :name="item.label" @click.native="handleChange1(item.label)"> <el-collapse-item :name="item.label" @click.native="handleChange1(item.label)">
<template slot="title"> <template slot="title">
<div class="modular-header" v-if="item.label !== '基础信息'"> <div class="modular-header" v-if="item.label !== '基础信息'">
@@ -25,11 +35,6 @@
<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 class="modular-header-title"><i class="icon-modular-title" /><span>企标信息</span>--> <!-- <div class="modular-header-title"><i class="icon-modular-title" /><span>企标信息</span>-->
<!-- </div>--> <!-- </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()">更新LOG</el-button>
</div>
</div> </div>
</template> </template>
<div class="modular-content"> <div class="modular-content">
+135 -20
View File
@@ -6,8 +6,8 @@
<span>{{sarStandardsInfoEO.lawsNumber}}-{{sarStandardsInfoEO.lawsYear}} 《{{sarStandardsInfoEO.lawsName}}》 企标详情</span> <span>{{sarStandardsInfoEO.lawsNumber}}-{{sarStandardsInfoEO.lawsYear}} 《{{sarStandardsInfoEO.lawsName}}》 企标详情</span>
</div> </div>
<!--主体内容--> <!--主体内容-->
<div class="details-content"> <div class="details-content" style="position: relative">
<div class="details-content-modular basic-information"> <div class="details-content-modular basic-information" style="border-top: 2px dashed #D1D1D1;">
</div> </div>
<div <div
class="details-content-modular clearfix" class="details-content-modular clearfix"
@@ -15,6 +15,19 @@
:key="index" :key="index"
v-if="item.isShowImp === '0'" 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;border: none">
<div class="modular-header" style="height: 50px;">
<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()">更新LOG</el-button>
</div>
</div>
</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" 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>
@@ -22,20 +35,16 @@
<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 class="modular-header-title"><i class="icon-modular-title" /><span>企标信息</span>--> <!-- <div class="modular-header-title"><i class="icon-modular-title" /><span>企标信息</span>-->
<!-- </div>--> <!-- </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()">更新LOG</el-button>
</div>
</div> </div>
</template>
<div class="modular-content"> <div class="modular-content">
<template v-if = "item.label === '基础信息'"> <template v-if = "item.label === '基础信息'">
<div class="details-content-modular basic-information" style="margin-bottom: 0"> <div class="details-content-modular basic-information" style="margin-bottom: 0;border: none">
<div class="basic-information-content"> <div class="basic-information-content">
<p style="color: #C42626;" class="half"><label style=" margin-right: 157px;">政策编号</label><span>{{ sarStandardsInfoEO.lawsNumber }}</span></p> <p style="color: #C42626;" class="half"><label style=" margin-right: 157px;">政策编号</label><span>{{ sarStandardsInfoEO.lawsNumber }}</span></p>
<p class="half"><label style=" margin-right: 157px;">政策文号</label><span>{{ sarStandardsInfoEO.lawsNo || '-' }}</span></p> <p class="half"><label style=" margin-right: 157px;">政策文号</label><span>{{ sarStandardsInfoEO.lawsNo || '-' }}</span></p>
<p><label style=" margin-right: 157px;">中文名称</label><span>{{ sarStandardsInfoEO.lawsName || '-' }}</span></p> <p><label style=" margin-right: 157px;">中文名称</label><span>{{ sarStandardsInfoEO.lawsName || '-' }}</span></p>
<p style="border: none;"><label style=" margin-right: 157px;">英文名称</label><span>{{ sarStandardsInfoEO.lawsEnName || '-' }}</span></p> <p v-if="activeState" style=""><label style=" margin-right: 157px;">英文名称</label><span>{{ sarStandardsInfoEO.lawsEnName || '-' }}</span></p>
<p class="half"><label style=" margin-right: 157px;">发文日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p> <p class="half"><label style=" margin-right: 157px;">发文日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p>
<p class="half"><label style=" margin-right: 157px;">发文单位</label><span>{{ sarStandardsInfoEO.issueCompany || '-' }}</span></p> <p class="half"><label style=" margin-right: 157px;">发文单位</label><span>{{ sarStandardsInfoEO.issueCompany || '-' }}</span></p>
<p class="half"><label style=" margin-right: 157px;">发文单位</label><span>{{ sarStandardsInfoEO.issueCompany || '-' }}</span></p> <p class="half"><label style=" margin-right: 157px;">发文单位</label><span>{{ sarStandardsInfoEO.issueCompany || '-' }}</span></p>
@@ -53,7 +62,12 @@
<p class="half"><label style=" margin-right: 192px;">年度</label><span>{{ sarStandardsInfoEO.lawsYear || '-' }}</span></p> <p class="half"><label style=" margin-right: 192px;">年度</label><span>{{ sarStandardsInfoEO.lawsYear || '-' }}</span></p>
<p class="half"><label style=" margin-right: 192px;">标签</label><span>{{ sarStandardsInfoEO.lawsLabel || '-' }}</span></p> <p class="half"><label style=" margin-right: 192px;">标签</label><span>{{ sarStandardsInfoEO.lawsLabel || '-' }}</span></p>
<p class="half"><label style=" margin-right: 192px;">备注</label><span>{{ sarStandardsInfoEO.lawsRemark || '-' }}</span></p> <p class="half"><label style=" margin-right: 192px;">备注</label><span>{{ sarStandardsInfoEO.lawsRemark || '-' }}</span></p>
<p class="half"><label style=" margin-right: 192px;"></label><span></span></p> <template v-for="(child, childIndex) in item.child2">
<p class="half">
<label style=" margin-right: 156px;">{{child.attrName}}</label>
<span>{{ child.value || '-' }}</span>
</p>
</template>
</div> </div>
</div> </div>
</template> </template>
@@ -63,8 +77,7 @@
> >
<div <div
:key="childIndex" :key="childIndex"
class="modular-item" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
:class="halfClass(child, item.child[childIndex + 1], childIndex)"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<span <span
@@ -150,6 +163,8 @@
</template> </template>
</div> </div>
</el-collapse-item>
</el-collapse>
</div> </div>
</div> </div>
<div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div> <div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div>
@@ -886,13 +901,26 @@ export default {
components: { components: {
PutQuestionButton PutQuestionButton
}, },
filters: {
ellipsis (value) {
if (!value) return ''
if (value.length > 12) {
return value.slice(0,12) + '...'
}
return value
}
},
data () { data () {
return { return {
activeNames: ['基础信息'],
activeState: false,
visiblePlanCheck: false, visiblePlanCheck: false,
form: {}, form: {},
relateDialog: false, relateDialog: false,
relateDialog1: false,
relateList: [], relateList: [],
relateNowList: [], relateNowList: [],
relateNowList1: [],
sarType: sarType, sarType: sarType,
loading: true, loading: true,
showItemInfoModal: false, showItemInfoModal: false,
@@ -1091,6 +1119,14 @@ export default {
watch: { watch: {
}, },
methods: { methods: {
handleChange(val) {
console.log(val)
},
handleChange1(val) {
if(val && val === '基础信息'){
this.activeState = true
}
},
getPlanStatusName(status) { getPlanStatusName(status) {
switch (status) { switch (status) {
case "1": case "1":
@@ -2064,16 +2100,39 @@ export default {
}) })
}) })
displayLocation.forEach(location => { displayLocation.forEach(location => {
// 动态属性字段-SYRZ 单独添加至基础信息
const list2 = displayLocation.filter ( item => item.label === '适用范围');
if(location.label === '基础信息' && list2 && list2.length > 0){
if (!list2[0].child) {
location['child2'] = []
}else {
const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS');
location['child2'] = childList
}
}
const child = location.child || [] const child = location.child || []
const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'] const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM']
const fieldsIsTextAreaOrFile = child.filter(field => { const fieldsIsTextAreaOrFile = child.filter(field => {
return !halfType.includes(field.attrType) return field.attrField !== 'YYRZLAWS' && !halfType.includes(field.attrType)
}) })
const fieldOthers = child.filter(field => { const fieldOthers = child.filter(field => {
return halfType.includes(field.attrType) return halfType.includes(field.attrType)
}) })
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
}) })
for (let i = 0; i < displayLocation.length; i++) {
// sss
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)
}
}
}
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
@@ -2097,6 +2156,62 @@ 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-collapse{
border: none;
}
/deep/ .el-collapse-item__wrap{
border: none;
}
/deep/ .decomposition-btn {
position: absolute;
top: 6px;
right: 0;
padding: 0 10px;
height: 30px;
line-height: 30px;
font-size: 14px;
color: #07C160;
border: 1px solid #07C160;
background: rgba(1, 193, 96, 0.1);
/deep/ .icon-separate {
display: inline-block;
margin-right: 3px;
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center center;
vertical-align: sub;
background-image: url("~assets/images/shangqi/standardDetails/separate.png");
}
}
/deep/ .icon-download {
display: inline-block;
margin-left: 3px;
width: 18px;
height: 16px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center center;
vertical-align: sub;
cursor: pointer;
background-image: url("~assets/images/shangqi/img/download.png");
}
/deep/ .icon-download2 {
display: inline-block;
margin-left: 3px;
width: 18px;
height: 16px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center center;
vertical-align: sub;
cursor: pointer;
background-image: url("~assets/images/shangqi/img/download2.png");
}
.other-standard-details{ .other-standard-details{
padding: 15px 30px 0; padding: 15px 30px 0;
width: 1200px; width: 1200px;
@@ -2120,6 +2235,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 100%;
height: 50px; height: 50px;
border-bottom: 1px solid #E5E5E5; border-bottom: 1px solid #E5E5E5;
.modular-header-title{ .modular-header-title{
@@ -2134,7 +2250,8 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
background-position: center center; background-position: center center;
background-image: url("~assets/images/shangqi/standardDetails/modular-title.png"); background-image: url("~assets/images/shangqi/standardDetails/modular-title.png");
vertical-align: top; position: relative;
top: 2px;
} }
& > span{ & > span{
padding-left: 10px; padding-left: 10px;
@@ -2201,8 +2318,8 @@ export default {
.modular-content-p-name{ .modular-content-p-name{
display: inline-block; display: inline-block;
width: 220px; width: 220px;
height: 50px; height: 43px;
line-height: 50px; line-height: 43px;
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
vertical-align: top; vertical-align: top;
@@ -2282,16 +2399,14 @@ export default {
} }
} }
.basic-information{ .basic-information{
/*border-top: 2px dashed #D1D1D1;*/
border-bottom: 2px dashed #D1D1D1;
.modular-header{ .modular-header{
height: 60px; height: 60px;
border-bottom: none; border-bottom: none;
} }
.basic-information-content{ .basic-information-content{
& > p{ & > p{
min-height: 55px; min-height: 43px;
line-height: 55px; line-height: 43px;
border-bottom: 1px solid #E5E5E5; border-bottom: 1px solid #E5E5E5;
} }
} }
@@ -8,7 +8,7 @@
}}-{{ sarStandardsInfoEO.standYear }} 《{{ sarStandardsInfoEO.standName }}》 标准详情</span> }}-{{ sarStandardsInfoEO.standYear }} 《{{ sarStandardsInfoEO.standName }}》 标准详情</span>
</div> </div>
<!--主体内容--> <!--主体内容-->
<div class="details-content"> <div class="details-content" style="position: relative">
<div class="details-content-modular basic-information"> <div class="details-content-modular basic-information">
</div> </div>
<div <div
@@ -18,14 +18,9 @@
v-if="item.isShowImp === '0'" v-if="item.isShowImp === '0'"
> >
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item :name="item.label" @click.native="handleChange1(item.label)"> <div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
<template slot="title"> style="border-top:none;position: absolute;right: 36px;">
<div class="modular-header" v-if="item.label === '基础信息'"> <div class="modular-header" style="height: 50px;">
<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"> <div class="modular-header-btn">
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" <el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)"
title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button> title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
@@ -37,6 +32,10 @@
</div> </div>
</div> </div>
</div> </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> </div>
<div class="modular-header" v-if="item.label !== '基础信息'"> <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>
@@ -121,9 +120,8 @@
</p> </p>
<template v-for="(child, childIndex) in item.child2"> <template v-for="(child, childIndex) in item.child2">
<p class="half"> <p class="half">
<label style=" margin-right: 143px;">{{child.attrName}}</label><span> <label style=" margin-right: 143px;">{{child.attrName}}</label>
{{ child.value || '-' }} <span>{{ child.value || '-' }}</span>
</span>
</p> </p>
</template> </template>
<!-- <p><label>文本说明:</label><span style="color: #999999">{{ sarStandardsInfoEO.synopsis || '-' }}</span></p>--> <!-- <p><label>文本说明:</label><span style="color: #999999">{{ sarStandardsInfoEO.synopsis || '-' }}</span></p>-->
@@ -3145,7 +3143,7 @@
if (['DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'].includes(field.attrType)) { if (['DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'].includes(field.attrType)) {
half.push(field) half.push(field)
} else { } else {
if(field.attrField && field.attrField !== 'FBGBJBD'){ if(field.attrField && field.attrField !== 'FBGBJBD' && field.attrField !== 'SYRZ'){
one.push(field) one.push(field)
} }
} }
@@ -402,7 +402,9 @@
</el-button> </el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-show="form.standInData === '0'" label="解读文件" prop="jdwj" class="add-form-item form-item-disabled"> <!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-form-item v-show="form.standInData === '0'" label="相关文件" prop="jdwj" class="add-form-item form-item-disabled">
<!-- ************************************** 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-input <el-input
disabled disabled
style="display: none;" style="display: none;"
@@ -347,7 +347,9 @@
- - - -
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="解读文件" prop="jdwjName" class="add-form-item form-item-disabled"> <!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled">
<!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<div v-if="jdwjFileMap.length>0" v-for="(value,index) in this.jdwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj',value.id)"> <div v-if="jdwjFileMap.length>0" v-for="(value,index) in this.jdwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj',value.id)">
{{value.name}} {{value.name}}
</div> </div>
@@ -261,7 +261,9 @@
- - - -
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="解读文件" prop="jdwjName" class="add-form-item form-item-disabled"> <!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled">
<!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<div v-if="form.jdwjName" v-for="(value,index) in this.jdwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj',value.id)"> <div v-if="form.jdwjName" v-for="(value,index) in this.jdwjFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj',value.id)">
{{value.name}} {{value.name}}
</div> </div>
@@ -647,7 +647,9 @@
</el-button> </el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-show="form.standInData === '0'" label="解读文件" prop="jdwj" class="add-form-item form-item-disabled"> <!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-form-item v-show="form.standInData === '0'" label="相关文件" prop="jdwj" class="add-form-item form-item-disabled">
<!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-input <el-input
disabled disabled
style="display: none;" style="display: none;"
@@ -254,7 +254,9 @@
- - - -
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="解读文件" prop="jdwjName" class="add-form-item form-item-disabled"> <!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled">
<!-- ************************************* 2021/11/9 把"解读文件"改为"相关文件"*************************************-->
<div v-if="form.jdwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj')"> <div v-if="form.jdwjName" style="cursor: pointer;color: #00b7ee" @click="downloadFile('jdwj')">
{{ form.jdwjName }} {{ form.jdwjName }}
</div> </div>
@@ -38,7 +38,7 @@ export default {
other: false, other: false,
library: false, library: false,
list: [], list: [],
tabValue: "listOfCountries", tabValue: "",
menuName: ["国家/地区清单", "车型类别清单", "重点标准跟踪清单", "其他清单", "项目清单"] menuName: ["国家/地区清单", "车型类别清单", "重点标准跟踪清单", "其他清单", "项目清单"]
}; };
}, },
@@ -79,7 +79,22 @@ export default {
} }
} }
}); });
this.list = list if(this.country === true){
this.tabValue = "listOfCountries"
return;
}else if(this.project === true){
this.tabValue = "listProject"
return;
}else if(this.tracking === true){
this.tabValue = "listTracking"
return;
}else if(this.other === true){
this.tabValue = "listOther"
return;
}else if(this.library === true){
this.tabValue = "localProductsOrProjectLibrary"
return;
}
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "LocalProductDetail", "OtherAddEit"]; const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "LocalProductDetail", "OtherAddEit"];
@@ -3126,7 +3126,7 @@ export default {
}, },
// 查询二级菜单 // 查询二级菜单
selectMenu() { selectMenu() {
this.$http.get('sarResource/ts-resource/getList', { this.$http.get('sarResource/ts-resource/getListStand', {
sorDivide: 'INLAND_STAND', sorDivide: 'INLAND_STAND',
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
@@ -281,6 +281,7 @@
@selection-change="standSelectChange" @selection-change="standSelectChange"
> >
<el-table-column <el-table-column
v-if="isPermission('374205ce36a859a158ca4db196d151b7,784d26f527a659eefe84d5e5a53deb96')>0"
type="selection" type="selection"
width="55" width="55"
align="center"> align="center">
@@ -181,6 +181,8 @@
@selection-change="standSelectChange" @selection-change="standSelectChange"
> >
<el-table-column <el-table-column
v-if="isPermission('fd83032ae5f41a0021b00e93c88edbbj,fd83032ae5f41a0021b00e93c88edbbe')>0"
type="selection" type="selection"
width="55" width="55"
align="center"> align="center">
@@ -2916,7 +2916,7 @@ export default {
}, },
// 查询二级菜单 // 查询二级菜单
selectMenu() { selectMenu() {
this.$http.get('sarResource/ts-resource/getList', { this.$http.get('sarResource/ts-resource/getListStand', {
sorDivide: 'FOREIGN_STAND', sorDivide: 'FOREIGN_STAND',
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
@@ -855,7 +855,9 @@ export default {
// 项目分类数组 // 项目分类数组
notProjectData: [], notProjectData: [],
projectData: [] projectStatus: [],
projectData: [],
notProjectStatus: [],
}; };
}, },
methods: { methods: {
@@ -879,7 +881,7 @@ export default {
// 获取标准类别List数据 // 获取标准类别List数据
getAllInforList() { getAllInforList() {
this.$http.get("sys/dictype/getDicTypeListCode", {}, { _this: this }, res => { this.$http.get("sys/dictype/getDicTypeListCode", {}, { _this: this }, res => {
this.xmztOptions = res.data.XMZT; // this.xmztOptions = res.data.XMZT;
this.scxxOptions = res.data.SCXX; this.scxxOptions = res.data.SCXX;
this.countryList = res.data.COUNTRY; this.countryList = res.data.COUNTRY;
this.energyKindOptions = res.data.ENERGYTYPES; this.energyKindOptions = res.data.ENERGYTYPES;
@@ -1213,10 +1215,12 @@ export default {
if (this.localProTableSearch.prodectCode === "Maintenance") { if (this.localProTableSearch.prodectCode === "Maintenance") {
this.localProTableList = res.data.Maintenance.records; this.localProTableList = res.data.Maintenance.records;
this.productTypeOptions = this.projectData this.productTypeOptions = this.projectData
this.xmztOptions = this.projectStatus
this.total = res.data.Maintenance.total; this.total = res.data.Maintenance.total;
} else if (this.localProTableSearch.prodectCode === "notMaintenance") { } else if (this.localProTableSearch.prodectCode === "notMaintenance") {
this.localProTableList = res.data.notMaintenance.records; this.localProTableList = res.data.notMaintenance.records;
this.productTypeOptions = this.notProjectData this.productTypeOptions = this.notProjectData
this.xmztOptions = this.notProjectStatus
this.total = res.data.notMaintenance.total; this.total = res.data.notMaintenance.total;
} }
// this.localProTableList.map((item) => { // this.localProTableList.map((item) => {
@@ -1546,18 +1550,30 @@ export default {
}, },
selectSort() { selectSort() {
solostarData().then(res=>{ solostarData().then(res=>{
res.data.MaintenanceProjectStatus.forEach((item, index)=>{ res.data.MaintenanceProjectClassification.forEach((item, index)=>{
this.projectData.push({ this.projectData.push({
label: item, label: item,
value: index value: index
}) })
}) })
res.data.notMaintenanceProjectStatus.forEach((item, index)=>{ res.data.MaintenanceProjectStatus.forEach((item, index)=>{
this.projectStatus.push({
label: item,
value: index
})
})
res.data.notMaintenanceProjectClassification.forEach((item, index)=>{
this.notProjectData.push({ this.notProjectData.push({
label: item, label: item,
value: index value: index
}) })
}) })
res.data.notMaintenanceProjectStatus.forEach((item, index)=>{
this.notProjectStatus.push({
label: item,
value: index
})
})
}) })
} }
}, },