绘制关键指标概览页面
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>
|
||||
|
||||
@@ -29,12 +29,12 @@
|
||||
<!-- <text class="uni-card__header-content-subtitle uni-ellipsis">
|
||||
{{ device.mac }}
|
||||
</text> -->
|
||||
<view class="event-desc mt10 mb8">
|
||||
<view class="event-desc mt4 mb8">
|
||||
<text>
|
||||
工程名称:{{ device.engineeringName }}
|
||||
工程:{{ device.engineeringName }}
|
||||
</text>
|
||||
<text>
|
||||
项目名称:{{ device.projectName }}
|
||||
项目:{{ device.projectName }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
@@ -61,11 +61,11 @@
|
||||
</template>
|
||||
<!-- <view class="device-body">
|
||||
<view class="device-body-item">
|
||||
<text>工程名称</text>
|
||||
<text>工程</text>
|
||||
<text>{{ device.engineeringName }}</text>
|
||||
</view>
|
||||
<view class="device-body-item mt6">
|
||||
<text>项目名称</text>
|
||||
<text>项目</text>
|
||||
<text>{{ device.projectName }}</text>
|
||||
</view>
|
||||
<view class="device-body-item mt6" v-if="device.process == 2 || device.process == 3">
|
||||
@@ -283,7 +283,7 @@ export default {
|
||||
}
|
||||
|
||||
.event-desc text {
|
||||
font-size: 28rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ export default {
|
||||
lineDisplayText() {
|
||||
const list = this.select.lineList || []
|
||||
if (!list.length) {
|
||||
return '全部工程'
|
||||
return '筛选监测点'
|
||||
}
|
||||
const text = list
|
||||
.map((item) => item.name)
|
||||
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
|
||||
</svg>`
|
||||
} else if (this.name == '报告') {
|
||||
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="47" height="47">
|
||||
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="37" height="37">
|
||||
<path d="M12,12 L78,12 L88,22 L88,88 L12,88 Z" fill="none" stroke="#007aff" stroke-width="4" stroke-linejoin="round"/>
|
||||
<path d="M78,12 L78,22 L88,22" fill="none" stroke="#007aff" stroke-width="4" stroke-linejoin="round"/>
|
||||
<polyline points="20,50 26,50 28,46 30,42 32,46 34,50 36,54 38,58 40,54 42,50 44,46 46,42 48,46 50,50 56,50" fill="none" stroke="#007aff" stroke-width="4" stroke-linecap="round"/>
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
<line x1="76" y1="74" x2="86" y2="84" stroke="#007aff" stroke-width="4" stroke-linecap="round"/>
|
||||
</svg>`
|
||||
} else if (this.name == '监测点') {
|
||||
return `<svg t="1779762122379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3577" width="38" height="38"><path d="M875.17148 230.296136c30.706152 56.294611 46.059227 122.824606 46.059227 194.472293 0 107.47153-40.941535 209.825369-107.47153 286.590748 0 0 0 5.117692-5.117692 5.117692l-261.002288 286.590748c0 5.117692-5.117692 10.235384-5.117692 10.235383-15.353076 10.235384-30.706152 15.353076-46.059227 5.117692-5.117692 0-10.235384-5.117692-15.353076-10.235384v-5.117691L209.87153 716.476869s-5.117692-5.117692-5.117692-10.235384c-66.529995-76.765379-102.353838-174.001525-102.353838-281.473056C102.4 189.354601 286.636909 0 511.815354 0c81.883071 0 153.530758 25.58846 220.060752 66.529995 5.117692 0 5.117692 5.117692 10.235384 5.117692h5.117692c46.059227 35.823843 81.883071 81.883071 112.589222 133.05999 10.235384 5.117692 15.353076 15.353076 15.353076 25.588459z m-163.766141-92.118454c-5.117692 0-10.235384-5.117692-15.353076-10.235384-51.176919-35.823843-112.589222-56.294611-179.119217-56.294611-189.354601 0-337.767667 158.64845-337.767667 353.120742 0 92.118455 30.706152 174.001525 87.000762 235.413829l20.470768 20.470767 20.470768 20.470768 143.295374 153.530758L511.815354 931.41993l71.647687-76.765379 143.295373-153.530758 5.117692-5.117692 35.823844-40.941535c0-5.117692 5.117692-5.117692 10.235384-5.117692 51.176919-61.412303 81.883071-143.295374 81.88307-230.296136-5.117692-112.589222-66.529995-214.943061-148.413065-281.473056z m-199.589985 460.592273c-92.118455 0-163.766141-76.765379-163.766142-174.001526C348.049212 332.649975 419.696899 255.884596 511.815354 255.884596c92.118455 0 163.766141 76.765379 163.766141 174.001525 0 92.118455-71.647687 168.883833-163.766141 168.883834z m0-271.237672c-51.176919 0-97.236146 46.059227-97.236147 102.353838s46.059227 102.353838 97.236147 102.353839c51.176919 0 97.236146-46.059227 97.236146-102.353839s-46.059227-102.353838-97.236146-102.353838z" fill="#007aff" p-id="3578"></path></svg>`
|
||||
return `<svg t="1779762122379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3577" width="33" height="33"><path d="M875.17148 230.296136c30.706152 56.294611 46.059227 122.824606 46.059227 194.472293 0 107.47153-40.941535 209.825369-107.47153 286.590748 0 0 0 5.117692-5.117692 5.117692l-261.002288 286.590748c0 5.117692-5.117692 10.235384-5.117692 10.235383-15.353076 10.235384-30.706152 15.353076-46.059227 5.117692-5.117692 0-10.235384-5.117692-15.353076-10.235384v-5.117691L209.87153 716.476869s-5.117692-5.117692-5.117692-10.235384c-66.529995-76.765379-102.353838-174.001525-102.353838-281.473056C102.4 189.354601 286.636909 0 511.815354 0c81.883071 0 153.530758 25.58846 220.060752 66.529995 5.117692 0 5.117692 5.117692 10.235384 5.117692h5.117692c46.059227 35.823843 81.883071 81.883071 112.589222 133.05999 10.235384 5.117692 15.353076 15.353076 15.353076 25.588459z m-163.766141-92.118454c-5.117692 0-10.235384-5.117692-15.353076-10.235384-51.176919-35.823843-112.589222-56.294611-179.119217-56.294611-189.354601 0-337.767667 158.64845-337.767667 353.120742 0 92.118455 30.706152 174.001525 87.000762 235.413829l20.470768 20.470767 20.470768 20.470768 143.295374 153.530758L511.815354 931.41993l71.647687-76.765379 143.295373-153.530758 5.117692-5.117692 35.823844-40.941535c0-5.117692 5.117692-5.117692 10.235384-5.117692 51.176919-61.412303 81.883071-143.295374 81.88307-230.296136-5.117692-112.589222-66.529995-214.943061-148.413065-281.473056z m-199.589985 460.592273c-92.118455 0-163.766141-76.765379-163.766142-174.001526C348.049212 332.649975 419.696899 255.884596 511.815354 255.884596c92.118455 0 163.766141 76.765379 163.766141 174.001525 0 92.118455-71.647687 168.883833-163.766141 168.883834z m0-271.237672c-51.176919 0-97.236146 46.059227-97.236147 102.353838s46.059227 102.353838 97.236147 102.353839c51.176919 0 97.236146-46.059227 97.236146-102.353839s-46.059227-102.353838-97.236146-102.353838z" fill="#007aff" p-id="3578"></path></svg>`
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user