|
@@ -21,9 +21,8 @@
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<view class="level">
|
|
<view class="level">
|
|
- <view class="level-li"
|
|
|
|
|
|
+ <view class="level-li"
|
|
:style="levelId==item.levelId?'border:1rpx solid '+item.levelColor+';background:'+item.levelColorTow+';':'levelColor-B'"
|
|
:style="levelId==item.levelId?'border:1rpx solid '+item.levelColor+';background:'+item.levelColorTow+';':'levelColor-B'"
|
|
-
|
|
|
|
@click="levelClick(item.levelId)" v-for="(item,index) in levelList">{{item.levelName}}</view>
|
|
@click="levelClick(item.levelId)" v-for="(item,index) in levelList">{{item.levelName}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="srearch">
|
|
<view class="srearch">
|
|
@@ -31,11 +30,10 @@
|
|
<view class="srearch-l">
|
|
<view class="srearch-l">
|
|
<img src="@/pages_safetyCheck/images/icon_aqjc_ss.png">
|
|
<img src="@/pages_safetyCheck/images/icon_aqjc_ss.png">
|
|
</view>
|
|
</view>
|
|
- <input class="srearch-c" type="text" v-model="searchValue"
|
|
|
|
- placeholder="搜索实验室" disabled />
|
|
|
|
|
|
+ <input class="srearch-c" type="text" v-model="searchValue" placeholder="搜索实验室" disabled />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view class="hidden">
|
|
<view class="hidden">
|
|
<view class="lab-info" @click="listClick(item)" v-for="(item,index) in dataList">
|
|
<view class="lab-info" @click="listClick(item)" v-for="(item,index) in dataList">
|
|
@@ -47,7 +45,8 @@
|
|
:style="'border:1rpx solid '+item.classLevelColor+';background:'+item.classLevelColorTow+';'">
|
|
:style="'border:1rpx solid '+item.classLevelColor+';background:'+item.classLevelColorTow+';'">
|
|
<text
|
|
<text
|
|
:style="'border-right:1rpx solid '+item.classLevelColor+';color:'+item.classLevelColor+';'">{{item.classLevelName?item.classLevelName:''}}</text>
|
|
:style="'border-right:1rpx solid '+item.classLevelColor+';color:'+item.classLevelColor+';'">{{item.classLevelName?item.classLevelName:''}}</text>
|
|
- <text :style="'color:'+item.classLevelColor+';'">{{item.classTypeNames?item.classTypeNames:''}}</text>
|
|
|
|
|
|
+ <text
|
|
|
|
+ :style="'color:'+item.classLevelColor+';'">{{item.classTypeNames?item.classTypeNames:''}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="lab-info-c-b">
|
|
<view class="lab-info-c-b">
|
|
@@ -58,8 +57,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
|
|
<view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
|
|
</view>
|
|
</view>
|
|
- <img class="saoCode" @click="saoCode()"
|
|
|
|
- src="@/pages_safetyCheck/images/icon_aqjc_saoma.png">
|
|
|
|
|
|
+ <img class="saoCode" @click="saoCode()" src="@/pages_safetyCheck/images/icon_aqjc_saoma.png">
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -188,7 +186,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//实验室搜索框跳转
|
|
//实验室搜索框跳转
|
|
- srearchClick(){
|
|
|
|
|
|
+ srearchClick() {
|
|
let infoData = {};
|
|
let infoData = {};
|
|
infoData.pageType = this.tabIndexTow;
|
|
infoData.pageType = this.tabIndexTow;
|
|
infoData.laboratoryStatus = this.tabIndexTow;
|
|
infoData.laboratoryStatus = this.tabIndexTow;
|
|
@@ -440,14 +438,14 @@
|
|
},
|
|
},
|
|
//获取分级
|
|
//获取分级
|
|
async laboratoryLevelConfigGetWebLevelTitleList() {
|
|
async laboratoryLevelConfigGetWebLevelTitleList() {
|
|
- let self=this;
|
|
|
|
|
|
+ let self = this;
|
|
const {
|
|
const {
|
|
data
|
|
data
|
|
} = await laboratoryLevelConfigGetWebLevelTitleList({});
|
|
} = await laboratoryLevelConfigGetWebLevelTitleList({});
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
data.data.forEach(function(item) {
|
|
data.data.forEach(function(item) {
|
|
item.levelName = item.levelName.split('/')[0]
|
|
item.levelName = item.levelName.split('/')[0]
|
|
- if(item.levelColor){
|
|
|
|
|
|
+ if (item.levelColor) {
|
|
item.levelColorTow = self.hexToRgb(item.levelColor, 0.2)
|
|
item.levelColorTow = self.hexToRgb(item.levelColor, 0.2)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -476,10 +474,10 @@
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
|
|
|
|
data.data.records.forEach(function(item) {
|
|
data.data.records.forEach(function(item) {
|
|
- if(item.classLevelColor){
|
|
|
|
|
|
+ if (item.classLevelColor) {
|
|
item.classLevelColorTow = self.hexToRgb(item.classLevelColor, 0.2)
|
|
item.classLevelColorTow = self.hexToRgb(item.classLevelColor, 0.2)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
if (self.queryParams.page == 1) {
|
|
if (self.queryParams.page == 1) {
|
|
this.dataList = data.data.records;
|
|
this.dataList = data.data.records;
|
|
@@ -763,6 +761,7 @@
|
|
padding: 30rpx 30rpx 0;
|
|
padding: 30rpx 30rpx 0;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
|
|
+
|
|
.level-li {
|
|
.level-li {
|
|
width: 100rpx;
|
|
width: 100rpx;
|
|
height: 50rpx;
|
|
height: 50rpx;
|
|
@@ -953,6 +952,7 @@
|
|
width: 180rpx;
|
|
width: 180rpx;
|
|
height: 40rpx;
|
|
height: 40rpx;
|
|
margin-left: 10rpx;
|
|
margin-left: 10rpx;
|
|
|
|
+
|
|
>text {
|
|
>text {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
flex: 1;
|
|
flex: 1;
|
|
@@ -974,6 +974,9 @@
|
|
color: #666666;
|
|
color: #666666;
|
|
line-height: 30rpx;
|
|
line-height: 30rpx;
|
|
text-align: left;
|
|
text-align: left;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
|
|
>text:nth-of-type(2) {
|
|
>text:nth-of-type(2) {
|
|
@@ -981,6 +984,9 @@
|
|
color: #666666;
|
|
color: #666666;
|
|
line-height: 30rpx;
|
|
line-height: 30rpx;
|
|
text-align: left;
|
|
text-align: left;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1024,7 +1030,8 @@
|
|
#color-C {
|
|
#color-C {
|
|
color: #16B531;
|
|
color: #16B531;
|
|
}
|
|
}
|
|
- .saoCode{
|
|
|
|
|
|
+
|
|
|
|
+ .saoCode {
|
|
position: fixed;
|
|
position: fixed;
|
|
left: 288rpx;
|
|
left: 288rpx;
|
|
bottom: 20rpx;
|
|
bottom: 20rpx;
|