Commit 3d4406c5 authored by xinzhedeai's avatar xinzhedeai

企业详情 组合框处理

parent b007113c
......@@ -662,20 +662,48 @@ var reqApis = function(){
"inventionApplicationsNumber": { 'type': '', 'name': '发明申请数(件)', table:0, },
"utilityModelsNumber": { 'type': '', 'name': '实用新型数(件)', table:0, },
"softwareCopyrightNumber": { 'type': '', 'name': '软件著作权数(件)', table:0, },
"isTechSme": { 'type': 'select', 'name': '是否科技型中小企业', table:0, inputCombine_1:'Y' }, // inputCombine_1 组合框中的父输入框
"techSmeDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y' },
"isHighTech": { 'type': 'select', 'name': '是否高新技术企业', table:0, inputCombine_1:'Y' },
"highTechDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y'},
"isSpecializedSpecialEnterprises": { 'type': 'select', 'name': '是否专精特新企业', table:0, inputCombine_1:'Y' },
"specializedSpecialEnterprisesDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y'},
"isGazelle": { 'type': 'select', 'name': '是否瞪羚企业', table:0, inputCombine_1:'Y' },
"gazelleDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y'},
"isLittleGiant": { 'type': 'select', 'name': '是否小巨人企业', table:0, inputCombine_1:'Y' },
"littleGiantDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y'},
"isHighGrowthInnovative": { 'type': 'select', 'name': '是否创新性中小企业', table:0, inputCombine_1:'Y' },
"highGrowthInnovativeDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y'},
"isAdvancedTechService": { 'type': 'select', 'name': '是否技术先进型服务企业', table:0, inputCombine_1:'Y' },
"advancedTechServiceDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y'},
"isTechSme": { 'type': 'select', 'name': '是否科技型中小企业', table:0, inputCombine_1:'Y', inputCombineArr_1: {
"isTechSme":{'name': '是否科技型中小企业','type':'select'},
"techSmeDate":{'name':'最新评选日期'},
}
}, // inputCombine_1 组合框中的父输入框
"techSmeDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isHighTech": { 'type': 'select', 'name': '是否高新技术企业', table:0, inputCombine_1:'Y' , inputCombineArr_1: {
"isHighTech":{'name': '是否高新技术企业','type':'select'},
"highTechDate":{'name':'最新评选日期'},
}},
"highTechDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isSpecializedSpecialEnterprises": { 'type': 'select', 'name': '是否专精特新企业', table:0, inputCombine_1:'Y' , inputCombineArr_1: {
"isSpecializedSpecialEnterprises":{'name': '是否专精特新企业','type':'select'},
"specializedSpecialEnterprisesDate":{'name':'最新评选日期'},
}},
"specializedSpecialEnterprisesDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isGazelle": { 'type': 'select', 'name': '是否瞪羚企业', table:0, inputCombine_1:'Y' , inputCombineArr_1: {
"isGazelle":{'name': '是否瞪羚企业','type':'select'},
"gazelleDate":{'name':'最新评选日期'},
}},
"gazelleDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isLittleGiant": { 'type': 'select', 'name': '是否小巨人企业', table:0, inputCombine_1:'Y' , inputCombineArr_1: {
"isLittleGiant":{'name': '是否小巨人企业','type':'select'},
"littleGiantDate":{'name':'最新评选日期'},
}},
"littleGiantDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isHighGrowthInnovative": { 'type': 'select', 'name': '是否创新性中小企业', table:0, inputCombine_1:'Y', inputCombineArr_1: {
"isHighGrowthInnovative":{'name': '是否创新性中小企业','type':'select'},
"highGrowthInnovativeDate":{'name':'最新评选日期'},
}},
"highGrowthInnovativeDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isAdvancedTechService": { 'type': 'select', 'name': '是否技术先进型服务企业', table:0, inputCombine_1:'Y', inputCombineArr_1: {
"isAdvancedTechService":{'name': '是否技术先进型服务企业','type':'select'},
"advancedTechServiceDate":{'name':'最新评选日期'},
}},
"advancedTechServiceDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
......@@ -737,8 +765,15 @@ var reqApis = function(){
'fn': 'toSee', 'type': 'primary', 'icon': 'el-icon-edit', name: '查看', 'callback': function(item) {
item = Object.assign({}, item);
this.$parent.basicActv = true;
// for( let key in item){
// if(item[key] === false){
// item[key] = true
// }
// // if(key.indexOf('Date')>-1){
// // item[key] = ''
// // }
// }
this.$parent.catchItem = item;
// 标签索引复位
this.$parent.tabindex = 0;
}
......
......@@ -126,8 +126,31 @@
<el-tab-pane label="企业基本信息" name="0">
<div class="rel-flex">
<div class="scrolling4">
<div v-for="(item, key) in Dict.baseInfo" style="" :class="{'isHide': item.mode===7, [key]: item.mode===7}">
<div class="item">
<!-- 针对详情显示,输入框组以父元素框为准,子元素框忽略,在此处理 -->
<div v-for="(item, key) in Dict.baseInfo" style="" :class="{'isHide': item.mode===7, [key]: item.mode===7}" v-if="!item.inputCombineArr_2">
<!-- 以下div根据组合输入框特殊处理 -->
<div class="item" v-if="item.inputCombineArr_1">
<template v-for="(item, key) in item.inputCombineArr_1">
<span class="name" v-if="catchItem[key] || catchItem[key] === false">{{ item.name }}</span>
<!-- <font>{{catchItem[key]}}</font
> -->
<template v-if="item.type === 'select'">
<font
v-for="obj in Dict.selectList[key]"
v-if="obj.value === catchItem[key]"
style="margin-right:30px;"
>{{ obj.name }}</font
>
</template>
<!-- v-if判断用于针对日期主输入框为false值的时候特殊处理。日期没有值直接隐藏 -->
<template v-else>
<font v-if="catchItem[key] || catchItem[key] === false">{{
catchItem[key]
}}</font>
</template>
</template>
</div>
<div class="item" v-else>
<span class="name">{{ item.name }} :</span>
<template v-if="item.type === 'select'">
<font
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment