|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <Nav :title="title" isBack isRight @goBack="handelBack" @change="change" />
|
|
|
+ <Nav :title="title" isBack isRight @goBack="handelBack" />
|
|
|
<view id="luckysheet"
|
|
|
- style="margin:0px;padding:0px;position:absolute;width:100%;height:95%;left: 0px;top: 80rpx;">
|
|
|
+ style="margin:0px;padding:0px;position:absolute;width:100%;height:87%;left: 0px;top: 80rpx;">
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
- <u-button size="mini" type="primary" text="运行记录" @click="openRecord" hoverStayTime="0"></u-button>
|
|
|
- </view>
|
|
|
+ <u-button type="primary" size="middle" text="运行记录" @click="openRecord" hoverStayTime="0"></u-button>
|
|
|
+ </view> -->
|
|
|
<!-- 运行记录弹框 -->
|
|
|
<u-popup :show="show" mode="center" :customStyle="{'padding':'10rpx','width':'80%'}">
|
|
|
<uni-table stripe emptyText="暂无更多数据">
|
|
@@ -21,7 +21,8 @@
|
|
|
</uni-tr>
|
|
|
</view>
|
|
|
</uni-table>
|
|
|
- <u-button size="mini" type="primary" text="关闭" @click="show=false" style="width:30rpx;margin-top:10rpx" hoverStayTime="0">
|
|
|
+ <u-button size="middle" type="primary" text="关闭" @click="show=false" style="margin-top:10rpx"
|
|
|
+ hoverStayTime="0">
|
|
|
</u-button>
|
|
|
</u-popup>
|
|
|
<u-empty mode="data" icon="../../../static/data.png" v-if="!option">
|
|
@@ -36,11 +37,11 @@
|
|
|
return {
|
|
|
id: null,
|
|
|
title: null,
|
|
|
- option: null,
|
|
|
+ option: {},
|
|
|
show: false,
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
- recordList: null,
|
|
|
+ recordList: [],
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -68,14 +69,16 @@
|
|
|
this.option = tableData.option
|
|
|
if (this.option) {
|
|
|
tableData.option.allowEdit = false
|
|
|
- luckysheet.create(this.option)
|
|
|
this.showToolbar(tableData)
|
|
|
+ luckysheet.create(this.option)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
showToolbar(tableData) {
|
|
|
tableData.showtoolbar = false
|
|
|
+ this.option.enableAddRow = false
|
|
|
+ this.option.enableAddBackTop = false
|
|
|
let data = tableData.option.showtoolbarConfig
|
|
|
for (let item in data) {
|
|
|
data[item] = false
|
|
@@ -115,15 +118,20 @@
|
|
|
display: none !important;
|
|
|
}
|
|
|
|
|
|
+ ::v-deep .u-button {
|
|
|
+ width: 160rpx;
|
|
|
+ height: 60rpx
|
|
|
+ }
|
|
|
+
|
|
|
.btn {
|
|
|
- z-index: 999;
|
|
|
position: absolute;
|
|
|
- bottom: 30rpx;
|
|
|
- right: 0;
|
|
|
+ left: 50%;
|
|
|
+ bottom: 2%;
|
|
|
+ margin-left: -80rpx;
|
|
|
}
|
|
|
-
|
|
|
- .uni-td{
|
|
|
- width:600rpx;
|
|
|
+
|
|
|
+ .uni-td {
|
|
|
+ width: 600rpx;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|