绘制关键指标概览页面
This commit is contained in:
@@ -3,26 +3,14 @@
|
||||
<view class="tki-tree-mask" :class="{ show: showTree }" @tap="_cancel"></view>
|
||||
<view class="tki-tree-cnt" :class="{ show: showTree }">
|
||||
<view class="tki-tree-bar">
|
||||
<view class="tki-tree-bar-cancel" :style="{ color: cancelColor }" hover-class="hover-c" @tap="_cancel"
|
||||
>取消</view
|
||||
>
|
||||
<view class="tki-tree-bar-cancel" :style="{ color: cancelColor }" hover-class="hover-c" @tap="_cancel">
|
||||
取消</view>
|
||||
<view class="tki-tree-bar-title" :style="{ color: titleColor }">{{ title }}</view>
|
||||
<view
|
||||
class="tki-tree-bar-confirm"
|
||||
:style="{ color: confirmColor }"
|
||||
hover-class="hover-c"
|
||||
@tap="_confirm"
|
||||
>确定</view
|
||||
>
|
||||
<view class="tki-tree-bar-confirm" :style="{ color: confirmColor }" hover-class="hover-c"
|
||||
@tap="_confirm">确定</view>
|
||||
</view>
|
||||
<view class="tki-tree-bar1">
|
||||
<uni-search-bar
|
||||
class="uni-input"
|
||||
radius="5"
|
||||
placeholder="请输入关键字搜索"
|
||||
clearButton="none"
|
||||
@input="input"
|
||||
/>
|
||||
<uni-search-bar class="uni-input" radius="5" placeholder="请输入关键字搜索" clearButton="none" @input="input" />
|
||||
|
||||
<!-- <uni-search-bar
|
||||
v-model="searchValue"
|
||||
@@ -36,49 +24,33 @@
|
||||
<view class="tki-tree-view">
|
||||
<scroll-view class="tki-tree-view-sc" :scroll-y="true">
|
||||
<block v-for="(item, index) in treeList" :key="index">
|
||||
<view
|
||||
class="tki-tree-item"
|
||||
:style="[
|
||||
{
|
||||
paddingLeft: item.rank * 15 + 'px',
|
||||
zIndex: item.rank * -1 + 50,
|
||||
},
|
||||
]"
|
||||
:class="{
|
||||
<view class="tki-tree-item" :style="[
|
||||
{
|
||||
paddingLeft: item.rank * 15 + 'px',
|
||||
zIndex: item.rank * -1 + 50,
|
||||
},
|
||||
]" :class="{
|
||||
border: border === true,
|
||||
show: item.show,
|
||||
last: item.lastRank,
|
||||
showchild: item.showChild,
|
||||
open: item.open,
|
||||
}"
|
||||
>
|
||||
}">
|
||||
<view class="tki-tree-label" @tap.stop="_treeItemTap(item, index)">
|
||||
<image
|
||||
class="tki-tree-icon"
|
||||
:src="item.lastRank ? lastIcon : item.showChild ? currentIcon : defaultIcon"
|
||||
></image>
|
||||
<image class="tki-tree-icon"
|
||||
:src="item.lastRank ? lastIcon : item.showChild ? currentIcon : defaultIcon">
|
||||
</image>
|
||||
{{ item.name }}
|
||||
</view>
|
||||
<view
|
||||
class="tki-tree-check"
|
||||
@tap.stop="_treeItemSelect(item, index)"
|
||||
v-if="selectParent ? true : item.lastRank"
|
||||
>
|
||||
<view
|
||||
class="tki-tree-check-yes"
|
||||
v-if="item.checked"
|
||||
:style="{ 'border-color': confirmColor }"
|
||||
>
|
||||
<view
|
||||
class="tki-tree-check-yes-b"
|
||||
:style="{ 'background-color': confirmColor }"
|
||||
></view>
|
||||
<view class="tki-tree-check" @tap.stop="_treeItemSelect(item, index)"
|
||||
v-if="selectParent ? true : item.lastRank">
|
||||
<view class="tki-tree-check-yes" v-if="item.checked"
|
||||
:style="{ 'border-color': confirmColor }">
|
||||
<view class="tki-tree-check-yes-b" :style="{ 'background-color': confirmColor }">
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="tki-tree-check-no"
|
||||
v-if="!item.checked"
|
||||
:style="{ 'border-color': confirmColor }"
|
||||
></view>
|
||||
<view class="tki-tree-check-no" v-if="!item.checked"
|
||||
:style="{ 'border-color': confirmColor }"></view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -527,7 +499,12 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './style.css';
|
||||
|
||||
/deep/ .uni-searchbar__box {
|
||||
justify-content: left !important;
|
||||
}
|
||||
|
||||
/deep/ .uni-input {
|
||||
background: #ffffff
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user