|
@@ -5,6 +5,7 @@
|
|
<div class="flcard">
|
|
<div class="flcard">
|
|
<div class="btns">
|
|
<div class="btns">
|
|
<uni-datetime-picker
|
|
<uni-datetime-picker
|
|
|
|
+ class="u-button"
|
|
:show="dataShow"
|
|
:show="dataShow"
|
|
mode="datetime"
|
|
mode="datetime"
|
|
@cancel="dataShow = false"
|
|
@cancel="dataShow = false"
|
|
@@ -12,18 +13,19 @@
|
|
v-model="StartTime"
|
|
v-model="StartTime"
|
|
></uni-datetime-picker>
|
|
></uni-datetime-picker>
|
|
<uni-datetime-picker
|
|
<uni-datetime-picker
|
|
|
|
+ class="u-button"
|
|
:show="dataShow1"
|
|
:show="dataShow1"
|
|
mode="datetime"
|
|
mode="datetime"
|
|
@cancel="dataShow1 = false"
|
|
@cancel="dataShow1 = false"
|
|
@confirm="selectEndTime"
|
|
@confirm="selectEndTime"
|
|
v-model="EndTime"
|
|
v-model="EndTime"
|
|
></uni-datetime-picker>
|
|
></uni-datetime-picker>
|
|
- <u-icon
|
|
|
|
- size="30"
|
|
|
|
- color="#3c9cff"
|
|
|
|
- name="search"
|
|
|
|
|
|
+ <u-button
|
|
|
|
+ type="primary"
|
|
|
|
+ text="查询"
|
|
@click="checkHistoryData"
|
|
@click="checkHistoryData"
|
|
- ></u-icon>
|
|
|
|
|
|
+ class="btn"
|
|
|
|
+ ></u-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<u-list :class="{ emptyhistory: historyData.length === 0 }">
|
|
<u-list :class="{ emptyhistory: historyData.length === 0 }">
|
|
@@ -33,40 +35,31 @@
|
|
v-for="(item, index) in historyData"
|
|
v-for="(item, index) in historyData"
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
- <view>
|
|
|
|
- <view class="content flcard">
|
|
|
|
- <view class="datacard user">
|
|
|
|
- <view style="margin: 20rpx 20rpx">
|
|
|
|
- <text class="text-style">{{ item.realname }}</text>
|
|
|
|
- </view>
|
|
|
|
- <view style="margin: 20rpx 20rpx; font-size: small"
|
|
|
|
- >用户</view
|
|
|
|
- >
|
|
|
|
- </view>
|
|
|
|
- <view class="datacard device">
|
|
|
|
- <view style="margin: 20rpx 20rpx">
|
|
|
|
- <text class="text-style">{{ item.devicename }}</text>
|
|
|
|
- </view>
|
|
|
|
- <view style="margin: 20rpx 20rpx; font-size: small"
|
|
|
|
- >操作设备</view
|
|
|
|
- >
|
|
|
|
|
|
+ <view class="time">
|
|
|
|
+ <view style="margin: 20rpx 30rpx">
|
|
|
|
+ <text style="font-weight: bold">{{ item.createTime }}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="content flcard">
|
|
|
|
+ <view class="datacard user">
|
|
|
|
+ <view style="margin: 20rpx 20rpx">
|
|
|
|
+ <text class="text-style">{{ item.realname }}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="datacard record">
|
|
|
|
- <view style="margin: 20rpx 20rpx">
|
|
|
|
- <text class="text-style">{{ item.strremark }}</text>
|
|
|
|
- </view>
|
|
|
|
- <view style="margin: 20rpx 20rpx; font-size: small"
|
|
|
|
- >操作记录</view
|
|
|
|
- >
|
|
|
|
|
|
+ <view class="text-info">用户</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="split"></view>
|
|
|
|
+ <view class="datacard device">
|
|
|
|
+ <view style="margin: 20rpx 20rpx">
|
|
|
|
+ <text class="text-style">{{ item.devicename }}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="datacard time">
|
|
|
|
- <view style="margin: 20rpx 20rpx">
|
|
|
|
- <text class="text-style">{{ item.createTime }}</text>
|
|
|
|
- </view>
|
|
|
|
- <view style="margin: 20rpx 20rpx; font-size: small"
|
|
|
|
- >操作时间</view
|
|
|
|
- >
|
|
|
|
|
|
+ <view class="text-info">操作设备</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="split"></view>
|
|
|
|
+ <view class="datacard record">
|
|
|
|
+ <view style="margin: 20rpx 20rpx">
|
|
|
|
+ <text class="text-style">{{ item.strremark }}</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="text-info">操作记录</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-list-item>
|
|
</u-list-item>
|
|
@@ -183,6 +176,34 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style>
|
|
<style>
|
|
|
|
+.u-button {
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ border: 1px solid #2299fe;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+}
|
|
|
|
+.btn {
|
|
|
|
+ width: 80px;
|
|
|
|
+ background: linear-gradient(to right, #338afe, #07b4ff, #338afe) !important;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+}
|
|
|
|
+.content {
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ background-image: url("/static/operation/operateData.png");
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+.split {
|
|
|
|
+ width: 2%;
|
|
|
|
+ height: 120rpx;
|
|
|
|
+ margin-right: 9%;
|
|
|
|
+ background-image: url("/static/operation/operateSplit.png");
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+}
|
|
.emptyhistory {
|
|
.emptyhistory {
|
|
background: url("/static/empty.png") no-repeat;
|
|
background: url("/static/empty.png") no-repeat;
|
|
background-size: 100% 50%;
|
|
background-size: 100% 50%;
|
|
@@ -225,66 +246,30 @@ export default {
|
|
}
|
|
}
|
|
.text-style {
|
|
.text-style {
|
|
color: #3787fe;
|
|
color: #3787fe;
|
|
|
|
+ font-size: 16px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+.text-info {
|
|
|
|
+ margin: 20rpx 20rpx;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #657497;
|
|
}
|
|
}
|
|
-
|
|
|
|
.itemback {
|
|
.itemback {
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
margin-bottom: 5rpx;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
}
|
|
.datacard {
|
|
.datacard {
|
|
- width: 48%;
|
|
|
|
- margin: 1%;
|
|
|
|
|
|
+ width: 45%;
|
|
float: left;
|
|
float: left;
|
|
height: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
.time {
|
|
.time {
|
|
- background: url(/static/operation/operationTime.png),
|
|
|
|
- linear-gradient(
|
|
|
|
- to right,
|
|
|
|
- rgba(55, 135, 254, 0.08),
|
|
|
|
- rgba(4, 184, 255, 0.08),
|
|
|
|
- rgba(60, 161, 237, 0.08)
|
|
|
|
- );
|
|
|
|
- background-size: auto 100%;
|
|
|
|
- background-position: right;
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
-}
|
|
|
|
-.record {
|
|
|
|
- background: url(/static/operation/operationRecord.png),
|
|
|
|
- linear-gradient(
|
|
|
|
- to right,
|
|
|
|
- rgba(55, 135, 254, 0.08),
|
|
|
|
- rgba(4, 184, 255, 0.08),
|
|
|
|
- rgba(60, 161, 237, 0.08)
|
|
|
|
- );
|
|
|
|
- background-size: auto 100%;
|
|
|
|
- background-position: right;
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
-}
|
|
|
|
-.user {
|
|
|
|
- background: url(/static/operation/user.png),
|
|
|
|
- linear-gradient(
|
|
|
|
- to right,
|
|
|
|
- rgba(55, 135, 254, 0.08),
|
|
|
|
- rgba(4, 184, 255, 0.08),
|
|
|
|
- rgba(60, 161, 237, 0.08)
|
|
|
|
- );
|
|
|
|
- background-size: auto 100%;
|
|
|
|
- background-position: right;
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
-}
|
|
|
|
-.device {
|
|
|
|
- background: url(/static/operation/operationDevice.png),
|
|
|
|
- linear-gradient(
|
|
|
|
- to right,
|
|
|
|
- rgba(55, 135, 254, 0.08),
|
|
|
|
- rgba(4, 184, 255, 0.08),
|
|
|
|
- rgba(60, 161, 237, 0.08)
|
|
|
|
- );
|
|
|
|
- background-size: auto 100%;
|
|
|
|
|
|
+ background: url(/static/operation/timeBg.png);
|
|
|
|
+ background-size: 100% 100%;
|
|
background-position: right;
|
|
background-position: right;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|