当前位置:网站首页>十三、数据回显
十三、数据回显
2022-08-02 22:51:00 【Ming-Afresh】
数据回显比form表单更加常见,毕竟项目都是动态数据,回显的越多越高级也越有价值
比如数据可视化的回显动态参数就给人很高大上的感觉
但如果只是单个数据需要回显也可以 比如弹窗只弹出一项用户名的信息进行确认
<template>
<view class="content">
<view class="top_cont">
<button @click="toRegister" class="input_btn">录入抗原检测结果</button>
</view>
<view>
<view class="history">
<view style="margin-top: 20rpx;">
<view style="display: flex; align-items: center;">
<view style="width: 15rpx;height: 40rpx;background: #93D7DB;border-radius: 8rpx;"></view>
<view style="margin-left: 16rpx; font-size: 30rpx;">抗原检测结果录入历史</view>
</view>
</view>
<view v-for="item in antList" :key='item.data'>
<view class="title titleMax">抗原试剂编码:{
{
item.reagentId }}</view>
<view class="title title1">
检测人员:{
{
item.name }} ({
{
item.idCode }})
</view>
<view class="title title1">
检测时间:{
{
item.testingTime }}
</view>
<view class="title title1">
检测结果:
<text class="callout" v-if="item.status==1">阴性</text>
<text class="callout" v-if="item.status==2">阳性</text>
<text class="callout" v-if="item.status==3">无效结果</text>
</view>
<view class="title title1">
录入时间:{
{
item.nucleicTime }}
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
reagentId: '',
idCode: '',
name: '',
testingTime: '',
status: '',
userInfo: {
},
antList:[],
Flag: true
}
},
onLoad:function() {
uni.request({
url: 'Where You Going, Baby?',
method: 'POST',
data: {
addName: uni.getStorageSync('username'),
// 缓存传参
},
header: {
'content-type': 'application/json'
},
success: res => {
this.antList= res.data
},
});
},
onShow:function() {
uni.request({
url: 'Where You Going, Baby?',
method: 'POST',
data: {
addName: uni.getStorageSync('username'),
// 缓存传参
},
header: {
'content-type': 'application/json'
},
success: res => {
console.log(res);
this.antList= res.data
},
});
},
methods: {
// 更新个人录入信息
toRegister(){
uni.navigateTo({
url:`../index/index`
});
},
}
}
</script>
<style>
.top_cont{
flex: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 300rpx;
width: 100%;
border-bottom: 15rpx solid #F7F7F7;
}
.input_btn{
width: 400rpx;
height: 100rpx;
background: #6CCACF;
border-radius: 100rpx;
color: white;
line-height: 100rpx;
border: 1rpx #DBDBDB solid;
}
.history{
overflow: auto;
height: 1000rpx;
width: 86%;
margin-left: 50rpx;
font-size: 28rpx;
border-bottom: gray 1px solid;
}
.txt_dot{
width: 15rpx;
height: 45rpx;
border-radius: 15rpx;
background: #6CCACF;
float: left;
margin-right: 20rpx;
}
.txt_words{
font-size: 30rpx;
}
.title{
color: gray;
margin: 20rpx 0;
}
.titleMax{
font-size: 32rpx;
font-weight: 600;
color: #000000;
}
.callout{
font-size: 30rpx;
color: #6CCACF;
}
</style>
边栏推荐
- 一个很少见但很有用的SQL功能
- js基础知识整理之 —— 闭包
- Jmeter secondary development to realize rsa encryption
- # DWD层及DIM层构建## ,220801 ,
- No-code development platform form styling steps introductory course
- resubmit 渐进式防重复提交框架简介
- Cholesterol-PEG-Amine,CLS-PEG-NH2,胆固醇-聚乙二醇-氨基脂两亲性脂质衍生物
- Mysql查看慢查询日志
- ZCMU--5230: 排练方阵(C语言)
- 买母婴产品先来京东“券民空间站”抢券!大牌好物低至5折
猜你喜欢
Shunted Self-Attention via Multi-Scale Token Aggregation
Cholesterol-PEG-Amine,CLS-PEG-NH2,胆固醇-聚乙二醇-氨基脂两亲性脂质衍生物
VMware workstation 程序启动慢
程序员常说的“左手锟斤拷,右手烫烫烫”是怎么回事?
NLP常用Backbone模型小抄(1)
如何使用vlookup+excel数组公式 完成逆向查找?
mPEG-Cholesterol,mPEG-CLS,甲氧基-聚乙二醇-胆固醇可用于脂质体制备
CKAN教程之在 AWS 上部署 CKAN 应用程序
Swift中的类型相关内容
MySql查询某个时间段内的数据(前一周、前三个月、前一年等)
随机推荐
脂溶性胆固醇-聚乙二醇-叠氮,Cholesterol-PEG-Azide,CLS-PEG-N3
CKAN教程之在 AWS 上部署 CKAN 应用程序
R语言自学 1 - 向量
辅助脚本开发之旅
华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
What is the matter that programmers often say "the left hand is knuckled and the right hand is hot"?
APT级全面免杀拿Shell
微信小程序(一)
CAS:1445723-73-8,DSPE-PEG-NHS,磷脂-聚乙二醇-活性酯两亲性脂质PEG共轭物
Yocto系列讲解[实战篇]85 - 制作ubi镜像和自动挂载ubifs文件系统
today‘s task
MDL 内存描述符链表
CTF命令执行题目解题思路
数据库主键一定要自增吗?有哪些场景不建议自增?
Cholesterol-PEG-Acid,胆固醇-聚乙二醇-羧基保持在干燥、低温环境下
IDO代币预售合约系统开发技术详细
d实验新异常
Based on two levels of decomposition and the length of the memory network multi-step combined forecasting model of short-term wind speed
Let's talk about the charm of code language
FastCorrect:语音识别快速纠错模型丨RTC Dev Meetup