|
@@ -34,16 +34,20 @@
|
|
|
<span class="action-text">{{ showMore ? '收起' : '更多' }}</span>
|
|
|
<span class="el-icon-arrow-down" :class="showMore ? 'rotate180' : ''"></span>
|
|
|
</span>
|
|
|
- <div
|
|
|
- v-for="(item, index) in infoTypeList"
|
|
|
- :key="index"
|
|
|
- class="select-group-container"
|
|
|
- >
|
|
|
- <div class="select-group-header" :class="{'flex-r-c center': item.name === '拟建项目'}">
|
|
|
+ <div class="select-group-container">
|
|
|
+ <div class="select-group-header"
|
|
|
+ v-for="(item, index) in getInfoTypeList"
|
|
|
+ :key="index"
|
|
|
+ :class="{
|
|
|
+ 'z1-line': item.zindex === 1,
|
|
|
+ 'flex-r-c center': item.name === '拟建项目'
|
|
|
+ }">
|
|
|
<button
|
|
|
- class="j-button-item bgc"
|
|
|
+ class="j-button-item"
|
|
|
:class="{
|
|
|
- active: item.selected
|
|
|
+ active: item.selected,
|
|
|
+ bgc: item.zindex === 1,
|
|
|
+ 'bgc-opacity': item.zindex !== 1
|
|
|
}"
|
|
|
@click="changeInfoTypeState(item)"
|
|
|
>{{ item.name }}</button>
|
|
@@ -57,19 +61,9 @@
|
|
|
<div>
|
|
|
<span class="remindtwo"><span>"拟建项目"</span>是指那些处于前期立项、审批阶段的项目。供应商应在立项阶段掌握项目信息,做到早介入,稳拿单。</span>
|
|
|
</div>
|
|
|
- <i class="icon-help" slot="reference"></i>
|
|
|
+ <i style="cursor: pointer" class="icon-help" slot="reference"></i>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
- <div class="select-group-main">
|
|
|
- <button
|
|
|
- v-for="(iitem, iindex) in item.children" :key="999-iindex"
|
|
|
- class="j-button-item bgc-opacity"
|
|
|
- :class="{
|
|
|
- active: iitem.selected
|
|
|
- }"
|
|
|
- @click="changeInfoTypeState(iitem)"
|
|
|
- >{{ iitem.name }}</button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -108,6 +102,23 @@ export default {
|
|
|
this.setInfoTypeState(newVal)
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ getInfoTypeList () {
|
|
|
+ const tempArr = []
|
|
|
+ this.infoTypeList.forEach(v => {
|
|
|
+ const tempNode = v
|
|
|
+ tempNode.zindex = 1
|
|
|
+ tempArr.push(tempNode)
|
|
|
+ // eslint-disable-next-line no-unused-expressions
|
|
|
+ tempNode?.children.forEach(s => {
|
|
|
+ const tempS = s
|
|
|
+ tempS.zindex = 2
|
|
|
+ tempArr.push(tempS)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ return tempArr
|
|
|
+ }
|
|
|
+ },
|
|
|
created () {
|
|
|
this.initInfoTypeFn()
|
|
|
this.setInfoTypeState(this.initInfoType)
|
|
@@ -361,6 +372,26 @@ export default {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
+ .z1-line {
|
|
|
+ position: relative;
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ right: -1px;
|
|
|
+ top: 50%;
|
|
|
+ width: 1px;
|
|
|
+ height: 16px;
|
|
|
+ background-color: #E3E4E6;
|
|
|
+ margin-top: -8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .bgc {
|
|
|
+ font-weight: 700;
|
|
|
+ color: #1d1d1d;
|
|
|
+ }
|
|
|
+ .j-button-item.bgc-opacity.active {
|
|
|
+ color: #2abed1;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|